diff --git a/examples/routers/color-picker.vue b/examples/routers/color-picker.vue
index 8aaa153..fe52cd5 100644
--- a/examples/routers/color-picker.vue
+++ b/examples/routers/color-picker.vue
@@ -5,18 +5,15 @@
+ >
@@ -57,7 +52,6 @@
v-model="color7"
:hue="false"
:hide-drop-down="hideDropDown"
- transfer
@on-open-change="onOpenChange">
diff --git a/src/components/color-picker/color-picker.vue b/src/components/color-picker/color-picker.vue
index 25a552b..9159f2e 100644
--- a/src/components/color-picker/color-picker.vue
+++ b/src/components/color-picker/color-picker.vue
@@ -168,11 +168,12 @@ export default {
default: false,
},
size: {
- type: String,
validator(value) {
return oneOf(value, ['small', 'large', 'default']);
},
- default: 'default',
+ default () {
+ return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
+ }
},
hideDropDown: {
type: Boolean,
@@ -200,7 +201,9 @@ export default {
},
transfer: {
type: Boolean,
- default: false,
+ default () {
+ return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
+ }
},
name: {
type: String,
--
libgit2 0.21.4