@varlet/ui 3.3.1 → 3.3.2
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/app-bar/AppBar.mjs +1 -0
- package/es/app-bar/appBar.css +1 -1
- package/es/app-bar/props.mjs +1 -0
- package/es/checkbox-group/CheckboxGroup.mjs +21 -12
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +20 -11
- package/es/style.css +1 -1
- package/es/themes/dark/appBar.mjs +2 -1
- package/es/themes/md3-dark/appBar.mjs +2 -1
- package/es/themes/md3-light/appBar.mjs +2 -1
- package/es/utils/components.mjs +18 -2
- package/es/varlet.esm.js +2786 -2825
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +831 -868
- package/package.json +7 -7
- package/types/appBar.d.ts +1 -0
- package/types/styleVars.d.ts +1 -0
- package/umd/varlet.js +8 -8
- package/es/checkbox-group/CheckboxGroupOption.mjs +0 -45
- package/es/radio-group/RadioGroupOption.mjs +0 -45
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { defineComponent } from "vue";
|
|
3
|
-
import { isFunction } from "@varlet/shared";
|
|
4
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
-
import Checkbox from "../checkbox/index.mjs";
|
|
6
|
-
const {
|
|
7
|
-
name
|
|
8
|
-
} = createNamespace("checkbox-group-option");
|
|
9
|
-
var stdin_default = defineComponent({
|
|
10
|
-
name,
|
|
11
|
-
props: {
|
|
12
|
-
labelKey: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
valueKey: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
option: {
|
|
21
|
-
type: Object,
|
|
22
|
-
required: true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(props) {
|
|
26
|
-
return () => {
|
|
27
|
-
const {
|
|
28
|
-
option,
|
|
29
|
-
labelKey,
|
|
30
|
-
valueKey
|
|
31
|
-
} = props;
|
|
32
|
-
return _createVNode(Checkbox, {
|
|
33
|
-
"checkedValue": option[valueKey],
|
|
34
|
-
"disabled": option.disabled
|
|
35
|
-
}, {
|
|
36
|
-
default: ({
|
|
37
|
-
checked
|
|
38
|
-
}) => isFunction(option[labelKey]) ? option[labelKey](option, checked) : option[labelKey]
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
stdin_default as default
|
|
45
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { defineComponent } from "vue";
|
|
3
|
-
import { isFunction } from "@varlet/shared";
|
|
4
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
5
|
-
import Radio from "../radio/index.mjs";
|
|
6
|
-
const {
|
|
7
|
-
name
|
|
8
|
-
} = createNamespace("radio-group-option");
|
|
9
|
-
var stdin_default = defineComponent({
|
|
10
|
-
name,
|
|
11
|
-
props: {
|
|
12
|
-
labelKey: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
valueKey: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
option: {
|
|
21
|
-
type: Object,
|
|
22
|
-
required: true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(props) {
|
|
26
|
-
return () => {
|
|
27
|
-
const {
|
|
28
|
-
option,
|
|
29
|
-
labelKey,
|
|
30
|
-
valueKey
|
|
31
|
-
} = props;
|
|
32
|
-
return _createVNode(Radio, {
|
|
33
|
-
"checkedValue": option[valueKey],
|
|
34
|
-
"disabled": option.disabled
|
|
35
|
-
}, {
|
|
36
|
-
default: ({
|
|
37
|
-
checked
|
|
38
|
-
}) => isFunction(option[labelKey]) ? option[labelKey](option, checked) : option[labelKey]
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
stdin_default as default
|
|
45
|
-
};
|