persagy-vant 0.0.25 → 0.0.26
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/es/background/index.css +1 -1
- package/es/background/index.less +10 -0
- package/es/background/types.d.ts +1 -1
- package/es/empty/Empty.mjs +6 -274
- package/es/empty/assets/default.png +0 -0
- package/es/empty/assets/network.png +0 -0
- package/es/empty/index.css +1 -1
- package/es/empty/index.less +19 -1
- package/es/empty/var.less +6 -5
- package/es/field/index.css +1 -1
- package/es/field/var.less +1 -1
- package/es/floor-select/FloorSelect.mjs +3 -0
- package/es/floor-select/index.css +1 -1
- package/es/floor-select/index.less +4 -3
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/radio-panel/RadioPanel.mjs +25 -13
- package/es/sidebar-item/SidebarItem.mjs +1 -2
- package/es/work-order-card/WorkOrderCard.d.ts +145 -0
- package/es/work-order-card/WorkOrderCard.mjs +121 -0
- package/es/work-order-card/index.css +1 -0
- package/es/work-order-card/index.d.ts +107 -0
- package/es/work-order-card/index.less +34 -0
- package/es/work-order-card/index.mjs +8 -0
- package/es/work-order-card/style/index.d.ts +1 -0
- package/es/work-order-card/style/index.mjs +8 -0
- package/es/work-order-card/style/less.d.ts +1 -0
- package/es/work-order-card/style/less.mjs +8 -0
- package/es/work-order-card/types.d.ts +16 -0
- package/es/work-order-card/types.mjs +0 -0
- package/es/work-order-card/var.css +0 -0
- package/es/work-order-card/var.less +6 -0
- package/lib/background/index.css +1 -1
- package/lib/background/index.less +10 -0
- package/lib/background/types.d.ts +1 -1
- package/lib/empty/Empty.js +6 -274
- package/lib/empty/assets/default.png +0 -0
- package/lib/empty/assets/network.png +0 -0
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.less +19 -1
- package/lib/empty/var.less +6 -5
- package/lib/field/index.css +1 -1
- package/lib/field/var.less +1 -1
- package/lib/floor-select/FloorSelect.js +3 -0
- package/lib/floor-select/index.css +1 -1
- package/lib/floor-select/index.less +4 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/index.less +1 -0
- package/lib/radio-panel/RadioPanel.js +25 -13
- package/lib/sidebar-item/SidebarItem.js +1 -2
- package/lib/vant.cjs.js +1284 -1424
- package/lib/vant.es.js +1284 -1424
- package/lib/vant.js +1284 -1424
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/lib/work-order-card/WorkOrderCard.d.ts +145 -0
- package/lib/work-order-card/WorkOrderCard.js +140 -0
- package/lib/work-order-card/index.css +1 -0
- package/lib/work-order-card/index.d.ts +107 -0
- package/lib/work-order-card/index.js +37 -0
- package/lib/work-order-card/index.less +34 -0
- package/lib/work-order-card/style/index.d.ts +1 -0
- package/lib/work-order-card/style/index.js +8 -0
- package/lib/work-order-card/style/less.d.ts +1 -0
- package/lib/work-order-card/style/less.js +8 -0
- package/lib/work-order-card/types.d.ts +16 -0
- package/lib/work-order-card/types.js +15 -0
- package/lib/work-order-card/var.css +0 -0
- package/lib/work-order-card/var.less +6 -0
- package/package.json +2 -2
- package/skills/use-persagy-vant/SKILL.md +2 -2
- package/skills/use-persagy-vant/references/business-component-catalog.md +5 -0
- package/skills/use-persagy-vant/references/component-catalog.md +7 -4
- package/skills/use-persagy-vant/references/page-recipes.md +11 -1
package/lib/empty/Empty.js
CHANGED
|
@@ -21,7 +21,6 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
var import_use_id = require("../composables/use-id");
|
|
25
24
|
var import_utils = require("../utils");
|
|
26
25
|
const [name, bem] = (0, import_utils.createNamespace)("empty");
|
|
27
26
|
const emptyProps = {
|
|
@@ -50,283 +49,16 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
50
49
|
}, [slots.default()]);
|
|
51
50
|
}
|
|
52
51
|
};
|
|
53
|
-
const baseId = (0, import_use_id.useId)();
|
|
54
|
-
const getId = (num) => `${baseId}-${num}`;
|
|
55
|
-
const getUrlById = (num) => `url(#${getId(num)})`;
|
|
56
|
-
const renderStop = (color, offset, opacity) => (0, import_vue.createVNode)("stop", {
|
|
57
|
-
"stop-color": color,
|
|
58
|
-
"offset": `${offset}%`,
|
|
59
|
-
"stop-opacity": opacity
|
|
60
|
-
}, null);
|
|
61
|
-
const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
|
|
62
|
-
const renderShadow = (id) => [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("radialGradient", {
|
|
63
|
-
"id": getId(id),
|
|
64
|
-
"cx": "50%",
|
|
65
|
-
"cy": "54%",
|
|
66
|
-
"fx": "50%",
|
|
67
|
-
"fy": "54%",
|
|
68
|
-
"r": "297%",
|
|
69
|
-
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
|
70
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), (0, import_vue.createVNode)("ellipse", {
|
|
71
|
-
"fill": getUrlById(id),
|
|
72
|
-
"opacity": ".8",
|
|
73
|
-
"cx": "80",
|
|
74
|
-
"cy": "140",
|
|
75
|
-
"rx": "46",
|
|
76
|
-
"ry": "8"
|
|
77
|
-
}, null)];
|
|
78
|
-
const renderBuilding = () => [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
|
79
|
-
"id": getId("a"),
|
|
80
|
-
"x1": "64%",
|
|
81
|
-
"y1": "100%",
|
|
82
|
-
"x2": "64%"
|
|
83
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), (0, import_vue.createVNode)("g", {
|
|
84
|
-
"opacity": ".8"
|
|
85
|
-
}, [(0, import_vue.createVNode)("path", {
|
|
86
|
-
"d": "M36 131V53H16v20H2v58h34z",
|
|
87
|
-
"fill": getUrlById("a")
|
|
88
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
89
|
-
"d": "M123 15h22v14h9v77h-31V15z",
|
|
90
|
-
"fill": getUrlById("a")
|
|
91
|
-
}, null)])];
|
|
92
|
-
const renderCloud = () => [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
|
93
|
-
"id": getId("b"),
|
|
94
|
-
"x1": "64%",
|
|
95
|
-
"y1": "97%",
|
|
96
|
-
"x2": "64%",
|
|
97
|
-
"y2": "0%"
|
|
98
|
-
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), (0, import_vue.createVNode)("g", {
|
|
99
|
-
"opacity": ".8"
|
|
100
|
-
}, [(0, import_vue.createVNode)("path", {
|
|
101
|
-
"d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
|
|
102
|
-
"fill": getUrlById("b")
|
|
103
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
104
|
-
"d": "M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",
|
|
105
|
-
"fill": getUrlById("b")
|
|
106
|
-
}, null)])];
|
|
107
|
-
const renderNetwork = () => (0, import_vue.createVNode)("svg", {
|
|
108
|
-
"viewBox": "0 0 160 160"
|
|
109
|
-
}, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
|
110
|
-
"id": getId(1),
|
|
111
|
-
"x1": "64%",
|
|
112
|
-
"y1": "100%",
|
|
113
|
-
"x2": "64%"
|
|
114
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), (0, import_vue.createVNode)("linearGradient", {
|
|
115
|
-
"id": getId(2),
|
|
116
|
-
"x1": "50%",
|
|
117
|
-
"x2": "50%",
|
|
118
|
-
"y2": "84%"
|
|
119
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), (0, import_vue.createVNode)("linearGradient", {
|
|
120
|
-
"id": getId(3),
|
|
121
|
-
"x1": "100%",
|
|
122
|
-
"x2": "100%",
|
|
123
|
-
"y2": "100%"
|
|
124
|
-
}, [renderStops("#EAEDF0", "#DCDEE0")]), (0, import_vue.createVNode)("radialGradient", {
|
|
125
|
-
"id": getId(4),
|
|
126
|
-
"cx": "50%",
|
|
127
|
-
"cy": "0%",
|
|
128
|
-
"fx": "50%",
|
|
129
|
-
"fy": "0%",
|
|
130
|
-
"r": "100%",
|
|
131
|
-
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
|
132
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), (0, import_vue.createVNode)("g", {
|
|
133
|
-
"fill": "none"
|
|
134
|
-
}, [renderBuilding(), (0, import_vue.createVNode)("path", {
|
|
135
|
-
"fill": getUrlById(4),
|
|
136
|
-
"d": "M0 139h160v21H0z"
|
|
137
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
138
|
-
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
|
139
|
-
"fill": getUrlById(2)
|
|
140
|
-
}, null), (0, import_vue.createVNode)("g", {
|
|
141
|
-
"opacity": ".6",
|
|
142
|
-
"stroke-linecap": "round",
|
|
143
|
-
"stroke-width": "7"
|
|
144
|
-
}, [(0, import_vue.createVNode)("path", {
|
|
145
|
-
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
|
146
|
-
"stroke": getUrlById(3)
|
|
147
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
148
|
-
"d": "M53 36a34 34 0 0 0 0 48",
|
|
149
|
-
"stroke": getUrlById(3)
|
|
150
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
151
|
-
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
|
152
|
-
"stroke": getUrlById(3)
|
|
153
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
154
|
-
"d": "M106 84a34 34 0 0 0 0-48",
|
|
155
|
-
"stroke": getUrlById(3)
|
|
156
|
-
}, null)]), (0, import_vue.createVNode)("g", {
|
|
157
|
-
"transform": "translate(31 105)"
|
|
158
|
-
}, [(0, import_vue.createVNode)("rect", {
|
|
159
|
-
"fill": "#EBEDF0",
|
|
160
|
-
"width": "98",
|
|
161
|
-
"height": "34",
|
|
162
|
-
"rx": "2"
|
|
163
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
164
|
-
"fill": "#FFF",
|
|
165
|
-
"x": "9",
|
|
166
|
-
"y": "8",
|
|
167
|
-
"width": "80",
|
|
168
|
-
"height": "18",
|
|
169
|
-
"rx": "1.1"
|
|
170
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
171
|
-
"fill": "#EBEDF0",
|
|
172
|
-
"x": "15",
|
|
173
|
-
"y": "12",
|
|
174
|
-
"width": "18",
|
|
175
|
-
"height": "6",
|
|
176
|
-
"rx": "1.1"
|
|
177
|
-
}, null)])])]);
|
|
178
|
-
const renderMaterial = () => (0, import_vue.createVNode)("svg", {
|
|
179
|
-
"viewBox": "0 0 160 160"
|
|
180
|
-
}, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
|
181
|
-
"x1": "50%",
|
|
182
|
-
"x2": "50%",
|
|
183
|
-
"y2": "100%",
|
|
184
|
-
"id": getId(5)
|
|
185
|
-
}, [renderStops("#F2F3F5", "#DCDEE0")]), (0, import_vue.createVNode)("linearGradient", {
|
|
186
|
-
"x1": "95%",
|
|
187
|
-
"y1": "48%",
|
|
188
|
-
"x2": "5.5%",
|
|
189
|
-
"y2": "51%",
|
|
190
|
-
"id": getId(6)
|
|
191
|
-
}, [renderStops("#EAEDF1", "#DCDEE0")]), (0, import_vue.createVNode)("linearGradient", {
|
|
192
|
-
"y1": "45%",
|
|
193
|
-
"x2": "100%",
|
|
194
|
-
"y2": "54%",
|
|
195
|
-
"id": getId(7)
|
|
196
|
-
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), (0, import_vue.createVNode)("g", {
|
|
197
|
-
"transform": "translate(36 50)",
|
|
198
|
-
"fill": "none"
|
|
199
|
-
}, [(0, import_vue.createVNode)("g", {
|
|
200
|
-
"transform": "translate(8)"
|
|
201
|
-
}, [(0, import_vue.createVNode)("rect", {
|
|
202
|
-
"fill": "#EBEDF0",
|
|
203
|
-
"opacity": ".6",
|
|
204
|
-
"x": "38",
|
|
205
|
-
"y": "13",
|
|
206
|
-
"width": "36",
|
|
207
|
-
"height": "53",
|
|
208
|
-
"rx": "2"
|
|
209
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
210
|
-
"fill": getUrlById(5),
|
|
211
|
-
"width": "64",
|
|
212
|
-
"height": "66",
|
|
213
|
-
"rx": "2"
|
|
214
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
215
|
-
"fill": "#FFF",
|
|
216
|
-
"x": "6",
|
|
217
|
-
"y": "6",
|
|
218
|
-
"width": "52",
|
|
219
|
-
"height": "55",
|
|
220
|
-
"rx": "1"
|
|
221
|
-
}, null), (0, import_vue.createVNode)("g", {
|
|
222
|
-
"transform": "translate(15 17)",
|
|
223
|
-
"fill": getUrlById(6)
|
|
224
|
-
}, [(0, import_vue.createVNode)("rect", {
|
|
225
|
-
"width": "34",
|
|
226
|
-
"height": "6",
|
|
227
|
-
"rx": "1"
|
|
228
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
229
|
-
"d": "M0 14h34v6H0z"
|
|
230
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
231
|
-
"y": "28",
|
|
232
|
-
"width": "34",
|
|
233
|
-
"height": "6",
|
|
234
|
-
"rx": "1"
|
|
235
|
-
}, null)])]), (0, import_vue.createVNode)("rect", {
|
|
236
|
-
"fill": getUrlById(7),
|
|
237
|
-
"y": "61",
|
|
238
|
-
"width": "88",
|
|
239
|
-
"height": "28",
|
|
240
|
-
"rx": "1"
|
|
241
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
242
|
-
"fill": "#F7F8FA",
|
|
243
|
-
"x": "29",
|
|
244
|
-
"y": "72",
|
|
245
|
-
"width": "30",
|
|
246
|
-
"height": "6",
|
|
247
|
-
"rx": "1"
|
|
248
|
-
}, null)])]);
|
|
249
|
-
const renderError = () => (0, import_vue.createVNode)("svg", {
|
|
250
|
-
"viewBox": "0 0 160 160"
|
|
251
|
-
}, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
|
252
|
-
"x1": "50%",
|
|
253
|
-
"x2": "50%",
|
|
254
|
-
"y2": "100%",
|
|
255
|
-
"id": getId(8)
|
|
256
|
-
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), (0, import_vue.createVNode)("path", {
|
|
257
|
-
"d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
|
|
258
|
-
"fill": getUrlById(8)
|
|
259
|
-
}, null)]);
|
|
260
|
-
const renderSearch = () => (0, import_vue.createVNode)("svg", {
|
|
261
|
-
"viewBox": "0 0 160 160"
|
|
262
|
-
}, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
|
263
|
-
"x1": "50%",
|
|
264
|
-
"y1": "100%",
|
|
265
|
-
"x2": "50%",
|
|
266
|
-
"id": getId(9)
|
|
267
|
-
}, [renderStops("#EEE", "#D8D8D8")]), (0, import_vue.createVNode)("linearGradient", {
|
|
268
|
-
"x1": "100%",
|
|
269
|
-
"y1": "50%",
|
|
270
|
-
"y2": "50%",
|
|
271
|
-
"id": getId(10)
|
|
272
|
-
}, [renderStops("#F2F3F5", "#DCDEE0")]), (0, import_vue.createVNode)("linearGradient", {
|
|
273
|
-
"x1": "50%",
|
|
274
|
-
"x2": "50%",
|
|
275
|
-
"y2": "100%",
|
|
276
|
-
"id": getId(11)
|
|
277
|
-
}, [renderStops("#F2F3F5", "#DCDEE0")]), (0, import_vue.createVNode)("linearGradient", {
|
|
278
|
-
"x1": "50%",
|
|
279
|
-
"x2": "50%",
|
|
280
|
-
"y2": "100%",
|
|
281
|
-
"id": getId(12)
|
|
282
|
-
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), (0, import_vue.createVNode)("g", {
|
|
283
|
-
"transform": "rotate(-45 113 -4)",
|
|
284
|
-
"fill": "none"
|
|
285
|
-
}, [(0, import_vue.createVNode)("rect", {
|
|
286
|
-
"fill": getUrlById(9),
|
|
287
|
-
"x": "24",
|
|
288
|
-
"y": "52.8",
|
|
289
|
-
"width": "5.8",
|
|
290
|
-
"height": "19",
|
|
291
|
-
"rx": "1"
|
|
292
|
-
}, null), (0, import_vue.createVNode)("rect", {
|
|
293
|
-
"fill": getUrlById(10),
|
|
294
|
-
"x": "22.1",
|
|
295
|
-
"y": "67.3",
|
|
296
|
-
"width": "9.9",
|
|
297
|
-
"height": "28",
|
|
298
|
-
"rx": "1"
|
|
299
|
-
}, null), (0, import_vue.createVNode)("circle", {
|
|
300
|
-
"stroke": getUrlById(11),
|
|
301
|
-
"stroke-width": "8",
|
|
302
|
-
"cx": "27",
|
|
303
|
-
"cy": "27",
|
|
304
|
-
"r": "27"
|
|
305
|
-
}, null), (0, import_vue.createVNode)("circle", {
|
|
306
|
-
"fill": getUrlById(12),
|
|
307
|
-
"cx": "27",
|
|
308
|
-
"cy": "27",
|
|
309
|
-
"r": "16"
|
|
310
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
311
|
-
"d": "M37 7c-8 0-15 5-16 12",
|
|
312
|
-
"stroke": getUrlById(11),
|
|
313
|
-
"stroke-width": "3",
|
|
314
|
-
"opacity": ".5",
|
|
315
|
-
"stroke-linecap": "round",
|
|
316
|
-
"transform": "rotate(45 29 13)"
|
|
317
|
-
}, null)])]);
|
|
318
52
|
const renderImage = () => {
|
|
319
|
-
var _a;
|
|
320
53
|
if (slots.image) {
|
|
321
54
|
return slots.image();
|
|
322
55
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || (0, import_vue.createVNode)("img", {
|
|
56
|
+
if (props.image === "default" || props.image === "network") {
|
|
57
|
+
return (0, import_vue.createVNode)("div", {
|
|
58
|
+
"class": bem("image-preset", props.image)
|
|
59
|
+
}, null);
|
|
60
|
+
}
|
|
61
|
+
return (0, import_vue.createVNode)("img", {
|
|
330
62
|
"src": props.image
|
|
331
63
|
}, null);
|
|
332
64
|
};
|
|
Binary file
|
|
Binary file
|
package/lib/empty/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size:
|
|
1
|
+
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 90px;--van-empty-image-height: 76px;--van-empty-description-margin-top: 8px;--van-empty-description-padding: 0 60px;--van-empty-description-color: var(--van-gray-6);--van-empty-description-font-size: 14px;--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: 8px}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-height)}.van-empty__image img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.van-empty__image-preset{width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:contain}.van-empty__image-preset--default{background-image:url(./assets/default.png)}.van-empty__image-preset--network{background-image:url(./assets/network.png)}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}
|
package/lib/empty/index.less
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
:root {
|
|
4
4
|
--van-empty-padding: @empty-padding;
|
|
5
5
|
--van-empty-image-size: @empty-image-size;
|
|
6
|
+
--van-empty-image-height: @empty-image-height;
|
|
6
7
|
--van-empty-description-margin-top: @empty-description-margin-top;
|
|
7
8
|
--van-empty-description-padding: @empty-description-padding;
|
|
8
9
|
--van-empty-description-color: @empty-description-color;
|
|
@@ -21,11 +22,28 @@
|
|
|
21
22
|
|
|
22
23
|
&__image {
|
|
23
24
|
width: var(--van-empty-image-size);
|
|
24
|
-
height: var(--van-empty-image-
|
|
25
|
+
height: var(--van-empty-image-height);
|
|
25
26
|
|
|
26
27
|
img {
|
|
27
28
|
width: 100%;
|
|
28
29
|
height: 100%;
|
|
30
|
+
object-fit: contain;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__image-preset {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background-repeat: no-repeat;
|
|
38
|
+
background-position: center;
|
|
39
|
+
background-size: contain;
|
|
40
|
+
|
|
41
|
+
&--default {
|
|
42
|
+
background-image: url('./assets/default.png');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--network {
|
|
46
|
+
background-image: url('./assets/network.png');
|
|
29
47
|
}
|
|
30
48
|
}
|
|
31
49
|
|
package/lib/empty/var.less
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@import '../style/var.less';
|
|
2
2
|
|
|
3
3
|
@empty-padding: var(--van-padding-xl) 0;
|
|
4
|
-
@empty-image-size:
|
|
5
|
-
@empty-
|
|
4
|
+
@empty-image-size: 90px;
|
|
5
|
+
@empty-image-height: 76px;
|
|
6
|
+
@empty-description-margin-top: 8px;
|
|
6
7
|
@empty-description-padding: 0 60px;
|
|
7
|
-
@empty-description-color: var(--van-
|
|
8
|
-
@empty-description-font-size:
|
|
8
|
+
@empty-description-color: var(--van-gray-6);
|
|
9
|
+
@empty-description-font-size: 14px;
|
|
9
10
|
@empty-description-line-height: var(--van-line-height-md);
|
|
10
|
-
@empty-bottom-margin-top:
|
|
11
|
+
@empty-bottom-margin-top: 8px;
|
package/lib/field/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-gray-
|
|
1
|
+
:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-gray-8);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-font-size: var(--van-font-size-lg);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: 16px;--van-field-clear-icon-size: 16px;--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: 12px;--van-field-text-area-min-height: 60px;--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: 16px;--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--required{position:relative}.van-field__label--required:before{color:var(--van-field-required-mark-color);content:"*";position:absolute;left:-8px;font-size:14px}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field--label-top{flex-direction:column;align-items:stretch}.van-field--label-top .van-cell__title,.van-field--label-top .van-cell__value{flex:none;width:100%}.van-field--label-top .van-field__label{width:auto;margin-right:0;margin-bottom:var(--van-padding-xs)}.van-field.van-cell--normal{--van-field-input-font-size: var(--van-font-size-md)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);font-size:var(--van-field-input-font-size);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.van-field__control::-moz-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:-moz-read-only{cursor:default}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-moz-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}
|
package/lib/field/var.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import '../style/var.less';
|
|
2
2
|
|
|
3
3
|
@field-label-width: 6.2em;
|
|
4
|
-
@field-label-color: var(--van-gray-
|
|
4
|
+
@field-label-color: var(--van-gray-8);
|
|
5
5
|
@field-label-margin-right: var(--van-padding-sm);
|
|
6
6
|
@field-input-font-size: var(--van-font-size-lg);
|
|
7
7
|
@field-input-text-color: var(--van-text-color);
|
|
@@ -244,6 +244,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
244
244
|
"key": floor.id,
|
|
245
245
|
"title": floor.text,
|
|
246
246
|
"dot": floor.dot,
|
|
247
|
+
"badgeProps": {
|
|
248
|
+
color: "var(--van-danger-color)"
|
|
249
|
+
},
|
|
247
250
|
"disabled": floor.disabled
|
|
248
251
|
}, null))]
|
|
249
252
|
}), (0, import_vue.createVNode)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.van-floor-select{display:flex;flex-direction:column;min-height:100vh;color:var(--van-text-color);background:var(--van-background-color-light)}.van-floor-select__tabs{flex:none;padding:var(--van-padding-xs) var(--van-
|
|
1
|
+
.van-floor-select{display:flex;flex-direction:column;min-height:100vh;color:var(--van-text-color);background:var(--van-background-color-light)}.van-floor-select__tabs{flex:none;padding:var(--van-padding-xs) 0;background:var(--van-gray-1);--van-tabs-line-height: 38px;--van-tabs-nav-background-color: transparent;--van-tabs-filter-background-color: var(--van-gray-2);--van-tabs-filter-active-background-color: var(--van-blue-100);--van-tabs-filter-border-radius: var(--van-border-radius-lg)}.van-floor-select__tabs .van-tabs__nav{gap:6px}.van-floor-select__tabs .van-tabs__more{z-index:3;width:40px;color:var(--van-gray-8);background:linear-gradient(90deg,transparent,var(--van-gray-1) 36%)}.van-floor-select__content{display:flex;flex:1;min-height:0}.van-floor-select__sidebar{flex:none;height:auto;background:var(--van-gray-1);--van-sidebar-width: 80px;--van-sidebar-padding: var(--van-padding-sm);--van-sidebar-background-color: var(--van-gray-1);--van-sidebar-selected-background-color: var(--van-background-color-light);--van-sidebar-selected-text-color: var(--van-primary-color);--van-sidebar-selected-font-weight: var(--van-font-weight-bold)}.van-floor-select__cells{flex:1;min-width:0;overflow-y:auto;background:var(--van-background-color-light)}.van-floor-select__cell .van-cell{--van-cell-vertical-padding: var(--van-padding-sm)}
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
&__tabs {
|
|
9
9
|
flex: none;
|
|
10
|
-
padding: var(--van-padding-xs)
|
|
10
|
+
padding: var(--van-padding-xs) 0;
|
|
11
|
+
background: var(--van-gray-1);
|
|
11
12
|
--van-tabs-line-height: 38px;
|
|
12
13
|
--van-tabs-nav-background-color: transparent;
|
|
13
14
|
--van-tabs-filter-background-color: var(--van-gray-2);
|
|
14
|
-
--van-tabs-filter-active-background-color: var(--van-blue-
|
|
15
|
+
--van-tabs-filter-active-background-color: var(--van-blue-100);
|
|
15
16
|
--van-tabs-filter-border-radius: var(--van-border-radius-lg);
|
|
16
17
|
|
|
17
18
|
.van-tabs__nav { gap: 6px; }
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
z-index: 3;
|
|
21
22
|
width: 40px;
|
|
22
23
|
color: var(--van-gray-8);
|
|
23
|
-
background: linear-gradient(90deg, transparent, var(--van-
|
|
24
|
+
background: linear-gradient(90deg, transparent, var(--van-gray-1) 36%);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|