@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.
@@ -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
- };