Skip to content

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Oct 21, 2024
1 parent 000cd2e commit 3606dcd
Showing 1 changed file with 67 additions and 33 deletions.
100 changes: 67 additions & 33 deletions src/color-picker/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,73 @@ exports[`ColorPicker ColorPicker base demo works fine 1`] = `
exports[`ColorPicker ColorPicker format demo works fine 1`] = `
<format>
<wx-view>
<wx-view
class="format-line"
>
<wx-view
class="format-item active"
data-format="CSS"
catch:tap="clickFormat"
>
<t-icon
customStyle="position: absolute;left: 4rpx;top: 4rpx;z-index: 1;color: #fff"
name="check"
size="14"
/>
CSS
</wx-view>
<wx-view
class="format-item "
data-format="HEX"
catch:tap="clickFormat"
>
HEX
</wx-view>
<wx-view
class="format-item "
data-format="RGB"
catch:tap="clickFormat"
>
RGB
</wx-view>
</wx-view>
<wx-view
class="format-line"
>
<wx-view
class="format-item "
data-format="HSL"
catch:tap="clickFormat"
>
HSL
</wx-view>
<wx-view
class="format-item "
data-format="HSV"
catch:tap="clickFormat"
>
HSV
</wx-view>
<wx-view
class="format-item "
data-format="CMYK"
catch:tap="clickFormat"
>
CMYK
</wx-view>
</wx-view>
<t-color-picker
enableAlpha="{{true}}"
format="CSS"
Expand All @@ -17,39 +84,6 @@ exports[`ColorPicker ColorPicker format demo works fine 1`] = `
bind:change="onChange"
bind:palette-bar-change="onPaletteBarChange"
/>
<t-radio-group
options="{{
Array [
Object {
"label": "CSS 模式",
"value": "CSS",
},
Object {
"label": "HEX 模式",
"value": "HEX",
},
Object {
"label": "RGB 模式",
"value": "RGB",
},
Object {
"label": "HSL 模式",
"value": "HSL",
},
Object {
"label": "HSV 模式",
"value": "HSV",
},
Object {
"label": "CMYK 模式",
"value": "CMYK",
},
]
}}"
style="margin-top: 24rpx"
value="CSS"
bind:change="onChangeRadio"
/>
</wx-view>
</format>
`;
Expand Down

0 comments on commit 3606dcd

Please sign in to comment.