@solar-taro/ui-sun 1.1.1 → 1.1.2
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 +11 -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/index23.js +2 -7
- package/index24.js +1 -1
- package/index25.js +1 -1
- package/index26.js +1 -1
- package/index28.js +1 -1
- package/index29.js +1 -1
- package/index30.js +7 -2
- package/index31.js +1 -1
- package/index32.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 1.1.1 (2025-04-07)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ui-sun:** add loading & loading text & empty slot to virtual scroll
|
|
6
|
+
- **ui-sun:** add icon component
|
|
7
|
+
|
|
8
|
+
### ❤️ Thank You
|
|
9
|
+
|
|
10
|
+
- HyperLife1119
|
|
11
|
+
|
|
1
12
|
## 1.1.0 (2025-03-11)
|
|
2
13
|
|
|
3
14
|
This was a version bump only for ui-sun to align it with other projects, there were no code changes.
|
package/chip/index.vue.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { Color } from '../typing';
|
|
2
|
+
|
|
1
3
|
declare function __VLS_template(): {
|
|
2
4
|
default?(_: {}): any;
|
|
3
5
|
};
|
|
4
6
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
7
|
type?: "solid" | "translucent" | "outline";
|
|
6
8
|
size?: "small" | "default" | "large";
|
|
7
|
-
color:
|
|
9
|
+
color: Color;
|
|
8
10
|
}>, {
|
|
9
11
|
type: string;
|
|
10
12
|
size: string;
|
|
11
13
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
14
|
type?: "solid" | "translucent" | "outline";
|
|
13
15
|
size?: "small" | "default" | "large";
|
|
14
|
-
color:
|
|
16
|
+
color: Color;
|
|
15
17
|
}>, {
|
|
16
18
|
type: string;
|
|
17
19
|
size: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SunCircularProgress } from './index.vue';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.sun-circular-progress {
|
|
2
|
+
width: var(--size);
|
|
3
|
+
height: var(--size);
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
font-size: calc((var(--size) - var(--stroke-width)) / 4.5);
|
|
9
|
+
/* 使用 conic-gradient 绘制环形进度,
|
|
10
|
+
使用 calc() 动态计算进度角度 */
|
|
11
|
+
background:
|
|
12
|
+
/* 内圆遮罩 */
|
|
13
|
+
radial-gradient(circle closest-side, #fff calc(var(--size) / 2 - var(--stroke-width)), transparent 0),
|
|
14
|
+
/* 外层环形进度 */ conic-gradient(var(--color) calc(var(--progress) * 100 * 3.6deg), #f4f5f8 0);
|
|
15
|
+
|
|
16
|
+
&-primary {
|
|
17
|
+
--color: var(--color-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-secondary {
|
|
21
|
+
--color: var(--color-secondary);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-danger {
|
|
25
|
+
--color: var(--color-danger);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-success {
|
|
29
|
+
--color: var(--color-success);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-warning {
|
|
33
|
+
--color: var(--color-warning);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-info {
|
|
37
|
+
--color: var(--color-info);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-light {
|
|
41
|
+
--color: var(--color-light);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-dark {
|
|
45
|
+
--color: var(--color-dark);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Color } from '../typing';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
progress: number;
|
|
5
|
+
size: string;
|
|
6
|
+
strokeWidth: string;
|
|
7
|
+
color?: Color;
|
|
8
|
+
}>, {
|
|
9
|
+
color: string;
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
progress: number;
|
|
12
|
+
size: string;
|
|
13
|
+
strokeWidth: string;
|
|
14
|
+
color?: Color;
|
|
15
|
+
}>, {
|
|
16
|
+
color: string;
|
|
17
|
+
}>>> & Readonly<{}>, {
|
|
18
|
+
color: Color;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import { SolarSun as
|
|
1
|
+
import { SolarSun as e } from "./index2.js";
|
|
2
2
|
import { default as u } from "./index3.js";
|
|
3
3
|
import { default as f } from "./index4.js";
|
|
4
4
|
import { default as S } from "./index5.js";
|
|
5
5
|
import { default as p } from "./index6.js";
|
|
6
6
|
import { default as m } from "./index7.js";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as x } from "./index8.js";
|
|
8
8
|
import { default as c } from "./index9.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
9
|
+
import { default as g } from "./index10.js";
|
|
10
|
+
import { default as T } from "./index11.js";
|
|
11
|
+
import { default as v } from "./index12.js";
|
|
12
12
|
import { default as I } from "./index13.js";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
13
|
+
import { default as R } from "./index14.js";
|
|
14
|
+
import { default as w } from "./index15.js";
|
|
15
|
+
import { default as z } from "./index16.js";
|
|
16
|
+
import { default as B } from "./index17.js";
|
|
17
|
+
import { default as L } from "./index18.js";
|
|
18
18
|
import { default as V } from "./index19.js";
|
|
19
|
+
import { default as q } from "./index20.js";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
e as SolarSun,
|
|
21
22
|
u as SunAccordion,
|
|
22
23
|
f as SunChip,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
p as
|
|
26
|
-
m as
|
|
27
|
-
|
|
28
|
-
c as
|
|
29
|
-
|
|
24
|
+
S as SunCircularProgress,
|
|
25
|
+
V as SunFab,
|
|
26
|
+
p as SunFabGroup,
|
|
27
|
+
m as SunIcon,
|
|
28
|
+
x as SunLazyRender,
|
|
29
|
+
c as SunNavbar,
|
|
30
|
+
g as SunPopover,
|
|
31
|
+
v as SunSegment,
|
|
30
32
|
T as SunSegmentBtn,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
I as SunSpinner,
|
|
34
|
+
R as SunSudoku,
|
|
35
|
+
q as SunSudokuItem,
|
|
36
|
+
B as SunTb,
|
|
37
|
+
w as SunTbCell,
|
|
38
|
+
z as SunTbRow,
|
|
39
|
+
L as SunVirtualScroll
|
|
38
40
|
};
|
package/index10.js
CHANGED
|
@@ -1,25 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
__name: "segment-btn",
|
|
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
|
-
|
|
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"
|
|
39
|
+
}
|
|
7
40
|
},
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
e.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 }
|
|
17
53
|
}), [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
54
|
+
r[0] || (r[0] = t("view", { class: "sun-popover-arrow" }, null, -1)),
|
|
55
|
+
n(o.$slots, "content")
|
|
56
|
+
], 16)
|
|
57
|
+
], 38));
|
|
21
58
|
}
|
|
22
59
|
});
|
|
23
60
|
export {
|
|
24
|
-
|
|
61
|
+
k as default
|
|
25
62
|
};
|
package/index11.js
CHANGED
|
@@ -1,56 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ACTIVE_CHILD as
|
|
3
|
-
const
|
|
4
|
-
__name: "segment",
|
|
1
|
+
import { defineComponent as p, inject as a, getCurrentInstance as c, onUnmounted as m, unref as u, renderSlot as i, mergeProps as _, openBlock as f, createElementBlock as v } from "vue";
|
|
2
|
+
import { ACTIVE_CHILD as d, PARENT as g } from "./index38.js";
|
|
3
|
+
const o = u, k = i, C = _, B = f, E = v, $ = /* @__PURE__ */ p({
|
|
4
|
+
__name: "segment-btn",
|
|
5
5
|
props: {
|
|
6
|
-
|
|
6
|
+
value: {}
|
|
7
7
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
unlink: (e) => {
|
|
23
|
-
t.slice(t.indexOf(e), 1);
|
|
24
|
-
},
|
|
25
|
-
active: (e) => {
|
|
26
|
-
d("change", {
|
|
27
|
-
value: e.props.value,
|
|
28
|
-
index: i.value
|
|
29
|
-
}), d("update:modelValue", e.props.value), o.value = e;
|
|
30
|
-
}
|
|
31
|
-
}), C(() => u.modelValue, (e) => {
|
|
32
|
-
o.value = t.find((n) => n.props.value === e);
|
|
33
|
-
});
|
|
34
|
-
function p() {
|
|
35
|
-
return g.subTree.children[0].children[0].children.filter((e) => typeof e.type != "symbol");
|
|
36
|
-
}
|
|
37
|
-
return w(() => {
|
|
38
|
-
const e = p();
|
|
39
|
-
t.forEach((n) => {
|
|
40
|
-
var s, l;
|
|
41
|
-
const a = e.findIndex((r) => r === n.vnode);
|
|
42
|
-
(l = (s = n.props).value) != null || (s.value = a), n.props.value === u.modelValue && (o.value = n);
|
|
43
|
-
});
|
|
44
|
-
}), (e, n) => (L(), S("view", b(e.$attrs, {
|
|
45
|
-
class: "sun-segment",
|
|
46
|
-
style: _.value
|
|
47
|
-
}), [
|
|
48
|
-
T("view", $, [
|
|
49
|
-
R(e.$slots, "default")
|
|
50
|
-
])
|
|
51
|
-
], 16));
|
|
8
|
+
setup(b) {
|
|
9
|
+
const l = a(d), e = a(g), n = c();
|
|
10
|
+
return m(() => {
|
|
11
|
+
e.unlink(n);
|
|
12
|
+
}), e.link(n), (t, r) => {
|
|
13
|
+
var s;
|
|
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);
|
|
20
|
+
};
|
|
52
21
|
}
|
|
53
22
|
});
|
|
54
23
|
export {
|
|
55
|
-
|
|
24
|
+
$ as default
|
|
56
25
|
};
|
package/index12.js
CHANGED
|
@@ -1,35 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, y = /* @__PURE__ */ a({
|
|
6
|
-
__name: "index",
|
|
1
|
+
import { defineComponent as x, getCurrentInstance as V, shallowRef as E, shallowReactive as k, computed as c, provide as m, watch as C, onMounted as w, renderSlot as y, createElementVNode as B, mergeProps as I, openBlock as O, createElementBlock as A } from "vue";
|
|
2
|
+
import { ACTIVE_CHILD as N, PARENT as P } from "./index38.js";
|
|
3
|
+
const R = y, T = B, b = I, L = O, S = A, $ = { class: "sun-segment-inner" }, M = /* @__PURE__ */ x({
|
|
4
|
+
__name: "segment",
|
|
7
5
|
props: {
|
|
8
|
-
|
|
9
|
-
spinning: { type: Boolean }
|
|
6
|
+
modelValue: {}
|
|
10
7
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
emits: ["update:modelValue", "change"],
|
|
9
|
+
setup(v, { emit: f }) {
|
|
10
|
+
const d = f, u = v, g = V(), o = E(null), t = k([]), i = c(() => t.indexOf(o.value)), h = c(() => t.length), _ = c(() => ({
|
|
11
|
+
"--segment-length": h.value,
|
|
12
|
+
"--segment-active-index": i.value
|
|
13
|
+
}));
|
|
14
|
+
m(N, o), m(P, {
|
|
15
|
+
link: (e) => {
|
|
16
|
+
const n = p();
|
|
17
|
+
t.push(e), t.sort((a, s) => {
|
|
18
|
+
const l = n.indexOf(a.vnode), r = n.indexOf(s.vnode);
|
|
19
|
+
return l - r;
|
|
20
|
+
});
|
|
15
21
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
])
|
|
30
|
-
|
|
22
|
+
unlink: (e) => {
|
|
23
|
+
t.slice(t.indexOf(e), 1);
|
|
24
|
+
},
|
|
25
|
+
active: (e) => {
|
|
26
|
+
d("change", {
|
|
27
|
+
value: e.props.value,
|
|
28
|
+
index: i.value
|
|
29
|
+
}), d("update:modelValue", e.props.value), o.value = e;
|
|
30
|
+
}
|
|
31
|
+
}), C(() => u.modelValue, (e) => {
|
|
32
|
+
o.value = t.find((n) => n.props.value === e);
|
|
33
|
+
});
|
|
34
|
+
function p() {
|
|
35
|
+
return g.subTree.children[0].children[0].children.filter((e) => typeof e.type != "symbol");
|
|
36
|
+
}
|
|
37
|
+
return w(() => {
|
|
38
|
+
const e = p();
|
|
39
|
+
t.forEach((n) => {
|
|
40
|
+
var s, l;
|
|
41
|
+
const a = e.findIndex((r) => r === n.vnode);
|
|
42
|
+
(l = (s = n.props).value) != null || (s.value = a), n.props.value === u.modelValue && (o.value = n);
|
|
43
|
+
});
|
|
44
|
+
}), (e, n) => (L(), S("view", b(e.$attrs, {
|
|
45
|
+
class: "sun-segment",
|
|
46
|
+
style: _.value
|
|
47
|
+
}), [
|
|
48
|
+
T("view", $, [
|
|
49
|
+
R(e.$slots, "default")
|
|
50
|
+
])
|
|
51
|
+
], 16));
|
|
31
52
|
}
|
|
32
53
|
});
|
|
33
54
|
export {
|
|
34
|
-
|
|
55
|
+
M as default
|
|
35
56
|
};
|
package/index13.js
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
import { defineComponent as a, computed as c, renderList as p, Fragment as m, openBlock as d, createElementBlock as u, createElementVNode as _, renderSlot as f, createCommentVNode as k, normalizeClass as g } from "vue";
|
|
2
|
+
const v = p, B = m, e = d, n = u, o = _, C = f, N = k, w = g, z = { class: "sun-spinner-dot" }, E = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "sun-spinner-desc"
|
|
5
|
+
}, y = /* @__PURE__ */ a({
|
|
6
|
+
__name: "index",
|
|
4
7
|
props: {
|
|
5
|
-
size:
|
|
6
|
-
|
|
7
|
-
type: Number,
|
|
8
|
-
default: 9
|
|
9
|
-
}
|
|
8
|
+
size: {},
|
|
9
|
+
spinning: { type: Boolean }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
setup(r) {
|
|
12
|
+
const s = r, i = c(() => [
|
|
13
|
+
{
|
|
14
|
+
"sun-spinner-spinning": s.spinning
|
|
15
|
+
},
|
|
16
|
+
`sun-spinner-${s.size}`
|
|
17
|
+
]);
|
|
18
|
+
return (t, V) => (e(), n("view", {
|
|
19
|
+
class: w(["sun-spinner", i.value])
|
|
20
|
+
}, [
|
|
21
|
+
o("view", z, [
|
|
22
|
+
(e(), n(B, null, v(4, (l) => o("view", {
|
|
23
|
+
key: l,
|
|
24
|
+
class: "sun-spinner-dot-item"
|
|
25
|
+
})), 64))
|
|
26
|
+
]),
|
|
27
|
+
t.$slots.default ? (e(), n("view", E, [
|
|
28
|
+
C(t.$slots, "default")
|
|
29
|
+
])) : N("", !0)
|
|
30
|
+
], 2));
|
|
23
31
|
}
|
|
24
32
|
});
|
|
25
33
|
export {
|
|
26
|
-
|
|
34
|
+
y as default
|
|
27
35
|
};
|
package/index14.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
__name: "
|
|
1
|
+
import { defineComponent as u, computed as n, renderSlot as c, mergeProps as r, openBlock as l, createElementBlock as d } from "vue";
|
|
2
|
+
const a = c, m = r, p = l, k = d, _ = /* @__PURE__ */ u({
|
|
3
|
+
__name: "sudoku",
|
|
4
4
|
props: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
size: String,
|
|
6
|
+
count: {
|
|
7
|
+
type: Number,
|
|
8
|
+
default: 9
|
|
9
|
+
}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
"sun-
|
|
14
|
-
"sun-
|
|
15
|
-
"sun-
|
|
16
|
-
"sun-tb-cell-break-word": t.breakWord
|
|
11
|
+
setup(o) {
|
|
12
|
+
const e = o, t = n(() => ({
|
|
13
|
+
"sun-sudoku-sm": e.count === 1,
|
|
14
|
+
"sun-sudoku-md": e.count === 2 || e.count === 4,
|
|
15
|
+
"sun-sudoku-lg": e.count === 3 || e.count > 4
|
|
17
16
|
}));
|
|
18
|
-
return (
|
|
19
|
-
class: ["sun-
|
|
20
|
-
style: {
|
|
17
|
+
return (s, i) => (p(), k("view", m(s.$attrs, {
|
|
18
|
+
class: ["sun-sudoku", t.value],
|
|
19
|
+
style: { "--sudoku-width": o.size }
|
|
21
20
|
}), [
|
|
22
|
-
|
|
21
|
+
a(s.$slots, "default")
|
|
23
22
|
], 16));
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
_ as default
|
|
28
27
|
};
|
package/index15.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
|
-
import { defineComponent as o, renderSlot as
|
|
2
|
-
const
|
|
3
|
-
__name: "table-
|
|
1
|
+
import { defineComponent as o, computed as r, renderSlot as i, mergeProps as n, openBlock as c, createElementBlock as a } from "vue";
|
|
2
|
+
const p = i, d = n, m = c, k = a, b = /* @__PURE__ */ o({
|
|
3
|
+
__name: "table-cell",
|
|
4
4
|
props: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
sticky: {},
|
|
6
|
+
width: {},
|
|
7
|
+
maxWidth: {},
|
|
8
|
+
ellipsis: { type: Boolean },
|
|
9
|
+
breakWord: { type: Boolean }
|
|
7
10
|
},
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
setup(l) {
|
|
12
|
+
const t = l, s = r(() => ({
|
|
13
|
+
"sun-tb-cell-sticky-left": t.sticky === "left",
|
|
14
|
+
"sun-tb-cell-sticky-right": t.sticky === "right",
|
|
15
|
+
"sun-tb-cell-ellipsis": t.ellipsis,
|
|
16
|
+
"sun-tb-cell-break-word": t.breakWord
|
|
17
|
+
}));
|
|
18
|
+
return (e, u) => (m(), k("view", d(e.$attrs, {
|
|
19
|
+
class: ["sun-tb-cell", s.value],
|
|
20
|
+
style: { width: e.width, "min-width": e.width, "max-width": e.maxWidth }
|
|
11
21
|
}), [
|
|
12
|
-
|
|
22
|
+
p(e.$slots, "default")
|
|
13
23
|
], 16));
|
|
14
24
|
}
|
|
15
25
|
});
|
|
16
26
|
export {
|
|
17
|
-
|
|
27
|
+
b as default
|
|
18
28
|
};
|
package/index16.js
CHANGED
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
__name: "table",
|
|
1
|
+
import { defineComponent as o, renderSlot as t, mergeProps as r, openBlock as n, createElementBlock as s } from "vue";
|
|
2
|
+
const a = t, l = r, p = n, c = s, u = /* @__PURE__ */ o({
|
|
3
|
+
__name: "table-row",
|
|
4
4
|
props: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
outerBordered: { type: Boolean, default: !0 },
|
|
8
|
-
zebra: { type: Boolean },
|
|
9
|
-
size: {},
|
|
10
|
-
layout: {}
|
|
5
|
+
head: { type: Boolean },
|
|
6
|
+
foot: { type: Boolean }
|
|
11
7
|
},
|
|
12
|
-
setup(
|
|
13
|
-
|
|
14
|
-
"sun-tb-
|
|
15
|
-
"sun-tb-bordered": e.bordered,
|
|
16
|
-
"sun-tb-outer-bordered": e.outerBordered,
|
|
17
|
-
[`sun-tb-size-${e.size}`]: e.size
|
|
18
|
-
})), s = t(() => ({
|
|
19
|
-
"sun-tb-zebra": e.zebra,
|
|
20
|
-
[`sun-tb-layout-${e.layout}`]: e.layout
|
|
21
|
-
}));
|
|
22
|
-
return (o, f) => (z(), y("view", _(o.$attrs, {
|
|
23
|
-
class: ["sun-tb", n.value]
|
|
8
|
+
setup(m) {
|
|
9
|
+
return (e, d) => (p(), c("view", l(e.$attrs, {
|
|
10
|
+
class: ["sun-tb-row", { "sun-tb-head": e.head, "sun-tb-foot": e.foot }]
|
|
24
11
|
}), [
|
|
25
|
-
|
|
26
|
-
class: i(["sun-tb-inner", s.value])
|
|
27
|
-
}, [
|
|
28
|
-
m(o.$slots, "default")
|
|
29
|
-
], 2)
|
|
12
|
+
a(e.$slots, "default")
|
|
30
13
|
], 16));
|
|
31
14
|
}
|
|
32
15
|
});
|
|
33
16
|
export {
|
|
34
|
-
|
|
17
|
+
u as default
|
|
35
18
|
};
|