@deot/vc 1.0.45 → 1.0.46

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/dist/index.d.ts CHANGED
@@ -2495,10 +2495,10 @@ export declare const Components: {
2495
2495
  title?: string | undefined;
2496
2496
  onCancel?: Function | undefined;
2497
2497
  wrapperStyle?: string | Record<string, any> | undefined;
2498
- onOk?: Function | undefined;
2499
- wrapperClass?: string | Record<string, any> | undefined;
2500
2498
  contentStyle?: string | Record<string, any> | undefined;
2501
2499
  contentClass?: string | Record<string, any> | undefined;
2500
+ onOk?: Function | undefined;
2501
+ wrapperClass?: string | Record<string, any> | undefined;
2502
2502
  maskStyle?: string | Record<string, any> | undefined;
2503
2503
  } & {
2504
2504
  onClose: (...args: any[]) => any;
@@ -2801,10 +2801,10 @@ export declare const Components: {
2801
2801
  title?: string | undefined;
2802
2802
  onCancel?: Function | undefined;
2803
2803
  wrapperStyle?: string | Record<string, any> | undefined;
2804
- onOk?: Function | undefined;
2805
- wrapperClass?: string | Record<string, any> | undefined;
2806
2804
  contentStyle?: string | Record<string, any> | undefined;
2807
2805
  contentClass?: string | Record<string, any> | undefined;
2806
+ onOk?: Function | undefined;
2807
+ wrapperClass?: string | Record<string, any> | undefined;
2808
2808
  maskStyle?: string | Record<string, any> | undefined;
2809
2809
  } & {
2810
2810
  onClose: (...args: any[]) => any;
@@ -3573,6 +3573,12 @@ export declare const Components: {
3573
3573
  type: BooleanConstructor;
3574
3574
  default: boolean;
3575
3575
  };
3576
+ contentStyle: (ObjectConstructor | StringConstructor)[];
3577
+ contentClass: (ObjectConstructor | StringConstructor)[];
3578
+ labelStyle: (ObjectConstructor | StringConstructor)[];
3579
+ labelClass: (ObjectConstructor | StringConstructor)[];
3580
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3581
+ errorClass: (ObjectConstructor | StringConstructor)[];
3576
3582
  }>, () => VNode<RendererNode, RendererElement, {
3577
3583
  [key: string]: any;
3578
3584
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -3609,6 +3615,12 @@ export declare const Components: {
3609
3615
  type: BooleanConstructor;
3610
3616
  default: boolean;
3611
3617
  };
3618
+ contentStyle: (ObjectConstructor | StringConstructor)[];
3619
+ contentClass: (ObjectConstructor | StringConstructor)[];
3620
+ labelStyle: (ObjectConstructor | StringConstructor)[];
3621
+ labelClass: (ObjectConstructor | StringConstructor)[];
3622
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3623
+ errorClass: (ObjectConstructor | StringConstructor)[];
3612
3624
  }>> & Readonly<{}>, {
3613
3625
  tag: string;
3614
3626
  styleless: boolean;
@@ -3659,6 +3671,12 @@ export declare const Components: {
3659
3671
  type: BooleanConstructor;
3660
3672
  default: boolean;
3661
3673
  };
3674
+ contentStyle: (ObjectConstructor | StringConstructor)[];
3675
+ contentClass: (ObjectConstructor | StringConstructor)[];
3676
+ labelStyle: (ObjectConstructor | StringConstructor)[];
3677
+ labelClass: (ObjectConstructor | StringConstructor)[];
3678
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3679
+ errorClass: (ObjectConstructor | StringConstructor)[];
3662
3680
  }>, () => VNode<RendererNode, RendererElement, {
3663
3681
  [key: string]: any;
3664
3682
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -3703,6 +3721,12 @@ export declare const Components: {
3703
3721
  type: BooleanConstructor;
3704
3722
  default: boolean;
3705
3723
  };
3724
+ contentStyle: (ObjectConstructor | StringConstructor)[];
3725
+ contentClass: (ObjectConstructor | StringConstructor)[];
3726
+ labelStyle: (ObjectConstructor | StringConstructor)[];
3727
+ labelClass: (ObjectConstructor | StringConstructor)[];
3728
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3729
+ errorClass: (ObjectConstructor | StringConstructor)[];
3706
3730
  }>> & Readonly<{}>, {
3707
3731
  tag: string;
3708
3732
  border: boolean;
@@ -3760,6 +3784,8 @@ export declare const Components: {
3760
3784
  contentClass: (ObjectConstructor | StringConstructor)[];
3761
3785
  labelStyle: (ObjectConstructor | StringConstructor)[];
3762
3786
  labelClass: (ObjectConstructor | StringConstructor)[];
3787
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3788
+ errorClass: (ObjectConstructor | StringConstructor)[];
3763
3789
  }>, () => JSX_2.Element | (VNode<RendererNode, RendererElement, {
3764
3790
  [key: string]: any;
3765
3791
  }>[] | undefined)[], {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -3809,6 +3835,8 @@ export declare const Components: {
3809
3835
  contentClass: (ObjectConstructor | StringConstructor)[];
3810
3836
  labelStyle: (ObjectConstructor | StringConstructor)[];
3811
3837
  labelClass: (ObjectConstructor | StringConstructor)[];
3838
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3839
+ errorClass: (ObjectConstructor | StringConstructor)[];
3812
3840
  }>> & Readonly<{}>, {
3813
3841
  label: string;
3814
3842
  styleless: boolean;
@@ -3868,6 +3896,8 @@ export declare const Components: {
3868
3896
  contentClass: (ObjectConstructor | StringConstructor)[];
3869
3897
  labelStyle: (ObjectConstructor | StringConstructor)[];
3870
3898
  labelClass: (ObjectConstructor | StringConstructor)[];
3899
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3900
+ errorClass: (ObjectConstructor | StringConstructor)[];
3871
3901
  }>, () => JSX_2.Element | (VNode<RendererNode, RendererElement, {
3872
3902
  [key: string]: any;
3873
3903
  }>[] | undefined)[], {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -3921,6 +3951,8 @@ export declare const Components: {
3921
3951
  contentClass: (ObjectConstructor | StringConstructor)[];
3922
3952
  labelStyle: (ObjectConstructor | StringConstructor)[];
3923
3953
  labelClass: (ObjectConstructor | StringConstructor)[];
3954
+ errorStyle: (ObjectConstructor | StringConstructor)[];
3955
+ errorClass: (ObjectConstructor | StringConstructor)[];
3924
3956
  }>> & Readonly<{}>, {
3925
3957
  label: string;
3926
3958
  styleless: boolean;
@@ -5671,10 +5703,10 @@ export declare const Components: {
5671
5703
  x?: number | undefined;
5672
5704
  y?: number | undefined;
5673
5705
  wrapperStyle?: string | Record<string, any> | undefined;
5674
- onOk?: Function | undefined;
5675
- wrapperClass?: string | Record<string, any> | undefined;
5676
5706
  contentStyle?: string | Record<string, any> | undefined;
5677
5707
  contentClass?: string | Record<string, any> | undefined;
5708
+ onOk?: Function | undefined;
5709
+ wrapperClass?: string | Record<string, any> | undefined;
5678
5710
  } & {
5679
5711
  onClose: (...args: any[]) => any;
5680
5712
  }>) => PortalLeaf;
@@ -5704,10 +5736,10 @@ export declare const Components: {
5704
5736
  x?: number | undefined;
5705
5737
  y?: number | undefined;
5706
5738
  wrapperStyle?: string | Record<string, any> | undefined;
5707
- onOk?: Function | undefined;
5708
- wrapperClass?: string | Record<string, any> | undefined;
5709
5739
  contentStyle?: string | Record<string, any> | undefined;
5710
5740
  contentClass?: string | Record<string, any> | undefined;
5741
+ onOk?: Function | undefined;
5742
+ wrapperClass?: string | Record<string, any> | undefined;
5711
5743
  } & {
5712
5744
  onClose: (...args: any[]) => any;
5713
5745
  }>) => PortalLeaf;
@@ -5737,10 +5769,10 @@ export declare const Components: {
5737
5769
  x?: number | undefined;
5738
5770
  y?: number | undefined;
5739
5771
  wrapperStyle?: string | Record<string, any> | undefined;
5740
- onOk?: Function | undefined;
5741
- wrapperClass?: string | Record<string, any> | undefined;
5742
5772
  contentStyle?: string | Record<string, any> | undefined;
5743
5773
  contentClass?: string | Record<string, any> | undefined;
5774
+ onOk?: Function | undefined;
5775
+ wrapperClass?: string | Record<string, any> | undefined;
5744
5776
  } & {
5745
5777
  onClose: (...args: any[]) => any;
5746
5778
  }>) => PortalLeaf;
@@ -5770,10 +5802,10 @@ export declare const Components: {
5770
5802
  x?: number | undefined;
5771
5803
  y?: number | undefined;
5772
5804
  wrapperStyle?: string | Record<string, any> | undefined;
5773
- onOk?: Function | undefined;
5774
- wrapperClass?: string | Record<string, any> | undefined;
5775
5805
  contentStyle?: string | Record<string, any> | undefined;
5776
5806
  contentClass?: string | Record<string, any> | undefined;
5807
+ onOk?: Function | undefined;
5808
+ wrapperClass?: string | Record<string, any> | undefined;
5777
5809
  } & {
5778
5810
  onClose: (...args: any[]) => any;
5779
5811
  }>) => PortalLeaf;
@@ -8620,6 +8652,8 @@ export declare const Components: {
8620
8652
  height: string | number;
8621
8653
  always: boolean;
8622
8654
  wrapperStyle: StyleValue;
8655
+ contentStyle: StyleValue;
8656
+ contentClass: StyleValue;
8623
8657
  thumbMinSize: number;
8624
8658
  native: boolean;
8625
8659
  autoResize: boolean;
@@ -8627,8 +8661,6 @@ export declare const Components: {
8627
8661
  trackOffsetY: number[];
8628
8662
  maxHeight: string | number;
8629
8663
  wrapperClass: StyleValue;
8630
- contentStyle: StyleValue;
8631
- contentClass: StyleValue;
8632
8664
  showBar: boolean;
8633
8665
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
8634
8666
  MScroller: DefineComponent<ExtractPropTypes< {
@@ -8762,6 +8794,8 @@ export declare const Components: {
8762
8794
  height: string | number;
8763
8795
  always: boolean;
8764
8796
  wrapperStyle: StyleValue;
8797
+ contentStyle: StyleValue;
8798
+ contentClass: StyleValue;
8765
8799
  thumbMinSize: number;
8766
8800
  native: boolean;
8767
8801
  autoResize: boolean;
@@ -8769,8 +8803,6 @@ export declare const Components: {
8769
8803
  trackOffsetY: number[];
8770
8804
  maxHeight: string | number;
8771
8805
  wrapperClass: StyleValue;
8772
- contentStyle: StyleValue;
8773
- contentClass: StyleValue;
8774
8806
  showBar: boolean;
8775
8807
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
8776
8808
  Select: DefineComponent<ExtractPropTypes< {
@@ -19889,7 +19889,14 @@ var Vc = (function (exports, vue) {
19889
19889
  styleless: {
19890
19890
  type: Boolean,
19891
19891
  default: false
19892
- }
19892
+ },
19893
+ // 给formItem统一注入
19894
+ contentStyle: [Object, String],
19895
+ contentClass: [Object, String],
19896
+ labelStyle: [Object, String],
19897
+ labelClass: [Object, String],
19898
+ errorStyle: [Object, String],
19899
+ errorClass: [Object, String]
19893
19900
  };
19894
19901
  const useForm = (expose, options = {}) => {
19895
19902
  const instance = vue.getCurrentInstance();
@@ -20046,7 +20053,9 @@ var Vc = (function (exports, vue) {
20046
20053
  contentStyle: [Object, String],
20047
20054
  contentClass: [Object, String],
20048
20055
  labelStyle: [Object, String],
20049
- labelClass: [Object, String]
20056
+ labelClass: [Object, String],
20057
+ errorStyle: [Object, String],
20058
+ errorClass: [Object, String]
20050
20059
  };
20051
20060
  const filterEmpty = (val) => {
20052
20061
  if (val instanceof Array) {
@@ -20127,6 +20136,7 @@ var Vc = (function (exports, vue) {
20127
20136
  width: labelPosition.value !== "top" && labelWidth && labelWidth > 0 ? `${labelWidth}px` : "auto",
20128
20137
  textAlign: labelPosition.value === "top" ? "left" : labelPosition.value
20129
20138
  },
20139
+ form.props.labelStyle,
20130
20140
  props2.labelStyle
20131
20141
  ];
20132
20142
  });
@@ -20137,9 +20147,22 @@ var Vc = (function (exports, vue) {
20137
20147
  marginLeft: !hasLabel.value && isNest.value ? 0 : labelWidth && labelWidth > 0 ? `${labelWidth}px` : "unset",
20138
20148
  marginBottom: isNest.value && !isNestLast.value ? `20px` : 0
20139
20149
  },
20150
+ form.props.contentStyle,
20140
20151
  props2.contentStyle
20141
20152
  ];
20142
20153
  });
20154
+ const errorStyle = vue.computed(() => {
20155
+ return [form.props.errorStyle, props2.errorStyle];
20156
+ });
20157
+ const labelClass = vue.computed(() => {
20158
+ return [form.props.labelClass, props2.labelClass];
20159
+ });
20160
+ const contentClass = vue.computed(() => {
20161
+ return [form.props.contentClass, props2.contentClass];
20162
+ });
20163
+ const errorClass = vue.computed(() => {
20164
+ return [form.props.errorClass, props2.errorClass];
20165
+ });
20143
20166
  const isStyleless = vue.computed(() => {
20144
20167
  return props2.styleless || form.props.styleless;
20145
20168
  });
@@ -20302,6 +20325,10 @@ var Vc = (function (exports, vue) {
20302
20325
  classes,
20303
20326
  labelStyle,
20304
20327
  contentStyle,
20328
+ errorStyle,
20329
+ labelClass,
20330
+ contentClass,
20331
+ errorClass,
20305
20332
  showError,
20306
20333
  labelPosition
20307
20334
  };
@@ -20321,6 +20348,10 @@ var Vc = (function (exports, vue) {
20321
20348
  classes,
20322
20349
  labelStyle,
20323
20350
  contentStyle,
20351
+ errorStyle,
20352
+ labelClass,
20353
+ contentClass,
20354
+ errorClass,
20324
20355
  showError,
20325
20356
  validateMessage
20326
20357
  } = it;
@@ -20334,27 +20365,30 @@ var Vc = (function (exports, vue) {
20334
20365
  show: showError.value,
20335
20366
  nest: isNest.value,
20336
20367
  message: validateMessage.value,
20337
- class: errorColorClass
20368
+ class: [errorColorClass, ...errorClass.value],
20369
+ style: errorStyle.value
20338
20370
  })];
20339
20371
  return vue.createVNode("div", {
20340
20372
  "class": ["vc-form-item", classes.value]
20341
20373
  }, [(label || slots.label) && vue.createVNode("div", {
20342
20374
  "style": labelStyle.value,
20343
- "class": ["vc-form-item__label", props2.labelClass],
20375
+ "class": ["vc-form-item__label", ...labelClass.value],
20344
20376
  "for": labelFor
20345
20377
  }, [vue.createVNode("label", null, [label || slots.label?.()])]), vue.createVNode("div", {
20346
20378
  "class": "vc-form-item__wrapper"
20347
20379
  }, [vue.createVNode("div", {
20348
- "class": ["vc-form-item__content", props2.contentClass],
20380
+ "class": ["vc-form-item__content", ...contentClass.value],
20349
20381
  "style": contentStyle.value
20350
20382
  }, [slots.default?.(), slots.error ? slots.error({
20351
20383
  show: showError.value,
20352
20384
  nest: isNest.value,
20353
20385
  message: validateMessage.value,
20354
- class: errorColorClass
20386
+ class: [errorColorClass, ...errorClass.value],
20387
+ style: errorStyle.value
20355
20388
  }) : vue.createVNode(TransitionFade, null, {
20356
20389
  default: () => [vue.withDirectives(vue.createVNode("div", {
20357
- "class": ["vc-form-item__tip", isNest.value ? "is-nest" : "", errorColorClass]
20390
+ "class": ["vc-form-item__tip", isNest.value ? "is-nest" : "", errorColorClass, ...errorClass.value],
20391
+ "style": [errorStyle.value]
20358
20392
  }, [validateMessage.value]), [[vue.vShow, showError.value]])]
20359
20393
  })])])]);
20360
20394
  };
@@ -20414,6 +20448,10 @@ var Vc = (function (exports, vue) {
20414
20448
  classes,
20415
20449
  labelStyle,
20416
20450
  contentStyle,
20451
+ errorStyle,
20452
+ labelClass,
20453
+ contentClass,
20454
+ errorClass,
20417
20455
  isNest,
20418
20456
  showError,
20419
20457
  validateMessage
@@ -20429,7 +20467,8 @@ var Vc = (function (exports, vue) {
20429
20467
  show: showError.value,
20430
20468
  nest: isNest.value,
20431
20469
  message: validateMessage.value,
20432
- class: errorColorClass
20470
+ class: [errorColorClass, ...errorClass.value],
20471
+ style: errorStyle.value
20433
20472
  })];
20434
20473
  return vue.createVNode("div", {
20435
20474
  "style": {
@@ -20441,14 +20480,15 @@ var Vc = (function (exports, vue) {
20441
20480
  }, [(props2.label || slots.label) && vue.createVNode("label", {
20442
20481
  "for": labelFor,
20443
20482
  "style": labelStyle.value,
20444
- "class": "vcm-form-item__label"
20483
+ "class": ["vcm-form-item__label", ...labelClass.value]
20445
20484
  }, [label || slots.label?.()]), vue.createVNode("div", {
20446
20485
  "style": contentStyle.value,
20447
- "class": "vcm-form-item__content"
20486
+ "class": ["vcm-form-item__content", ...contentClass.value]
20448
20487
  }, [slots.default?.(), showMessage && showError.value && vue.createVNode("div", {
20449
20488
  "class": [{
20450
20489
  "is-nest": isNest.value
20451
- }, errorColorClass]
20490
+ }, errorColorClass, ...errorClass.value],
20491
+ "style": errorStyle.value
20452
20492
  }, [slots.error ? slots.error({
20453
20493
  message: validateMessage.value
20454
20494
  }) : validateMessage.value])])])]);
@@ -24814,6 +24854,7 @@ var Vc = (function (exports, vue) {
24814
24854
  });
24815
24855
  const classes = vue.computed(() => {
24816
24856
  return {
24857
+ "is-disabled": props2.disabled,
24817
24858
  "is-loading": isLoading.value,
24818
24859
  "is-checked": checked.value
24819
24860
  };
@@ -19892,7 +19892,14 @@
19892
19892
  styleless: {
19893
19893
  type: Boolean,
19894
19894
  default: false
19895
- }
19895
+ },
19896
+ // 给formItem统一注入
19897
+ contentStyle: [Object, String],
19898
+ contentClass: [Object, String],
19899
+ labelStyle: [Object, String],
19900
+ labelClass: [Object, String],
19901
+ errorStyle: [Object, String],
19902
+ errorClass: [Object, String]
19896
19903
  };
19897
19904
  const useForm = (expose, options = {}) => {
19898
19905
  const instance = vue.getCurrentInstance();
@@ -20049,7 +20056,9 @@
20049
20056
  contentStyle: [Object, String],
20050
20057
  contentClass: [Object, String],
20051
20058
  labelStyle: [Object, String],
20052
- labelClass: [Object, String]
20059
+ labelClass: [Object, String],
20060
+ errorStyle: [Object, String],
20061
+ errorClass: [Object, String]
20053
20062
  };
20054
20063
  const filterEmpty = (val) => {
20055
20064
  if (val instanceof Array) {
@@ -20130,6 +20139,7 @@
20130
20139
  width: labelPosition.value !== "top" && labelWidth && labelWidth > 0 ? `${labelWidth}px` : "auto",
20131
20140
  textAlign: labelPosition.value === "top" ? "left" : labelPosition.value
20132
20141
  },
20142
+ form.props.labelStyle,
20133
20143
  props2.labelStyle
20134
20144
  ];
20135
20145
  });
@@ -20140,9 +20150,22 @@
20140
20150
  marginLeft: !hasLabel.value && isNest.value ? 0 : labelWidth && labelWidth > 0 ? `${labelWidth}px` : "unset",
20141
20151
  marginBottom: isNest.value && !isNestLast.value ? `20px` : 0
20142
20152
  },
20153
+ form.props.contentStyle,
20143
20154
  props2.contentStyle
20144
20155
  ];
20145
20156
  });
20157
+ const errorStyle = vue.computed(() => {
20158
+ return [form.props.errorStyle, props2.errorStyle];
20159
+ });
20160
+ const labelClass = vue.computed(() => {
20161
+ return [form.props.labelClass, props2.labelClass];
20162
+ });
20163
+ const contentClass = vue.computed(() => {
20164
+ return [form.props.contentClass, props2.contentClass];
20165
+ });
20166
+ const errorClass = vue.computed(() => {
20167
+ return [form.props.errorClass, props2.errorClass];
20168
+ });
20146
20169
  const isStyleless = vue.computed(() => {
20147
20170
  return props2.styleless || form.props.styleless;
20148
20171
  });
@@ -20305,6 +20328,10 @@
20305
20328
  classes,
20306
20329
  labelStyle,
20307
20330
  contentStyle,
20331
+ errorStyle,
20332
+ labelClass,
20333
+ contentClass,
20334
+ errorClass,
20308
20335
  showError,
20309
20336
  labelPosition
20310
20337
  };
@@ -20324,6 +20351,10 @@
20324
20351
  classes,
20325
20352
  labelStyle,
20326
20353
  contentStyle,
20354
+ errorStyle,
20355
+ labelClass,
20356
+ contentClass,
20357
+ errorClass,
20327
20358
  showError,
20328
20359
  validateMessage
20329
20360
  } = it;
@@ -20337,27 +20368,30 @@
20337
20368
  show: showError.value,
20338
20369
  nest: isNest.value,
20339
20370
  message: validateMessage.value,
20340
- class: errorColorClass
20371
+ class: [errorColorClass, ...errorClass.value],
20372
+ style: errorStyle.value
20341
20373
  })];
20342
20374
  return vue.createVNode("div", {
20343
20375
  "class": ["vc-form-item", classes.value]
20344
20376
  }, [(label || slots.label) && vue.createVNode("div", {
20345
20377
  "style": labelStyle.value,
20346
- "class": ["vc-form-item__label", props2.labelClass],
20378
+ "class": ["vc-form-item__label", ...labelClass.value],
20347
20379
  "for": labelFor
20348
20380
  }, [vue.createVNode("label", null, [label || slots.label?.()])]), vue.createVNode("div", {
20349
20381
  "class": "vc-form-item__wrapper"
20350
20382
  }, [vue.createVNode("div", {
20351
- "class": ["vc-form-item__content", props2.contentClass],
20383
+ "class": ["vc-form-item__content", ...contentClass.value],
20352
20384
  "style": contentStyle.value
20353
20385
  }, [slots.default?.(), slots.error ? slots.error({
20354
20386
  show: showError.value,
20355
20387
  nest: isNest.value,
20356
20388
  message: validateMessage.value,
20357
- class: errorColorClass
20389
+ class: [errorColorClass, ...errorClass.value],
20390
+ style: errorStyle.value
20358
20391
  }) : vue.createVNode(TransitionFade, null, {
20359
20392
  default: () => [vue.withDirectives(vue.createVNode("div", {
20360
- "class": ["vc-form-item__tip", isNest.value ? "is-nest" : "", errorColorClass]
20393
+ "class": ["vc-form-item__tip", isNest.value ? "is-nest" : "", errorColorClass, ...errorClass.value],
20394
+ "style": [errorStyle.value]
20361
20395
  }, [validateMessage.value]), [[vue.vShow, showError.value]])]
20362
20396
  })])])]);
20363
20397
  };
@@ -20417,6 +20451,10 @@
20417
20451
  classes,
20418
20452
  labelStyle,
20419
20453
  contentStyle,
20454
+ errorStyle,
20455
+ labelClass,
20456
+ contentClass,
20457
+ errorClass,
20420
20458
  isNest,
20421
20459
  showError,
20422
20460
  validateMessage
@@ -20432,7 +20470,8 @@
20432
20470
  show: showError.value,
20433
20471
  nest: isNest.value,
20434
20472
  message: validateMessage.value,
20435
- class: errorColorClass
20473
+ class: [errorColorClass, ...errorClass.value],
20474
+ style: errorStyle.value
20436
20475
  })];
20437
20476
  return vue.createVNode("div", {
20438
20477
  "style": {
@@ -20444,14 +20483,15 @@
20444
20483
  }, [(props2.label || slots.label) && vue.createVNode("label", {
20445
20484
  "for": labelFor,
20446
20485
  "style": labelStyle.value,
20447
- "class": "vcm-form-item__label"
20486
+ "class": ["vcm-form-item__label", ...labelClass.value]
20448
20487
  }, [label || slots.label?.()]), vue.createVNode("div", {
20449
20488
  "style": contentStyle.value,
20450
- "class": "vcm-form-item__content"
20489
+ "class": ["vcm-form-item__content", ...contentClass.value]
20451
20490
  }, [slots.default?.(), showMessage && showError.value && vue.createVNode("div", {
20452
20491
  "class": [{
20453
20492
  "is-nest": isNest.value
20454
- }, errorColorClass]
20493
+ }, errorColorClass, ...errorClass.value],
20494
+ "style": errorStyle.value
20455
20495
  }, [slots.error ? slots.error({
20456
20496
  message: validateMessage.value
20457
20497
  }) : validateMessage.value])])])]);
@@ -24817,6 +24857,7 @@
24817
24857
  });
24818
24858
  const classes = vue.computed(() => {
24819
24859
  return {
24860
+ "is-disabled": props2.disabled,
24820
24861
  "is-loading": isLoading.value,
24821
24862
  "is-checked": checked.value
24822
24863
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/vc",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@deot/vc-components": "^1.0.45",
23
- "@deot/vc-hooks": "^1.0.45",
24
- "@deot/vc-shared": "^1.0.45"
22
+ "@deot/vc-components": "^1.0.46",
23
+ "@deot/vc-hooks": "^1.0.46",
24
+ "@deot/vc-shared": "^1.0.46"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "vue": "*"