@qin-ui/antd-vue-pro 1.0.14 → 1.0.16

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/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present pro-components
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/es/form/index.js CHANGED
@@ -15703,6 +15703,9 @@ const UPDATE_FORM_DATA = Symbol(
15703
15703
  );
15704
15704
  const UPDATE_REFS = Symbol("updateRefs");
15705
15705
  const COMMAND = Symbol("command");
15706
+ const UPDATE_ACTIVE_PATH = Symbol(
15707
+ "setActivePath"
15708
+ );
15706
15709
  const RULE_TYPE_MAP = /* @__PURE__ */ new Map([
15707
15710
  ["value", "字段赋值"],
15708
15711
  ["hidden", "字段隐藏/显示"],
@@ -16013,7 +16016,10 @@ const useFields = (initFields) => {
16013
16016
  };
16014
16017
  const useFormData = (initFormData) => {
16015
16018
  const formData = ref(initFormData);
16016
- const activePath = ref(null);
16019
+ const activePath = ref();
16020
+ const setActivePath = (path) => {
16021
+ activePath.value = path;
16022
+ };
16017
16023
  const getFormData = (path) => {
16018
16024
  if (!path)
16019
16025
  return void 0;
@@ -16022,14 +16028,12 @@ const useFormData = (initFormData) => {
16022
16028
  const setFormData = (path, value) => {
16023
16029
  let newValue = value;
16024
16030
  if (path) {
16025
- activePath.value = path;
16026
16031
  if (typeof value === "function") {
16027
16032
  const preValue = getFormData(path);
16028
16033
  newValue = value(preValue);
16029
16034
  }
16030
16035
  set$1(formData.value, path, newValue);
16031
16036
  } else {
16032
- activePath.value = null;
16033
16037
  if (typeof value === "function") {
16034
16038
  const preValue = formData.value;
16035
16039
  newValue = value(preValue);
@@ -16037,7 +16041,7 @@ const useFormData = (initFormData) => {
16037
16041
  formData.value = newValue;
16038
16042
  }
16039
16043
  };
16040
- return { formData, getFormData, setFormData, activePath };
16044
+ return { formData, getFormData, setFormData, activePath, setActivePath };
16041
16045
  };
16042
16046
  const useForm = (initFormData = {}, initFields = []) => {
16043
16047
  return {
@@ -16369,6 +16373,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16369
16373
  const updateFormData = inject(UPDATE_FORM_DATA);
16370
16374
  const updateRefs = inject(UPDATE_REFS);
16371
16375
  const command = inject(COMMAND);
16376
+ const updateActivePath = inject(UPDATE_ACTIVE_PATH);
16372
16377
  const { getInitProps } = useInitProps();
16373
16378
  const value = computed({
16374
16379
  get() {
@@ -16404,6 +16409,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16404
16409
  }
16405
16410
  return {};
16406
16411
  };
16412
+ const modelName = computed(() => {
16413
+ if (componentType.value === "switch") {
16414
+ return "checked";
16415
+ }
16416
+ return "value";
16417
+ });
16407
16418
  const mergedAttrs = computed(() => {
16408
16419
  const compType = componentType.value;
16409
16420
  const initProps = getInitProps({
@@ -16419,7 +16430,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16419
16430
  Object.assign(methods, rewriteMethod("onBlur"), rewriteMethod("onFocus"));
16420
16431
  break;
16421
16432
  }
16422
- return { ...initProps, ...attrs, ...methods };
16433
+ return { ...initProps, ...attrs, ...methods, onFocus: void 0 };
16423
16434
  });
16424
16435
  const is = computed(() => {
16425
16436
  return COMPONENT_MAP.get(props.component) ?? props.component;
@@ -16435,6 +16446,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16435
16446
  (_c = command == null ? void 0 : command.value) == null ? void 0 : _c.run(props.path, "onInit");
16436
16447
  }
16437
16448
  });
16449
+ function handleFocus(...args) {
16450
+ var _a, _b;
16451
+ updateActivePath == null ? void 0 : updateActivePath(props.path);
16452
+ (_b = (_a = mergedAttrs.value).onFocus) == null ? void 0 : _b.call(_a, ...args);
16453
+ }
16438
16454
  return (_ctx, _cache) => {
16439
16455
  return openBlock(), createBlock(unref(_sfc_main$2), {
16440
16456
  component: unref(attrs).componentContainer,
@@ -16443,11 +16459,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16443
16459
  default: withCtx(() => [
16444
16460
  (openBlock(), createBlock(resolveDynamicComponent(is.value), mergeProps({ key: forceUpdateKey.value }, mergedAttrs.value, {
16445
16461
  ref: setComponentRef,
16446
- value: value.value,
16447
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => value.value = $event),
16462
+ [modelName.value]: value.value,
16463
+ ["onUpdate:" + modelName.value]: _cache[0] || (_cache[0] = ($event) => value.value = $event),
16448
16464
  class: [unref(attrs).componentClassName, "field-component"],
16449
16465
  style: unref(attrs).componentStyle,
16450
- path: _ctx.path
16466
+ path: _ctx.path,
16467
+ onFocus: handleFocus
16451
16468
  }), createSlots({ _: 2 }, [
16452
16469
  renderList(unref(attrs).slots, (slot, name) => {
16453
16470
  return {
@@ -16460,14 +16477,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
16460
16477
  ])
16461
16478
  };
16462
16479
  })
16463
- ]), 1040, ["value", "class", "style", "path"]))
16480
+ ]), 1040, ["class", "style", "path"]))
16464
16481
  ]),
16465
16482
  _: 1
16466
16483
  }, 8, ["component", "path"]);
16467
16484
  };
16468
16485
  }
16469
16486
  });
16470
- const index_vue_vue_type_style_index_0_scoped_188e985a_lang = "";
16487
+ const index_vue_vue_type_style_index_0_scoped_cabd909c_lang = "";
16471
16488
  const _export_sfc = (sfc, props) => {
16472
16489
  const target = sfc.__vccOpts || sfc;
16473
16490
  for (const [key, val] of props) {
@@ -16475,7 +16492,7 @@ const _export_sfc = (sfc, props) => {
16475
16492
  }
16476
16493
  return target;
16477
16494
  };
16478
- const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-188e985a"]]);
16495
+ const BaseField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cabd909c"]]);
16479
16496
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
16480
16497
  ...{
16481
16498
  name: "ContainerFragment",
@@ -16523,9 +16540,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16523
16540
  formData: { default: () => ({}) },
16524
16541
  fields: { default: () => [] },
16525
16542
  grid: { type: [Boolean, Object], default: false },
16526
- autoCommandDisabled: { type: Boolean, default: false }
16543
+ autoCommandDisabled: { type: Boolean, default: false },
16544
+ activePath: { default: void 0 }
16527
16545
  },
16528
- emits: ["update:formData"],
16546
+ emits: ["update:formData", "update:activePath"],
16529
16547
  setup(__props, { expose: __expose, emit }) {
16530
16548
  const props = __props;
16531
16549
  const refs = {
@@ -16538,13 +16556,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16538
16556
  refs[type4][path] = childRef;
16539
16557
  };
16540
16558
  const exposed = shallowReactive({ refs });
16559
+ const updateActivePath = (path) => {
16560
+ var _a;
16561
+ if (props.form) {
16562
+ (_a = props.form) == null ? void 0 : _a.setActivePath(path);
16563
+ } else {
16564
+ emit("update:activePath", path);
16565
+ }
16566
+ };
16541
16567
  const _formData = computed(
16542
- () => props.form ? props.form.formData.value : props.formData
16568
+ () => {
16569
+ var _a;
16570
+ return props.form ? (_a = props.form) == null ? void 0 : _a.formData.value : props.formData;
16571
+ }
16543
16572
  );
16544
16573
  const updateFormData = (value, path) => {
16545
- var _a, _b;
16574
+ var _a;
16546
16575
  if (props.form) {
16547
- (_b = (_a = props.form).setFormData) == null ? void 0 : _b.call(_a, path, value);
16576
+ (_a = props.form) == null ? void 0 : _a.setFormData(path, value);
16548
16577
  } else {
16549
16578
  const keys2 = path.split(".");
16550
16579
  const newFormData = keys2.reduce(
@@ -16561,9 +16590,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16561
16590
  );
16562
16591
  emit("update:formData", newFormData);
16563
16592
  }
16593
+ updateActivePath(path);
16564
16594
  };
16565
16595
  const _fields = computed(
16566
- () => props.form ? props.form.fields.value : props.fields
16596
+ () => {
16597
+ var _a;
16598
+ return props.form ? (_a = props.form) == null ? void 0 : _a.fields.value : props.fields;
16599
+ }
16567
16600
  );
16568
16601
  const command = computed(() => {
16569
16602
  return props.form && !props.autoCommandDisabled ? useCommand({
@@ -16579,6 +16612,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16579
16612
  provide(UPDATE_FORM_DATA, updateFormData);
16580
16613
  provide(UPDATE_REFS, updateRefs);
16581
16614
  provide(COMMAND, command);
16615
+ provide(UPDATE_ACTIVE_PATH, updateActivePath);
16582
16616
  __expose(exposed);
16583
16617
  return (_ctx, _cache) => {
16584
16618
  return openBlock(), createBlock(unref(Form$2), {
@@ -16612,6 +16646,7 @@ export {
16612
16646
  INJECT_COMPONENT_PROPS_KEYS,
16613
16647
  RULE_TYPE_MAP,
16614
16648
  _sfc_main$1 as SlotComponent,
16649
+ UPDATE_ACTIVE_PATH,
16615
16650
  UPDATE_FORM_DATA,
16616
16651
  UPDATE_REFS,
16617
16652
  _sfc_main as default,
package/es/index.d.ts CHANGED
@@ -409,6 +409,10 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
409
409
  type: PropType<boolean>;
410
410
  default: boolean;
411
411
  };
412
+ activePath: {
413
+ type: PropType<string>;
414
+ default: undefined;
415
+ };
412
416
  }, {
413
417
  refs: Refs;
414
418
  resetFields: (name?: NamePath | undefined) => void;
@@ -425,6 +429,7 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
425
429
  scrollToField: (name: NamePath, options?: {} | undefined) => void;
426
430
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
427
431
  "update:formData": (val: FormData_2) => void;
432
+ "update:activePath": (val: string | undefined) => void;
428
433
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
429
434
  prefixCls: {
430
435
  type: PropType<string>;
@@ -586,14 +591,20 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
586
591
  type: PropType<boolean>;
587
592
  default: boolean;
588
593
  };
594
+ activePath: {
595
+ type: PropType<string>;
596
+ default: undefined;
597
+ };
589
598
  }>> & {
590
599
  "onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
600
+ "onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
591
601
  }, {
592
602
  grid: Grid;
593
603
  fields: Fields;
594
604
  formData: FormData_2;
595
605
  form: Form;
596
606
  autoCommandDisabled: boolean;
607
+ activePath: string;
597
608
  }, {}>, {
598
609
  default?(_: {}): any;
599
610
  }>;
@@ -973,6 +984,7 @@ export declare const ProForm: SFCWithInstall<{
973
984
  formData?: FormData_2 | undefined;
974
985
  form?: Form | undefined;
975
986
  autoCommandDisabled?: boolean | undefined;
987
+ activePath?: string | undefined;
976
988
  readonly prefixCls?: string | undefined;
977
989
  readonly name?: string | undefined;
978
990
  readonly size?: "middle" | "small" | "large" | undefined;
@@ -1110,6 +1122,7 @@ export declare const ProForm: SFCWithInstall<{
1110
1122
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
1111
1123
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
1112
1124
  "onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
1125
+ "onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
1113
1126
  };
1114
1127
  $attrs: {
1115
1128
  [x: string]: unknown;
@@ -1122,7 +1135,7 @@ export declare const ProForm: SFCWithInstall<{
1122
1135
  }>;
1123
1136
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1124
1137
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1125
- $emit: (event: "update:formData", val: FormData_2) => void;
1138
+ $emit: ((event: "update:formData", val: FormData_2) => void) & ((event: "update:activePath", val: string | undefined) => void);
1126
1139
  $el: any;
1127
1140
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
1128
1141
  prefixCls: {
@@ -1285,8 +1298,13 @@ export declare const ProForm: SFCWithInstall<{
1285
1298
  type: PropType<boolean>;
1286
1299
  default: boolean;
1287
1300
  };
1301
+ activePath: {
1302
+ type: PropType<string>;
1303
+ default: undefined;
1304
+ };
1288
1305
  }>> & {
1289
1306
  "onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
1307
+ "onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
1290
1308
  }, {
1291
1309
  refs: Refs;
1292
1310
  resetFields: (name?: NamePath | undefined) => void;
@@ -1303,12 +1321,14 @@ export declare const ProForm: SFCWithInstall<{
1303
1321
  scrollToField: (name: NamePath, options?: {} | undefined) => void;
1304
1322
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1305
1323
  "update:formData": (val: FormData_2) => void;
1324
+ "update:activePath": (val: string | undefined) => void;
1306
1325
  }, string, {
1307
1326
  grid: Grid;
1308
1327
  fields: Fields;
1309
1328
  formData: FormData_2;
1310
1329
  form: Form;
1311
1330
  autoCommandDisabled: boolean;
1331
+ activePath: string;
1312
1332
  }, {}, string, {}> & {
1313
1333
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1314
1334
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -1490,8 +1510,13 @@ export declare const ProForm: SFCWithInstall<{
1490
1510
  type: PropType<boolean>;
1491
1511
  default: boolean;
1492
1512
  };
1513
+ activePath: {
1514
+ type: PropType<string>;
1515
+ default: undefined;
1516
+ };
1493
1517
  }>> & {
1494
1518
  "onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
1519
+ "onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
1495
1520
  } & ShallowUnwrapRef<{
1496
1521
  refs: Refs;
1497
1522
  resetFields: (name?: NamePath | undefined) => void;
@@ -1671,8 +1696,13 @@ export declare const ProForm: SFCWithInstall<{
1671
1696
  type: PropType<boolean>;
1672
1697
  default: boolean;
1673
1698
  };
1699
+ activePath: {
1700
+ type: PropType<string>;
1701
+ default: undefined;
1702
+ };
1674
1703
  }>> & {
1675
1704
  "onUpdate:formData"?: ((val: FormData_2) => any) | undefined;
1705
+ "onUpdate:activePath"?: ((val: string | undefined) => any) | undefined;
1676
1706
  }, {
1677
1707
  refs: Refs;
1678
1708
  resetFields: (name?: NamePath | undefined) => void;
@@ -1689,12 +1719,14 @@ export declare const ProForm: SFCWithInstall<{
1689
1719
  scrollToField: (name: NamePath, options?: {} | undefined) => void;
1690
1720
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1691
1721
  "update:formData": (val: FormData_2) => void;
1722
+ "update:activePath": (val: string | undefined) => void;
1692
1723
  }, string, {
1693
1724
  grid: Grid;
1694
1725
  fields: Fields;
1695
1726
  formData: FormData_2;
1696
1727
  form: Form;
1697
1728
  autoCommandDisabled: boolean;
1729
+ activePath: string;
1698
1730
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1699
1731
  $slots: {
1700
1732
  default?(_: {}): any;
@@ -1748,6 +1780,8 @@ export declare type RuleType = 'value' | 'hidden' | 'disabled' | 'options' | 'va
1748
1780
 
1749
1781
  declare type SelectSlots = FieldSlot<keyof InstanceType<typeof Select>['$slots']>;
1750
1782
 
1783
+ export declare type SetActivePath = (path: string | undefined) => void;
1784
+
1751
1785
  export declare type SetField = (path: string | undefined, field: Field | ((preField: ReturnType<GetField>) => Field)) => void;
1752
1786
 
1753
1787
  export declare type SetFormData = (path: string | undefined, value: any | ((preValue: DeepReadonly<any>) => any)) => void;
@@ -1779,6 +1813,8 @@ declare type TimePickerSlots = FieldSlot<'clearIcon' | 'renderExtraFooter' | 'su
1779
1813
 
1780
1814
  declare type TreeSelectSlots = FieldSlot<'maxTagPlaceholder' | 'notFoundContent' | 'placeholder' | 'searchPlaceholder' | 'suffixIcon' | 'tagRender' | 'title'>;
1781
1815
 
1816
+ export declare const UPDATE_ACTIVE_PATH: InjectionKey<SetActivePath>;
1817
+
1782
1818
  export declare const UPDATE_FORM_DATA: InjectionKey<UpdateFormData>;
1783
1819
 
1784
1820
  export declare const UPDATE_REFS: InjectionKey<UpdateRefs>;
@@ -1839,7 +1875,9 @@ export declare type UseFormData<D extends FormData_2 = FormData_2> = (initFormDa
1839
1875
  /** 设置指定字段数据路径的值 */
1840
1876
  setFormData: SetFormData;
1841
1877
  /** 当前正在编辑的字段path */
1842
- activePath: Ref<string | null>;
1878
+ activePath: Ref<string | undefined>;
1879
+ /** 设置当前正在编辑的字段path */
1880
+ setActivePath: SetActivePath;
1843
1881
  };
1844
1882
 
1845
1883
  export declare const useFormData: UseFormData;
@@ -1849,8 +1887,8 @@ export declare const useInitProps: () => {
1849
1887
  };
1850
1888
 
1851
1889
  declare type VModelProps = {
1852
- value: unknown;
1853
- 'onUpdate:value': (val: unknown) => void;
1890
+ value?: unknown;
1891
+ 'onUpdate:value'?: (val: unknown) => void;
1854
1892
  };
1855
1893
 
1856
1894
  export { }
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
2
  import _sfc_main from "./form/index.js";
3
- import { ArrowFunctionRegexp, BaseField, BaseFormItem, COMMAND, COMPONENT_MAP, ContainerFragment, FORM_DATA, FORM_ITEM_SLOT_KEYS, FunctionRegexp, INIT_COMPONENT_PROPS_MAP, INJECT_COMPONENT_PROPS_KEYS, RULE_TYPE_MAP, SlotComponent, UPDATE_FORM_DATA, UPDATE_REFS, isFunctionString, jsonParseReviver, jsonStringifyReplacer, useCommand, useFields, useForm, useFormData, useInitProps } from "./form/index.js";
3
+ import { ArrowFunctionRegexp, BaseField, BaseFormItem, COMMAND, COMPONENT_MAP, ContainerFragment, FORM_DATA, FORM_ITEM_SLOT_KEYS, FunctionRegexp, INIT_COMPONENT_PROPS_MAP, INJECT_COMPONENT_PROPS_KEYS, RULE_TYPE_MAP, SlotComponent, UPDATE_ACTIVE_PATH, UPDATE_FORM_DATA, UPDATE_REFS, isFunctionString, jsonParseReviver, jsonStringifyReplacer, useCommand, useFields, useForm, useFormData, useInitProps } from "./form/index.js";
4
4
  import _sfc_main$1 from "./component-provider/index.js";
5
5
  import "vue";
6
6
  import "ant-design-vue";
@@ -36,6 +36,7 @@ export {
36
36
  ProForm,
37
37
  RULE_TYPE_MAP,
38
38
  SlotComponent,
39
+ UPDATE_ACTIVE_PATH,
39
40
  UPDATE_FORM_DATA,
40
41
  UPDATE_REFS,
41
42
  index as default,
package/es/style.css CHANGED
@@ -1,4 +1,4 @@
1
- .field-component[data-v-188e985a] {
1
+ .field-component[data-v-cabd909c] {
2
2
  width: 100%;
3
3
  min-width: 120px;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",
@@ -14,9 +14,6 @@
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/dufan3715/pro-components.git"
16
16
  },
17
- "scripts": {
18
- "build": "vue-tsc && vite build"
19
- },
20
17
  "keywords": [
21
18
  "vue",
22
19
  "ant-design-vue",
@@ -32,5 +29,8 @@
32
29
  },
33
30
  "bugs": {
34
31
  "url": "https://github.com/dufan3715/pro-components/issues"
32
+ },
33
+ "scripts": {
34
+ "build": "vue-tsc && vite build"
35
35
  }
36
- }
36
+ }