@mptw/skylens-ui 1.4.45 → 1.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -57,7 +57,7 @@ export default defineComponent({
|
|
|
57
57
|
color: {
|
|
58
58
|
type: String,
|
|
59
59
|
default: "",
|
|
60
|
-
validator: (val: string) => ["", "primary-600"].includes(val),
|
|
60
|
+
validator: (val: string) => ["", "primary-600", "primary"].includes(val),
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:modelValue"],
|
|
@@ -202,6 +202,11 @@ export default defineComponent({
|
|
|
202
202
|
input:checked + label
|
|
203
203
|
@apply bg-primary-600 border-primary
|
|
204
204
|
|
|
205
|
+
&.ios-switch-primary
|
|
206
|
+
label
|
|
207
|
+
.false-label
|
|
208
|
+
@apply text-primary
|
|
209
|
+
|
|
205
210
|
input
|
|
206
211
|
@apply absolute s('left-1/2') s('top-1/2') transform s('-translate-x-1/2') s('-translate-y-1/2')
|
|
207
212
|
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
falseLabel="淺色"
|
|
42
42
|
minFalseLabel="淺"
|
|
43
43
|
:size="closuredProxy ? 'min' : ''"
|
|
44
|
+
:color='switchColor'
|
|
44
45
|
@update:modelValue="onUpdatedMode"
|
|
45
46
|
)
|
|
46
47
|
a.sidebar-toggle(href="javascript:;", @click="onClickedToggle")
|
|
@@ -66,7 +67,12 @@ export default defineComponent({
|
|
|
66
67
|
config: {
|
|
67
68
|
type: Array as PropType<NavConfigType>,
|
|
68
69
|
default: () => [],
|
|
69
|
-
}
|
|
70
|
+
},
|
|
71
|
+
switchColor: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: '',
|
|
74
|
+
validator: (v: string) => ['', 'primary-600', 'primary'].includes(v),
|
|
75
|
+
},
|
|
70
76
|
},
|
|
71
77
|
emits: ["click:logo", "update:dark", "update:closured", "click:insight"],
|
|
72
78
|
setup(props, { emit }) {
|