@fangzhongya/fang-ui 0.0.61 → 0.0.63

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 (87) hide show
  1. package/dist/components/array/src/data.cjs +32 -0
  2. package/dist/components/array/src/data.d.ts +32 -0
  3. package/dist/components/array/src/data.js +32 -0
  4. package/dist/components/box-title/src/index2.cjs +10 -11
  5. package/dist/components/box-title/src/index2.js +11 -12
  6. package/dist/components/common/list.cjs +4 -1
  7. package/dist/components/common/list.d.ts +5 -1
  8. package/dist/components/common/list.js +4 -1
  9. package/dist/components/dates-divide/src/data.cjs +6 -0
  10. package/dist/components/dates-divide/src/data.d.ts +8 -4
  11. package/dist/components/dates-divide/src/data.js +6 -0
  12. package/dist/components/dates-divide/src/index2.cjs +17 -9
  13. package/dist/components/dates-divide/src/index2.js +17 -9
  14. package/dist/components/dates2/index.cjs +9 -0
  15. package/dist/components/{transfer → dates2}/index.css +10 -0
  16. package/dist/components/dates2/index.d.ts +4 -0
  17. package/dist/components/dates2/index.js +9 -0
  18. package/dist/components/dates2/index.scss +14 -0
  19. package/dist/components/dates2/src/data.cjs +43 -0
  20. package/dist/components/dates2/src/data.d.ts +121 -0
  21. package/dist/components/dates2/src/data.js +43 -0
  22. package/dist/components/dates2/src/index.cjs +4 -0
  23. package/dist/components/dates2/src/index.js +4 -0
  24. package/dist/components/dates2/src/index2.cjs +100 -0
  25. package/dist/components/dates2/src/index2.js +100 -0
  26. package/dist/components/dates2/src/util.cjs +195 -0
  27. package/dist/components/dates2/src/util.d.ts +14 -0
  28. package/dist/components/dates2/src/util.js +195 -0
  29. package/dist/components/dates2/style/index2.scss +3 -0
  30. package/dist/components/global-config/index.css +0 -4
  31. package/dist/components/global-config/index.scss +2 -7
  32. package/dist/components/global-config/src/data.cjs +1 -1
  33. package/dist/components/global-config/src/data.d.ts +1 -1
  34. package/dist/components/global-config/src/data.js +1 -1
  35. package/dist/components/index.cjs +50 -48
  36. package/dist/components/index.d.ts +1 -0
  37. package/dist/components/index.js +2 -0
  38. package/dist/components/index.scss +1 -0
  39. package/dist/components/index2.scss +1 -0
  40. package/dist/components/list/src/data.cjs +1 -1
  41. package/dist/components/list/src/data.d.ts +1 -1
  42. package/dist/components/list/src/data.js +1 -1
  43. package/dist/components/lists/src/data.cjs +9 -1
  44. package/dist/components/lists/src/data.d.ts +9 -0
  45. package/dist/components/lists/src/data.js +9 -1
  46. package/dist/components/loading/src/index.d.ts +1 -1
  47. package/dist/components/switchs/src/data.d.ts +4 -0
  48. package/dist/components/switchs/src/index2.cjs +1 -0
  49. package/dist/components/switchs/src/index2.js +1 -0
  50. package/dist/components/tables/common/pagin.cjs +2 -0
  51. package/dist/components/tables/common/pagin.d.ts +2 -0
  52. package/dist/components/tables/common/pagin.js +2 -0
  53. package/dist/components/tables/src/data.cjs +3 -0
  54. package/dist/components/tables/src/data.d.ts +3 -0
  55. package/dist/components/tables/src/data.js +3 -0
  56. package/dist/components/window/index.css +1 -0
  57. package/dist/components/window/index.scss +1 -5
  58. package/dist/components/window/src/index2.cjs +2 -2
  59. package/dist/components/window/src/index2.js +2 -2
  60. package/dist/css/{transfer.css → dates2.css} +10 -0
  61. package/dist/css/global-config.css +0 -4
  62. package/dist/css/index.css +11 -4
  63. package/dist/css/window.css +1 -0
  64. package/dist/expand/{chunk-3HYUAX6P.js → chunk-BDTC57P3.js} +2 -0
  65. package/dist/expand/{chunk-IPHLXLMM.cjs → chunk-JHLD73ZJ.cjs} +2 -0
  66. package/dist/expand/components.cjs +5 -5
  67. package/dist/expand/components.js +1 -1
  68. package/dist/expand/config.cjs +2 -2
  69. package/dist/expand/config.js +1 -1
  70. package/dist/icons/index.css +27 -33
  71. package/dist/icons/index.json +9 -9
  72. package/dist/icons/vue/frame.cjs +2 -6
  73. package/dist/icons/vue/frame.js +2 -6
  74. package/dist/icons/vue/star.cjs +7 -4
  75. package/dist/icons/vue/star.js +7 -4
  76. package/dist/index.cjs +68 -66
  77. package/dist/index.css +11 -4
  78. package/dist/index.js +2 -0
  79. package/dist/locale/en.cjs +4 -0
  80. package/dist/locale/en.d.ts +4 -0
  81. package/dist/locale/en.js +4 -0
  82. package/dist/locale/zh-cn.cjs +4 -0
  83. package/dist/locale/zh-cn.d.ts +4 -0
  84. package/dist/locale/zh-cn.js +4 -0
  85. package/package.json +12 -12
  86. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
  87. /package/dist/css/{forms-items.css → forms-item.css} +0 -0
@@ -0,0 +1,195 @@
1
+ import { format } from "@fangzhongya/utils/date/format";
2
+ const typeMap = {
3
+ //年
4
+ year: {
5
+ type: "year",
6
+ format: "YYYY",
7
+ repair: 5,
8
+ double: "yearrange",
9
+ multiple: "years"
10
+ },
11
+ //月
12
+ month: {
13
+ type: "month",
14
+ format: "YYYY-MM",
15
+ repair: 4,
16
+ double: "monthrange",
17
+ multiple: "months"
18
+ },
19
+ //日
20
+ day: {
21
+ type: "date",
22
+ format: "YYYY-MM-DD",
23
+ repair: 3,
24
+ double: "daterange",
25
+ multiple: "dates"
26
+ },
27
+ date: {
28
+ type: "date",
29
+ format: "YYYY-MM-DD",
30
+ repair: 3,
31
+ double: "daterange",
32
+ multiple: "dates"
33
+ },
34
+ //秒
35
+ second: {
36
+ type: "datetime",
37
+ format: "YYYY-MM-DD HH:mm:ss",
38
+ repair: 0,
39
+ double: "datetimerange"
40
+ },
41
+ datetime: {
42
+ type: "datetime",
43
+ format: "YYYY-MM-DD HH:mm:ss",
44
+ repair: 0,
45
+ double: "datetimerange"
46
+ },
47
+ //时
48
+ hour: {
49
+ type: "datetime",
50
+ format: "YYYY-MM-DD HH",
51
+ repair: 2,
52
+ double: "datetimerange"
53
+ },
54
+ //分
55
+ minute: {
56
+ type: "datetime",
57
+ format: "YYYY-MM-DD HH:mm",
58
+ repair: 1,
59
+ double: "datetimerange"
60
+ }
61
+ };
62
+ function getType(type) {
63
+ return typeMap[type];
64
+ }
65
+ function getLastDayOfMonth(now) {
66
+ const nextMonth = new Date(now.getFullYear(), now.getMonth() + 1, 1);
67
+ const lastDayOfMonth = new Date(nextMonth.getTime() - 1);
68
+ return lastDayOfMonth;
69
+ }
70
+ function getRepairEnd(v, type) {
71
+ if (v) {
72
+ let format$1 = "YYYY-MM-DD HH:mm:ss";
73
+ let d = getDate(v);
74
+ switch (type) {
75
+ case 1: {
76
+ format$1 = "YYYY-MM-DD HH:mm:59";
77
+ break;
78
+ }
79
+ case 2: {
80
+ format$1 = "YYYY-MM-DD HH:59:59";
81
+ break;
82
+ }
83
+ case 3: {
84
+ format$1 = "YYYY-MM-DD 23:59:59";
85
+ break;
86
+ }
87
+ case 4: {
88
+ d = getLastDayOfMonth(d);
89
+ format$1 = "YYYY-MM-DD 23:59:59";
90
+ break;
91
+ }
92
+ case 5: {
93
+ format$1 = "YYYY-12-31 23:59:59";
94
+ break;
95
+ }
96
+ default: {
97
+ format$1 = "YYYY-MM-DD HH:mm:ss";
98
+ break;
99
+ }
100
+ }
101
+ return format(d, format$1);
102
+ } else {
103
+ return "";
104
+ }
105
+ }
106
+ function getRepairStart(v, type) {
107
+ if (v) {
108
+ let format$1 = "YYYY-MM-DD HH:mm:ss";
109
+ switch (type) {
110
+ case 1: {
111
+ format$1 = "YYYY-MM-DD HH:mm:00";
112
+ break;
113
+ }
114
+ case 2: {
115
+ format$1 = "YYYY-MM-DD HH:00:00";
116
+ break;
117
+ }
118
+ case 3: {
119
+ format$1 = "YYYY-MM-DD 00:00:00";
120
+ break;
121
+ }
122
+ case 4: {
123
+ format$1 = "YYYY-MM-01 00:00:00";
124
+ break;
125
+ }
126
+ case 5: {
127
+ format$1 = "YYYY-01-01 00:00:00";
128
+ break;
129
+ }
130
+ }
131
+ return format(getDate(v), format$1);
132
+ } else {
133
+ return "";
134
+ }
135
+ }
136
+ function parseDateString(dateStr) {
137
+ if (!dateStr || typeof dateStr !== "string") {
138
+ return /* @__PURE__ */ new Date(NaN);
139
+ }
140
+ const trimmed = dateStr.trim();
141
+ const [datePart, timePart = ""] = trimmed.split(" ");
142
+ const dateParts = datePart.split(/[-|\/]/).map(Number);
143
+ const year = dateParts[0];
144
+ const month = (dateParts[1] || 1) - 1;
145
+ const day = dateParts[2] || 1;
146
+ const timeParts = timePart.split(":").map(Number);
147
+ const hours = timeParts[0] || 0;
148
+ const minutes = timeParts[1] || 0;
149
+ const seconds = timeParts[2] || 0;
150
+ return new Date(year, month, day, hours, minutes, seconds);
151
+ }
152
+ function getDate(d) {
153
+ if (typeof d === "object") {
154
+ return d;
155
+ } else {
156
+ if (typeof d === "string") {
157
+ return parseDateString(d);
158
+ }
159
+ return new Date(d);
160
+ }
161
+ }
162
+ function formatType(v, format$1 = "YYYY-MM-DD", type, is) {
163
+ if (is) {
164
+ if (v instanceof Array) {
165
+ for (let index = 0; index < v.length; index++) {
166
+ const element = v[index];
167
+ if (index == 0) {
168
+ v[index] = getRepairStart(element, type.repair);
169
+ } else if (index == v.length - 1) {
170
+ v[index] = getRepairEnd(element, type.repair);
171
+ } else {
172
+ v[index] = element ? format(getDate(element), format$1) : "";
173
+ }
174
+ }
175
+ return v;
176
+ } else {
177
+ return getRepairStart(v, type.repair);
178
+ }
179
+ } else {
180
+ if (v instanceof Array) {
181
+ for (let index = 0; index < v.length; index++) {
182
+ const element = v[index];
183
+ v[index] = element ? format(getDate(element), format$1) : "";
184
+ }
185
+ return v;
186
+ } else {
187
+ return v ? format(getDate(v), format$1) : "";
188
+ }
189
+ }
190
+ }
191
+ export {
192
+ formatType,
193
+ getDate,
194
+ getType
195
+ };
@@ -0,0 +1,3 @@
1
+ @use 'element-plus/theme-chalk/src/date-picker.scss' as *;
2
+
3
+ @use '../index.scss' as *;
@@ -10,8 +10,4 @@
10
10
  --layout-panel-gap
11
11
  );
12
12
  --g-main-bg: var(--bg-color-page);
13
- }
14
-
15
- .elglobal-config {
16
- left: 0;
17
13
  }
@@ -1,10 +1,5 @@
1
- // @use '../common.scss' as *;
2
-
3
- // @use 'drawer/src/index.scss' as *;
4
-
5
1
  @use '../scss/common.scss' as *;
6
- @use '../drawer/index.scss' as *;
7
2
 
8
- .#{$namespace}global-config {
9
- left: 0;
3
+ $global-config: 'global-config';
4
+ @include b($global-config) {
10
5
  }
@@ -5,7 +5,7 @@ require("../../../utils/vues/definePropType.cjs");
5
5
  const enums = require("../../../utils/enums.cjs");
6
6
  const dataProps = buildProps.buildProps({
7
7
  /**
8
- * @props { Object<Locale>, String } locale
8
+ * @props { Object<Locale>, String } locale='zh-cn'
9
9
  * @description 国际化对象
10
10
  */
11
11
  locale: {
@@ -6,7 +6,7 @@ import { DefaultConfig } from '../../../utils/enums';
6
6
  */
7
7
  export declare const dataProps: {
8
8
  /**
9
- * @props { Object<Locale>, String } locale
9
+ * @props { Object<Locale>, String } locale='zh-cn'
10
10
  * @description 国际化对象
11
11
  */
12
12
  locale: {
@@ -3,7 +3,7 @@ import "../../../utils/vues/definePropType.js";
3
3
  import { DefaultConfig } from "../../../utils/enums.js";
4
4
  const dataProps = buildProps({
5
5
  /**
6
- * @props { Object<Locale>, String } locale
6
+ * @props { Object<Locale>, String } locale='zh-cn'
7
7
  * @description 国际化对象
8
8
  */
9
9
  locale: {
@@ -92,30 +92,31 @@ const index$1o = require("./checks/index.cjs");
92
92
  const index$1p = require("./dates-divide/index.cjs");
93
93
  const index$1q = require("./dates-picker/index.cjs");
94
94
  const index$1r = require("./dates/index.cjs");
95
- const index$1s = require("./edit-float/index.cjs");
96
- const index$1t = require("./edit/index.cjs");
97
- const index$1u = require("./history/index.cjs");
98
- const index$1v = require("./images/index.cjs");
99
- const index$1w = require("./input-array/index.cjs");
100
- const index$1x = require("./input-history/index.cjs");
101
- const index$1y = require("./input-num/index.cjs");
102
- const index$1z = require("./input-select/index.cjs");
103
- const index$1A = require("./inputs/index.cjs");
104
- const index$1B = require("./labels/index.cjs");
105
- const index$1C = require("./select-scroll/index.cjs");
106
- const index$1D = require("./selector/index.cjs");
107
- const index$1E = require("./selects/index.cjs");
108
- const index$1F = require("./switchs/index.cjs");
109
- const index$1G = require("./text/index.cjs");
110
- const index$1H = require("./list/index.cjs");
111
- const index$1I = require("./lists/index.cjs");
112
- const index$1J = require("./listsp/index.cjs");
113
- const index$1K = require("./paging/index.cjs");
114
- const index$1L = require("./tables/index.cjs");
115
- const index$1M = require("./tablesp/index.cjs");
116
- const index$1N = require("./tabless/index.cjs");
117
- const index$1O = require("./tablesv/index.cjs");
118
- const index$1P = require("./tablesvp/index.cjs");
95
+ const index$1s = require("./dates2/index.cjs");
96
+ const index$1t = require("./edit-float/index.cjs");
97
+ const index$1u = require("./edit/index.cjs");
98
+ const index$1v = require("./history/index.cjs");
99
+ const index$1w = require("./images/index.cjs");
100
+ const index$1x = require("./input-array/index.cjs");
101
+ const index$1y = require("./input-history/index.cjs");
102
+ const index$1z = require("./input-num/index.cjs");
103
+ const index$1A = require("./input-select/index.cjs");
104
+ const index$1B = require("./inputs/index.cjs");
105
+ const index$1C = require("./labels/index.cjs");
106
+ const index$1D = require("./select-scroll/index.cjs");
107
+ const index$1E = require("./selector/index.cjs");
108
+ const index$1F = require("./selects/index.cjs");
109
+ const index$1G = require("./switchs/index.cjs");
110
+ const index$1H = require("./text/index.cjs");
111
+ const index$1I = require("./list/index.cjs");
112
+ const index$1J = require("./lists/index.cjs");
113
+ const index$1K = require("./listsp/index.cjs");
114
+ const index$1L = require("./paging/index.cjs");
115
+ const index$1M = require("./tables/index.cjs");
116
+ const index$1N = require("./tablesp/index.cjs");
117
+ const index$1O = require("./tabless/index.cjs");
118
+ const index$1P = require("./tablesv/index.cjs");
119
+ const index$1Q = require("./tablesvp/index.cjs");
119
120
  const index$b = require("./loading/src/index.cjs");
120
121
  exports.Button = index.Button;
121
122
  exports.Card = index$1.Card;
@@ -208,28 +209,29 @@ exports.Checks = index$1o.Checks;
208
209
  exports.DatesDivide = index$1p.DatesDivide;
209
210
  exports.DatesPicker = index$1q.DatesPicker;
210
211
  exports.Dates = index$1r.Dates;
211
- exports.EditFloat = index$1s.EditFloat;
212
- exports.Edit = index$1t.Edit;
213
- exports.History = index$1u.History;
214
- exports.Images = index$1v.Images;
215
- exports.InputArray = index$1w.InputArray;
216
- exports.InputHistory = index$1x.InputHistory;
217
- exports.InputNum = index$1y.InputNum;
218
- exports.InputSelect = index$1z.InputSelect;
219
- exports.Inputs = index$1A.Inputs;
220
- exports.Labels = index$1B.Labels;
221
- exports.SelectScroll = index$1C.SelectScroll;
222
- exports.Selector = index$1D.Selector;
223
- exports.Selects = index$1E.Selects;
224
- exports.Switchs = index$1F.Switchs;
225
- exports.Text = index$1G.Text;
226
- exports.List = index$1H.List;
227
- exports.Lists = index$1I.Lists;
228
- exports.Listsp = index$1J.Listsp;
229
- exports.Paging = index$1K.Paging;
230
- exports.Tables = index$1L.Tables;
231
- exports.Tablesp = index$1M.Tablesp;
232
- exports.Tabless = index$1N.Tabless;
233
- exports.Tablesv = index$1O.Tablesv;
234
- exports.Tablesvp = index$1P.Tablesvp;
212
+ exports.Dates2 = index$1s.Dates2;
213
+ exports.EditFloat = index$1t.EditFloat;
214
+ exports.Edit = index$1u.Edit;
215
+ exports.History = index$1v.History;
216
+ exports.Images = index$1w.Images;
217
+ exports.InputArray = index$1x.InputArray;
218
+ exports.InputHistory = index$1y.InputHistory;
219
+ exports.InputNum = index$1z.InputNum;
220
+ exports.InputSelect = index$1A.InputSelect;
221
+ exports.Inputs = index$1B.Inputs;
222
+ exports.Labels = index$1C.Labels;
223
+ exports.SelectScroll = index$1D.SelectScroll;
224
+ exports.Selector = index$1E.Selector;
225
+ exports.Selects = index$1F.Selects;
226
+ exports.Switchs = index$1G.Switchs;
227
+ exports.Text = index$1H.Text;
228
+ exports.List = index$1I.List;
229
+ exports.Lists = index$1J.Lists;
230
+ exports.Listsp = index$1K.Listsp;
231
+ exports.Paging = index$1L.Paging;
232
+ exports.Tables = index$1M.Tables;
233
+ exports.Tablesp = index$1N.Tablesp;
234
+ exports.Tabless = index$1O.Tabless;
235
+ exports.Tablesv = index$1P.Tablesv;
236
+ exports.Tablesvp = index$1Q.Tablesvp;
235
237
  exports.vLoading = index$b.vLoading;
@@ -89,6 +89,7 @@ export * from './checks/index';
89
89
  export * from './dates-divide/index';
90
90
  export * from './dates-picker/index';
91
91
  export * from './dates/index';
92
+ export * from './dates2/index';
92
93
  export * from './edit-float/index';
93
94
  export * from './edit/index';
94
95
  export * from './history/index';
@@ -90,6 +90,7 @@ import { Checks } from "./checks/index.js";
90
90
  import { DatesDivide } from "./dates-divide/index.js";
91
91
  import { DatesPicker } from "./dates-picker/index.js";
92
92
  import { Dates } from "./dates/index.js";
93
+ import { Dates2 } from "./dates2/index.js";
93
94
  import { EditFloat } from "./edit-float/index.js";
94
95
  import { Edit } from "./edit/index.js";
95
96
  import { History } from "./history/index.js";
@@ -142,6 +143,7 @@ export {
142
143
  ConfigProvider,
143
144
  DatePicker,
144
145
  Dates,
146
+ Dates2,
145
147
  DatesDivide,
146
148
  DatesPicker,
147
149
  DepartmentSelect,
@@ -72,6 +72,7 @@
72
72
  @use './checks/index.scss' as *;
73
73
  @use './dates-divide/index.scss' as *;
74
74
  @use './dates/index.scss' as *;
75
+ @use './dates2/index.scss' as *;
75
76
  @use './edit-float/index.scss' as *;
76
77
  @use './edit/index.scss' as *;
77
78
  @use './history/index.scss' as *;
@@ -72,6 +72,7 @@
72
72
  @use './checks/style/index2.scss' as *;
73
73
  @use './dates-divide/style/index.scss' as *;
74
74
  @use './dates/style/index2.scss' as *;
75
+ @use './dates2/style/index2.scss' as *;
75
76
  @use './edit-float/style/index.scss' as *;
76
77
  @use './edit/style/index.scss' as *;
77
78
  @use './history/style/index.scss' as *;
@@ -22,7 +22,7 @@ const dataProps = {
22
22
  }
23
23
  },
24
24
  /**
25
- * @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
25
+ * @props { String } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
26
26
  * 标签位置
27
27
  */
28
28
  labelPosition: {
@@ -19,7 +19,7 @@ export declare const dataProps: {
19
19
  default(): {};
20
20
  };
21
21
  /**
22
- * @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
22
+ * @props { String } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
23
23
  * 标签位置
24
24
  */
25
25
  labelPosition: {
@@ -20,7 +20,7 @@ const dataProps = {
20
20
  }
21
21
  },
22
22
  /**
23
- * @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
23
+ * @props { String } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
24
24
  * 标签位置
25
25
  */
26
26
  labelPosition: {
@@ -10,6 +10,9 @@ const dataProps = {
10
10
  return {};
11
11
  }
12
12
  },
13
+ /**
14
+ * @props { String, Number } height='auto' 高度
15
+ */
13
16
  height: {
14
17
  type: [String, Number],
15
18
  default() {
@@ -17,13 +20,17 @@ const dataProps = {
17
20
  }
18
21
  },
19
22
  /**
23
+ * @props { Boolean } loading=false
20
24
  * 加载中
21
25
  */
22
26
  loading: {
23
27
  type: Boolean,
24
28
  default: false
25
29
  },
26
- // 高度自适应
30
+ /**
31
+ * @props { Boolean } adaptive
32
+ * 高度自适应
33
+ */
27
34
  adaptive: Boolean,
28
35
  /**
29
36
  * @props { Array<Object> } list table展示的列
@@ -56,6 +63,7 @@ const dataProps = {
56
63
  }
57
64
  },
58
65
  /**
66
+ * @props { String, Number } lineHeight
59
67
  * 行高度
60
68
  */
61
69
  lineHeight: {
@@ -14,17 +14,25 @@ export declare const dataProps: {
14
14
  type: () => DefaultSort;
15
15
  default(): {};
16
16
  };
17
+ /**
18
+ * @props { String, Number } height='auto' 高度
19
+ */
17
20
  height: {
18
21
  type: (StringConstructor | NumberConstructor)[];
19
22
  default(): string;
20
23
  };
21
24
  /**
25
+ * @props { Boolean } loading=false
22
26
  * 加载中
23
27
  */
24
28
  loading: {
25
29
  type: BooleanConstructor;
26
30
  default: boolean;
27
31
  };
32
+ /**
33
+ * @props { Boolean } adaptive
34
+ * 高度自适应
35
+ */
28
36
  adaptive: BooleanConstructor;
29
37
  /**
30
38
  * @props { Array<Object> } list table展示的列
@@ -83,6 +91,7 @@ export declare const dataProps: {
83
91
  default(): never[];
84
92
  };
85
93
  /**
94
+ * @props { String, Number } lineHeight
86
95
  * 行高度
87
96
  */
88
97
  lineHeight: {
@@ -8,6 +8,9 @@ const dataProps = {
8
8
  return {};
9
9
  }
10
10
  },
11
+ /**
12
+ * @props { String, Number } height='auto' 高度
13
+ */
11
14
  height: {
12
15
  type: [String, Number],
13
16
  default() {
@@ -15,13 +18,17 @@ const dataProps = {
15
18
  }
16
19
  },
17
20
  /**
21
+ * @props { Boolean } loading=false
18
22
  * 加载中
19
23
  */
20
24
  loading: {
21
25
  type: Boolean,
22
26
  default: false
23
27
  },
24
- // 高度自适应
28
+ /**
29
+ * @props { Boolean } adaptive
30
+ * 高度自适应
31
+ */
25
32
  adaptive: Boolean,
26
33
  /**
27
34
  * @props { Array<Object> } list table展示的列
@@ -54,6 +61,7 @@ const dataProps = {
54
61
  }
55
62
  },
56
63
  /**
64
+ * @props { String, Number } lineHeight
57
65
  * 行高度
58
66
  */
59
67
  lineHeight: {
@@ -7,7 +7,7 @@ import { AppContext } from 'vue';
7
7
  */
8
8
  export declare const vLoading: typeof ElLoadingDirective;
9
9
  export declare const Loading: {
10
- (options?: LoadingOptions): LoadingInstance;
10
+ (options?: LoadingOptions, context?: AppContext | null): LoadingInstance;
11
11
  _context: AppContext | null;
12
12
  };
13
13
  export default Loading;
@@ -1,4 +1,8 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
+ /**
3
+ * @title {h3} switchs 开关列表
4
+ * @text value: '' 在@change中会返回 true
5
+ */
2
6
  export declare const dataProps: {
3
7
  options: {
4
8
  type: {
@@ -45,6 +45,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
45
45
  for (let k in inactive.value) {
46
46
  obj["inactive-" + k] = inactive.value[k];
47
47
  }
48
+ console.log("obj", obj);
48
49
  return obj;
49
50
  });
50
51
  const value = vue.computed({
@@ -43,6 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  for (let k in inactive.value) {
44
44
  obj["inactive-" + k] = inactive.value[k];
45
45
  }
46
+ console.log("obj", obj);
46
47
  return obj;
47
48
  });
48
49
  const value = computed({
@@ -609,6 +609,8 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
609
609
  is: paginat.is && paginat.scroll,
610
610
  load: loading,
611
611
  end,
612
+ endText: getLocale("scroll.end"),
613
+ loadText: getLocale("scroll.load"),
612
614
  onChange: onScroll
613
615
  };
614
616
  });
@@ -258,6 +258,8 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
258
258
  is: boolean;
259
259
  load: Ref<boolean, boolean>;
260
260
  end: ComputedRef<boolean>;
261
+ endText: any;
262
+ loadText: any;
261
263
  onChange: () => void;
262
264
  }>;
263
265
  onSortChange: (obj: ObjAny) => void;
@@ -607,6 +607,8 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
607
607
  is: paginat.is && paginat.scroll,
608
608
  load: loading,
609
609
  end,
610
+ endText: getLocale("scroll.end"),
611
+ loadText: getLocale("scroll.load"),
610
612
  onChange: onScroll
611
613
  };
612
614
  });
@@ -10,6 +10,9 @@ const dataProps = {
10
10
  return {};
11
11
  }
12
12
  },
13
+ /**
14
+ * @props { String, Number } height='auto' 高度
15
+ */
13
16
  height: {
14
17
  type: [String, Number],
15
18
  default() {
@@ -17,6 +17,9 @@ export declare const dataProps: {
17
17
  type: () => DefaultSort;
18
18
  default(): {};
19
19
  };
20
+ /**
21
+ * @props { String, Number } height='auto' 高度
22
+ */
20
23
  height: {
21
24
  type: (StringConstructor | NumberConstructor)[];
22
25
  default(): string;
@@ -8,6 +8,9 @@ const dataProps = {
8
8
  return {};
9
9
  }
10
10
  },
11
+ /**
12
+ * @props { String, Number } height='auto' 高度
13
+ */
11
14
  height: {
12
15
  type: [String, Number],
13
16
  default() {
@@ -73,6 +73,7 @@
73
73
  display: inline-flex;
74
74
  align-items: center;
75
75
  margin: 0 4px;
76
+ height: 100%;
76
77
  cursor: pointer;
77
78
  }
78
79
  .window-body-div {