vant 4.0.0-alpha.2 → 4.0.0-alpha.3
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/changelog.generated.md +33 -29
- package/es/empty/Empty.js +10 -13
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.js +271 -0
- package/es/field/Field.js +6 -3
- package/es/field/types.d.ts +1 -1
- package/es/form/Form.d.ts +13 -13
- package/es/form/Form.js +6 -3
- package/es/form/index.d.ts +9 -9
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/loading/Loading.js +3 -1
- package/es/search/index.css +1 -1
- package/es/search/index.less +1 -1
- package/es/uploader/Uploader.js +2 -2
- package/es/uploader/utils.d.ts +0 -1
- package/es/uploader/utils.js +2 -4
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/basic.js +3 -1
- package/lib/empty/Empty.js +10 -13
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +290 -0
- package/lib/field/Field.js +5 -2
- package/lib/field/types.d.ts +1 -1
- package/lib/form/Form.d.ts +13 -13
- package/lib/form/Form.js +5 -2
- package/lib/form/index.d.ts +9 -9
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/loading/Loading.js +3 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +1 -1
- package/lib/uploader/Uploader.js +1 -1
- package/lib/uploader/utils.d.ts +0 -1
- package/lib/uploader/utils.js +2 -4
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +3 -1
- package/lib/vant.cjs.js +233 -49
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +233 -49
- package/lib/vant.es.min.js +233 -49
- package/lib/vant.js +233 -49
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +551 -551
- package/vetur/tags.json +200 -200
- package/vetur/web-types.json +1778 -1778
- package/es/empty/Network.d.ts +0 -1
- package/es/empty/Network.js +0 -89
- package/lib/empty/Network.d.ts +0 -1
- package/lib/empty/Network.js +0 -108
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -196,7 +196,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
|
|
196
196
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
197
197
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
198
198
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
199
|
-
const version = "4.0.0-alpha.
|
199
|
+
const version = "4.0.0-alpha.3";
|
200
200
|
function install(app) {
|
201
201
|
const components = [
|
202
202
|
import_action_bar.ActionBar,
|
package/lib/loading/Loading.js
CHANGED
@@ -73,7 +73,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
73
73
|
return (0, import_vue.createVNode)("div", {
|
74
74
|
"class": bem([type, {
|
75
75
|
vertical
|
76
|
-
}])
|
76
|
+
}]),
|
77
|
+
"aria-live": "polite",
|
78
|
+
"aria-busy": true
|
77
79
|
}, [(0, import_vue.createVNode)("span", {
|
78
80
|
"class": bem("spinner", type),
|
79
81
|
"style": spinnerStyle.value
|
package/lib/search/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
body{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-
|
1
|
+
body{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: 34px;--van-search-label-padding: 0 5px;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;padding:5px var(--van-padding-xs) 5px 0;background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}
|
package/lib/search/index.less
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
body {
|
2
2
|
--van-search-padding: 10px var(--van-padding-sm);
|
3
3
|
--van-search-background: var(--van-background-2);
|
4
|
-
--van-search-content-background: var(--van-
|
4
|
+
--van-search-content-background: var(--van-background);
|
5
5
|
--van-search-input-height: 34px;
|
6
6
|
--van-search-label-padding: 0 5px;
|
7
7
|
--van-search-label-color: var(--van-text-color);
|
package/lib/uploader/Uploader.js
CHANGED
@@ -95,7 +95,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
95
95
|
}
|
96
96
|
}
|
97
97
|
items = (0, import_vue2.reactive)(items);
|
98
|
-
emit("update:modelValue", [...props.modelValue, ...(0,
|
98
|
+
emit("update:modelValue", [...props.modelValue, ...(0, import_utils.toArray)(items)]);
|
99
99
|
if (props.afterRead) {
|
100
100
|
props.afterRead(items, getDetail());
|
101
101
|
}
|
package/lib/uploader/utils.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { UploaderMaxSize, UploaderResultType, UploaderFileListItem } from './types';
|
2
2
|
declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
3
3
|
export { name, bem, t };
|
4
|
-
export declare const toArray: <T>(item: T | T[]) => T[];
|
5
4
|
export declare function readFileContent(file: File, resultType: UploaderResultType): Promise<string | void>;
|
6
5
|
export declare function isOversize(items: UploaderFileListItem | UploaderFileListItem[], maxSize: UploaderMaxSize): boolean;
|
7
6
|
export declare function filterFiles(items: UploaderFileListItem[], maxSize: UploaderMaxSize): {
|
package/lib/uploader/utils.js
CHANGED
@@ -24,13 +24,11 @@ __export(stdin_exports, {
|
|
24
24
|
isOversize: () => isOversize,
|
25
25
|
name: () => name,
|
26
26
|
readFileContent: () => readFileContent,
|
27
|
-
t: () => t
|
28
|
-
toArray: () => toArray
|
27
|
+
t: () => t
|
29
28
|
});
|
30
29
|
module.exports = __toCommonJS(stdin_exports);
|
31
30
|
var import_utils = require("../utils");
|
32
31
|
const [name, bem, t] = (0, import_utils.createNamespace)("uploader");
|
33
|
-
const toArray = (item) => Array.isArray(item) ? item : [item];
|
34
32
|
function readFileContent(file, resultType) {
|
35
33
|
return new Promise((resolve) => {
|
36
34
|
if (resultType === "file") {
|
@@ -49,7 +47,7 @@ function readFileContent(file, resultType) {
|
|
49
47
|
});
|
50
48
|
}
|
51
49
|
function isOversize(items, maxSize) {
|
52
|
-
return toArray(items).some((item) => {
|
50
|
+
return (0, import_utils.toArray)(items).some((item) => {
|
53
51
|
if (item.file) {
|
54
52
|
if ((0, import_utils.isFunction)(maxSize)) {
|
55
53
|
return maxSize(item.file);
|
package/lib/utils/basic.d.ts
CHANGED
@@ -15,3 +15,4 @@ export declare type Writeable<T> = {
|
|
15
15
|
};
|
16
16
|
export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>, ignoreUndefined?: boolean): Writeable<Pick<T, U>>;
|
17
17
|
export declare const isSameValue: (newValue: unknown, oldValue: unknown) => boolean;
|
18
|
+
export declare const toArray: <T>(item: T | T[]) => T[];
|
package/lib/utils/basic.js
CHANGED
@@ -22,7 +22,8 @@ __export(stdin_exports, {
|
|
22
22
|
inBrowser: () => inBrowser,
|
23
23
|
isSameValue: () => isSameValue,
|
24
24
|
noop: () => noop,
|
25
|
-
pick: () => pick
|
25
|
+
pick: () => pick,
|
26
|
+
toArray: () => toArray
|
26
27
|
});
|
27
28
|
module.exports = __toCommonJS(stdin_exports);
|
28
29
|
function noop() {
|
@@ -47,3 +48,4 @@ function pick(obj, keys, ignoreUndefined) {
|
|
47
48
|
}, {});
|
48
49
|
}
|
49
50
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
51
|
+
const toArray = (item) => Array.isArray(item) ? item : [item];
|
package/lib/vant.cjs.js
CHANGED
@@ -26,6 +26,7 @@ function pick(obj, keys, ignoreUndefined) {
|
|
26
26
|
}, {});
|
27
27
|
}
|
28
28
|
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
29
|
+
const toArray = (item) => Array.isArray(item) ? item : [item];
|
29
30
|
const unknownProp = null;
|
30
31
|
const numericProp = [Number, String];
|
31
32
|
const truthProp = {
|
@@ -316,10 +317,10 @@ const Locale = {
|
|
316
317
|
};
|
317
318
|
var stdin_default$1B = Locale;
|
318
319
|
function createTranslate(name2) {
|
319
|
-
const
|
320
|
+
const prefix = camelize(name2) + ".";
|
320
321
|
return (path, ...args) => {
|
321
322
|
const messages2 = stdin_default$1B.messages();
|
322
|
-
const message = get(messages2,
|
323
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
323
324
|
return isFunction(message) ? message(...args) : message;
|
324
325
|
};
|
325
326
|
}
|
@@ -685,7 +686,9 @@ var stdin_default$1w = vue.defineComponent({
|
|
685
686
|
return vue.createVNode("div", {
|
686
687
|
"class": bem$1l([type, {
|
687
688
|
vertical
|
688
|
-
}])
|
689
|
+
}]),
|
690
|
+
"aria-live": "polite",
|
691
|
+
"aria-busy": true
|
689
692
|
}, [vue.createVNode("span", {
|
690
693
|
"class": bem$1l("spinner", type),
|
691
694
|
"style": spinnerStyle.value
|
@@ -2151,9 +2154,12 @@ const formProps = {
|
|
2151
2154
|
scrollToError: Boolean,
|
2152
2155
|
validateFirst: Boolean,
|
2153
2156
|
submitOnEnter: truthProp,
|
2154
|
-
validateTrigger: makeStringProp("onBlur"),
|
2155
2157
|
showErrorMessage: truthProp,
|
2156
|
-
errorMessageAlign: String
|
2158
|
+
errorMessageAlign: String,
|
2159
|
+
validateTrigger: {
|
2160
|
+
type: [String, Array],
|
2161
|
+
default: "onBlur"
|
2162
|
+
}
|
2157
2163
|
};
|
2158
2164
|
var stdin_default$1l = vue.defineComponent({
|
2159
2165
|
name: name$1e,
|
@@ -2366,7 +2372,7 @@ function cutString(str, maxlength) {
|
|
2366
2372
|
return [...str].slice(0, maxlength).join("");
|
2367
2373
|
}
|
2368
2374
|
let current = 0;
|
2369
|
-
function useId() {
|
2375
|
+
function useId$1() {
|
2370
2376
|
const vm = vue.getCurrentInstance();
|
2371
2377
|
const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
|
2372
2378
|
return `${name2}-${++current}`;
|
@@ -2426,7 +2432,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
2426
2432
|
emit,
|
2427
2433
|
slots
|
2428
2434
|
}) {
|
2429
|
-
const id = useId();
|
2435
|
+
const id = useId$1();
|
2430
2436
|
const state = vue.reactive({
|
2431
2437
|
focused: false,
|
2432
2438
|
validateFailed: false,
|
@@ -2516,10 +2522,13 @@ var stdin_default$1k = vue.defineComponent({
|
|
2516
2522
|
});
|
2517
2523
|
const validateWithTrigger = (trigger) => {
|
2518
2524
|
if (form && props.rules) {
|
2519
|
-
const
|
2525
|
+
const {
|
2526
|
+
validateTrigger
|
2527
|
+
} = form.props;
|
2528
|
+
const defaultTrigger = toArray(validateTrigger).includes(trigger);
|
2520
2529
|
const rules = props.rules.filter((rule) => {
|
2521
2530
|
if (rule.trigger) {
|
2522
|
-
return rule.trigger
|
2531
|
+
return toArray(rule.trigger).includes(trigger);
|
2523
2532
|
}
|
2524
2533
|
return defaultTrigger;
|
2525
2534
|
});
|
@@ -5700,7 +5709,7 @@ var stdin_default$$ = vue.defineComponent({
|
|
5700
5709
|
const root = vue.ref();
|
5701
5710
|
const navRef = vue.ref();
|
5702
5711
|
const wrapRef = vue.ref();
|
5703
|
-
const id = useId();
|
5712
|
+
const id = useId$1();
|
5704
5713
|
const scroller = use.useScrollParent(root);
|
5705
5714
|
const [titleRefs, setTitleRefs] = useRefs();
|
5706
5715
|
const {
|
@@ -6087,7 +6096,7 @@ var stdin_default$Z = vue.defineComponent({
|
|
6087
6096
|
setup(props, {
|
6088
6097
|
slots
|
6089
6098
|
}) {
|
6090
|
-
const id = useId();
|
6099
|
+
const id = useId$1();
|
6091
6100
|
const inited = vue.ref(false);
|
6092
6101
|
const {
|
6093
6102
|
parent,
|
@@ -7457,31 +7466,78 @@ var stdin_default$K = vue.defineComponent({
|
|
7457
7466
|
}
|
7458
7467
|
});
|
7459
7468
|
const CouponCell = withInstall(stdin_default$K);
|
7460
|
-
const
|
7469
|
+
const getId = (num) => `van-empty-${num}`;
|
7470
|
+
const useId = (num) => `url(#${getId(num)})`;
|
7461
7471
|
const renderStop = (color, offset, opacity) => vue.createVNode("stop", {
|
7462
7472
|
"stop-color": color,
|
7463
7473
|
"offset": `${offset}%`,
|
7464
7474
|
"stop-opacity": opacity
|
7465
7475
|
}, null);
|
7466
|
-
const
|
7476
|
+
const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
|
7477
|
+
const renderShadow = (id) => [vue.createVNode("defs", null, [vue.createVNode("radialGradient", {
|
7478
|
+
"id": getId(id),
|
7479
|
+
"cx": "50%",
|
7480
|
+
"cy": "54%",
|
7481
|
+
"fx": "50%",
|
7482
|
+
"fy": "54%",
|
7483
|
+
"r": "297%",
|
7484
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
7485
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), vue.createVNode("ellipse", {
|
7486
|
+
"fill": useId(id),
|
7487
|
+
"opacity": ".8",
|
7488
|
+
"cx": "80",
|
7489
|
+
"cy": "140",
|
7490
|
+
"rx": "46",
|
7491
|
+
"ry": "8"
|
7492
|
+
}, null)];
|
7493
|
+
const renderBuilding = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7494
|
+
"id": getId("a"),
|
7495
|
+
"x1": "64%",
|
7496
|
+
"y1": "100%",
|
7497
|
+
"x2": "64%"
|
7498
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
|
7499
|
+
"opacity": ".8"
|
7500
|
+
}, [vue.createVNode("path", {
|
7501
|
+
"d": "M36 131V53H16v20H2v58h34z",
|
7502
|
+
"fill": useId("a")
|
7503
|
+
}, null), vue.createVNode("path", {
|
7504
|
+
"d": "M123 15h22v14h9v77h-31V15z",
|
7505
|
+
"fill": useId("a")
|
7506
|
+
}, null)])];
|
7507
|
+
const renderCloud = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7508
|
+
"id": getId("b"),
|
7509
|
+
"x1": "64%",
|
7510
|
+
"y1": "97%",
|
7511
|
+
"x2": "64%",
|
7512
|
+
"y2": "0%"
|
7513
|
+
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
|
7514
|
+
"opacity": ".8"
|
7515
|
+
}, [vue.createVNode("path", {
|
7516
|
+
"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",
|
7517
|
+
"fill": useId("b")
|
7518
|
+
}, null), vue.createVNode("path", {
|
7519
|
+
"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",
|
7520
|
+
"fill": useId("b")
|
7521
|
+
}, null)])];
|
7522
|
+
const renderNetwork = () => vue.createVNode("svg", {
|
7467
7523
|
"viewBox": "0 0 160 160"
|
7468
7524
|
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7469
|
-
"id":
|
7525
|
+
"id": getId(1),
|
7470
7526
|
"x1": "64%",
|
7471
7527
|
"y1": "100%",
|
7472
7528
|
"x2": "64%"
|
7473
7529
|
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), vue.createVNode("linearGradient", {
|
7474
|
-
"id":
|
7530
|
+
"id": getId(2),
|
7475
7531
|
"x1": "50%",
|
7476
7532
|
"x2": "50%",
|
7477
7533
|
"y2": "84%"
|
7478
7534
|
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), vue.createVNode("linearGradient", {
|
7479
|
-
"id":
|
7535
|
+
"id": getId(3),
|
7480
7536
|
"x1": "100%",
|
7481
7537
|
"x2": "100%",
|
7482
7538
|
"y2": "100%"
|
7483
|
-
}, [
|
7484
|
-
"id":
|
7539
|
+
}, [renderStops("#EAEDF0", "#DCDEE0")]), vue.createVNode("radialGradient", {
|
7540
|
+
"id": getId(4),
|
7485
7541
|
"cx": "50%",
|
7486
7542
|
"cy": "0%",
|
7487
7543
|
"fx": "50%",
|
@@ -7490,36 +7546,28 @@ const Network = vue.createVNode("svg", {
|
|
7490
7546
|
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
7491
7547
|
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), vue.createVNode("g", {
|
7492
7548
|
"fill": "none"
|
7493
|
-
}, [vue.createVNode("
|
7494
|
-
"
|
7495
|
-
}, [vue.createVNode("path", {
|
7496
|
-
"d": "M36 131V53H16v20H2v58h34z",
|
7497
|
-
"fill": `url(#${prefix}1)`
|
7498
|
-
}, null), vue.createVNode("path", {
|
7499
|
-
"d": "M123 15h22v14h9v77h-31V15z",
|
7500
|
-
"fill": `url(#${prefix}1)`
|
7501
|
-
}, null)]), vue.createVNode("path", {
|
7502
|
-
"fill": `url(#${prefix}4)`,
|
7549
|
+
}, [renderBuilding(), vue.createVNode("path", {
|
7550
|
+
"fill": useId(4),
|
7503
7551
|
"d": "M0 139h160v21H0z"
|
7504
7552
|
}, null), vue.createVNode("path", {
|
7505
7553
|
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
7506
|
-
"fill":
|
7554
|
+
"fill": useId(2)
|
7507
7555
|
}, null), vue.createVNode("g", {
|
7508
7556
|
"opacity": ".6",
|
7509
7557
|
"stroke-linecap": "round",
|
7510
7558
|
"stroke-width": "7"
|
7511
7559
|
}, [vue.createVNode("path", {
|
7512
7560
|
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
7513
|
-
"stroke":
|
7561
|
+
"stroke": useId(3)
|
7514
7562
|
}, null), vue.createVNode("path", {
|
7515
7563
|
"d": "M53 36a34 34 0 0 0 0 48",
|
7516
|
-
"stroke":
|
7564
|
+
"stroke": useId(3)
|
7517
7565
|
}, null), vue.createVNode("path", {
|
7518
7566
|
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
7519
|
-
"stroke":
|
7567
|
+
"stroke": useId(3)
|
7520
7568
|
}, null), vue.createVNode("path", {
|
7521
7569
|
"d": "M106 84a34 34 0 0 0 0-48",
|
7522
|
-
"stroke":
|
7570
|
+
"stroke": useId(3)
|
7523
7571
|
}, null)]), vue.createVNode("g", {
|
7524
7572
|
"transform": "translate(31 105)"
|
7525
7573
|
}, [vue.createVNode("rect", {
|
@@ -7542,8 +7590,153 @@ const Network = vue.createVNode("svg", {
|
|
7542
7590
|
"height": "6",
|
7543
7591
|
"rx": "1.1"
|
7544
7592
|
}, null)])])]);
|
7593
|
+
const renderMaterial = () => vue.createVNode("svg", {
|
7594
|
+
"viewBox": "0 0 160 160"
|
7595
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7596
|
+
"x1": "50%",
|
7597
|
+
"x2": "50%",
|
7598
|
+
"y2": "100%",
|
7599
|
+
"id": getId(5)
|
7600
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7601
|
+
"x1": "95%",
|
7602
|
+
"y1": "48%",
|
7603
|
+
"x2": "5.5%",
|
7604
|
+
"y2": "51%",
|
7605
|
+
"id": getId(6)
|
7606
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7607
|
+
"y1": "45%",
|
7608
|
+
"x2": "100%",
|
7609
|
+
"y2": "54%",
|
7610
|
+
"id": getId(7)
|
7611
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), vue.createVNode("g", {
|
7612
|
+
"transform": "translate(36 50)",
|
7613
|
+
"fill": "none"
|
7614
|
+
}, [vue.createVNode("g", {
|
7615
|
+
"transform": "translate(8)"
|
7616
|
+
}, [vue.createVNode("rect", {
|
7617
|
+
"fill": "#EBEDF0",
|
7618
|
+
"opacity": ".6",
|
7619
|
+
"x": "38",
|
7620
|
+
"y": "13",
|
7621
|
+
"width": "36",
|
7622
|
+
"height": "53",
|
7623
|
+
"rx": "2"
|
7624
|
+
}, null), vue.createVNode("rect", {
|
7625
|
+
"fill": useId(5),
|
7626
|
+
"width": "64",
|
7627
|
+
"height": "66",
|
7628
|
+
"rx": "2"
|
7629
|
+
}, null), vue.createVNode("rect", {
|
7630
|
+
"fill": "#FFF",
|
7631
|
+
"x": "6",
|
7632
|
+
"y": "6",
|
7633
|
+
"width": "52",
|
7634
|
+
"height": "55",
|
7635
|
+
"rx": "1"
|
7636
|
+
}, null), vue.createVNode("g", {
|
7637
|
+
"transform": "translate(15 17)",
|
7638
|
+
"fill": useId(6)
|
7639
|
+
}, [vue.createVNode("rect", {
|
7640
|
+
"width": "34",
|
7641
|
+
"height": "6",
|
7642
|
+
"rx": "1"
|
7643
|
+
}, null), vue.createVNode("path", {
|
7644
|
+
"d": "M0 14h34v6H0z"
|
7645
|
+
}, null), vue.createVNode("rect", {
|
7646
|
+
"y": "28",
|
7647
|
+
"width": "34",
|
7648
|
+
"height": "6",
|
7649
|
+
"rx": "1"
|
7650
|
+
}, null)])]), vue.createVNode("rect", {
|
7651
|
+
"fill": useId(7),
|
7652
|
+
"y": "61",
|
7653
|
+
"width": "88",
|
7654
|
+
"height": "28",
|
7655
|
+
"rx": "1"
|
7656
|
+
}, null), vue.createVNode("rect", {
|
7657
|
+
"fill": "#F7F8FA",
|
7658
|
+
"x": "29",
|
7659
|
+
"y": "72",
|
7660
|
+
"width": "30",
|
7661
|
+
"height": "6",
|
7662
|
+
"rx": "1"
|
7663
|
+
}, null)])]);
|
7664
|
+
const renderError = () => vue.createVNode("svg", {
|
7665
|
+
"viewBox": "0 0 160 160"
|
7666
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7667
|
+
"x1": "50%",
|
7668
|
+
"x2": "50%",
|
7669
|
+
"y2": "100%",
|
7670
|
+
"id": getId(8)
|
7671
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), vue.createVNode("path", {
|
7672
|
+
"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",
|
7673
|
+
"fill": useId(8)
|
7674
|
+
}, null)]);
|
7675
|
+
const renderSearch = () => vue.createVNode("svg", {
|
7676
|
+
"viewBox": "0 0 160 160"
|
7677
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
7678
|
+
"x1": "50%",
|
7679
|
+
"y1": "100%",
|
7680
|
+
"x2": "50%",
|
7681
|
+
"id": getId(9)
|
7682
|
+
}, [renderStops("#EEE", "#D8D8D8")]), vue.createVNode("linearGradient", {
|
7683
|
+
"x1": "100%",
|
7684
|
+
"y1": "50%",
|
7685
|
+
"y2": "50%",
|
7686
|
+
"id": getId(10)
|
7687
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7688
|
+
"x1": "50%",
|
7689
|
+
"x2": "50%",
|
7690
|
+
"y2": "100%",
|
7691
|
+
"id": getId(11)
|
7692
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
|
7693
|
+
"x1": "50%",
|
7694
|
+
"x2": "50%",
|
7695
|
+
"y2": "100%",
|
7696
|
+
"id": getId(12)
|
7697
|
+
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), vue.createVNode("g", {
|
7698
|
+
"transform": "rotate(-45 113 -4)",
|
7699
|
+
"fill": "none"
|
7700
|
+
}, [vue.createVNode("rect", {
|
7701
|
+
"fill": useId(9),
|
7702
|
+
"x": "24",
|
7703
|
+
"y": "52.8",
|
7704
|
+
"width": "5.8",
|
7705
|
+
"height": "19",
|
7706
|
+
"rx": "1"
|
7707
|
+
}, null), vue.createVNode("rect", {
|
7708
|
+
"fill": useId(10),
|
7709
|
+
"x": "22.1",
|
7710
|
+
"y": "67.3",
|
7711
|
+
"width": "9.9",
|
7712
|
+
"height": "28",
|
7713
|
+
"rx": "1"
|
7714
|
+
}, null), vue.createVNode("circle", {
|
7715
|
+
"stroke": useId(11),
|
7716
|
+
"stroke-width": "8",
|
7717
|
+
"cx": "27",
|
7718
|
+
"cy": "27",
|
7719
|
+
"r": "27"
|
7720
|
+
}, null), vue.createVNode("circle", {
|
7721
|
+
"fill": useId(12),
|
7722
|
+
"cx": "27",
|
7723
|
+
"cy": "27",
|
7724
|
+
"r": "16"
|
7725
|
+
}, null), vue.createVNode("path", {
|
7726
|
+
"d": "M37 7c-8 0-15 5-16 12",
|
7727
|
+
"stroke": useId(11),
|
7728
|
+
"stroke-width": "3",
|
7729
|
+
"opacity": ".5",
|
7730
|
+
"stroke-linecap": "round",
|
7731
|
+
"transform": "rotate(45 29 13)"
|
7732
|
+
}, null)])]);
|
7545
7733
|
const [name$D, bem$C] = createNamespace("empty");
|
7546
|
-
const PRESET_IMAGES =
|
7734
|
+
const PRESET_IMAGES = {
|
7735
|
+
error: renderError,
|
7736
|
+
search: renderSearch,
|
7737
|
+
network: renderNetwork,
|
7738
|
+
default: renderMaterial
|
7739
|
+
};
|
7547
7740
|
const emptyProps = {
|
7548
7741
|
image: makeStringProp("default"),
|
7549
7742
|
imageSize: [Number, String, Array],
|
@@ -7556,20 +7749,12 @@ var stdin_default$J = vue.defineComponent({
|
|
7556
7749
|
slots
|
7557
7750
|
}) {
|
7558
7751
|
const renderImage = () => {
|
7752
|
+
var _a;
|
7559
7753
|
if (slots.image) {
|
7560
7754
|
return slots.image();
|
7561
7755
|
}
|
7562
|
-
|
7563
|
-
image
|
7564
|
-
} = props;
|
7565
|
-
if (image === "network") {
|
7566
|
-
return Network;
|
7567
|
-
}
|
7568
|
-
if (PRESET_IMAGES.includes(image)) {
|
7569
|
-
image = `https://img.yzcdn.cn/vant/empty-image-${image}.png`;
|
7570
|
-
}
|
7571
|
-
return vue.createVNode("img", {
|
7572
|
-
"src": image
|
7756
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || vue.createVNode("img", {
|
7757
|
+
"src": props.image
|
7573
7758
|
}, null);
|
7574
7759
|
};
|
7575
7760
|
const renderDescription = () => {
|
@@ -8194,7 +8379,7 @@ var stdin_default$E = vue.defineComponent({
|
|
8194
8379
|
setup(props, {
|
8195
8380
|
slots
|
8196
8381
|
}) {
|
8197
|
-
const id = useId();
|
8382
|
+
const id = useId$1();
|
8198
8383
|
const root = vue.ref();
|
8199
8384
|
const barRef = vue.ref();
|
8200
8385
|
const offset = vue.ref(0);
|
@@ -11018,7 +11203,7 @@ var stdin_default$k = vue.defineComponent({
|
|
11018
11203
|
slots,
|
11019
11204
|
attrs
|
11020
11205
|
}) {
|
11021
|
-
const id = useId();
|
11206
|
+
const id = useId$1();
|
11022
11207
|
const filedRef = vue.ref();
|
11023
11208
|
const onCancel = () => {
|
11024
11209
|
if (!slots.action) {
|
@@ -12636,7 +12821,6 @@ var stdin_default$6 = vue.defineComponent({
|
|
12636
12821
|
});
|
12637
12822
|
const TreeSelect = withInstall(stdin_default$6);
|
12638
12823
|
const [name, bem, t] = createNamespace("uploader");
|
12639
|
-
const toArray = (item) => Array.isArray(item) ? item : [item];
|
12640
12824
|
function readFileContent(file, resultType) {
|
12641
12825
|
return new Promise((resolve) => {
|
12642
12826
|
if (resultType === "file") {
|
@@ -13895,7 +14079,7 @@ const Lazyload = {
|
|
13895
14079
|
});
|
13896
14080
|
}
|
13897
14081
|
};
|
13898
|
-
const version = "4.0.0-alpha.
|
14082
|
+
const version = "4.0.0-alpha.3";
|
13899
14083
|
function install(app) {
|
13900
14084
|
const components = [
|
13901
14085
|
ActionBar,
|