@fangzhongya/fang-ui 0.0.62 → 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.
- package/dist/components/array/src/data.cjs +32 -0
- package/dist/components/array/src/data.d.ts +32 -0
- package/dist/components/array/src/data.js +32 -0
- package/dist/components/common/list.cjs +4 -1
- package/dist/components/common/list.d.ts +5 -1
- package/dist/components/common/list.js +4 -1
- package/dist/components/dates-divide/src/data.cjs +6 -0
- package/dist/components/dates-divide/src/data.d.ts +8 -4
- package/dist/components/dates-divide/src/data.js +6 -0
- package/dist/components/dates-divide/src/index2.cjs +17 -9
- package/dist/components/dates-divide/src/index2.js +17 -9
- package/dist/components/dates2/index.cjs +9 -0
- package/dist/components/{popconfirm → dates2}/index.css +10 -0
- package/dist/components/dates2/index.d.ts +4 -0
- package/dist/components/dates2/index.js +9 -0
- package/dist/components/dates2/index.scss +14 -0
- package/dist/components/dates2/src/data.cjs +43 -0
- package/dist/components/dates2/src/data.d.ts +121 -0
- package/dist/components/dates2/src/data.js +43 -0
- package/dist/components/dates2/src/index.cjs +4 -0
- package/dist/components/dates2/src/index.js +4 -0
- package/dist/components/dates2/src/index2.cjs +100 -0
- package/dist/components/dates2/src/index2.js +100 -0
- package/dist/components/dates2/src/util.cjs +195 -0
- package/dist/components/dates2/src/util.d.ts +14 -0
- package/dist/components/dates2/src/util.js +195 -0
- package/dist/components/dates2/style/index2.scss +3 -0
- package/dist/components/global-config/index.css +0 -4
- package/dist/components/global-config/index.scss +2 -7
- package/dist/components/global-config/src/data.cjs +1 -1
- package/dist/components/global-config/src/data.d.ts +1 -1
- package/dist/components/global-config/src/data.js +1 -1
- package/dist/components/index.cjs +50 -48
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.scss +2 -1
- package/dist/components/index2.scss +2 -1
- package/dist/components/list/src/data.cjs +1 -1
- package/dist/components/list/src/data.d.ts +1 -1
- package/dist/components/list/src/data.js +1 -1
- package/dist/components/lists/src/data.cjs +9 -1
- package/dist/components/lists/src/data.d.ts +9 -0
- package/dist/components/lists/src/data.js +9 -1
- package/dist/components/loading/src/index.d.ts +1 -1
- package/dist/components/switchs/src/data.d.ts +4 -0
- package/dist/components/switchs/src/index2.cjs +1 -0
- package/dist/components/switchs/src/index2.js +1 -0
- package/dist/components/tables/src/data.cjs +3 -0
- package/dist/components/tables/src/data.d.ts +3 -0
- package/dist/components/tables/src/data.js +3 -0
- package/dist/css/{popconfirm.css → dates2.css} +10 -0
- package/dist/css/global-config.css +0 -4
- package/dist/css/index.css +10 -26
- package/dist/expand/{chunk-3HYUAX6P.js → chunk-BDTC57P3.js} +2 -0
- package/dist/expand/{chunk-IPHLXLMM.cjs → chunk-JHLD73ZJ.cjs} +2 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/icons/index.css +31 -31
- package/dist/icons/index.json +12 -12
- package/dist/index.cjs +68 -66
- package/dist/index.css +10 -26
- package/dist/index.js +2 -0
- package/package.json +13 -13
- /package/dist/components/{forms-items → forms-item}/index.css +0 -0
- /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
|
+
};
|
|
@@ -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
|
-
|
|
9
|
-
|
|
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: {
|
|
@@ -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("./
|
|
96
|
-
const index$1t = require("./edit/index.cjs");
|
|
97
|
-
const index$1u = require("./
|
|
98
|
-
const index$1v = require("./
|
|
99
|
-
const index$1w = require("./
|
|
100
|
-
const index$1x = require("./input-
|
|
101
|
-
const index$1y = require("./input-
|
|
102
|
-
const index$1z = require("./input-
|
|
103
|
-
const index$1A = require("./
|
|
104
|
-
const index$1B = require("./
|
|
105
|
-
const index$1C = require("./
|
|
106
|
-
const index$1D = require("./
|
|
107
|
-
const index$1E = require("./
|
|
108
|
-
const index$1F = require("./
|
|
109
|
-
const index$1G = require("./
|
|
110
|
-
const index$1H = require("./
|
|
111
|
-
const index$1I = require("./
|
|
112
|
-
const index$1J = require("./
|
|
113
|
-
const index$1K = require("./
|
|
114
|
-
const index$1L = require("./
|
|
115
|
-
const index$1M = require("./
|
|
116
|
-
const index$1N = require("./
|
|
117
|
-
const index$1O = require("./
|
|
118
|
-
const index$1P = require("./
|
|
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.
|
|
212
|
-
exports.
|
|
213
|
-
exports.
|
|
214
|
-
exports.
|
|
215
|
-
exports.
|
|
216
|
-
exports.
|
|
217
|
-
exports.
|
|
218
|
-
exports.
|
|
219
|
-
exports.
|
|
220
|
-
exports.
|
|
221
|
-
exports.
|
|
222
|
-
exports.
|
|
223
|
-
exports.
|
|
224
|
-
exports.
|
|
225
|
-
exports.
|
|
226
|
-
exports.
|
|
227
|
-
exports.
|
|
228
|
-
exports.
|
|
229
|
-
exports.
|
|
230
|
-
exports.
|
|
231
|
-
exports.
|
|
232
|
-
exports.
|
|
233
|
-
exports.
|
|
234
|
-
exports.
|
|
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';
|
package/dist/components/index.js
CHANGED
|
@@ -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 *;
|
|
@@ -94,4 +95,4 @@
|
|
|
94
95
|
@use './tables/index.scss' as *;
|
|
95
96
|
@use './tablesp/index.scss' as *;
|
|
96
97
|
@use './tabless/index.scss' as *;
|
|
97
|
-
@use './
|
|
98
|
+
@use './tablesv/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 *;
|
|
@@ -94,4 +95,4 @@
|
|
|
94
95
|
@use './tables/style/index2.scss' as *;
|
|
95
96
|
@use './tablesp/style/index2.scss' as *;
|
|
96
97
|
@use './tabless/style/index2.scss' as *;
|
|
97
|
-
@use './
|
|
98
|
+
@use './tablesv/style/index2.scss' as *;
|
|
@@ -19,7 +19,7 @@ export declare const dataProps: {
|
|
|
19
19
|
default(): {};
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* @props {
|
|
22
|
+
* @props { String } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
|
|
23
23
|
* 标签位置
|
|
24
24
|
*/
|
|
25
25
|
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;
|