@unizhen/ui 0.1.17 → 0.1.19

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.
@@ -128,6 +128,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
128
128
  defaultValue?: string | undefined;
129
129
  source?: string | undefined;
130
130
  type?: string | undefined;
131
+ title?: string | undefined;
131
132
  labelKeys?: string | undefined;
132
133
  valueKey?: string | undefined;
133
134
  multiple: boolean;
@@ -216,6 +217,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
216
217
  defaultValue?: string | undefined;
217
218
  source?: string | undefined;
218
219
  type?: string | undefined;
220
+ title?: string | undefined;
219
221
  labelKeys?: string | undefined;
220
222
  valueKey?: string | undefined;
221
223
  multiple: boolean;
@@ -307,6 +309,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
307
309
  defaultValue?: string | undefined;
308
310
  source?: string | undefined;
309
311
  type?: string | undefined;
312
+ title?: string | undefined;
310
313
  labelKeys?: string | undefined;
311
314
  valueKey?: string | undefined;
312
315
  multiple: boolean;
@@ -399,6 +402,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
399
402
  defaultValue?: string | undefined;
400
403
  source?: string | undefined;
401
404
  type?: string | undefined;
405
+ title?: string | undefined;
402
406
  labelKeys?: string | undefined;
403
407
  valueKey?: string | undefined;
404
408
  multiple: boolean;
@@ -416,6 +420,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
416
420
  filterable?: boolean | undefined;
417
421
  multiple?: boolean | undefined;
418
422
  tag?: boolean | undefined;
423
+ title?: string | undefined;
419
424
  labelKeys?: string | undefined;
420
425
  valueKey?: string | undefined;
421
426
  renderLabel?: ((option: ObjectKey, selected: boolean) => VNodeChild) | undefined;
@@ -493,6 +498,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
493
498
  defaultValue?: string | undefined;
494
499
  source?: string | undefined;
495
500
  type?: string | undefined;
501
+ title?: string | undefined;
496
502
  labelKeys?: string | undefined;
497
503
  valueKey?: string | undefined;
498
504
  multiple: boolean;
@@ -579,6 +585,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
579
585
  defaultValue?: string | undefined;
580
586
  source?: string | undefined;
581
587
  type?: string | undefined;
588
+ title?: string | undefined;
582
589
  labelKeys?: string | undefined;
583
590
  valueKey?: string | undefined;
584
591
  multiple: boolean;
@@ -662,6 +669,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
662
669
  defaultValue?: string | undefined;
663
670
  source?: string | undefined;
664
671
  type?: string | undefined;
672
+ title?: string | undefined;
665
673
  labelKeys?: string | undefined;
666
674
  valueKey?: string | undefined;
667
675
  multiple: boolean;
@@ -750,6 +758,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
750
758
  defaultValue?: string | undefined;
751
759
  source?: string | undefined;
752
760
  type?: string | undefined;
761
+ title?: string | undefined;
753
762
  labelKeys?: string | undefined;
754
763
  valueKey?: string | undefined;
755
764
  multiple: boolean;
@@ -841,6 +850,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
841
850
  defaultValue?: string | undefined;
842
851
  source?: string | undefined;
843
852
  type?: string | undefined;
853
+ title?: string | undefined;
844
854
  labelKeys?: string | undefined;
845
855
  valueKey?: string | undefined;
846
856
  multiple: boolean;
@@ -933,6 +943,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
933
943
  defaultValue?: string | undefined;
934
944
  source?: string | undefined;
935
945
  type?: string | undefined;
946
+ title?: string | undefined;
936
947
  labelKeys?: string | undefined;
937
948
  valueKey?: string | undefined;
938
949
  multiple: boolean;
@@ -950,6 +961,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
950
961
  filterable?: boolean | undefined;
951
962
  multiple?: boolean | undefined;
952
963
  tag?: boolean | undefined;
964
+ title?: string | undefined;
953
965
  labelKeys?: string | undefined;
954
966
  valueKey?: string | undefined;
955
967
  renderLabel?: ((option: ObjectKey, selected: boolean) => VNodeChild) | undefined;
@@ -1027,6 +1039,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1027
1039
  defaultValue?: string | undefined;
1028
1040
  source?: string | undefined;
1029
1041
  type?: string | undefined;
1042
+ title?: string | undefined;
1030
1043
  labelKeys?: string | undefined;
1031
1044
  valueKey?: string | undefined;
1032
1045
  multiple: boolean;
@@ -1113,6 +1126,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1113
1126
  defaultValue?: string | undefined;
1114
1127
  source?: string | undefined;
1115
1128
  type?: string | undefined;
1129
+ title?: string | undefined;
1116
1130
  labelKeys?: string | undefined;
1117
1131
  valueKey?: string | undefined;
1118
1132
  multiple: boolean;
@@ -118,6 +118,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
118
118
  defaultValue?: string | undefined;
119
119
  source?: string | undefined;
120
120
  type?: string | undefined;
121
+ title?: string | undefined;
121
122
  labelKeys?: string | undefined;
122
123
  valueKey?: string | undefined;
123
124
  multiple: boolean;
@@ -206,6 +207,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
206
207
  defaultValue?: string | undefined;
207
208
  source?: string | undefined;
208
209
  type?: string | undefined;
210
+ title?: string | undefined;
209
211
  labelKeys?: string | undefined;
210
212
  valueKey?: string | undefined;
211
213
  multiple: boolean;
@@ -297,6 +299,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
297
299
  defaultValue?: string | undefined;
298
300
  source?: string | undefined;
299
301
  type?: string | undefined;
302
+ title?: string | undefined;
300
303
  labelKeys?: string | undefined;
301
304
  valueKey?: string | undefined;
302
305
  multiple: boolean;
@@ -389,6 +392,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
389
392
  defaultValue?: string | undefined;
390
393
  source?: string | undefined;
391
394
  type?: string | undefined;
395
+ title?: string | undefined;
392
396
  labelKeys?: string | undefined;
393
397
  valueKey?: string | undefined;
394
398
  multiple: boolean;
@@ -406,6 +410,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
406
410
  filterable?: boolean | undefined;
407
411
  multiple?: boolean | undefined;
408
412
  tag?: boolean | undefined;
413
+ title?: string | undefined;
409
414
  labelKeys?: string | undefined;
410
415
  valueKey?: string | undefined;
411
416
  renderLabel?: ((option: ObjectKey, selected: boolean) => VNodeChild) | undefined;
@@ -483,6 +488,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
483
488
  defaultValue?: string | undefined;
484
489
  source?: string | undefined;
485
490
  type?: string | undefined;
491
+ title?: string | undefined;
486
492
  labelKeys?: string | undefined;
487
493
  valueKey?: string | undefined;
488
494
  multiple: boolean;
@@ -569,6 +575,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
569
575
  defaultValue?: string | undefined;
570
576
  source?: string | undefined;
571
577
  type?: string | undefined;
578
+ title?: string | undefined;
572
579
  labelKeys?: string | undefined;
573
580
  valueKey?: string | undefined;
574
581
  multiple: boolean;
@@ -652,6 +659,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
652
659
  defaultValue?: string | undefined;
653
660
  source?: string | undefined;
654
661
  type?: string | undefined;
662
+ title?: string | undefined;
655
663
  labelKeys?: string | undefined;
656
664
  valueKey?: string | undefined;
657
665
  multiple: boolean;
@@ -740,6 +748,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
740
748
  defaultValue?: string | undefined;
741
749
  source?: string | undefined;
742
750
  type?: string | undefined;
751
+ title?: string | undefined;
743
752
  labelKeys?: string | undefined;
744
753
  valueKey?: string | undefined;
745
754
  multiple: boolean;
@@ -831,6 +840,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
831
840
  defaultValue?: string | undefined;
832
841
  source?: string | undefined;
833
842
  type?: string | undefined;
843
+ title?: string | undefined;
834
844
  labelKeys?: string | undefined;
835
845
  valueKey?: string | undefined;
836
846
  multiple: boolean;
@@ -923,6 +933,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
923
933
  defaultValue?: string | undefined;
924
934
  source?: string | undefined;
925
935
  type?: string | undefined;
936
+ title?: string | undefined;
926
937
  labelKeys?: string | undefined;
927
938
  valueKey?: string | undefined;
928
939
  multiple: boolean;
@@ -940,6 +951,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
940
951
  filterable?: boolean | undefined;
941
952
  multiple?: boolean | undefined;
942
953
  tag?: boolean | undefined;
954
+ title?: string | undefined;
943
955
  labelKeys?: string | undefined;
944
956
  valueKey?: string | undefined;
945
957
  renderLabel?: ((option: ObjectKey, selected: boolean) => VNodeChild) | undefined;
@@ -1017,6 +1029,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1017
1029
  defaultValue?: string | undefined;
1018
1030
  source?: string | undefined;
1019
1031
  type?: string | undefined;
1032
+ title?: string | undefined;
1020
1033
  labelKeys?: string | undefined;
1021
1034
  valueKey?: string | undefined;
1022
1035
  multiple: boolean;
@@ -1103,6 +1116,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1103
1116
  defaultValue?: string | undefined;
1104
1117
  source?: string | undefined;
1105
1118
  type?: string | undefined;
1119
+ title?: string | undefined;
1106
1120
  labelKeys?: string | undefined;
1107
1121
  valueKey?: string | undefined;
1108
1122
  multiple: boolean;
@@ -38,6 +38,7 @@ export declare const fnTableSimplify: (columns: IUzFormItems) => {
38
38
  v: string | undefined;
39
39
  r: string | undefined;
40
40
  y: string | undefined;
41
+ e: string;
41
42
  l: string;
42
43
  a: string;
43
44
  m: number;
@@ -191,6 +192,7 @@ export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean,
191
192
  options: (() => Promise<any[]>) | any[];
192
193
  multiple?: boolean;
193
194
  tag?: boolean;
195
+ title?: string;
194
196
  labelKeys?: string;
195
197
  valueKey?: string;
196
198
  renderLabel?: (option: ObjectKey, selected: boolean) => VNodeChild;
@@ -266,6 +266,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
266
266
  defaultValue?: string | undefined;
267
267
  source?: string | undefined;
268
268
  type?: string | undefined;
269
+ title?: string | undefined;
269
270
  labelKeys?: string | undefined;
270
271
  valueKey?: string | undefined;
271
272
  multiple: boolean;
@@ -354,6 +355,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
354
355
  defaultValue?: string | undefined;
355
356
  source?: string | undefined;
356
357
  type?: string | undefined;
358
+ title?: string | undefined;
357
359
  labelKeys?: string | undefined;
358
360
  valueKey?: string | undefined;
359
361
  multiple: boolean;
@@ -445,6 +447,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
445
447
  defaultValue?: string | undefined;
446
448
  source?: string | undefined;
447
449
  type?: string | undefined;
450
+ title?: string | undefined;
448
451
  labelKeys?: string | undefined;
449
452
  valueKey?: string | undefined;
450
453
  multiple: boolean;
@@ -537,6 +540,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
537
540
  defaultValue?: string | undefined;
538
541
  source?: string | undefined;
539
542
  type?: string | undefined;
543
+ title?: string | undefined;
540
544
  labelKeys?: string | undefined;
541
545
  valueKey?: string | undefined;
542
546
  multiple: boolean;
@@ -554,6 +558,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
554
558
  filterable?: boolean | undefined;
555
559
  multiple?: boolean | undefined;
556
560
  tag?: boolean | undefined;
561
+ title?: string | undefined;
557
562
  labelKeys?: string | undefined;
558
563
  valueKey?: string | undefined;
559
564
  renderLabel?: ((option: ObjectKey, selected: boolean) => VNodeChild) | undefined;
@@ -631,6 +636,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
631
636
  defaultValue?: string | undefined;
632
637
  source?: string | undefined;
633
638
  type?: string | undefined;
639
+ title?: string | undefined;
634
640
  labelKeys?: string | undefined;
635
641
  valueKey?: string | undefined;
636
642
  multiple: boolean;
@@ -717,6 +723,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
717
723
  defaultValue?: string | undefined;
718
724
  source?: string | undefined;
719
725
  type?: string | undefined;
726
+ title?: string | undefined;
720
727
  labelKeys?: string | undefined;
721
728
  valueKey?: string | undefined;
722
729
  multiple: boolean;
@@ -800,6 +807,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
800
807
  defaultValue?: string | undefined;
801
808
  source?: string | undefined;
802
809
  type?: string | undefined;
810
+ title?: string | undefined;
803
811
  labelKeys?: string | undefined;
804
812
  valueKey?: string | undefined;
805
813
  multiple: boolean;
@@ -888,6 +896,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
888
896
  defaultValue?: string | undefined;
889
897
  source?: string | undefined;
890
898
  type?: string | undefined;
899
+ title?: string | undefined;
891
900
  labelKeys?: string | undefined;
892
901
  valueKey?: string | undefined;
893
902
  multiple: boolean;
@@ -979,6 +988,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
979
988
  defaultValue?: string | undefined;
980
989
  source?: string | undefined;
981
990
  type?: string | undefined;
991
+ title?: string | undefined;
982
992
  labelKeys?: string | undefined;
983
993
  valueKey?: string | undefined;
984
994
  multiple: boolean;
@@ -1071,6 +1081,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1071
1081
  defaultValue?: string | undefined;
1072
1082
  source?: string | undefined;
1073
1083
  type?: string | undefined;
1084
+ title?: string | undefined;
1074
1085
  labelKeys?: string | undefined;
1075
1086
  valueKey?: string | undefined;
1076
1087
  multiple: boolean;
@@ -1088,6 +1099,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1088
1099
  filterable?: boolean | undefined;
1089
1100
  multiple?: boolean | undefined;
1090
1101
  tag?: boolean | undefined;
1102
+ title?: string | undefined;
1091
1103
  labelKeys?: string | undefined;
1092
1104
  valueKey?: string | undefined;
1093
1105
  renderLabel?: ((option: ObjectKey, selected: boolean) => VNodeChild) | undefined;
@@ -1165,6 +1177,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1165
1177
  defaultValue?: string | undefined;
1166
1178
  source?: string | undefined;
1167
1179
  type?: string | undefined;
1180
+ title?: string | undefined;
1168
1181
  labelKeys?: string | undefined;
1169
1182
  valueKey?: string | undefined;
1170
1183
  multiple: boolean;
@@ -1251,6 +1264,7 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
1251
1264
  defaultValue?: string | undefined;
1252
1265
  source?: string | undefined;
1253
1266
  type?: string | undefined;
1267
+ title?: string | undefined;
1254
1268
  labelKeys?: string | undefined;
1255
1269
  valueKey?: string | undefined;
1256
1270
  multiple: boolean;
package/lib/ui.js CHANGED
@@ -2694,7 +2694,7 @@ var Hd = /* @__PURE__ */ U(Bd, [["render", Vd]]), Ud = 120, Wd = 10, Gd = Ud / 2
2694
2694
  return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
2695
2695
  },
2696
2696
  calculateSemicircle: (t) => {
2697
- n.value = `${Jd} ${qd}`, r.value = `translate(${Gd}, ${Gd + 9})`, i.value = `translate(${Gd}, ${Gd + 24})`;
2697
+ n.value = `${Jd} ${qd}`, r.value = `translate(${Gd}, 69)`, i.value = `translate(${Gd}, 84)`;
2698
2698
  let a = t || Number(e.circle);
2699
2699
  return a > 100 && (a = 100), a <= 0 && (a = 1e-4), Jd * (1 - a / 100);
2700
2700
  },
@@ -5067,6 +5067,7 @@ var bp = (e) => e.map((e) => {
5067
5067
  v: e.search.defaultValue,
5068
5068
  r: e.search.source,
5069
5069
  y: e.search.type,
5070
+ e: (e.search.title || "").replace(/\s*/g, ""),
5070
5071
  l: (e.search.labelKeys || "").replace(/\s*/g, ""),
5071
5072
  a: (e.search.valueKey || "").replace(/\s*/g, ""),
5072
5073
  m: +!!e.search.multiple,
@@ -5137,6 +5138,7 @@ var bp = (e) => e.map((e) => {
5137
5138
  defaultValue: e.c.v,
5138
5139
  source: e.c.r,
5139
5140
  type: e.c.y,
5141
+ title: e.c.e,
5140
5142
  labelKeys: e.c.l,
5141
5143
  valueKey: e.c.a,
5142
5144
  multiple: !!e.c.m,
@@ -5422,7 +5424,7 @@ async function Dp(e, t = !1, n = 0, r = () => {}, i = {}) {
5422
5424
  };
5423
5425
  }
5424
5426
  if (l && e.input !== "divider" && e.input !== "subTable" && c.push(l), e.input !== "divider" && e.input !== "switch" && e.input !== "subTable" && e.input !== "upload" && e.search.show) {
5425
- if (e.search.source) if (e.input = "select", e.params.type = e.search.type, e.params.valueKey = e.search.valueKey, e.params.valueKey = e.search.valueKey, e.search.source === "from-up") e.params.options = e.params.options;
5427
+ if (e.search.title && (e.label = e.search.title), e.search.source) if (e.input = "select", e.params.type = e.search.type, e.params.valueKey = e.search.valueKey, e.params.valueKey = e.search.valueKey, e.search.source === "from-up") e.params.options = e.params.options;
5426
5428
  else if (e.params.immediately || e.search.defaultValue) {
5427
5429
  let { sourceData: t, n } = await vp(e.search.source);
5428
5430
  if (t && Array.isArray(t)) if (e.sourceFn) {
@@ -7915,7 +7917,7 @@ function Qm(e, t, n) {
7915
7917
  }
7916
7918
  //#endregion
7917
7919
  //#region package.json
7918
- var $m = "0.1.17", eh;
7920
+ var $m = "0.1.19", eh;
7919
7921
  async function th() {
7920
7922
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7921
7923
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },
@@ -71,7 +71,7 @@
71
71
  "jsqr": "^1.4.0",
72
72
  "lodash": "^4.18.1",
73
73
  "monaco-editor": "^0.55.1",
74
- "npm-run-all2": "^8.0.4",
74
+ "npm-run-all2": "^9.0.1",
75
75
  "postcss": "^8.5.14",
76
76
  "prettier": "^3.8.3",
77
77
  "rimraf": "^6.1.3",
package/volar.d.ts CHANGED
@@ -19,7 +19,6 @@ declare module 'vue' {
19
19
  fnSetLang: (typeof import('@unizhen/ui'))['fnSetLang']
20
20
  fnSetTheme: (typeof import('@unizhen/ui'))['fnSetTheme']
21
21
  fnSetThumbnail: (typeof import('@unizhen/ui'))['fnSetThumbnail']
22
- i18n: (typeof import('@unizhen/ui'))['i18n']
23
22
  }
24
23
  }
25
24
  export {}