@destyler/switch 0.0.2 → 0.0.3
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.
- package/dist/index.cjs +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -102,9 +102,7 @@ const DestylerSwitchRoot = vue.defineComponent({
|
|
|
102
102
|
"onKeydown": vue.withModifiers(() => {
|
|
103
103
|
this.toggleCheck();
|
|
104
104
|
}, ["enter", "prevent"])
|
|
105
|
-
}),
|
|
106
|
-
default: () => this.$slots.default?.()
|
|
107
|
-
}), [
|
|
105
|
+
}), () => this.$slots.default?.()), [
|
|
108
106
|
[directives.BindOnceDirective, { id: this.$props.id }]
|
|
109
107
|
]),
|
|
110
108
|
this.isFormControl ? vue.h("input", {
|
|
@@ -158,7 +156,7 @@ const DestylerSwitchThump = vue.defineComponent({
|
|
|
158
156
|
"data-disabled": this.rootContext.disabled.value ? "" : void 0,
|
|
159
157
|
"asChild": this.$props.asChild,
|
|
160
158
|
"as": this.$props.as
|
|
161
|
-
}, this.$slots.default?.());
|
|
159
|
+
}, () => this.$slots.default?.());
|
|
162
160
|
}
|
|
163
161
|
});
|
|
164
162
|
|
package/dist/index.mjs
CHANGED
|
@@ -100,9 +100,7 @@ const DestylerSwitchRoot = defineComponent({
|
|
|
100
100
|
"onKeydown": withModifiers(() => {
|
|
101
101
|
this.toggleCheck();
|
|
102
102
|
}, ["enter", "prevent"])
|
|
103
|
-
}),
|
|
104
|
-
default: () => this.$slots.default?.()
|
|
105
|
-
}), [
|
|
103
|
+
}), () => this.$slots.default?.()), [
|
|
106
104
|
[BindOnceDirective, { id: this.$props.id }]
|
|
107
105
|
]),
|
|
108
106
|
this.isFormControl ? h("input", {
|
|
@@ -156,7 +154,7 @@ const DestylerSwitchThump = defineComponent({
|
|
|
156
154
|
"data-disabled": this.rootContext.disabled.value ? "" : void 0,
|
|
157
155
|
"asChild": this.$props.asChild,
|
|
158
156
|
"as": this.$props.as
|
|
159
|
-
}, this.$slots.default?.());
|
|
157
|
+
}, () => this.$slots.default?.());
|
|
160
158
|
}
|
|
161
159
|
});
|
|
162
160
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/switch",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.3",
|
|
4
5
|
"description": "unstyled switch component for vue",
|
|
5
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
6
7
|
"license": "MIT",
|
|
@@ -33,10 +34,10 @@
|
|
|
33
34
|
"vue": ">=3.3.4"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@destyler/composition": "0.0.
|
|
37
|
-
"@destyler/shared": "0.0.
|
|
38
|
-
"@destyler/
|
|
39
|
-
"@destyler/
|
|
37
|
+
"@destyler/composition": "0.0.3",
|
|
38
|
+
"@destyler/shared": "0.0.3",
|
|
39
|
+
"@destyler/primitive": "0.0.3",
|
|
40
|
+
"@destyler/directives": "0.0.3"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
43
|
"clear": "rimraf ./dist",
|