@varlet/ui 3.2.1 → 3.2.3

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/lib/varlet.cjs.js CHANGED
@@ -602,15 +602,23 @@ function useVModel(props2, key, options = {}) {
602
602
  });
603
603
  }
604
604
  const proxy = vue.ref(getValue());
605
+ let shouldEmit = true;
605
606
  vue.watch(
606
607
  () => props2[key],
607
608
  () => {
609
+ shouldEmit = false;
608
610
  proxy.value = getValue();
611
+ vue.nextTick(() => {
612
+ shouldEmit = true;
613
+ });
609
614
  }
610
615
  );
611
616
  vue.watch(
612
617
  () => proxy.value,
613
618
  (newValue) => {
619
+ if (!shouldEmit) {
620
+ return;
621
+ }
614
622
  emit ? emit(event, newValue) : call(props2[event], newValue);
615
623
  }
616
624
  );
@@ -4766,7 +4774,7 @@ withPropsDefaultsSetter(stdin_default$5e, props$10);
4766
4774
  const _CardComponent = stdin_default$5e;
4767
4775
  var stdin_default$5d = stdin_default$5e;
4768
4776
  const props$$ = {
4769
- title: [Number, String],
4777
+ title: String,
4770
4778
  icon: pickProps(props$1f, "name"),
4771
4779
  namespace: pickProps(props$1f, "namespace"),
4772
4780
  description: String,
@@ -13467,7 +13475,6 @@ function usePopover(options) {
13467
13475
  defaultValue: false,
13468
13476
  emit(event, value) {
13469
13477
  if (value) {
13470
- resize();
13471
13478
  call(options.onOpen);
13472
13479
  } else {
13473
13480
  call(options.onClose);
@@ -13728,6 +13735,14 @@ function usePopover(options) {
13728
13735
  onWindowResize(resize);
13729
13736
  vue.watch(() => [options.offsetX, options.offsetY, options.placement, options.strategy], resize);
13730
13737
  vue.watch(() => options.disabled, close);
13738
+ vue.watch(
13739
+ () => show.value,
13740
+ (newValue) => {
13741
+ if (newValue) {
13742
+ resize();
13743
+ }
13744
+ }
13745
+ );
13731
13746
  vue.onMounted(() => {
13732
13747
  var _a;
13733
13748
  popoverInstance = createPopper((_a = getReference()) != null ? _a : host.value, popover.value, getPopperOptions());
@@ -14880,6 +14895,10 @@ const props$F = {
14880
14895
  type: String,
14881
14896
  default: "fill"
14882
14897
  },
14898
+ position: {
14899
+ type: String,
14900
+ default: "50% 50%"
14901
+ },
14883
14902
  alt: String,
14884
14903
  title: String,
14885
14904
  referrerpolicy: String,
@@ -14928,7 +14947,7 @@ function __render__$J(_ctx, _cache) {
14928
14947
  referrerpolicy: _ctx.referrerpolicy,
14929
14948
  "lazy-loading": _ctx.loading,
14930
14949
  "lazy-error": _ctx.error,
14931
- style: vue.normalizeStyle({ objectFit: _ctx.fit }),
14950
+ style: vue.normalizeStyle({ objectFit: _ctx.fit, objectPosition: _ctx.position }),
14932
14951
  onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args)),
14933
14952
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
14934
14953
  }, null, 46, _hoisted_1$m)), [
@@ -14941,7 +14960,7 @@ function __render__$J(_ctx, _cache) {
14941
14960
  alt: _ctx.alt,
14942
14961
  title: _ctx.title,
14943
14962
  referrerpolicy: _ctx.referrerpolicy,
14944
- style: vue.normalizeStyle({ objectFit: _ctx.fit }),
14963
+ style: vue.normalizeStyle({ objectFit: _ctx.fit, objectPosition: _ctx.position }),
14945
14964
  src: _ctx.src,
14946
14965
  onLoad: _cache[2] || (_cache[2] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args)),
14947
14966
  onError: _cache[3] || (_cache[3] = (...args) => _ctx.handleError && _ctx.handleError(...args)),
@@ -20516,7 +20535,7 @@ function __render__$l(_ctx, _cache) {
20516
20535
  {
20517
20536
  class: vue.normalizeClass(_ctx.classes(_ctx.n("success-line"), _ctx.n("success-line-tip"))),
20518
20537
  style: vue.normalizeStyle({
20519
- animationDuration: _ctx.animation ? `760ms` : "0ms",
20538
+ animationDuration: _ctx.animation ? "760ms" : "0ms",
20520
20539
  borderRadius: `calc(${_ctx.borderSize} * 0.625)`
20521
20540
  })
20522
20541
  },
@@ -20529,7 +20548,7 @@ function __render__$l(_ctx, _cache) {
20529
20548
  {
20530
20549
  class: vue.normalizeClass(_ctx.classes(_ctx.n("success-line"), _ctx.n("success-line-long"))),
20531
20550
  style: vue.normalizeStyle({
20532
- animationDuration: _ctx.animation ? `770ms` : "0ms",
20551
+ animationDuration: _ctx.animation ? "770ms" : "0ms",
20533
20552
  borderRadius: `calc(${_ctx.borderSize} * 0.625)`
20534
20553
  })
20535
20554
  },
@@ -20562,7 +20581,7 @@ function __render__$l(_ctx, _cache) {
20562
20581
  {
20563
20582
  class: vue.normalizeClass(_ctx.n("success-cover-right")),
20564
20583
  style: vue.normalizeStyle({
20565
- animationDuration: _ctx.animation ? `4250ms` : "0ms"
20584
+ animationDuration: _ctx.animation ? "4250ms" : "0ms"
20566
20585
  })
20567
20586
  },
20568
20587
  null,
@@ -20586,8 +20605,7 @@ const __sfc__$m = vue.defineComponent({
20586
20605
  setup() {
20587
20606
  return {
20588
20607
  n: n$l,
20589
- classes: classes$h,
20590
- toNumber
20608
+ classes: classes$h
20591
20609
  };
20592
20610
  }
20593
20611
  });
@@ -20741,22 +20759,17 @@ const __sfc__$j = vue.defineComponent({
20741
20759
  },
20742
20760
  props: props$i,
20743
20761
  setup(props2) {
20744
- const circleSize = vue.computed(() => {
20745
- const { imageSize } = props2;
20746
- return `calc(${imageSize ? toSizeUnit(imageSize) : "var(--result-image-size)"} * 0.9)`;
20747
- });
20748
- const borderSize = vue.computed(() => {
20749
- const { imageSize } = props2;
20750
- return `calc(${imageSize ? toSizeUnit(props2.imageSize) : "var(--result-image-size)"} * 0.05)`;
20751
- });
20762
+ const circleSize = vue.computed(
20763
+ () => `calc(${props2.imageSize ? toSizeUnit(props2.imageSize) : "var(--result-image-size)"} * 0.9)`
20764
+ );
20765
+ const borderSize = vue.computed(
20766
+ () => `calc(${props2.imageSize ? toSizeUnit(props2.imageSize) : "var(--result-image-size)"} * 0.05)`
20767
+ );
20752
20768
  return {
20753
20769
  circleSize,
20754
20770
  borderSize,
20755
- toSizeUnit,
20756
20771
  n: n$k,
20757
- classes: classes$g,
20758
- toNumber,
20759
- toPxNum
20772
+ classes: classes$g
20760
20773
  };
20761
20774
  }
20762
20775
  });
@@ -23042,6 +23055,7 @@ const props$8 = {
23042
23055
  loadingColor: String,
23043
23056
  closeColor: String,
23044
23057
  size: [String, Number],
23058
+ variant: Boolean,
23045
23059
  rules: Array,
23046
23060
  ripple: {
23047
23061
  type: Boolean,
@@ -23084,14 +23098,14 @@ function __render__$9(_ctx, _cache) {
23084
23098
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
23085
23099
  "div",
23086
23100
  {
23087
- class: vue.normalizeClass(_ctx.n())
23101
+ class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.variant, _ctx.n("--variant")]))
23088
23102
  },
23089
23103
  [
23090
23104
  vue.createElementVNode(
23091
23105
  "div",
23092
23106
  {
23093
23107
  ref: "switchRef",
23094
- class: vue.normalizeClass(_ctx.classes(_ctx.n("block"), [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")])),
23108
+ class: vue.normalizeClass(_ctx.classes(_ctx.n("block"), [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")], [_ctx.isActive, _ctx.n("block--active")])),
23095
23109
  style: vue.normalizeStyle(_ctx.styleComputed.switch),
23096
23110
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchActive && _ctx.switchActive(...args))
23097
23111
  },
@@ -23100,16 +23114,14 @@ function __render__$9(_ctx, _cache) {
23100
23114
  "div",
23101
23115
  {
23102
23116
  style: vue.normalizeStyle(_ctx.styleComputed.track),
23103
- class: vue.normalizeClass(
23104
- _ctx.classes(_ctx.n("track"), [_ctx.modelValue === _ctx.activeValue, _ctx.n("track--active")], [_ctx.errorMessage, _ctx.n("track--error")])
23105
- )
23117
+ class: vue.normalizeClass(_ctx.classes(_ctx.n("track"), [_ctx.isActive, _ctx.n("track--active")], [_ctx.errorMessage && !_ctx.variant, _ctx.n("track--error")]))
23106
23118
  },
23107
23119
  null,
23108
23120
  6
23109
23121
  /* CLASS, STYLE */
23110
23122
  ),
23111
23123
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
23112
- class: vue.normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.modelValue === _ctx.activeValue, _ctx.n("ripple--active")])),
23124
+ class: vue.normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.isActive, _ctx.n("ripple--active")])),
23113
23125
  style: vue.normalizeStyle(_ctx.styleComputed.ripple),
23114
23126
  tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
23115
23127
  onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
@@ -23123,8 +23135,9 @@ function __render__$9(_ctx, _cache) {
23123
23135
  _ctx.classes(
23124
23136
  _ctx.n("handle"),
23125
23137
  _ctx.n("$-elevation--2"),
23126
- [_ctx.modelValue === _ctx.activeValue, _ctx.n("handle--active")],
23127
- [_ctx.errorMessage, _ctx.n("handle--error")]
23138
+ [_ctx.isActive, _ctx.n("handle--active")],
23139
+ [_ctx.errorMessage && !_ctx.variant, _ctx.n("handle--error")],
23140
+ [_ctx.hovering, _ctx.n("handle--hover")]
23128
23141
  )
23129
23142
  )
23130
23143
  },
@@ -23182,31 +23195,33 @@ const __sfc__$9 = vue.defineComponent({
23182
23195
  const { bindForm, form } = useForm();
23183
23196
  const { errorMessage, validateWithTrigger: vt, validate: v, resetValidation } = useValidation();
23184
23197
  const { hovering, handleHovering } = useHoverOverlay();
23198
+ const isActive = vue.computed(() => props2.modelValue === props2.activeValue);
23185
23199
  const styleComputed = vue.computed(() => {
23186
- const { size, modelValue, color, closeColor, loadingColor, activeValue } = props2;
23200
+ const { size, color, closeColor, loadingColor, variant } = props2;
23187
23201
  return {
23188
23202
  handle: {
23189
23203
  width: multiplySizeUnit(size),
23190
23204
  height: multiplySizeUnit(size),
23191
- backgroundColor: modelValue === activeValue ? color : closeColor,
23205
+ backgroundColor: isActive.value ? color : closeColor,
23192
23206
  color: loadingColor
23193
23207
  },
23194
23208
  ripple: {
23195
- left: modelValue === activeValue ? multiplySizeUnit(size, 0.5) : `-${multiplySizeUnit(size, 0.5)}`,
23196
- color: modelValue === activeValue ? color : closeColor || "currentColor",
23209
+ left: isActive.value ? multiplySizeUnit(size, 0.5) : `-${multiplySizeUnit(size, variant ? 1 / 3 : 0.5)}`,
23210
+ color: isActive.value ? color : closeColor || "currentColor",
23197
23211
  width: multiplySizeUnit(size, 2),
23198
23212
  height: multiplySizeUnit(size, 2)
23199
23213
  },
23200
23214
  track: {
23201
- height: multiplySizeUnit(size, 0.72),
23202
- width: multiplySizeUnit(size, 1.9),
23215
+ width: multiplySizeUnit(size, variant ? 13 / 6 : 1.9),
23216
+ height: multiplySizeUnit(size, variant ? 4 / 3 : 0.72),
23203
23217
  borderRadius: multiplySizeUnit(size, 2 / 3),
23204
- filter: modelValue === activeValue || (errorMessage == null ? void 0 : errorMessage.value) ? void 0 : "brightness(.6)",
23205
- backgroundColor: modelValue === activeValue ? color : closeColor
23218
+ filter: isActive.value || (errorMessage == null ? void 0 : errorMessage.value) ? void 0 : `brightness(${variant ? 1 : 0.6})`,
23219
+ backgroundColor: isActive.value ? color : closeColor,
23220
+ borderWidth: variant && !isActive.value ? multiplySizeUnit(size, 1 / 12) : void 0
23206
23221
  },
23207
23222
  switch: {
23208
- height: multiplySizeUnit(size, 1.2),
23209
- width: multiplySizeUnit(size, 2)
23223
+ width: multiplySizeUnit(size, variant ? 13 / 6 : 2),
23224
+ height: multiplySizeUnit(size, variant ? 4 / 3 : 1.2)
23210
23225
  }
23211
23226
  };
23212
23227
  });
@@ -23253,7 +23268,6 @@ const __sfc__$9 = vue.defineComponent({
23253
23268
  disabled,
23254
23269
  loading,
23255
23270
  readonly,
23256
- modelValue,
23257
23271
  activeValue,
23258
23272
  inactiveValue,
23259
23273
  lazyChange,
@@ -23267,7 +23281,7 @@ const __sfc__$9 = vue.defineComponent({
23267
23281
  if (loading || readonly || (form == null ? void 0 : form.readonly.value)) {
23268
23282
  return;
23269
23283
  }
23270
- const newValue = modelValue === activeValue ? inactiveValue : activeValue;
23284
+ const newValue = isActive.value ? inactiveValue : activeValue;
23271
23285
  if (lazyChange) {
23272
23286
  call(onBeforeChange, newValue, (value) => {
23273
23287
  call(updateModelValue, value);
@@ -23290,6 +23304,7 @@ const __sfc__$9 = vue.defineComponent({
23290
23304
  resetValidation();
23291
23305
  }
23292
23306
  return {
23307
+ isActive,
23293
23308
  switchRef,
23294
23309
  hovering,
23295
23310
  isFocusing,
@@ -24346,10 +24361,21 @@ var stdin_default$2P = {
24346
24361
  "--switch-track-active-background": "var(--color-primary)",
24347
24362
  "--switch-track-error-background": "var(--color-danger)",
24348
24363
  "--switch-ripple-color": "var(--color-primary)",
24349
- "--switch-handle-color": "#fff",
24364
+ "--switch-handle-color": "var(--color-on-primary)",
24365
+ "--switch-handle-active-color": "var(--color-on-primary)",
24350
24366
  "--switch-handle-active-background": "var(--color-primary)",
24351
24367
  "--switch-handle-error-background": "var(--color-danger)",
24352
- "--switch-disabled-opacity": "var(--opacity-disabled)"
24368
+ "--switch-disabled-opacity": "var(--opacity-disabled)",
24369
+ "--switch-variant-width": "52px",
24370
+ "--switch-variant-height": "32px",
24371
+ "--switch-variant-track-background": "var(--color-surface-container-highest)",
24372
+ "--switch-variant-handle-width": "24px",
24373
+ "--switch-variant-handle-height": "24px",
24374
+ "--switch-variant-track-border-color": "rgb(255, 255, 255, .7)",
24375
+ "--switch-variant-handle-background": "rgb(255, 255, 255, .7)",
24376
+ "--switch-variant-handle-color": "var(--color-primary)",
24377
+ "--switch-variant-handle-active-color": "var(--color-primary)",
24378
+ "--switch-variant-handle-active-background": "var(--color-on-primary)"
24353
24379
  };
24354
24380
  var stdin_default$2O = {
24355
24381
  "--tab-inactive-color": "rgba(255, 255, 255, .65)",
@@ -25495,10 +25521,21 @@ var stdin_default$1x = {
25495
25521
  "--switch-track-active-background": "var(--color-primary)",
25496
25522
  "--switch-track-error-background": "var(--color-danger)",
25497
25523
  "--switch-ripple-color": "var(--color-primary)",
25498
- "--switch-handle-color": "#fff",
25524
+ "--switch-handle-color": "var(--color-primary)",
25525
+ "--switch-handle-active-color": "var(--color-on-primary)",
25499
25526
  "--switch-handle-active-background": "var(--color-primary)",
25500
25527
  "--switch-handle-error-background": "var(--color-danger)",
25501
- "--switch-disabled-opacity": "var(--opacity-disabled)"
25528
+ "--switch-disabled-opacity": "var(--opacity-disabled)",
25529
+ "--switch-variant-width": "52px",
25530
+ "--switch-variant-height": "32px",
25531
+ "--switch-variant-track-background": "var(--color-surface-container-highest)",
25532
+ "--switch-variant-handle-width": "24px",
25533
+ "--switch-variant-handle-height": "24px",
25534
+ "--switch-variant-track-border-color": "#79747E",
25535
+ "--switch-variant-handle-color": "var(--color-on-primary)",
25536
+ "--switch-variant-handle-active-color": "var(--color-primary)",
25537
+ "--switch-variant-handle-background": "#79747E",
25538
+ "--switch-variant-handle-active-background": "var(--color-on-primary)"
25502
25539
  };
25503
25540
  var stdin_default$1w = {
25504
25541
  "--rate-color": "var(--color-on-surface-variant)",
@@ -26389,10 +26426,21 @@ var stdin_default$t = {
26389
26426
  "--switch-track-active-background": "var(--color-primary)",
26390
26427
  "--switch-track-error-background": "var(--color-danger)",
26391
26428
  "--switch-ripple-color": "var(--color-primary)",
26392
- "--switch-handle-color": "var(--color-on-primary)",
26429
+ "--switch-handle-color": "var(--color-primary)",
26430
+ "--switch-handle-active-color": "var(--color-on-primary)",
26393
26431
  "--switch-handle-active-background": "var(--color-primary)",
26394
26432
  "--switch-handle-error-background": "var(--color-danger)",
26395
- "--switch-disabled-opacity": "var(--opacity-disabled)"
26433
+ "--switch-disabled-opacity": "var(--opacity-disabled)",
26434
+ "--switch-variant-width": "52px",
26435
+ "--switch-variant-height": "32px",
26436
+ "--switch-variant-track-background": "var(--color-surface-container-highest)",
26437
+ "--switch-variant-handle-width": "24px",
26438
+ "--switch-variant-handle-height": "24px",
26439
+ "--switch-variant-track-border-color": "#938F99",
26440
+ "--switch-variant-handle-color": "var(--color-on-primary)",
26441
+ "--switch-variant-handle-active-color": "var(--color-primary)",
26442
+ "--switch-variant-handle-background": "#938F99",
26443
+ "--switch-variant-handle-active-background": "var(--color-on-primary)"
26396
26444
  };
26397
26445
  var stdin_default$s = {
26398
26446
  "--slider-thumb-size": "16px",
@@ -28451,7 +28499,7 @@ withInstall(stdin_default$1);
28451
28499
  withPropsDefaultsSetter(stdin_default$1, props);
28452
28500
  const _WatermarkComponent = stdin_default$1;
28453
28501
  var stdin_default = stdin_default$1;
28454
- const version = "3.2.1";
28502
+ const version = "3.2.3";
28455
28503
  function install(app) {
28456
28504
  stdin_default$5E.install && app.use(stdin_default$5E);
28457
28505
  stdin_default$5C.install && app.use(stdin_default$5C);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
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.1",
52
- "@varlet/shared": "3.2.1",
53
- "@varlet/use": "3.2.1"
51
+ "@varlet/icons": "3.2.3",
52
+ "@varlet/shared": "3.2.3",
53
+ "@varlet/use": "3.2.3"
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/touch-emulator": "3.2.1",
70
- "@varlet/ui": "3.2.1",
71
- "@varlet/cli": "3.2.1"
69
+ "@varlet/cli": "3.2.3",
70
+ "@varlet/ui": "3.2.3",
71
+ "@varlet/touch-emulator": "3.2.3"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",
package/types/cell.d.ts CHANGED
@@ -4,7 +4,7 @@ import { VNode } from 'vue'
4
4
  export declare const cellProps: Record<keyof CellProps, any>
5
5
 
6
6
  export interface CellProps extends BasicAttributes {
7
- title?: string | number
7
+ title?: string
8
8
  icon?: string
9
9
  namespace?: string
10
10
  description?: string
package/types/image.d.ts CHANGED
@@ -8,6 +8,7 @@ export type ImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
8
8
  export interface ImageProps extends BasicAttributes {
9
9
  src?: string
10
10
  fit?: ImageFit
11
+ position?: string
11
12
  title?: string
12
13
  alt?: string
13
14
  referrerpolicy?: ImgHTMLAttributes['referrerpolicy']
@@ -1205,12 +1205,34 @@ export interface StyleVars {
1205
1205
  switchHandleBackground?: string
1206
1206
  '--switch-handle-color'?: string
1207
1207
  switchHandleColor?: string
1208
+ '--switch-handle-active-color'?: string
1209
+ switchHandleActiveColor?: string
1208
1210
  '--switch-handle-active-background'?: string
1209
1211
  switchHandleActiveBackground?: string
1210
1212
  '--switch-handle-error-background'?: string
1211
1213
  switchHandleErrorBackground?: string
1212
1214
  '--switch-disabled-opacity'?: string
1213
1215
  switchDisabledOpacity?: string
1216
+ '--switch-variant-width'?: string
1217
+ switchVariantWidth?: string
1218
+ '--switch-variant-height'?: string
1219
+ switchVariantHeight?: string
1220
+ '--switch-variant-track-border-color'?: string
1221
+ switchVariantTrackBorderColor?: string
1222
+ '--switch-variant-track-background'?: string
1223
+ switchVariantTrackBackground?: string
1224
+ '--switch-variant-handle-width'?: string
1225
+ switchVariantHandleWidth?: string
1226
+ '--switch-variant-handle-height'?: string
1227
+ switchVariantHandleHeight?: string
1228
+ '--switch-variant-handle-color'?: string
1229
+ switchVariantHandleColor?: string
1230
+ '--switch-variant-handle-active-color'?: string
1231
+ switchVariantHandleActiveColor?: string
1232
+ '--switch-variant-handle-background'?: string
1233
+ switchVariantHandleBackground?: string
1234
+ '--switch-variant-handle-active-background'?: string
1235
+ switchVariantHandleActiveBackground?: string
1214
1236
  '--table-background'?: string
1215
1237
  tableBackground?: string
1216
1238
  '--table-border-radius'?: string
package/types/switch.d.ts CHANGED
@@ -18,6 +18,7 @@ export interface SwitchProps extends BasicAttributes {
18
18
  size?: string | number
19
19
  lazyChange?: boolean
20
20
  validateTrigger?: Array<SwitchValidateTrigger>
21
+ variant?: boolean
21
22
  rules?: Array<(value: any) => any>
22
23
  onClick?: ListenerProp<(event: Event) => void>
23
24
  onChange?: ListenerProp<(value: any) => void>