Skip to content

Commit 4cad40b

Browse files
committed
build: build version v2.0.3
1 parent 010f428 commit 4cad40b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

packages/ColorPicker.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
disableAlpha: propTypes.bool.def(false),
6868
disableHistory: propTypes.bool.def(false),
6969
roundHistory: propTypes.bool.def(false),
70-
useType: propTypes.oneOf(["single", "gradient", "both"]).def("single"),
71-
activeKey: propTypes.oneOf(["single", "gradient"]).def("single"),
70+
useType: propTypes.oneOf(["pure", "gradient", "both"]).def("pure"),
71+
activeKey: propTypes.oneOf(["pure", "gradient"]).def("pure"),
7272
lang: {
7373
type: String as PropType<SupportLang>,
7474
default: "ZH-cn",
@@ -93,7 +93,7 @@
9393
setup(props, { emit }) {
9494
const state = reactive({
9595
pureColor: props.pureColor || "",
96-
activeKey: props.useType === "gradient" ? "gradient" : "single", // "single" | "gradient"
96+
activeKey: props.useType === "gradient" ? "gradient" : "pure", // "pure" | "gradient"
9797
isAdvanceMode: false,
9898
});
9999
@@ -342,7 +342,7 @@
342342
if (state.activeKey !== "gradient" && value === "gradient") {
343343
state.activeKey = "gradient";
344344
} else {
345-
state.activeKey = "single";
345+
state.activeKey = "pure";
346346
}
347347
}
348348
);

packages/common/WrapContainer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
:class="[
88
'vc-colorpicker--tabs__btn',
99
{
10-
'vc-btn-active': state.activeKey === 'single',
10+
'vc-btn-active': state.activeKey === 'pure',
1111
},
1212
]"
13-
@click="onActiveKeyChange('single')"
13+
@click="onActiveKeyChange('pure')"
1414
>
1515
<button>
1616
<div class="vc-btn__content">{{ lang === "ZH-cn" ? "纯色" : "Pure" }}</div>
@@ -53,7 +53,7 @@
5353
name: "WrapContainer",
5454
props: {
5555
showTab: propTypes.bool.def(false),
56-
activeKey: propTypes.oneOf(["single", "gradient"]).def("single"),
56+
activeKey: propTypes.oneOf(["pure", "gradient"]).def("pure"),
5757
},
5858
emits: ["update:activeKey", "change"],
5959
setup(props, { emit }) {

src/stories/ColorPicker.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export default {
5656
},
5757
useType: {
5858
type: "string",
59-
description: "single| gradient | both",
59+
description: "pure | gradient | both",
6060
control: { type: "select" },
61-
options: ["single", "gradient", "both"],
61+
options: ["pure", "gradient", "both"],
6262
table: {
6363
defaultValue: {
64-
summary: "single",
64+
summary: "pure",
6565
},
6666
},
6767
},

0 commit comments

Comments
 (0)