@solar-taro/ui-sun 1.1.0 → 1.1.1
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 +4 -0
- package/icon/_ionicon.scss +2811 -0
- package/icon/index.d.ts +1 -0
- package/icon/index.scss +9 -0
- package/icon/index.vue.d.ts +24 -0
- package/index.d.ts +2 -0
- package/index.js +29 -25
- package/index10.js +19 -29
- package/index11.js +47 -18
- package/index12.js +29 -22
- package/index13.js +19 -10
- package/index14.js +19 -26
- package/index15.js +11 -94
- package/index16.js +33 -10
- package/index17.js +118 -10
- package/index18.js +10 -2
- package/index19.js +10 -7
- package/index2.js +12 -32
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +7 -2
- package/index24.js +1 -1
- package/index25.js +1 -1
- package/index26.js +1 -1
- package/index27.js +1 -1
- package/index28.js +1 -1
- package/index29.js +1 -1
- package/index3.js +27 -16
- package/index30.js +1 -1
- package/index31.js +1 -1
- package/index32.js +1 -1
- package/index33.js +2 -3
- package/index34.js +4 -0
- package/index35.js +4 -0
- package/index36.js +5 -0
- package/index4.js +18 -15
- package/index5.js +15 -19
- package/index6.js +11 -23
- package/index7.js +18 -55
- package/index8.js +25 -20
- package/index9.js +56 -50
- package/package.json +1 -1
- package/plugin.d.ts +6 -0
- package/virtual-scroll/index.vue.d.ts +8 -0
package/index8.js
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
e.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return B(), E("view", C(t.$attrs, {
|
|
15
|
-
class: ["sun-segment-btn", { "sun-segment-btn-active": ((s = o(l)) == null ? void 0 : s.props.value) === t.value }],
|
|
16
|
-
onTap: r[0] || (r[0] = (I) => o(e).active(o(n)))
|
|
17
|
-
}), [
|
|
18
|
-
k(t.$slots, "default")
|
|
19
|
-
], 16);
|
|
1
|
+
import { defineComponent as i, renderSlot as d, createElementVNode as s, openBlock as c, createElementBlock as l } from "vue";
|
|
2
|
+
import { withPixel as t } from "@solar-kit/core";
|
|
3
|
+
import { getNavbarRect as p } from "@solar-taro/core";
|
|
4
|
+
const a = d, o = s, g = c, m = l, v = { class: "sun-navbar-inner" }, b = { class: "sun-navbar-center" }, k = /* @__PURE__ */ i({
|
|
5
|
+
__name: "index",
|
|
6
|
+
setup(_) {
|
|
7
|
+
const e = p(), r = {
|
|
8
|
+
"--navbar-height": t(e.height),
|
|
9
|
+
"--navbar-content-height": t(e.buttonHeight),
|
|
10
|
+
"--navbar-padding-top": t(e.paddingTop),
|
|
11
|
+
"--navbar-padding-bottom": t(e.paddingBottom),
|
|
12
|
+
"--navbar-padding-left": t(e.paddingLeft),
|
|
13
|
+
"--navbar-padding-right": t(e.paddingRight)
|
|
20
14
|
};
|
|
15
|
+
return (n, h) => (g(), m("view", {
|
|
16
|
+
class: "sun-navbar",
|
|
17
|
+
style: r
|
|
18
|
+
}, [
|
|
19
|
+
o("view", v, [
|
|
20
|
+
a(n.$slots, "default"),
|
|
21
|
+
o("view", b, [
|
|
22
|
+
a(n.$slots, "center")
|
|
23
|
+
])
|
|
24
|
+
])
|
|
25
|
+
]));
|
|
21
26
|
}
|
|
22
27
|
});
|
|
23
28
|
export {
|
|
24
|
-
|
|
29
|
+
k as default
|
|
25
30
|
};
|
package/index9.js
CHANGED
|
@@ -1,56 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
__name: "segment",
|
|
1
|
+
import { defineComponent as l, renderSlot as s, createElementVNode as a, mergeProps as f, withModifiers as p, normalizeClass as i, normalizeStyle as u, openBlock as d, createElementBlock as c } from "vue";
|
|
2
|
+
const n = s, t = a, v = f, m = p, y = i, g = u, w = d, S = c, x = { class: "sun-popover-trigger" }, k = /* @__PURE__ */ l({
|
|
3
|
+
__name: "index",
|
|
5
4
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
5
|
+
/** 是否显示 */
|
|
6
|
+
show: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: void 0
|
|
9
|
+
},
|
|
10
|
+
/** popover的横轴位置:left,right,start,end,center */
|
|
11
|
+
x: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "left"
|
|
14
|
+
},
|
|
15
|
+
/** popover的纵轴位置:top,bottom,start,end,center */
|
|
16
|
+
y: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "center"
|
|
19
|
+
},
|
|
20
|
+
/** 横轴偏移度 */
|
|
21
|
+
offsetX: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "7.5rpx"
|
|
24
|
+
},
|
|
25
|
+
/** 纵轴偏移度 */
|
|
26
|
+
offsetY: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "7.5rpx"
|
|
29
|
+
},
|
|
30
|
+
/** popover背景 */
|
|
31
|
+
bg: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "#fff"
|
|
34
|
+
},
|
|
35
|
+
/** popover文字颜色 */
|
|
36
|
+
color: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "#000"
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
},
|
|
41
|
+
setup(e) {
|
|
42
|
+
return (o, r) => (w(), S("view", {
|
|
43
|
+
class: y(["sun-popover", [{ "sun-popover-show": e.show }, `sun-popover-x-${e.x}`, `sun-popover-y-${e.y}`]]),
|
|
44
|
+
style: g({ "--popover-x-offset": e.offsetX, "--popover-y-offset": e.offsetY, "--popover-background": e.bg }),
|
|
45
|
+
onTap: m(($) => !1, ["stop"])
|
|
46
|
+
}, [
|
|
47
|
+
t("view", x, [
|
|
48
|
+
n(o.$slots, "default")
|
|
49
|
+
]),
|
|
50
|
+
t("view", v(o.$attrs, {
|
|
51
|
+
class: "sun-popover-container",
|
|
52
|
+
style: { color: e.color }
|
|
53
|
+
}), [
|
|
54
|
+
r[0] || (r[0] = t("view", { class: "sun-popover-arrow" }, null, -1)),
|
|
55
|
+
n(o.$slots, "content")
|
|
56
|
+
], 16)
|
|
57
|
+
], 38));
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
export {
|
|
55
|
-
|
|
61
|
+
k as default
|
|
56
62
|
};
|
package/package.json
CHANGED
package/plugin.d.ts
ADDED
|
@@ -8,11 +8,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
8
8
|
itemKey?: string;
|
|
9
9
|
id?: string;
|
|
10
10
|
bottomSpace?: number;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
loadingText?: string;
|
|
11
13
|
}>, {
|
|
12
14
|
refresherBg: string;
|
|
13
15
|
direction: string;
|
|
14
16
|
id: () => string;
|
|
15
17
|
bottomSpace: number;
|
|
18
|
+
loadingText: string;
|
|
16
19
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
20
|
refresh: () => void;
|
|
18
21
|
lower: () => void;
|
|
@@ -26,11 +29,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
26
29
|
itemKey?: string;
|
|
27
30
|
id?: string;
|
|
28
31
|
bottomSpace?: number;
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
loadingText?: string;
|
|
29
34
|
}>, {
|
|
30
35
|
refresherBg: string;
|
|
31
36
|
direction: string;
|
|
32
37
|
id: () => string;
|
|
33
38
|
bottomSpace: number;
|
|
39
|
+
loadingText: string;
|
|
34
40
|
}>>> & Readonly<{
|
|
35
41
|
onRefresh?: (() => any) | undefined;
|
|
36
42
|
onLower?: (() => any) | undefined;
|
|
@@ -39,11 +45,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
39
45
|
direction: "vertical" | "horizontal";
|
|
40
46
|
id: string;
|
|
41
47
|
bottomSpace: number;
|
|
48
|
+
loadingText: string;
|
|
42
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
43
50
|
default?(_: {
|
|
44
51
|
item: Record<string, any>;
|
|
45
52
|
index: number;
|
|
46
53
|
}): any;
|
|
54
|
+
empty?(_: {}): any;
|
|
47
55
|
}>;
|
|
48
56
|
export default _default;
|
|
49
57
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|