@a2simcode/ui 0.0.304 → 0.0.305

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/dist/components/autocomplete/index.d.ts +3 -3
  2. package/dist/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  3. package/dist/components/buttons/index.d.ts +6 -0
  4. package/dist/components/buttons/src/index.vue.d.ts +9 -0
  5. package/dist/components/cascader-select/index.d.ts +3 -3
  6. package/dist/components/cascader-select/src/cascader-select.vue.d.ts +1 -1
  7. package/dist/components/checkbox/index.d.ts +3 -3
  8. package/dist/components/checkbox/src/checkbox.vue.d.ts +1 -1
  9. package/dist/components/code-mirror/index.d.ts +3 -3
  10. package/dist/components/code-mirror/src/code-mirror.vue.d.ts +1 -1
  11. package/dist/components/date/index.d.ts +3 -3
  12. package/dist/components/date/src/date.vue.d.ts +1 -1
  13. package/dist/components/editor/index.d.ts +3 -3
  14. package/dist/components/editor/src/editor.vue.d.ts +1 -1
  15. package/dist/components/input/index.d.ts +3 -3
  16. package/dist/components/input/src/input.vue.d.ts +1 -1
  17. package/dist/components/input-color/index.d.ts +3 -3
  18. package/dist/components/input-color/src/input-color.vue.d.ts +1 -1
  19. package/dist/components/input-layer/index.d.ts +3 -3
  20. package/dist/components/input-layer/src/input-layer.vue.d.ts +1 -1
  21. package/dist/components/input-map/index.d.ts +3 -3
  22. package/dist/components/input-map/src/input-map.vue.d.ts +1 -1
  23. package/dist/components/input-tag/index.d.ts +3 -3
  24. package/dist/components/input-tag/src/input-tag.vue.d.ts +1 -1
  25. package/dist/components/now-time/index.d.ts +3 -3
  26. package/dist/components/now-time/src/now-time.vue.d.ts +1 -1
  27. package/dist/components/number/index.d.ts +3 -3
  28. package/dist/components/number/src/number.vue.d.ts +1 -1
  29. package/dist/components/radio/index.d.ts +3 -3
  30. package/dist/components/radio/src/radio.vue.d.ts +1 -1
  31. package/dist/components/rate/index.d.ts +3 -3
  32. package/dist/components/rate/src/rate.vue.d.ts +1 -1
  33. package/dist/components/select/index.d.ts +3 -3
  34. package/dist/components/select/src/select.vue.d.ts +1 -1
  35. package/dist/components/slider/index.d.ts +3 -3
  36. package/dist/components/slider/src/slider.vue.d.ts +1 -1
  37. package/dist/components/switch/index.d.ts +3 -3
  38. package/dist/components/switch/src/switch.vue.d.ts +1 -1
  39. package/dist/components/time/index.d.ts +3 -3
  40. package/dist/components/time/src/time.vue.d.ts +1 -1
  41. package/dist/components/tree-select/index.d.ts +3 -3
  42. package/dist/components/tree-select/src/tree-select.vue.d.ts +1 -1
  43. package/dist/components/upload/index.d.ts +3 -3
  44. package/dist/components/upload/src/list.vue.d.ts +1 -1
  45. package/dist/components/upload/src/upload.vue.d.ts +1 -1
  46. package/dist/simcode-ui.es.js +6 -1
  47. package/dist/simcode-ui.umd.js +1 -1
  48. package/dist/stats.html +1 -1
  49. package/docs/components/meta/buttons.ts +81 -76
  50. package/package.json +1 -1
@@ -42,8 +42,8 @@ declare const JRadio: {
42
42
  value: string;
43
43
  color?: string;
44
44
  }[];
45
- modelValue: string | number;
46
45
  readonly: boolean;
46
+ modelValue: string | number;
47
47
  isButton: boolean;
48
48
  isColor: boolean;
49
49
  colors: string[] | {
@@ -97,8 +97,8 @@ declare const JRadio: {
97
97
  value: string;
98
98
  color?: string;
99
99
  }[];
100
- modelValue: string | number;
101
100
  readonly: boolean;
101
+ modelValue: string | number;
102
102
  isButton: boolean;
103
103
  isColor: boolean;
104
104
  colors: string[] | {
@@ -151,8 +151,8 @@ declare const JRadio: {
151
151
  value: string;
152
152
  color?: string;
153
153
  }[];
154
- modelValue: string | number;
155
154
  readonly: boolean;
155
+ modelValue: string | number;
156
156
  isButton: boolean;
157
157
  isColor: boolean;
158
158
  colors: string[] | {
@@ -118,8 +118,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
118
118
  value: string;
119
119
  color?: string;
120
120
  }[];
121
- modelValue: string | number;
122
121
  readonly: boolean;
122
+ modelValue: string | number;
123
123
  isButton: boolean;
124
124
  isColor: boolean;
125
125
  colors: string[] | {
@@ -11,8 +11,8 @@ export declare const JRate: {
11
11
  }) => any;
12
12
  }, import('vue').PublicProps, {
13
13
  size: "large" | "default" | "small";
14
- modelValue: number | string;
15
14
  readonly: boolean;
15
+ modelValue: number | string;
16
16
  max: number;
17
17
  allowClear: boolean;
18
18
  allowHalf: boolean;
@@ -33,8 +33,8 @@ export declare const JRate: {
33
33
  }) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, {
35
35
  size: "large" | "default" | "small";
36
- modelValue: number | string;
37
36
  readonly: boolean;
37
+ modelValue: number | string;
38
38
  max: number;
39
39
  allowClear: boolean;
40
40
  allowHalf: boolean;
@@ -57,8 +57,8 @@ export declare const JRate: {
57
57
  }) => any;
58
58
  }, string, {
59
59
  size: "large" | "default" | "small";
60
- modelValue: number | string;
61
60
  readonly: boolean;
61
+ modelValue: number | string;
62
62
  max: number;
63
63
  allowClear: boolean;
64
64
  allowHalf: boolean;
@@ -30,8 +30,8 @@ declare const _default: import('vue').DefineComponent<RateProps, {}, {}, {}, {},
30
30
  }) => any) | undefined;
31
31
  }>, {
32
32
  size: "large" | "default" | "small";
33
- modelValue: number | string;
34
33
  readonly: boolean;
34
+ modelValue: number | string;
35
35
  max: number;
36
36
  allowClear: boolean;
37
37
  allowHalf: boolean;
@@ -15,9 +15,9 @@ declare const JSelect: {
15
15
  size: "large" | "default" | "small";
16
16
  disabled: boolean;
17
17
  options: import('..').SelectOption[];
18
+ readonly: boolean;
18
19
  placeholder: string;
19
20
  clearable: boolean;
20
- readonly: boolean;
21
21
  autoFocus: boolean;
22
22
  teleported: boolean;
23
23
  noBorder: boolean;
@@ -50,9 +50,9 @@ declare const JSelect: {
50
50
  size: "large" | "default" | "small";
51
51
  disabled: boolean;
52
52
  options: import('..').SelectOption[];
53
+ readonly: boolean;
53
54
  placeholder: string;
54
55
  clearable: boolean;
55
- readonly: boolean;
56
56
  autoFocus: boolean;
57
57
  teleported: boolean;
58
58
  noBorder: boolean;
@@ -86,9 +86,9 @@ declare const JSelect: {
86
86
  size: "large" | "default" | "small";
87
87
  disabled: boolean;
88
88
  options: import('..').SelectOption[];
89
+ readonly: boolean;
89
90
  placeholder: string;
90
91
  clearable: boolean;
91
- readonly: boolean;
92
92
  autoFocus: boolean;
93
93
  teleported: boolean;
94
94
  noBorder: boolean;
@@ -64,9 +64,9 @@ declare const _default: import('vue').DefineComponent<SelectProps, {}, {}, {}, {
64
64
  size: "large" | "default" | "small";
65
65
  disabled: boolean;
66
66
  options: SelectOption[];
67
+ readonly: boolean;
67
68
  placeholder: string;
68
69
  clearable: boolean;
69
- readonly: boolean;
70
70
  autoFocus: boolean;
71
71
  teleported: boolean;
72
72
  noBorder: boolean;
@@ -12,8 +12,8 @@ export declare const JSlider: {
12
12
  }, import('vue').PublicProps, {
13
13
  size: "large" | "default" | "small";
14
14
  vertical: boolean;
15
- modelValue: number | number[];
16
15
  readonly: boolean;
16
+ modelValue: number | number[];
17
17
  max: number;
18
18
  min: number;
19
19
  step: number;
@@ -40,8 +40,8 @@ export declare const JSlider: {
40
40
  }>, {}, {}, {}, {}, {
41
41
  size: "large" | "default" | "small";
42
42
  vertical: boolean;
43
- modelValue: number | number[];
44
43
  readonly: boolean;
44
+ modelValue: number | number[];
45
45
  max: number;
46
46
  min: number;
47
47
  step: number;
@@ -70,8 +70,8 @@ export declare const JSlider: {
70
70
  }, string, {
71
71
  size: "large" | "default" | "small";
72
72
  vertical: boolean;
73
- modelValue: number | number[];
74
73
  readonly: boolean;
74
+ modelValue: number | number[];
75
75
  max: number;
76
76
  min: number;
77
77
  step: number;
@@ -59,8 +59,8 @@ declare const _default: import('vue').DefineComponent<SliderProps, {}, {}, {}, {
59
59
  }>, {
60
60
  size: "large" | "default" | "small";
61
61
  vertical: boolean;
62
- modelValue: number | number[];
63
62
  readonly: boolean;
63
+ modelValue: number | number[];
64
64
  max: number;
65
65
  min: number;
66
66
  step: number;
@@ -9,8 +9,8 @@ declare const JSwitch: {
9
9
  width: number | string;
10
10
  disabled: boolean;
11
11
  loading: boolean;
12
- modelValue: boolean | string | number;
13
12
  readonly: boolean;
13
+ modelValue: boolean | string | number;
14
14
  validateEvent: boolean;
15
15
  autoFocus: boolean;
16
16
  inactiveValue: boolean | string | number;
@@ -30,8 +30,8 @@ declare const JSwitch: {
30
30
  width: number | string;
31
31
  disabled: boolean;
32
32
  loading: boolean;
33
- modelValue: boolean | string | number;
34
33
  readonly: boolean;
34
+ modelValue: boolean | string | number;
35
35
  validateEvent: boolean;
36
36
  autoFocus: boolean;
37
37
  inactiveValue: boolean | string | number;
@@ -51,8 +51,8 @@ declare const JSwitch: {
51
51
  width: number | string;
52
52
  disabled: boolean;
53
53
  loading: boolean;
54
- modelValue: boolean | string | number;
55
54
  readonly: boolean;
55
+ modelValue: boolean | string | number;
56
56
  validateEvent: boolean;
57
57
  autoFocus: boolean;
58
58
  inactiveValue: boolean | string | number;
@@ -66,8 +66,8 @@ declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}
66
66
  width: number | string;
67
67
  disabled: boolean;
68
68
  loading: boolean;
69
- modelValue: boolean | string | number;
70
69
  readonly: boolean;
70
+ modelValue: boolean | string | number;
71
71
  validateEvent: boolean;
72
72
  autoFocus: boolean;
73
73
  inactiveValue: boolean | string | number;
@@ -21,10 +21,10 @@ declare const JTime: {
21
21
  size: "large" | "default" | "small";
22
22
  id: string | string[];
23
23
  disabled: boolean;
24
+ readonly: boolean;
24
25
  placeholder: string;
25
26
  modelValue: string | number | Date | Array<string | number | Date>;
26
27
  clearable: boolean;
27
- readonly: boolean;
28
28
  startPlaceholder: string;
29
29
  endPlaceholder: string;
30
30
  format: string;
@@ -55,10 +55,10 @@ declare const JTime: {
55
55
  size: "large" | "default" | "small";
56
56
  id: string | string[];
57
57
  disabled: boolean;
58
+ readonly: boolean;
58
59
  placeholder: string;
59
60
  modelValue: string | number | Date | Array<string | number | Date>;
60
61
  clearable: boolean;
61
- readonly: boolean;
62
62
  startPlaceholder: string;
63
63
  endPlaceholder: string;
64
64
  format: string;
@@ -91,10 +91,10 @@ declare const JTime: {
91
91
  size: "large" | "default" | "small";
92
92
  id: string | string[];
93
93
  disabled: boolean;
94
+ readonly: boolean;
94
95
  placeholder: string;
95
96
  modelValue: string | number | Date | Array<string | number | Date>;
96
97
  clearable: boolean;
97
- readonly: boolean;
98
98
  startPlaceholder: string;
99
99
  endPlaceholder: string;
100
100
  format: string;
@@ -52,10 +52,10 @@ declare const _default: import('vue').DefineComponent<TimeProps, {
52
52
  size: "large" | "default" | "small";
53
53
  id: string | string[];
54
54
  disabled: boolean;
55
+ readonly: boolean;
55
56
  placeholder: string;
56
57
  modelValue: string | number | Date | Array<string | number | Date>;
57
58
  clearable: boolean;
58
- readonly: boolean;
59
59
  startPlaceholder: string;
60
60
  endPlaceholder: string;
61
61
  format: string;
@@ -12,9 +12,9 @@ declare const JTreeSelect: {
12
12
  dataType: string;
13
13
  valueKey: string;
14
14
  labelKey: string;
15
+ readonly: boolean;
15
16
  placeholder: string;
16
17
  clearable: boolean;
17
- readonly: boolean;
18
18
  checkStrictly: boolean;
19
19
  lazy: boolean;
20
20
  dataCode: string;
@@ -38,9 +38,9 @@ declare const JTreeSelect: {
38
38
  dataType: string;
39
39
  valueKey: string;
40
40
  labelKey: string;
41
+ readonly: boolean;
41
42
  placeholder: string;
42
43
  clearable: boolean;
43
- readonly: boolean;
44
44
  checkStrictly: boolean;
45
45
  lazy: boolean;
46
46
  dataCode: string;
@@ -64,9 +64,9 @@ declare const JTreeSelect: {
64
64
  dataType: string;
65
65
  valueKey: string;
66
66
  labelKey: string;
67
+ readonly: boolean;
67
68
  placeholder: string;
68
69
  clearable: boolean;
69
- readonly: boolean;
70
70
  checkStrictly: boolean;
71
71
  lazy: boolean;
72
72
  dataCode: string;
@@ -49,9 +49,9 @@ declare const _default: import('vue').DefineComponent<TreeSelectProps, {}, {}, {
49
49
  dataType: string;
50
50
  valueKey: string;
51
51
  labelKey: string;
52
+ readonly: boolean;
52
53
  placeholder: string;
53
54
  clearable: boolean;
54
- readonly: boolean;
55
55
  checkStrictly: boolean;
56
56
  lazy: boolean;
57
57
  dataCode: string;
@@ -109,6 +109,7 @@ declare const JUpload: {
109
109
  notUploadChange: (...args: any[]) => void;
110
110
  }, import('vue').PublicProps, {
111
111
  btnText: string;
112
+ readonly: boolean;
112
113
  uploadCallback: Function;
113
114
  upload: Function;
114
115
  placeholder: string;
@@ -118,7 +119,6 @@ declare const JUpload: {
118
119
  accept: string;
119
120
  limit: number;
120
121
  modelValue: string;
121
- readonly: boolean;
122
122
  multiple: boolean;
123
123
  drag: boolean;
124
124
  isUploadImg: boolean;
@@ -241,6 +241,7 @@ declare const JUpload: {
241
241
  onNotUploadChange?: ((...args: any[]) => any) | undefined;
242
242
  }>, {}, {}, {}, {}, {
243
243
  btnText: string;
244
+ readonly: boolean;
244
245
  uploadCallback: Function;
245
246
  upload: Function;
246
247
  placeholder: string;
@@ -250,7 +251,6 @@ declare const JUpload: {
250
251
  accept: string;
251
252
  limit: number;
252
253
  modelValue: string;
253
- readonly: boolean;
254
254
  multiple: boolean;
255
255
  drag: boolean;
256
256
  isUploadImg: boolean;
@@ -377,6 +377,7 @@ declare const JUpload: {
377
377
  notUploadChange: (...args: any[]) => void;
378
378
  }, string, {
379
379
  btnText: string;
380
+ readonly: boolean;
380
381
  uploadCallback: Function;
381
382
  upload: Function;
382
383
  placeholder: string;
@@ -386,7 +387,6 @@ declare const JUpload: {
386
387
  accept: string;
387
388
  limit: number;
388
389
  modelValue: string;
389
- readonly: boolean;
390
390
  multiple: boolean;
391
391
  drag: boolean;
392
392
  isUploadImg: boolean;
@@ -79,8 +79,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
79
79
  };
80
80
  }>> & Readonly<{}>, {
81
81
  list: Record<string, any>[];
82
- showFileList: boolean;
83
82
  readonly: boolean;
83
+ showFileList: boolean;
84
84
  drag: boolean;
85
85
  isUploadImg: boolean;
86
86
  isShowSuccessIcon: boolean;
@@ -339,6 +339,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
339
339
  onNotUploadChange?: ((...args: any[]) => any) | undefined;
340
340
  }>, {
341
341
  btnText: string;
342
+ readonly: boolean;
342
343
  uploadCallback: Function;
343
344
  upload: Function;
344
345
  placeholder: string;
@@ -348,7 +349,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
348
349
  accept: string;
349
350
  limit: number;
350
351
  modelValue: string;
351
- readonly: boolean;
352
352
  multiple: boolean;
353
353
  drag: boolean;
354
354
  isUploadImg: boolean;
@@ -1817,7 +1817,8 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
1817
1817
  type: String,
1818
1818
  default: "default"
1819
1819
  },
1820
- isLink: Boolean
1820
+ isLink: Boolean,
1821
+ readonly: Boolean
1821
1822
  },
1822
1823
  setup(e) {
1823
1824
  const t = e, n = P(() => {
@@ -1882,6 +1883,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
1882
1883
  accept: h.config?.uploadAccept,
1883
1884
  "upload-callback": h.config?.uploadCallback,
1884
1885
  limit: 1e5,
1886
+ readonly: h.config?.disabled || e.readonly,
1885
1887
  onSuccess: h.config?.uploadSuccess
1886
1888
  }, null, 8, [
1887
1889
  "placeholder",
@@ -1889,11 +1891,13 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
1889
1891
  "btn-size",
1890
1892
  "accept",
1891
1893
  "upload-callback",
1894
+ "readonly",
1892
1895
  "onSuccess"
1893
1896
  ])) : (k(), N(l, et({
1894
1897
  key: 2,
1895
1898
  ref_for: !0
1896
1899
  }, h.config, {
1900
+ disabled: h.config?.disabled || e.readonly,
1897
1901
  label: h.label,
1898
1902
  size: e.size,
1899
1903
  type: e.isLink ? "link" : h.config?.type,
@@ -1902,6 +1906,7 @@ var Yh = Te(Xc), Jh = /* @__PURE__ */ xe({
1902
1906
  "first-compact-item": p === 0,
1903
1907
  onClick: Qt((g) => o(h), ["stop"])
1904
1908
  }), null, 16, [
1909
+ "disabled",
1905
1910
  "label",
1906
1911
  "size",
1907
1912
  "type",