@varlet/ui 3.2.11 → 3.2.12-alpha.1717078222679

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 '../ActionItemSfc.css'
7
6
  import '../ActionSheetSfc.css'
7
+ import '../ActionItemSfc.css'
@@ -1,4 +1,5 @@
1
1
  import '../../styles/common.css'
2
2
  import '../../icon/icon.css'
3
+ import '../../ripple/ripple.css'
3
4
  import '../cell.css'
4
5
  import '../CellSfc.css'
@@ -94,7 +94,7 @@ function __render__(_ctx, _cache) {
94
94
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
95
95
  },
96
96
  [
97
- _renderSlot(_ctx.$slots, "default")
97
+ _renderSlot(_ctx.$slots, "default", { checked: _ctx.checked })
98
98
  ],
99
99
  2
100
100
  /* CLASS */
@@ -28,10 +28,11 @@ function __render__(_ctx, _cache) {
28
28
  { key: 0 },
29
29
  _renderList(_ctx.checkboxGroupOptions, (option) => {
30
30
  return _openBlock(), _createBlock(_component_checkbox_group_option, {
31
- key: option.value.toString(),
32
- checked: _ctx.modelValue.includes(option.value),
31
+ key: option[_ctx.valueKey],
32
+ "label-key": _ctx.labelKey,
33
+ "value-key": _ctx.valueKey,
33
34
  option
34
- }, null, 8, ["checked", "option"]);
35
+ }, null, 8, ["label-key", "value-key", "option"]);
35
36
  }),
36
37
  128
37
38
  /* KEYED_FRAGMENT */
@@ -6,7 +6,14 @@ import { isFunction } from "@varlet/shared";
6
6
  var stdin_default = defineComponent({
7
7
  name: "CheckboxGroupOption",
8
8
  props: {
9
- checked: Boolean,
9
+ labelKey: {
10
+ type: String,
11
+ required: true
12
+ },
13
+ valueKey: {
14
+ type: String,
15
+ required: true
16
+ },
10
17
  option: Object
11
18
  },
12
19
  setup(props) {
@@ -15,10 +22,12 @@ var stdin_default = defineComponent({
15
22
  return;
16
23
  }
17
24
  return _createVNode(Checkbox, {
18
- "checkedValue": props.option.value,
25
+ "checkedValue": props.option[props.valueKey],
19
26
  "disabled": props.option.disabled
20
27
  }, {
21
- default: () => [isFunction(props.option.label) ? props.option.label(props.option, props.checked) : props.option.label]
28
+ default: ({
29
+ checked
30
+ }) => isFunction(props.option[props.labelKey]) ? props.option[props.labelKey](props.option, checked) : props.option[props.labelKey]
22
31
  });
23
32
  };
24
33
  }
@@ -6,6 +6,14 @@ const props = {
6
6
  },
7
7
  max: [String, Number],
8
8
  options: Array,
9
+ labelKey: {
10
+ type: String,
11
+ default: "label"
12
+ },
13
+ valueKey: {
14
+ type: String,
15
+ default: "value"
16
+ },
9
17
  direction: {
10
18
  type: String,
11
19
  default: "horizontal"
@@ -8,7 +8,7 @@ import { toNumber, isEmpty, preventDefault, call } from "@varlet/shared";
8
8
  const { name, n, classes } = createNamespace("floating-panel");
9
9
  const DEFAULT_START_ANCHOR = 100;
10
10
  const OVERFLOW_REDUCE_RATIO = 0.2;
11
- import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
11
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
12
12
  function __render__(_ctx, _cache) {
13
13
  return _openBlock(), _createBlock(_Teleport, {
14
14
  to: _ctx.teleport === false ? void 0 : _ctx.teleport,
@@ -31,25 +31,27 @@ function __render__(_ctx, _cache) {
31
31
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.handleTouchend && _ctx.handleTouchend(...args))
32
32
  },
33
33
  [
34
- _createElementVNode(
35
- "div",
36
- {
37
- class: _normalizeClass(_ctx.n("header"))
38
- },
39
- [
40
- _createElementVNode(
41
- "div",
42
- {
43
- class: _normalizeClass(_ctx.n("header-toolbar"))
44
- },
45
- null,
46
- 2
47
- /* CLASS */
48
- )
49
- ],
50
- 2
51
- /* CLASS */
52
- ),
34
+ _renderSlot(_ctx.$slots, "header", {}, () => [
35
+ _createElementVNode(
36
+ "div",
37
+ {
38
+ class: _normalizeClass(_ctx.n("header"))
39
+ },
40
+ [
41
+ _createElementVNode(
42
+ "div",
43
+ {
44
+ class: _normalizeClass(_ctx.n("header-toolbar"))
45
+ },
46
+ null,
47
+ 2
48
+ /* CLASS */
49
+ )
50
+ ],
51
+ 2
52
+ /* CLASS */
53
+ )
54
+ ]),
53
55
  _createElementVNode(
54
56
  "div",
55
57
  {
@@ -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.11'
265
+ const version = '3.2.12-alpha.1717078222679'
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.11'
177
+ const version = '3.2.12-alpha.1717078222679'
178
178
 
179
179
  function install(app) {
180
180
  ActionSheet.install && app.use(ActionSheet)
@@ -1,4 +1,5 @@
1
1
  import '../../styles/common.css'
2
2
  import '../../styles/elevation.css'
3
+ import '../../ripple/ripple.css'
3
4
  import '../paper.css'
4
5
  import '../PaperSfc.css'
@@ -1,7 +1,7 @@
1
1
  import '../../styles/common.css'
2
- import '../SnackbarSfc.css'
3
2
  import '../../styles/elevation.css'
4
3
  import '../../loading/loading.css'
5
4
  import '../../icon/icon.css'
6
5
  import '../snackbar.css'
7
6
  import '../coreSfc.css'
7
+ import '../SnackbarSfc.css'
@@ -1,11 +1,12 @@
1
1
  import '../../styles/common.css'
2
2
  import '../../styles/elevation.css'
3
+ import '../../hover-overlay/hoverOverlay.css'
4
+ import '../../ripple/ripple.css'
3
5
  import '../../form-details/formDetails.css'
4
6
  import '../../icon/icon.css'
5
7
  import '../../popup/popup.css'
6
8
  import '../../swipe/swipe.css'
7
9
  import '../../swipe-item/swipeItem.css'
8
10
  import '../../image-preview/imagePreview.css'
9
- import '../../hover-overlay/hoverOverlay.css'
10
11
  import '../uploader.css'
11
12
  import '../UploaderSfc.css'
package/es/varlet.esm.js CHANGED
@@ -4175,7 +4175,7 @@ function py(e, n) {
4175
4175
  onClick: n[2] || (n[2] = (...l) => e.handleTextClick && e.handleTextClick(...l))
4176
4176
  },
4177
4177
  [
4178
- R(e.$slots, "default")
4178
+ R(e.$slots, "default", { checked: e.checked })
4179
4179
  ],
4180
4180
  2
4181
4181
  /* CLASS */
@@ -4294,17 +4294,26 @@ const n5 = ra;
4294
4294
  var at = ra, vy = _({
4295
4295
  name: "CheckboxGroupOption",
4296
4296
  props: {
4297
- checked: Boolean,
4297
+ labelKey: {
4298
+ type: String,
4299
+ required: !0
4300
+ },
4301
+ valueKey: {
4302
+ type: String,
4303
+ required: !0
4304
+ },
4298
4305
  option: Object
4299
4306
  },
4300
4307
  setup(e) {
4301
4308
  return () => {
4302
4309
  if (e.option != null)
4303
4310
  return G(at, {
4304
- checkedValue: e.option.value,
4311
+ checkedValue: e.option[e.valueKey],
4305
4312
  disabled: e.option.disabled
4306
4313
  }, {
4307
- default: () => [jo(e.option.label) ? e.option.label(e.option, e.checked) : e.option.label]
4314
+ default: ({
4315
+ checked: n
4316
+ }) => jo(e.option[e.labelKey]) ? e.option[e.labelKey](e.option, n) : e.option[e.labelKey]
4308
4317
  });
4309
4318
  };
4310
4319
  }
@@ -4316,6 +4325,14 @@ const Nf = {
4316
4325
  },
4317
4326
  max: [String, Number],
4318
4327
  options: Array,
4328
+ labelKey: {
4329
+ type: String,
4330
+ default: "label"
4331
+ },
4332
+ valueKey: {
4333
+ type: String,
4334
+ default: "value"
4335
+ },
4319
4336
  direction: {
4320
4337
  type: String,
4321
4338
  default: "horizontal"
@@ -4346,10 +4363,11 @@ function by(e, n) {
4346
4363
  Re,
4347
4364
  { key: 0 },
4348
4365
  _e(e.checkboxGroupOptions, (r) => (g(), Oe(o, {
4349
- key: r.value.toString(),
4350
- checked: e.modelValue.includes(r.value),
4366
+ key: r[e.valueKey],
4367
+ "label-key": e.labelKey,
4368
+ "value-key": e.valueKey,
4351
4369
  option: r
4352
- }, null, 8, ["checked", "option"]))),
4370
+ }, null, 8, ["label-key", "value-key", "option"]))),
4353
4371
  128
4354
4372
  /* KEYED_FRAGMENT */
4355
4373
  )) : X("v-if", !0),
@@ -10714,25 +10732,27 @@ function Uw(e, n) {
10714
10732
  onTouchcancel: n[3] || (n[3] = (...o) => e.handleTouchend && e.handleTouchend(...o))
10715
10733
  },
10716
10734
  [
10717
- A(
10718
- "div",
10719
- {
10720
- class: p(e.n("header"))
10721
- },
10722
- [
10723
- A(
10724
- "div",
10725
- {
10726
- class: p(e.n("header-toolbar"))
10727
- },
10728
- null,
10729
- 2
10730
- /* CLASS */
10731
- )
10732
- ],
10733
- 2
10734
- /* CLASS */
10735
- ),
10735
+ R(e.$slots, "header", {}, () => [
10736
+ A(
10737
+ "div",
10738
+ {
10739
+ class: p(e.n("header"))
10740
+ },
10741
+ [
10742
+ A(
10743
+ "div",
10744
+ {
10745
+ class: p(e.n("header-toolbar"))
10746
+ },
10747
+ null,
10748
+ 2
10749
+ /* CLASS */
10750
+ )
10751
+ ],
10752
+ 2
10753
+ /* CLASS */
10754
+ )
10755
+ ]),
10736
10756
  A(
10737
10757
  "div",
10738
10758
  {
@@ -22412,7 +22432,7 @@ re(mi);
22412
22432
  se(mi, qm);
22413
22433
  const uT = mi;
22414
22434
  var Jl = mi;
22415
- const T8 = "3.2.11";
22435
+ const T8 = "3.2.12-alpha.1717078222679";
22416
22436
  function E8(e) {
22417
22437
  Ei.install && e.use(Ei), Di.install && e.use(Di), Mi.install && e.use(Mi), Ai.install && e.use(Ai), Ni.install && e.use(Ni), Sr.install && e.use(Sr), Vi.install && e.use(Vi), Li.install && e.use(Li), Ri.install && e.use(Ri), Fi.install && e.use(Fi), Cn.install && e.use(Cn), Ui.install && e.use(Ui), Hi.install && e.use(Hi), Yi.install && e.use(Yi), at.install && e.use(at), ji.install && e.use(ji), Pr.install && e.use(Pr), Wi.install && e.use(Wi), Ki.install && e.use(Ki), qi.install && e.use(qi), Gi.install && e.use(Gi), In.install && e.use(In), Qi.install && e.use(Qi), tl.install && e.use(tl), al.install && e.use(al), il.install && e.use(il), ll.install && e.use(ll), Br.install && e.use(Br), cl.install && e.use(cl), dl.install && e.use(dl), At.install && e.use(At), fl.install && e.use(fl), pl.install && e.use(pl), On.install && e.use(On), zn.install && e.use(zn), Nn.install && e.use(Nn), Xe.install && e.use(Xe), vl.install && e.use(vl), Lt.install && e.use(Lt), ml.install && e.use(ml), hl.install && e.use(hl), Mr.install && e.use(Mr), Dt.install && e.use(Dt), gl.install && e.use(gl), bl.install && e.use(bl), rt.install && e.use(rt), yl.install && e.use(yl), Ti.install && e.use(Ti), Rt.install && e.use(Rt), Ar.install && e.use(Ar), Nr.install && e.use(Nr), kl.install && e.use(kl), $l.install && e.use($l), wl.install && e.use(wl), Cl.install && e.use(Cl), Sl.install && e.use(Sl), wo.install && e.use(wo), Pl.install && e.use(Pl), zl.install && e.use(zl), Ol.install && e.use(Ol), Tl.install && e.use(Tl), El.install && e.use(El), Dl.install && e.use(Dl), on.install && e.use(on), Bl.install && e.use(Bl), Il.install && e.use(Il), Ml.install && e.use(Ml), Al.install && e.use(Al), Vl.install && e.use(Vl), Ll.install && e.use(Ll), Rl.install && e.use(Rl), Fl.install && e.use(Fl), st.install && e.use(st), Ul.install && e.use(Ul), Nt.install && e.use(Nt), Vt.install && e.use(Vt), Hl.install && e.use(Hl), Yl.install && e.use(Yl), jl.install && e.use(jl), Wl.install && e.use(Wl), Kl.install && e.use(Kl), ql.install && e.use(ql), Gl.install && e.use(Gl), Xl.install && e.use(Xl), Ir.install && e.use(Ir), Zl.install && e.use(Zl), Jl.install && e.use(Jl);
22418
22438
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.2.11",
4
+ "version": "3.2.12-alpha.1717078222679",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1446,6 +1446,24 @@
1446
1446
  "kind": "expression"
1447
1447
  }
1448
1448
  },
1449
+ {
1450
+ "name": "label-key",
1451
+ "description": "As the key that uniquely identifies label",
1452
+ "default": "label",
1453
+ "value": {
1454
+ "type": "string",
1455
+ "kind": "expression"
1456
+ }
1457
+ },
1458
+ {
1459
+ "name": "value-key",
1460
+ "description": "As the key that uniquely identifies value",
1461
+ "default": "value",
1462
+ "value": {
1463
+ "type": "string",
1464
+ "kind": "expression"
1465
+ }
1466
+ },
1449
1467
  {
1450
1468
  "name": "rules",
1451
1469
  "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
@@ -3055,6 +3073,10 @@
3055
3073
  {
3056
3074
  "name": "default",
3057
3075
  "description": "Custom panel content"
3076
+ },
3077
+ {
3078
+ "name": "header",
3079
+ "description": "Custom panel header"
3058
3080
  }
3059
3081
  ]
3060
3082
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.2.11",
4
+ "version": "3.2.12-alpha.1717078222679",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1605,6 +1605,24 @@
1605
1605
  "kind": "expression"
1606
1606
  }
1607
1607
  },
1608
+ {
1609
+ "name": "label-key",
1610
+ "description": "作为 label 唯一标识的键名",
1611
+ "default": "label",
1612
+ "value": {
1613
+ "type": "string",
1614
+ "kind": "expression"
1615
+ }
1616
+ },
1617
+ {
1618
+ "name": "value-key",
1619
+ "description": "作为 value 唯一标识的键名",
1620
+ "default": "value",
1621
+ "value": {
1622
+ "type": "string",
1623
+ "kind": "expression"
1624
+ }
1625
+ },
1608
1626
  {
1609
1627
  "name": "rules",
1610
1628
  "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
@@ -3214,6 +3232,10 @@
3214
3232
  {
3215
3233
  "name": "default",
3216
3234
  "description": "自定义面板内容"
3235
+ },
3236
+ {
3237
+ "name": "header",
3238
+ "description": "自定义面板标头"
3217
3239
  }
3218
3240
  ]
3219
3241
  },
package/lib/varlet.cjs.js CHANGED
@@ -5214,7 +5214,7 @@ function __render__$14(_ctx, _cache) {
5214
5214
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
5215
5215
  },
5216
5216
  [
5217
- vue.renderSlot(_ctx.$slots, "default")
5217
+ vue.renderSlot(_ctx.$slots, "default", { checked: _ctx.checked })
5218
5218
  ],
5219
5219
  2
5220
5220
  /* CLASS */
@@ -5377,7 +5377,14 @@ var stdin_default$58 = stdin_default$59;
5377
5377
  var stdin_default$57 = vue.defineComponent({
5378
5378
  name: "CheckboxGroupOption",
5379
5379
  props: {
5380
- checked: Boolean,
5380
+ labelKey: {
5381
+ type: String,
5382
+ required: true
5383
+ },
5384
+ valueKey: {
5385
+ type: String,
5386
+ required: true
5387
+ },
5381
5388
  option: Object
5382
5389
  },
5383
5390
  setup(props2) {
@@ -5386,10 +5393,12 @@ var stdin_default$57 = vue.defineComponent({
5386
5393
  return;
5387
5394
  }
5388
5395
  return vue.createVNode(stdin_default$58, {
5389
- "checkedValue": props2.option.value,
5396
+ "checkedValue": props2.option[props2.valueKey],
5390
5397
  "disabled": props2.option.disabled
5391
5398
  }, {
5392
- default: () => [isFunction(props2.option.label) ? props2.option.label(props2.option, props2.checked) : props2.option.label]
5399
+ default: ({
5400
+ checked
5401
+ }) => isFunction(props2.option[props2.labelKey]) ? props2.option[props2.labelKey](props2.option, checked) : props2.option[props2.labelKey]
5393
5402
  });
5394
5403
  };
5395
5404
  }
@@ -5401,6 +5410,14 @@ const props$Y = {
5401
5410
  },
5402
5411
  max: [String, Number],
5403
5412
  options: Array,
5413
+ labelKey: {
5414
+ type: String,
5415
+ default: "label"
5416
+ },
5417
+ valueKey: {
5418
+ type: String,
5419
+ default: "value"
5420
+ },
5404
5421
  direction: {
5405
5422
  type: String,
5406
5423
  default: "horizontal"
@@ -5434,10 +5451,11 @@ function __render__$13(_ctx, _cache) {
5434
5451
  { key: 0 },
5435
5452
  vue.renderList(_ctx.checkboxGroupOptions, (option) => {
5436
5453
  return vue.openBlock(), vue.createBlock(_component_checkbox_group_option, {
5437
- key: option.value.toString(),
5438
- checked: _ctx.modelValue.includes(option.value),
5454
+ key: option[_ctx.valueKey],
5455
+ "label-key": _ctx.labelKey,
5456
+ "value-key": _ctx.valueKey,
5439
5457
  option
5440
- }, null, 8, ["checked", "option"]);
5458
+ }, null, 8, ["label-key", "value-key", "option"]);
5441
5459
  }),
5442
5460
  128
5443
5461
  /* KEYED_FRAGMENT */
@@ -14718,25 +14736,27 @@ function __render__$L(_ctx, _cache) {
14718
14736
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.handleTouchend && _ctx.handleTouchend(...args))
14719
14737
  },
14720
14738
  [
14721
- vue.createElementVNode(
14722
- "div",
14723
- {
14724
- class: vue.normalizeClass(_ctx.n("header"))
14725
- },
14726
- [
14727
- vue.createElementVNode(
14728
- "div",
14729
- {
14730
- class: vue.normalizeClass(_ctx.n("header-toolbar"))
14731
- },
14732
- null,
14733
- 2
14734
- /* CLASS */
14735
- )
14736
- ],
14737
- 2
14738
- /* CLASS */
14739
- ),
14739
+ vue.renderSlot(_ctx.$slots, "header", {}, () => [
14740
+ vue.createElementVNode(
14741
+ "div",
14742
+ {
14743
+ class: vue.normalizeClass(_ctx.n("header"))
14744
+ },
14745
+ [
14746
+ vue.createElementVNode(
14747
+ "div",
14748
+ {
14749
+ class: vue.normalizeClass(_ctx.n("header-toolbar"))
14750
+ },
14751
+ null,
14752
+ 2
14753
+ /* CLASS */
14754
+ )
14755
+ ],
14756
+ 2
14757
+ /* CLASS */
14758
+ )
14759
+ ]),
14740
14760
  vue.createElementVNode(
14741
14761
  "div",
14742
14762
  {
@@ -28600,7 +28620,7 @@ withInstall(stdin_default$1);
28600
28620
  withPropsDefaultsSetter(stdin_default$1, props);
28601
28621
  const _WatermarkComponent = stdin_default$1;
28602
28622
  var stdin_default = stdin_default$1;
28603
- const version = "3.2.11";
28623
+ const version = "3.2.12-alpha.1717078222679";
28604
28624
  function install(app) {
28605
28625
  stdin_default$5F.install && app.use(stdin_default$5F);
28606
28626
  stdin_default$5D.install && app.use(stdin_default$5D);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.2.11",
3
+ "version": "3.2.12-alpha.1717078222679",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -48,9 +48,9 @@
48
48
  "@popperjs/core": "^2.11.6",
49
49
  "dayjs": "^1.10.4",
50
50
  "decimal.js": "^10.2.1",
51
- "@varlet/icons": "3.2.11",
52
- "@varlet/shared": "3.2.11",
53
- "@varlet/use": "3.2.11"
51
+ "@varlet/use": "3.2.12-alpha.1717078222679",
52
+ "@varlet/icons": "3.2.12-alpha.1717078222679",
53
+ "@varlet/shared": "3.2.12-alpha.1717078222679"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -66,9 +66,9 @@
66
66
  "typescript": "^5.1.5",
67
67
  "vue": "3.4.21",
68
68
  "vue-router": "4.2.0",
69
- "@varlet/ui": "3.2.11",
70
- "@varlet/touch-emulator": "3.2.11",
71
- "@varlet/cli": "3.2.11"
69
+ "@varlet/ui": "3.2.12-alpha.1717078222679",
70
+ "@varlet/cli": "3.2.12-alpha.1717078222679",
71
+ "@varlet/touch-emulator": "3.2.12-alpha.1717078222679"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",
@@ -24,13 +24,17 @@ export interface CheckboxProps extends BasicAttributes {
24
24
  'onUpdate:indeterminate'?: ListenerProp<(value: boolean) => void>
25
25
  }
26
26
 
27
+ export interface CheckboxData {
28
+ checked: boolean
29
+ }
30
+
27
31
  export class Checkbox extends VarComponent {
28
32
  static setPropsDefaults: SetPropsDefaults<CheckboxProps>
29
33
 
30
34
  $props: CheckboxProps
31
35
 
32
36
  $slots: {
33
- default(): VNode[]
37
+ default(data: CheckboxData): VNode[]
34
38
  'checked-icon'(): VNode[]
35
39
  'unchecked-icon'(): VNode[]
36
40
  'indeterminate-icon'(): VNode[]
@@ -15,8 +15,10 @@ export type CheckboxGroupOptionLabelRender = (option: CheckboxGroupOption, check
15
15
 
16
16
  export interface CheckboxGroupOption {
17
17
  label?: string | VNode | CheckboxGroupOptionLabelRender
18
- disabled?: boolean
19
18
  value?: any
19
+ disabled?: boolean
20
+
21
+ [key: PropertyKey]: any
20
22
  }
21
23
 
22
24
  export { CheckboxGroupDirection }
@@ -24,6 +26,8 @@ export { CheckboxGroupDirection }
24
26
  export interface CheckboxGroupProps extends BasicAttributes {
25
27
  modelValue?: any[]
26
28
  max?: string | number
29
+ labelKey?: string
30
+ valueKey?: string
27
31
  options?: Array<CheckboxGroupOption>
28
32
  direction?: CheckboxGroupDirection
29
33
  validateTrigger?: Array<CheckboxGroupValidateTrigger>
@@ -22,6 +22,8 @@ export class FloatingPanel extends VarComponent {
22
22
 
23
23
  $slots: {
24
24
  default(): VNode[]
25
+
26
+ header(): VNode[]
25
27
  }
26
28
  }
27
29