@varlet/ui 3.2.12-alpha.1717078222679 → 3.2.12
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/es/action-sheet/style/index.mjs +1 -1
- package/es/checkbox-group/CheckboxGroupOption.mjs +18 -10
- package/es/checkbox-group/style/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/varlet.esm.js +1555 -1544
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +59 -51
- package/package.json +7 -7
- package/umd/varlet.js +5 -5
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import { defineComponent } from "vue";
|
|
3
|
-
import Checkbox from "../checkbox/index.mjs";
|
|
4
3
|
import { isFunction } from "@varlet/shared";
|
|
5
|
-
|
|
4
|
+
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
+
import Checkbox from "../checkbox/index.mjs";
|
|
6
|
+
const {
|
|
7
|
+
name
|
|
8
|
+
} = createNamespace("checkbox-group-option");
|
|
6
9
|
var stdin_default = defineComponent({
|
|
7
|
-
name
|
|
10
|
+
name,
|
|
8
11
|
props: {
|
|
9
12
|
labelKey: {
|
|
10
13
|
type: String,
|
|
@@ -14,20 +17,25 @@ var stdin_default = defineComponent({
|
|
|
14
17
|
type: String,
|
|
15
18
|
required: true
|
|
16
19
|
},
|
|
17
|
-
option:
|
|
20
|
+
option: {
|
|
21
|
+
type: Object,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
18
24
|
},
|
|
19
25
|
setup(props) {
|
|
20
26
|
return () => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
const {
|
|
28
|
+
option,
|
|
29
|
+
labelKey,
|
|
30
|
+
valueKey
|
|
31
|
+
} = props;
|
|
24
32
|
return _createVNode(Checkbox, {
|
|
25
|
-
"checkedValue":
|
|
26
|
-
"disabled":
|
|
33
|
+
"checkedValue": option[valueKey],
|
|
34
|
+
"disabled": option.disabled
|
|
27
35
|
}, {
|
|
28
36
|
default: ({
|
|
29
37
|
checked
|
|
30
|
-
}) => isFunction(
|
|
38
|
+
}) => isFunction(option[labelKey]) ? option[labelKey](option, checked) : option[labelKey]
|
|
31
39
|
});
|
|
32
40
|
};
|
|
33
41
|
}
|
package/es/index.bundle.mjs
CHANGED
|
@@ -262,7 +262,7 @@ import './tooltip/style/index.mjs'
|
|
|
262
262
|
import './uploader/style/index.mjs'
|
|
263
263
|
import './watermark/style/index.mjs'
|
|
264
264
|
|
|
265
|
-
const version = '3.2.12
|
|
265
|
+
const version = '3.2.12'
|
|
266
266
|
|
|
267
267
|
function install(app) {
|
|
268
268
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -174,7 +174,7 @@ export * from './tooltip/index.mjs'
|
|
|
174
174
|
export * from './uploader/index.mjs'
|
|
175
175
|
export * from './watermark/index.mjs'
|
|
176
176
|
|
|
177
|
-
const version = '3.2.12
|
|
177
|
+
const version = '3.2.12'
|
|
178
178
|
|
|
179
179
|
function install(app) {
|
|
180
180
|
ActionSheet.install && app.use(ActionSheet)
|