@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.
@@ -3,5 +3,5 @@ import '../../icon/icon.css'
3
3
  import '../../ripple/ripple.css'
4
4
  import '../../popup/popup.css'
5
5
  import '../actionSheet.css'
6
- import '../ActionSheetSfc.css'
7
6
  import '../ActionItemSfc.css'
7
+ import '../ActionSheetSfc.css'
@@ -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: "CheckboxGroupOption",
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: Object
20
+ option: {
21
+ type: Object,
22
+ required: true
23
+ }
18
24
  },
19
25
  setup(props) {
20
26
  return () => {
21
- if (props.option == null) {
22
- return;
23
- }
27
+ const {
28
+ option,
29
+ labelKey,
30
+ valueKey
31
+ } = props;
24
32
  return _createVNode(Checkbox, {
25
- "checkedValue": props.option[props.valueKey],
26
- "disabled": props.option.disabled
33
+ "checkedValue": option[valueKey],
34
+ "disabled": option.disabled
27
35
  }, {
28
36
  default: ({
29
37
  checked
30
- }) => isFunction(props.option[props.labelKey]) ? props.option[props.labelKey](props.option, checked) : props.option[props.labelKey]
38
+ }) => isFunction(option[labelKey]) ? option[labelKey](option, checked) : option[labelKey]
31
39
  });
32
40
  };
33
41
  }
@@ -1,5 +1,5 @@
1
- import '../../checkbox/checkbox.css'
2
1
  import '../../styles/common.css'
3
2
  import '../../form-details/formDetails.css'
3
+ import '../../checkbox/checkbox.css'
4
4
  import '../checkboxGroup.css'
5
5
  import '../CheckboxGroupSfc.css'
@@ -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-alpha.1717078222679'
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-alpha.1717078222679'
177
+ const version = '3.2.12'
178
178
 
179
179
  function install(app) {
180
180
  ActionSheet.install && app.use(ActionSheet)