@solar-taro/ui-vant 1.6.4 → 2.0.0
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.md +8 -0
- package/cascader/index.vue.d.ts +35 -99
- package/cascader-picker/index.vue.d.ts +11 -51
- package/date-range-picker/index.vue.d.ts +9 -36
- package/directives/bind-function.d.ts +0 -1
- package/directives/datetime-picker.d.ts +0 -1
- package/directives/readonly.d.ts +0 -1
- package/index.d.ts +0 -2
- package/index.js +21 -25
- package/index.scss +1 -0
- package/index10.js +292 -50
- package/index100.js +10 -5
- package/index101.js +5 -7
- package/index102.js +4 -17
- package/index103.js +4 -10
- package/index104.js +5 -5
- package/index105.js +6 -4
- package/index106.js +10 -5
- package/index107.js +6 -5
- package/index108.js +17 -6
- package/index109.js +5 -10
- package/index11.js +17 -303
- package/index110.js +4 -31
- package/index111.js +3 -6
- package/index112.js +2 -16
- package/index113.js +14 -4
- package/index114.js +8 -5
- package/index115.js +5 -3
- package/index116.js +4 -2
- package/index117.js +5 -14
- package/index118.js +6 -8
- package/index119.js +5 -5
- package/index12.js +28 -45
- package/index120.js +3 -6
- package/index121.js +17 -5
- package/index122.js +5 -5
- package/index123.js +2 -4
- package/index124.js +4 -3
- package/index125.js +9 -17
- package/index126.js +5 -5
- package/index127.js +4 -3
- package/index128.js +5 -3
- package/index129.js +3 -10
- package/index13.js +4 -18
- package/index130.js +4 -5
- package/index131.js +3 -3
- package/index132.js +4 -5
- package/index133.js +11 -3
- package/index134.js +6 -4
- package/index135.js +6 -4
- package/index136.js +7 -4
- package/index137.js +3 -11
- package/index14.js +62 -27
- package/index15.js +2 -5
- package/index16.js +2 -64
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index2.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +9 -13
- package/index24.js +8 -5
- package/index25.js +6 -2
- package/index26.js +14 -2
- package/index27.js +4 -2
- package/index28.js +7 -2
- package/index29.js +791 -60
- package/index3.js +3 -3
- package/index30.js +31 -3
- package/index31.js +63 -8
- package/index32.js +3 -6
- package/index33.js +8 -4
- package/index34.js +7 -2
- package/index35.js +2 -4
- package/index36.js +2 -10
- package/index37.js +5 -4
- package/index38.js +10 -4
- package/index39.js +4 -2
- package/index4.js +1 -1
- package/index40.js +4 -4
- package/index41.js +3 -8
- package/index42.js +3 -4
- package/index43.js +7 -4
- package/index44.js +4 -6
- package/index45.js +5 -6
- package/index46.js +7 -9
- package/index47.js +5 -3
- package/index48.js +9 -5
- package/index49.js +5 -7
- package/index5.js +1 -1
- package/index50.js +6 -4
- package/index51.js +5 -10
- package/index52.js +9 -6
- package/index53.js +6 -17
- package/index54.js +17 -11
- package/index55.js +11 -6
- package/index56.js +6 -12
- package/index57.js +12 -3
- package/index58.js +3 -9
- package/index59.js +11 -8
- package/index6.js +92 -29
- package/index60.js +7 -6
- package/index61.js +9 -793
- package/index62.js +5 -7
- package/index63.js +5 -9
- package/index64.js +8 -11
- package/index65.js +15 -5
- package/index66.js +5 -5
- package/index67.js +6 -9
- package/index68.js +8 -15
- package/index69.js +6 -5
- package/index7.js +39 -90
- package/index70.js +5 -5
- package/index71.js +5 -8
- package/index72.js +6 -6
- package/index73.js +6 -5
- package/index74.js +26 -6
- package/index75.js +5 -6
- package/index76.js +39 -6
- package/index77.js +7 -26
- package/index78.js +5 -5
- package/index79.js +14 -39
- package/index8.js +264 -40
- package/index80.js +7 -6
- package/index81.js +1 -5
- package/index82.js +3 -15
- package/index83.js +11 -6
- package/index84.js +5 -2
- package/index85.js +3 -3
- package/index86.js +4 -13
- package/index87.js +4 -5
- package/index88.js +4 -3
- package/index89.js +4 -4
- package/index9.js +54 -262
- package/index90.js +4 -4
- package/index91.js +15 -4
- package/index92.js +14 -4
- package/index93.js +9 -4
- package/index94.js +3 -15
- package/index95.js +6 -3
- package/index96.js +5 -5
- package/index97.js +5 -13
- package/index98.js +6 -7
- package/index99.js +17 -5
- package/list/index.vue.d.ts +14 -9
- package/modal/index.vue.d.ts +19 -41
- package/opper-controller/index.vue.d.ts +8 -36
- package/overlay/overlay.d.ts +0 -1
- package/package.json +2 -2
- package/plugin.d.ts +0 -1
- package/select-picker/index.vue.d.ts +11 -45
- package/selector/index.vue.d.ts +86 -147
- package/index138.js +0 -9
- package/index139.js +0 -9
- package/index140.js +0 -10
- package/index141.js +0 -5
- package/item/index.d.ts +0 -1
- package/item/index.scss +0 -37
- package/item/index.vue.d.ts +0 -44
- package/tabbar/index.d.ts +0 -1
- package/tabbar/index.scss +0 -78
- package/tabbar/index.vue.d.ts +0 -58
package/index6.js
CHANGED
|
@@ -1,36 +1,99 @@
|
|
|
1
|
-
import { defineComponent as c,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
1
|
+
import { defineComponent as c, renderSlot as u, toDisplayString as m, createTextVNode as y, unref as p, withCtx as w, openBlock as x, createBlock as v, createElementVNode as S, vShow as B, withDirectives as k, createVNode as b, mergeProps as T, createElementBlock as N } from "vue";
|
|
2
|
+
import { vibrator as V } from "@solar-taro/core";
|
|
3
|
+
import { SunSpinner as a } from "@solar-taro/ui-sun";
|
|
4
|
+
const n = u, $ = m, D = y, o = p, E = w, s = x, C = v, l = S, d = B, f = k, z = b, P = T, j = N, A = ["enable-flex", "refresher-enabled", "refresher-triggered", "refresher-background"], L = {
|
|
5
|
+
class: "sun-list-placeholder",
|
|
6
|
+
style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
|
|
7
|
+
}, R = ["image", "description"], q = {
|
|
8
|
+
class: "sun-list-loading-wrapper",
|
|
9
|
+
style: { "text-align": "center", padding: "6px" }
|
|
10
|
+
}, I = /* @__PURE__ */ c({
|
|
8
11
|
__name: "index",
|
|
9
12
|
props: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
refreshing: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
flex: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
loading: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
loadingText: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "Loading"
|
|
28
|
+
},
|
|
29
|
+
data: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: []
|
|
32
|
+
},
|
|
33
|
+
refresher: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
refresherBg: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "transparent"
|
|
40
|
+
},
|
|
41
|
+
emptyType: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "default"
|
|
44
|
+
},
|
|
45
|
+
emptyText: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "暂无数据"
|
|
48
|
+
}
|
|
13
49
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
50
|
+
emits: ["refresh", "lower"],
|
|
51
|
+
setup(e, { emit: g }) {
|
|
52
|
+
const i = g;
|
|
53
|
+
return (r, t) => (s(), j("scroll-view", P(r.$attrs, {
|
|
54
|
+
class: "sun-list",
|
|
55
|
+
enhanced: !0,
|
|
56
|
+
"scroll-y": !0,
|
|
57
|
+
"lower-threshold": 300,
|
|
58
|
+
"enable-flex": e.flex,
|
|
59
|
+
"refresher-enabled": e.refresher,
|
|
60
|
+
"refresher-triggered": e.refreshing,
|
|
61
|
+
"refresher-background": e.refresherBg,
|
|
62
|
+
onRefresherrefresh: t[0] || (t[0] = (h) => {
|
|
63
|
+
o(V).short("light"), i("refresh");
|
|
64
|
+
}),
|
|
65
|
+
onScrolltolower: t[1] || (t[1] = (h) => i("lower"))
|
|
66
|
+
}), [
|
|
67
|
+
n(r.$slots, "default"),
|
|
68
|
+
f(l("view", L, [
|
|
69
|
+
e.loading ? (s(), C(o(a), {
|
|
70
|
+
key: 0,
|
|
71
|
+
size: "large"
|
|
72
|
+
}, {
|
|
73
|
+
default: E(() => [
|
|
74
|
+
D($(e.loadingText), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
})) : n(r.$slots, "empty", { key: 1 }, () => [
|
|
78
|
+
l("van-empty", {
|
|
79
|
+
image: e.emptyType,
|
|
80
|
+
description: e.emptyText
|
|
81
|
+
}, [
|
|
82
|
+
n(r.$slots, "empty-content")
|
|
83
|
+
], 8, R)
|
|
84
|
+
])
|
|
85
|
+
], 512), [
|
|
86
|
+
[d, !e.data.length]
|
|
87
|
+
]),
|
|
88
|
+
f(l("view", q, [
|
|
89
|
+
z(o(a), { size: "small" })
|
|
90
|
+
], 512), [
|
|
91
|
+
[d, e.data.length && e.loading && !e.refreshing]
|
|
92
|
+
]),
|
|
93
|
+
t[2] || (t[2] = l("view", { style: { position: "absolute", height: "1px", width: "1px", overflow: "hidden" } }, null, -1))
|
|
94
|
+
], 16, A));
|
|
32
95
|
}
|
|
33
96
|
});
|
|
34
97
|
export {
|
|
35
|
-
|
|
98
|
+
I as default
|
|
36
99
|
};
|
package/index60.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import t from "./index61.js";
|
|
2
|
+
import i from "./index32.js";
|
|
3
|
+
var s = Object.prototype, p = s.hasOwnProperty;
|
|
4
|
+
function l(r, a, o) {
|
|
5
|
+
var n = r[a];
|
|
6
|
+
(!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
|
|
6
7
|
}
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
l as default
|
|
9
10
|
};
|