cnhis-design-vue 3.4.0-beta.46 → 3.4.0-beta.50

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.
Files changed (50) hide show
  1. package/es/components/base-search/index.d.ts +34 -0
  2. package/es/components/base-search/src/index.vue.d.ts +34 -0
  3. package/es/components/base-search/src/index.vue2.js +9 -1
  4. package/es/components/classification/index.d.ts +36 -9
  5. package/es/components/classification/src/components/search-filter/index.vue.d.ts +36 -9
  6. package/es/components/classification/src/components/set-classification/index.vue.d.ts +36 -9
  7. package/es/components/classification/src/index.vue.d.ts +36 -9
  8. package/es/components/date-picker/index.d.ts +12 -3
  9. package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -3
  10. package/es/components/date-picker/src/DatePicker.vue2.js +4 -1
  11. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
  12. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +10 -9
  13. package/es/components/field-set/src/FieldColor.vue.d.ts +25 -7
  14. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  15. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  16. package/es/components/field-set/src/components/condition.vue.d.ts +12 -3
  17. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +24 -6
  18. package/es/components/field-set/src/components/edit-filter.vue.d.ts +12 -3
  19. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  20. package/es/components/iho-chat/index.d.ts +24 -6
  21. package/es/components/iho-chat/src/Index.vue.d.ts +24 -6
  22. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +12 -3
  23. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +12 -3
  24. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +12 -3
  25. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +12 -3
  26. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
  27. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +12 -3
  28. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +12 -3
  29. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +12 -3
  30. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +12 -3
  31. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +12 -3
  32. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +24 -6
  33. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +12 -3
  34. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +12 -3
  35. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +24 -6
  36. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +24 -6
  37. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +12 -3
  38. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +14 -3
  39. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
  40. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +12 -3
  41. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +14 -3
  42. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
  43. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -12
  44. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -12
  45. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  46. package/es/components/table-filter/src/constants/index.js +4 -1
  47. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
  48. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
  49. package/es/shared/package.json.js +1 -1
  50. package/package.json +2 -2
@@ -223,10 +223,13 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
223
223
  isDateDisabled: {
224
224
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
225
225
  };
226
+ propKey: {
227
+ type: StringConstructor;
228
+ };
226
229
  shortcutListenerConfig: {
227
230
  type: import("vue").PropType<{
228
231
  enable: boolean;
229
- callback: (key: string) => void;
232
+ callback: (value: string, propKey?: string | undefined) => void;
230
233
  }>;
231
234
  };
232
235
  }>, {
@@ -268,10 +271,13 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
268
271
  isDateDisabled: {
269
272
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
270
273
  };
274
+ propKey: {
275
+ type: StringConstructor;
276
+ };
271
277
  shortcutListenerConfig: {
272
278
  type: import("vue").PropType<{
273
279
  enable: boolean;
274
- callback: (key: string) => void;
280
+ callback: (value: string, propKey?: string | undefined) => void;
275
281
  }>;
276
282
  };
277
283
  }>> & Readonly<{
@@ -334,10 +340,13 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
334
340
  isDateDisabled: {
335
341
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
336
342
  };
343
+ propKey: {
344
+ type: StringConstructor;
345
+ };
337
346
  shortcutListenerConfig: {
338
347
  type: import("vue").PropType<{
339
348
  enable: boolean;
340
- callback: (key: string) => void;
349
+ callback: (value: string, propKey?: string | undefined) => void;
341
350
  }>;
342
351
  };
343
352
  }>> & Readonly<{
@@ -510,8 +519,10 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
510
519
  emit: (event: "update:value", ...args: any[]) => void;
511
520
  valueCp: import("vue").Ref<any, any>;
512
521
  rangeShortcuts: import("vue").Ref<any, any>;
522
+ shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
513
523
  dateFormat: import("vue").ComputedRef<string>;
514
524
  optionSetting: import("vue").ComputedRef<any>;
525
+ compName: import("vue").ComputedRef<any>;
515
526
  handleChange: (val: any) => void;
516
527
  isDateDisabled: (ts: number) => boolean;
517
528
  timeDisabled: (ts: number) => {
@@ -555,10 +566,13 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
555
566
  isDateDisabled: {
556
567
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
557
568
  };
569
+ propKey: {
570
+ type: StringConstructor;
571
+ };
558
572
  shortcutListenerConfig: {
559
573
  type: import("vue").PropType<{
560
574
  enable: boolean;
561
- callback: (key: string) => void;
575
+ callback: (value: string, propKey?: string | undefined) => void;
562
576
  }>;
563
577
  };
564
578
  }>, {
@@ -600,10 +614,13 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
600
614
  isDateDisabled: {
601
615
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
602
616
  };
617
+ propKey: {
618
+ type: StringConstructor;
619
+ };
603
620
  shortcutListenerConfig: {
604
621
  type: import("vue").PropType<{
605
622
  enable: boolean;
606
- callback: (key: string) => void;
623
+ callback: (value: string, propKey?: string | undefined) => void;
607
624
  }>;
608
625
  };
609
626
  }>> & Readonly<{
@@ -666,10 +683,13 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
666
683
  isDateDisabled: {
667
684
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
668
685
  };
686
+ propKey: {
687
+ type: StringConstructor;
688
+ };
669
689
  shortcutListenerConfig: {
670
690
  type: import("vue").PropType<{
671
691
  enable: boolean;
672
- callback: (key: string) => void;
692
+ callback: (value: string, propKey?: string | undefined) => void;
673
693
  }>;
674
694
  };
675
695
  }>> & Readonly<{
@@ -849,10 +869,13 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
849
869
  isDateDisabled: {
850
870
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
851
871
  };
872
+ propKey: {
873
+ type: StringConstructor;
874
+ };
852
875
  shortcutListenerConfig: {
853
876
  type: import("vue").PropType<{
854
877
  enable: boolean;
855
- callback: (key: string) => void;
878
+ callback: (value: string, propKey?: string | undefined) => void;
856
879
  }>;
857
880
  };
858
881
  }>, {
@@ -894,10 +917,13 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
894
917
  isDateDisabled: {
895
918
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
896
919
  };
920
+ propKey: {
921
+ type: StringConstructor;
922
+ };
897
923
  shortcutListenerConfig: {
898
924
  type: import("vue").PropType<{
899
925
  enable: boolean;
900
- callback: (key: string) => void;
926
+ callback: (value: string, propKey?: string | undefined) => void;
901
927
  }>;
902
928
  };
903
929
  }>> & Readonly<{
@@ -960,10 +986,13 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
960
986
  isDateDisabled: {
961
987
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
962
988
  };
989
+ propKey: {
990
+ type: StringConstructor;
991
+ };
963
992
  shortcutListenerConfig: {
964
993
  type: import("vue").PropType<{
965
994
  enable: boolean;
966
- callback: (key: string) => void;
995
+ callback: (value: string, propKey?: string | undefined) => void;
967
996
  }>;
968
997
  };
969
998
  }>> & Readonly<{
@@ -1143,8 +1172,10 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
1143
1172
  emit: (event: "update:value", ...args: any[]) => void;
1144
1173
  valueCp: import("vue").Ref<any, any>;
1145
1174
  rangeShortcuts: import("vue").Ref<any, any>;
1175
+ shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
1146
1176
  dateFormat: import("vue").ComputedRef<string>;
1147
1177
  optionSetting: import("vue").ComputedRef<any>;
1178
+ compName: import("vue").ComputedRef<any>;
1148
1179
  handleChange: (val: any) => void;
1149
1180
  isDateDisabled: (ts: number) => boolean;
1150
1181
  timeDisabled: (ts: number) => {
@@ -1188,10 +1219,13 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
1188
1219
  isDateDisabled: {
1189
1220
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1190
1221
  };
1222
+ propKey: {
1223
+ type: StringConstructor;
1224
+ };
1191
1225
  shortcutListenerConfig: {
1192
1226
  type: import("vue").PropType<{
1193
1227
  enable: boolean;
1194
- callback: (key: string) => void;
1228
+ callback: (value: string, propKey?: string | undefined) => void;
1195
1229
  }>;
1196
1230
  };
1197
1231
  }>, {
@@ -1233,10 +1267,13 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
1233
1267
  isDateDisabled: {
1234
1268
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1235
1269
  };
1270
+ propKey: {
1271
+ type: StringConstructor;
1272
+ };
1236
1273
  shortcutListenerConfig: {
1237
1274
  type: import("vue").PropType<{
1238
1275
  enable: boolean;
1239
- callback: (key: string) => void;
1276
+ callback: (value: string, propKey?: string | undefined) => void;
1240
1277
  }>;
1241
1278
  };
1242
1279
  }>> & Readonly<{
@@ -1299,10 +1336,13 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
1299
1336
  isDateDisabled: {
1300
1337
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1301
1338
  };
1339
+ propKey: {
1340
+ type: StringConstructor;
1341
+ };
1302
1342
  shortcutListenerConfig: {
1303
1343
  type: import("vue").PropType<{
1304
1344
  enable: boolean;
1305
- callback: (key: string) => void;
1345
+ callback: (value: string, propKey?: string | undefined) => void;
1306
1346
  }>;
1307
1347
  };
1308
1348
  }>> & Readonly<{
@@ -544,10 +544,13 @@ export declare const WidgetCfgMaps: Map<string, {
544
544
  isDateDisabled: {
545
545
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
546
546
  };
547
+ propKey: {
548
+ type: StringConstructor;
549
+ };
547
550
  shortcutListenerConfig: {
548
551
  type: import("vue").PropType<{
549
552
  enable: boolean;
550
- callback: (key: string) => void;
553
+ callback: (value: string, propKey?: string | undefined) => void;
551
554
  }>;
552
555
  };
553
556
  }>, {
@@ -589,10 +592,13 @@ export declare const WidgetCfgMaps: Map<string, {
589
592
  isDateDisabled: {
590
593
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
591
594
  };
595
+ propKey: {
596
+ type: StringConstructor;
597
+ };
592
598
  shortcutListenerConfig: {
593
599
  type: import("vue").PropType<{
594
600
  enable: boolean;
595
- callback: (key: string) => void;
601
+ callback: (value: string, propKey?: string | undefined) => void;
596
602
  }>;
597
603
  };
598
604
  }>> & Readonly<{
@@ -655,10 +661,13 @@ export declare const WidgetCfgMaps: Map<string, {
655
661
  isDateDisabled: {
656
662
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
657
663
  };
664
+ propKey: {
665
+ type: StringConstructor;
666
+ };
658
667
  shortcutListenerConfig: {
659
668
  type: import("vue").PropType<{
660
669
  enable: boolean;
661
- callback: (key: string) => void;
670
+ callback: (value: string, propKey?: string | undefined) => void;
662
671
  }>;
663
672
  };
664
673
  }>> & Readonly<{
@@ -845,8 +854,10 @@ export declare const WidgetCfgMaps: Map<string, {
845
854
  emit: (event: "update:value", ...args: any[]) => void;
846
855
  valueCp: import("vue").Ref<any, any>;
847
856
  rangeShortcuts: import("vue").Ref<any, any>;
857
+ shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
848
858
  dateFormat: import("vue").ComputedRef<string>;
849
859
  optionSetting: import("vue").ComputedRef<any>;
860
+ compName: import("vue").ComputedRef<any>;
850
861
  handleChange: (val: any) => void;
851
862
  isDateDisabled: (ts: number) => boolean;
852
863
  timeDisabled: (ts: number) => {
@@ -890,10 +901,13 @@ export declare const WidgetCfgMaps: Map<string, {
890
901
  isDateDisabled: {
891
902
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
892
903
  };
904
+ propKey: {
905
+ type: StringConstructor;
906
+ };
893
907
  shortcutListenerConfig: {
894
908
  type: import("vue").PropType<{
895
909
  enable: boolean;
896
- callback: (key: string) => void;
910
+ callback: (value: string, propKey?: string | undefined) => void;
897
911
  }>;
898
912
  };
899
913
  }>, {
@@ -935,10 +949,13 @@ export declare const WidgetCfgMaps: Map<string, {
935
949
  isDateDisabled: {
936
950
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
937
951
  };
952
+ propKey: {
953
+ type: StringConstructor;
954
+ };
938
955
  shortcutListenerConfig: {
939
956
  type: import("vue").PropType<{
940
957
  enable: boolean;
941
- callback: (key: string) => void;
958
+ callback: (value: string, propKey?: string | undefined) => void;
942
959
  }>;
943
960
  };
944
961
  }>> & Readonly<{
@@ -1001,10 +1018,13 @@ export declare const WidgetCfgMaps: Map<string, {
1001
1018
  isDateDisabled: {
1002
1019
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1003
1020
  };
1021
+ propKey: {
1022
+ type: StringConstructor;
1023
+ };
1004
1024
  shortcutListenerConfig: {
1005
1025
  type: import("vue").PropType<{
1006
1026
  enable: boolean;
1007
- callback: (key: string) => void;
1027
+ callback: (value: string, propKey?: string | undefined) => void;
1008
1028
  }>;
1009
1029
  };
1010
1030
  }>> & Readonly<{
@@ -1198,10 +1218,13 @@ export declare const WidgetCfgMaps: Map<string, {
1198
1218
  isDateDisabled: {
1199
1219
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1200
1220
  };
1221
+ propKey: {
1222
+ type: StringConstructor;
1223
+ };
1201
1224
  shortcutListenerConfig: {
1202
1225
  type: import("vue").PropType<{
1203
1226
  enable: boolean;
1204
- callback: (key: string) => void;
1227
+ callback: (value: string, propKey?: string | undefined) => void;
1205
1228
  }>;
1206
1229
  };
1207
1230
  }>, {
@@ -1243,10 +1266,13 @@ export declare const WidgetCfgMaps: Map<string, {
1243
1266
  isDateDisabled: {
1244
1267
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1245
1268
  };
1269
+ propKey: {
1270
+ type: StringConstructor;
1271
+ };
1246
1272
  shortcutListenerConfig: {
1247
1273
  type: import("vue").PropType<{
1248
1274
  enable: boolean;
1249
- callback: (key: string) => void;
1275
+ callback: (value: string, propKey?: string | undefined) => void;
1250
1276
  }>;
1251
1277
  };
1252
1278
  }>> & Readonly<{
@@ -1309,10 +1335,13 @@ export declare const WidgetCfgMaps: Map<string, {
1309
1335
  isDateDisabled: {
1310
1336
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1311
1337
  };
1338
+ propKey: {
1339
+ type: StringConstructor;
1340
+ };
1312
1341
  shortcutListenerConfig: {
1313
1342
  type: import("vue").PropType<{
1314
1343
  enable: boolean;
1315
- callback: (key: string) => void;
1344
+ callback: (value: string, propKey?: string | undefined) => void;
1316
1345
  }>;
1317
1346
  };
1318
1347
  }>> & Readonly<{
@@ -1506,8 +1535,10 @@ export declare const WidgetCfgMaps: Map<string, {
1506
1535
  emit: (event: "update:value", ...args: any[]) => void;
1507
1536
  valueCp: import("vue").Ref<any, any>;
1508
1537
  rangeShortcuts: import("vue").Ref<any, any>;
1538
+ shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
1509
1539
  dateFormat: import("vue").ComputedRef<string>;
1510
1540
  optionSetting: import("vue").ComputedRef<any>;
1541
+ compName: import("vue").ComputedRef<any>;
1511
1542
  handleChange: (val: any) => void;
1512
1543
  isDateDisabled: (ts: number) => boolean;
1513
1544
  timeDisabled: (ts: number) => {
@@ -1551,10 +1582,13 @@ export declare const WidgetCfgMaps: Map<string, {
1551
1582
  isDateDisabled: {
1552
1583
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1553
1584
  };
1585
+ propKey: {
1586
+ type: StringConstructor;
1587
+ };
1554
1588
  shortcutListenerConfig: {
1555
1589
  type: import("vue").PropType<{
1556
1590
  enable: boolean;
1557
- callback: (key: string) => void;
1591
+ callback: (value: string, propKey?: string | undefined) => void;
1558
1592
  }>;
1559
1593
  };
1560
1594
  }>, {
@@ -1596,10 +1630,13 @@ export declare const WidgetCfgMaps: Map<string, {
1596
1630
  isDateDisabled: {
1597
1631
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1598
1632
  };
1633
+ propKey: {
1634
+ type: StringConstructor;
1635
+ };
1599
1636
  shortcutListenerConfig: {
1600
1637
  type: import("vue").PropType<{
1601
1638
  enable: boolean;
1602
- callback: (key: string) => void;
1639
+ callback: (value: string, propKey?: string | undefined) => void;
1603
1640
  }>;
1604
1641
  };
1605
1642
  }>> & Readonly<{
@@ -1662,10 +1699,13 @@ export declare const WidgetCfgMaps: Map<string, {
1662
1699
  isDateDisabled: {
1663
1700
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1664
1701
  };
1702
+ propKey: {
1703
+ type: StringConstructor;
1704
+ };
1665
1705
  shortcutListenerConfig: {
1666
1706
  type: import("vue").PropType<{
1667
1707
  enable: boolean;
1668
- callback: (key: string) => void;
1708
+ callback: (value: string, propKey?: string | undefined) => void;
1669
1709
  }>;
1670
1710
  };
1671
1711
  }>> & Readonly<{
@@ -2,5 +2,6 @@ import { AnyObject } from '../../../../shared/types';
2
2
  import { InjectionKey, Ref } from 'vue';
3
3
  export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
4
4
  export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
5
+ export declare const InjectionShortcutListenerConfig: InjectionKey<AnyObject | undefined>;
5
6
  export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
6
7
  export declare const InjectionClassifyfilterType: InjectionKey<String>;
@@ -4,6 +4,9 @@ const InjectionFilterApiConfig = Symbol(
4
4
  const InjectionFilterSearchConfig = Symbol(
5
5
  "InjectionFilterSearchConfig"
6
6
  );
7
+ const InjectionShortcutListenerConfig = Symbol(
8
+ "InjectionShortcutListenerConfig"
9
+ );
7
10
  const InjectionClassifyFilterList = Symbol(
8
11
  "InjectionClassifyFilterList"
9
12
  );
@@ -11,4 +14,4 @@ const InjectionClassifyfilterType = Symbol(
11
14
  "InjectionClassifyfilterType"
12
15
  );
13
16
 
14
- export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig };
17
+ export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig, InjectionShortcutListenerConfig };
@@ -17,6 +17,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  precision: {
18
18
  type: NumberConstructor;
19
19
  };
20
+ parse: {
21
+ type: PropType<(v: string) => string>;
22
+ default: {
23
+ <T>(value: T): T;
24
+ (): undefined;
25
+ };
26
+ };
20
27
  whiteList: {
21
28
  type: PropType<string[]>;
22
29
  };
@@ -47,6 +54,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
54
  precision: {
48
55
  type: NumberConstructor;
49
56
  };
57
+ parse: {
58
+ type: PropType<(v: string) => string>;
59
+ default: {
60
+ <T>(value: T): T;
61
+ (): undefined;
62
+ };
63
+ };
50
64
  whiteList: {
51
65
  type: PropType<string[]>;
52
66
  };
@@ -64,6 +78,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
78
  onSelect?: ((...args: any[]) => any) | undefined;
65
79
  }>, {
66
80
  onChange: AnyFn;
81
+ parse: (v: string) => string;
67
82
  slashSymbol: string;
68
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
69
84
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, watch, createVNode, mergeProps } from 'vue';
2
2
  import { findAncestor } from '../../utils/index.js';
3
- import { isArray, isString, isNumber, isObject } from 'lodash-es';
3
+ import { identity, isArray, isString, isNumber, isObject } from 'lodash-es';
4
4
  import { NInput, NDropdown } from 'naive-ui';
5
5
  import '../../../components/form-render/index.js';
6
6
  import { createInputSlot } from '../../../components/form-render/src/utils/index.js';
@@ -23,6 +23,10 @@ var script = /* @__PURE__ */ defineComponent({
23
23
  precision: {
24
24
  type: Number
25
25
  },
26
+ parse: {
27
+ type: Function,
28
+ default: identity
29
+ },
26
30
  whiteList: {
27
31
  type: Array
28
32
  },
@@ -73,15 +77,25 @@ var script = /* @__PURE__ */ defineComponent({
73
77
  return tempValue.value;
74
78
  },
75
79
  set(v) {
76
- if (v == null)
77
- return tempValue.value = "";
78
- if (isNumber(v))
79
- return tempValue.value = v + "";
80
- if (!isString(v))
81
- return;
82
- if (v.endsWith(props.slashSymbol))
83
- return tempValue.value = props.slashSymbol;
84
- tempValue.value = whiteListOptions.value.some((option) => option.label === v) || validNumberReg.test(v) ? v : "";
80
+ let res = "";
81
+ switch (true) {
82
+ case v == null:
83
+ res = "";
84
+ break;
85
+ case isNumber(v):
86
+ res = props.parse(v + "");
87
+ break;
88
+ case !isString(v):
89
+ return;
90
+ default: {
91
+ if (v.endsWith(props.slashSymbol)) {
92
+ res = props.slashSymbol;
93
+ } else {
94
+ res = whiteListOptions.value.some((option) => option.label === v) || validNumberReg.test(v) ? props.parse(v) : "";
95
+ }
96
+ }
97
+ }
98
+ tempValue.value = res;
85
99
  }
86
100
  });
87
101
  watch(() => props.value, (v) => valueRef.value = v, {
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.46";
2
+ var version = "3.4.0-beta.50";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.46",
3
+ "version": "3.4.0-beta.50",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "320528517c20213ba1d269086d4b96d6295702f7"
76
+ "gitHead": "2c49a610d85f6705857cf1168ffd41653a4604fc"
77
77
  }