@solar-taro/ui-sun 1.1.1 → 1.1.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.md +23 -0
- package/chip/index.vue.d.ts +4 -2
- package/circular-progress/index.d.ts +1 -0
- package/circular-progress/index.scss +47 -0
- package/circular-progress/index.vue.d.ts +37 -0
- package/index.d.ts +1 -0
- package/index.js +27 -25
- package/index10.js +55 -18
- package/index11.js +19 -50
- package/index12.js +49 -28
- package/index13.js +29 -21
- package/index14.js +18 -19
- package/index15.js +20 -10
- package/index16.js +10 -27
- package/index17.js +27 -112
- package/index18.js +118 -10
- package/index19.js +7 -7
- package/index20.js +10 -2
- package/index21.js +1 -1
- package/index22.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/index30.js +1 -1
- package/index31.js +1 -1
- package/index33.js +1 -1
- package/index34.js +1 -1
- package/index35.js +1 -1
- package/index36.js +2 -3
- package/index37.js +4 -0
- package/index38.js +5 -0
- package/index5.js +20 -15
- package/index6.js +15 -12
- package/index7.js +11 -18
- package/index8.js +20 -25
- package/index9.js +23 -55
- package/package.json +1 -1
- package/typing.d.ts +1 -0
package/index9.js
CHANGED
|
@@ -1,60 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
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({
|
|
3
5
|
__name: "index",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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"
|
|
39
|
-
}
|
|
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"])
|
|
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)
|
|
14
|
+
};
|
|
15
|
+
return (n, h) => (g(), m("view", {
|
|
16
|
+
class: "sun-navbar",
|
|
17
|
+
style: r
|
|
46
18
|
}, [
|
|
47
|
-
|
|
48
|
-
n
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
r[0] || (r[0] = t("view", { class: "sun-popover-arrow" }, null, -1)),
|
|
55
|
-
n(o.$slots, "content")
|
|
56
|
-
], 16)
|
|
57
|
-
], 38));
|
|
19
|
+
o("view", v, [
|
|
20
|
+
a(n.$slots, "default"),
|
|
21
|
+
o("view", b, [
|
|
22
|
+
a(n.$slots, "center")
|
|
23
|
+
])
|
|
24
|
+
])
|
|
25
|
+
]));
|
|
58
26
|
}
|
|
59
27
|
});
|
|
60
28
|
export {
|
package/package.json
CHANGED
package/typing.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Color = 'primary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'secondary';
|