@solar-taro/ui-vant 2.8.4 → 2.8.5
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 +10 -0
- package/index10.js +2 -2
- package/index16.js +1 -1
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index21.js +1 -1
- package/index23.js +1 -1
- package/index24.js +35 -5
- package/index25.js +3 -35
- package/index26.js +5 -3
- package/index4.js +1 -1
- package/index7.js +21 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index10.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as _, ref as I, computed as v, renderSlot as x, toDisplayString as ee, createTextVNode as le, Fragment as te, openBlock as oe, createElementBlock as se, createCommentVNode as ae, renderList as ne, unref as re, withCtx as ie, createBlock as ue, createElementVNode as de, mergeProps as pe, resolveDirective as ce, withDirectives as fe, normalizeClass as ve, createSlots as me, createVNode as ye, normalizeStyle as he } from "vue";
|
|
2
2
|
import { useFilterList as be } from "@solar-taro/core";
|
|
3
3
|
import { SunTag as ge, SunLazyRender as ke, SunVirtualScroll as Ve, SunItem as M } from "@solar-taro/ui-sun";
|
|
4
|
-
import { createReusableTemplate as $e } from "./
|
|
4
|
+
import { createReusableTemplate as $e } from "./index24.js";
|
|
5
5
|
import we from "./index7.js";
|
|
6
6
|
import Se from "./index6.js";
|
|
7
|
-
import P from "./
|
|
7
|
+
import P from "./index25.js";
|
|
8
8
|
const d = x, T = ee, L = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n = ie, B = ue, y = de, A = pe, Te = ce, U = fe, G = ve, D = me, b = ye, W = he, Be = ["label", "placeholder", "required", "disabled"], Ke = {
|
|
9
9
|
key: 0,
|
|
10
10
|
name: "input",
|
package/index16.js
CHANGED
package/index17.js
CHANGED
package/index18.js
CHANGED
package/index19.js
CHANGED
package/index21.js
CHANGED
package/index23.js
CHANGED
package/index24.js
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { makeDestructurable as d, camelize as f } from "./index27.js";
|
|
2
|
+
import { shallowRef as p, defineComponent as i } from "vue";
|
|
3
|
+
// @__NO_SIDE_EFFECTS__
|
|
4
|
+
function h(r = {}) {
|
|
5
|
+
const { inheritAttrs: t = !0 } = r, e = p(), u = i({ setup(a, { slots: o }) {
|
|
6
|
+
return () => {
|
|
7
|
+
e.value = o.default;
|
|
8
|
+
};
|
|
9
|
+
} }), s = i({
|
|
10
|
+
inheritAttrs: t,
|
|
11
|
+
props: r.props,
|
|
12
|
+
setup(a, { attrs: o, slots: c }) {
|
|
13
|
+
return () => {
|
|
14
|
+
var l;
|
|
15
|
+
if (!e.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
|
|
16
|
+
const n = (l = e.value) === null || l === void 0 ? void 0 : l.call(e, {
|
|
17
|
+
...r.props == null ? m(o) : a,
|
|
18
|
+
$slots: c
|
|
19
|
+
});
|
|
20
|
+
return t && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return d({
|
|
25
|
+
define: u,
|
|
26
|
+
reuse: s
|
|
27
|
+
}, [u, s]);
|
|
28
|
+
}
|
|
29
|
+
function m(r) {
|
|
30
|
+
const t = {};
|
|
31
|
+
for (const e in r) t[f(e)] = r[e];
|
|
32
|
+
return t;
|
|
5
33
|
}
|
|
6
34
|
export {
|
|
7
|
-
|
|
35
|
+
f as camelize,
|
|
36
|
+
h as createReusableTemplate,
|
|
37
|
+
d as makeDestructurable
|
|
8
38
|
};
|
package/index25.js
CHANGED
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// @__NO_SIDE_EFFECTS__
|
|
4
|
-
function h(r = {}) {
|
|
5
|
-
const { inheritAttrs: t = !0 } = r, e = p(), u = i({ setup(a, { slots: o }) {
|
|
6
|
-
return () => {
|
|
7
|
-
e.value = o.default;
|
|
8
|
-
};
|
|
9
|
-
} }), s = i({
|
|
10
|
-
inheritAttrs: t,
|
|
11
|
-
props: r.props,
|
|
12
|
-
setup(a, { attrs: o, slots: c }) {
|
|
13
|
-
return () => {
|
|
14
|
-
var l;
|
|
15
|
-
if (!e.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
|
|
16
|
-
const n = (l = e.value) === null || l === void 0 ? void 0 : l.call(e, {
|
|
17
|
-
...r.props == null ? m(o) : a,
|
|
18
|
-
$slots: c
|
|
19
|
-
});
|
|
20
|
-
return t && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return d({
|
|
25
|
-
define: u,
|
|
26
|
-
reuse: s
|
|
27
|
-
}, [u, s]);
|
|
28
|
-
}
|
|
29
|
-
function m(r) {
|
|
30
|
-
const t = {};
|
|
31
|
-
for (const e in r) t[f(e)] = r[e];
|
|
32
|
-
return t;
|
|
1
|
+
function n(l) {
|
|
2
|
+
return l == null;
|
|
33
3
|
}
|
|
34
4
|
export {
|
|
35
|
-
|
|
36
|
-
h as createReusableTemplate,
|
|
37
|
-
d as makeDestructurable
|
|
5
|
+
n as default
|
|
38
6
|
};
|
package/index26.js
CHANGED
package/index4.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, ref as N, computed as r, mergeProps as I, createElementVNode as L, openBlock as P, createElementBlock as $, createCommentVNode as q } from "vue";
|
|
2
|
-
import y from "./
|
|
2
|
+
import y from "./index26.js";
|
|
3
3
|
const D = I, A = L, v = P, h = $, T = q, j = ["show"], z = ["title", "value-key", "columns", "loading"], H = /* @__PURE__ */ E({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "index",
|
package/index7.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { onKeyboardHeightChange as
|
|
3
|
-
const n =
|
|
1
|
+
import { defineComponent as f, ref as h, computed as b, watch as y, onUnmounted as g, renderSlot as v, createElementVNode as w, toDisplayString as k, openBlock as B, createElementBlock as _, createCommentVNode as C, mergeProps as $ } from "vue";
|
|
2
|
+
import { onKeyboardHeightChange as D, offKeyboardHeightChange as E } from "@tarojs/taro";
|
|
3
|
+
const n = v, r = w, N = k, a = B, i = _, S = C, V = $, H = ["show", "title", "close-on-click-overlay"], K = {
|
|
4
4
|
class: "sun-modal-extra",
|
|
5
5
|
style: { position: "absolute", top: "0", left: "16px", display: "flex", alignItems: "center", height: "48px" }
|
|
6
|
-
},
|
|
6
|
+
}, P = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "van-button-container van-button-group"
|
|
9
|
-
},
|
|
9
|
+
}, T = ["disabled"], U = /* @__PURE__ */ f({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
show: { type: Boolean },
|
|
@@ -16,39 +16,39 @@ const n = b, r = y, $ = g, a = v, i = k, D = w, E = _, N = ["show", "title", "cl
|
|
|
16
16
|
confirmDisabled: { type: Boolean }
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:show", "close", "confirm"],
|
|
19
|
-
setup(
|
|
20
|
-
const t = d, s =
|
|
19
|
+
setup(c, { emit: d }) {
|
|
20
|
+
const t = d, m = c, s = h(0), p = b(() => s.value === 0);
|
|
21
21
|
function l(e) {
|
|
22
22
|
s.value = e.height;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
}), (
|
|
24
|
+
return y(() => m.show, (e) => {
|
|
25
|
+
e || t("close");
|
|
26
|
+
}), D(l), g(() => {
|
|
27
|
+
E(l);
|
|
28
|
+
}), (e, o) => (a(), i("van-action-sheet", V(e.$attrs, {
|
|
27
29
|
show: e.show,
|
|
28
30
|
title: e.title,
|
|
29
|
-
"close-on-click-overlay":
|
|
30
|
-
onClose: o[1] || (o[1] = (
|
|
31
|
-
t("update:show", !1), t("close");
|
|
32
|
-
})
|
|
31
|
+
"close-on-click-overlay": p.value,
|
|
32
|
+
onClose: o[1] || (o[1] = (u) => t("update:show", !1))
|
|
33
33
|
}), [
|
|
34
|
-
r("view",
|
|
34
|
+
r("view", K, [
|
|
35
35
|
n(e.$slots, "extra")
|
|
36
36
|
]),
|
|
37
37
|
n(e.$slots, "default"),
|
|
38
|
-
e.showButtons ? (a(), i("view",
|
|
38
|
+
e.showButtons ? (a(), i("view", P, [
|
|
39
39
|
n(e.$slots, "buttons", {}, () => [
|
|
40
40
|
r("van-button", {
|
|
41
41
|
type: "primary",
|
|
42
42
|
round: "true",
|
|
43
43
|
block: "true",
|
|
44
44
|
disabled: e.confirmDisabled,
|
|
45
|
-
onClick: o[0] || (o[0] = (
|
|
46
|
-
},
|
|
45
|
+
onClick: o[0] || (o[0] = (u) => t("confirm"))
|
|
46
|
+
}, N(e.confirmText), 9, T)
|
|
47
47
|
])
|
|
48
|
-
])) :
|
|
49
|
-
], 16,
|
|
48
|
+
])) : S("", !0)
|
|
49
|
+
], 16, H));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
U as default
|
|
54
54
|
};
|