@solar-taro/ui-sun 0.0.0 → 1.0.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/accordion/index.vue.d.ts +25 -0
- package/chip/index.vue.d.ts +45 -0
- package/fab/fab-group.vue.d.ts +23 -0
- package/fab/fab.vue.d.ts +11 -0
- package/index.js +485 -0
- package/lazy-render/index.vue.d.ts +43 -0
- package/navbar/index.vue.d.ts +12 -0
- package/package.json +1 -1
- package/popover/index.vue.d.ts +92 -0
- package/segment/injection.d.ts +8 -0
- package/segment/segment-btn.vue.d.ts +24 -0
- package/segment/segment.vue.d.ts +36 -0
- package/spinner/index.vue.d.ts +26 -0
- package/sudoku/sudoku-item.vue.d.ts +11 -0
- package/sudoku/sudoku.vue.d.ts +25 -0
- package/table/table-cell.vue.d.ts +36 -0
- package/table/table-row.vue.d.ts +26 -0
- package/table/table.vue.d.ts +53 -0
- package/virtual-scroll/index.vue.d.ts +70 -0
- package/CHANGELOG.md +0 -3
- package/eslint.config.cjs +0 -22
- package/project.json +0 -28
- package/shims-vue.d.ts +0 -5
- package/src/accordion/index.vue +0 -27
- package/src/chip/index.vue +0 -27
- package/src/fab/fab-group.vue +0 -17
- package/src/fab/fab.vue +0 -5
- package/src/lazy-render/index.vue +0 -38
- package/src/navbar/index.vue +0 -26
- package/src/popover/index.vue +0 -56
- package/src/segment/injection.ts +0 -8
- package/src/segment/segment-btn.vue +0 -28
- package/src/segment/segment.vue +0 -86
- package/src/spinner/index.vue +0 -26
- package/src/sudoku/sudoku-item.vue +0 -5
- package/src/sudoku/sudoku.vue +0 -23
- package/src/table/table-cell.vue +0 -26
- package/src/table/table-row.vue +0 -12
- package/src/table/table.vue +0 -39
- package/src/virtual-scroll/index.vue +0 -138
- package/tsconfig.json +0 -21
- package/tsconfig.lib.json +0 -26
- package/tsconfig.spec.json +0 -28
- package/vite.config.ts +0 -130
- /package/{src/_color.scss → _color.scss} +0 -0
- /package/{src/_sun.scss → _sun.scss} +0 -0
- /package/{src/_wx.scss → _wx.scss} +0 -0
- /package/{src/accordion/index.ts → accordion/index.d.ts} +0 -0
- /package/{src/accordion → accordion}/index.scss +0 -0
- /package/{src/chip/index.ts → chip/index.d.ts} +0 -0
- /package/{src/chip → chip}/index.scss +0 -0
- /package/{src/fab/index.ts → fab/index.d.ts} +0 -0
- /package/{src/fab → fab}/index.scss +0 -0
- /package/{src/index.ts → index.d.ts} +0 -0
- /package/{src/index.scss → index.scss} +0 -0
- /package/{src/lazy-render/index.ts → lazy-render/index.d.ts} +0 -0
- /package/{src/navbar/index.ts → navbar/index.d.ts} +0 -0
- /package/{src/navbar → navbar}/index.scss +0 -0
- /package/{src/popover/index.ts → popover/index.d.ts} +0 -0
- /package/{src/popover → popover}/index.scss +0 -0
- /package/{src/segment/index.ts → segment/index.d.ts} +0 -0
- /package/{src/segment → segment}/index.scss +0 -0
- /package/{src/spinner/index.ts → spinner/index.d.ts} +0 -0
- /package/{src/spinner → spinner}/index.scss +0 -0
- /package/{src/sudoku/index.ts → sudoku/index.d.ts} +0 -0
- /package/{src/sudoku → sudoku}/index.scss +0 -0
- /package/{src/table → table}/_table-cell.scss +0 -0
- /package/{src/table → table}/_table-row.scss +0 -0
- /package/{src/table → table}/_table.scss +0 -0
- /package/{src/table/index.ts → table/index.d.ts} +0 -0
- /package/{src/table → table}/index.scss +0 -0
- /package/{src/virtual-scroll/index.ts → virtual-scroll/index.d.ts} +0 -0
- /package/{src/virtual-scroll → virtual-scroll}/index.scss +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
content?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
/** 是否显示 */
|
|
7
|
+
show: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
/** popover的横轴位置:left,right,start,end,center */
|
|
12
|
+
x: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** popover的纵轴位置:top,bottom,start,end,center */
|
|
17
|
+
y: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** 横轴偏移度 */
|
|
22
|
+
offsetX: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/** 纵轴偏移度 */
|
|
27
|
+
offsetY: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
/** popover背景 */
|
|
32
|
+
bg: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
/** popover文字颜色 */
|
|
37
|
+
color: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
/** 是否显示 */
|
|
43
|
+
show: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
/** popover的横轴位置:left,right,start,end,center */
|
|
48
|
+
x: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** popover的纵轴位置:top,bottom,start,end,center */
|
|
53
|
+
y: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/** 横轴偏移度 */
|
|
58
|
+
offsetX: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
/** 纵轴偏移度 */
|
|
63
|
+
offsetY: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
/** popover背景 */
|
|
68
|
+
bg: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
/** popover文字颜色 */
|
|
73
|
+
color: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{}>, {
|
|
78
|
+
color: string;
|
|
79
|
+
offsetY: string;
|
|
80
|
+
show: boolean;
|
|
81
|
+
x: string;
|
|
82
|
+
y: string;
|
|
83
|
+
offsetX: string;
|
|
84
|
+
bg: string;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
87
|
+
export default _default;
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentInternalInstance, InjectionKey, Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const ACTIVE_CHILD: InjectionKey<Ref<ComponentInternalInstance>>;
|
|
4
|
+
export declare const PARENT: InjectionKey<{
|
|
5
|
+
link(child: ComponentInternalInstance): void;
|
|
6
|
+
unlink(child: ComponentInternalInstance): void;
|
|
7
|
+
active(child: ComponentInternalInstance): void;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
value: unknown;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
value: unknown;
|
|
8
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
modelValue: unknown;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (v: unknown) => void;
|
|
8
|
+
change: (v: {
|
|
9
|
+
value: unknown;
|
|
10
|
+
index: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
modelValue: unknown;
|
|
14
|
+
}>>> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
|
|
16
|
+
onChange?: ((v: {
|
|
17
|
+
value: unknown;
|
|
18
|
+
index: number;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
size?: "small" | "middle" | "default" | "large";
|
|
6
|
+
spinning?: boolean;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
size?: "small" | "middle" | "default" | "large";
|
|
9
|
+
spinning?: boolean;
|
|
10
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
size: StringConstructor;
|
|
6
|
+
count: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
size: StringConstructor;
|
|
12
|
+
count: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{}>, {
|
|
17
|
+
count: number;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
sticky?: "left" | "right";
|
|
6
|
+
width?: string;
|
|
7
|
+
maxWidth?: string;
|
|
8
|
+
/** 溢出省略 */
|
|
9
|
+
ellipsis?: boolean;
|
|
10
|
+
/** 文本换行 */
|
|
11
|
+
breakWord?: boolean;
|
|
12
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
sticky?: "left" | "right";
|
|
14
|
+
width?: string;
|
|
15
|
+
maxWidth?: string;
|
|
16
|
+
/** 溢出省略 */
|
|
17
|
+
ellipsis?: boolean;
|
|
18
|
+
/** 文本换行 */
|
|
19
|
+
breakWord?: boolean;
|
|
20
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
head?: boolean;
|
|
6
|
+
foot?: boolean;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
head?: boolean;
|
|
9
|
+
foot?: boolean;
|
|
10
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
rounded?: boolean;
|
|
6
|
+
bordered?: boolean;
|
|
7
|
+
outerBordered?: boolean;
|
|
8
|
+
/** 斑马风格 */
|
|
9
|
+
zebra?: boolean;
|
|
10
|
+
size?: "small" | "medium" | "default";
|
|
11
|
+
layout?: "auto" | "fixed";
|
|
12
|
+
}>, {
|
|
13
|
+
rounded: boolean;
|
|
14
|
+
outerBordered: boolean;
|
|
15
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
rounded?: boolean;
|
|
17
|
+
bordered?: boolean;
|
|
18
|
+
outerBordered?: boolean;
|
|
19
|
+
/** 斑马风格 */
|
|
20
|
+
zebra?: boolean;
|
|
21
|
+
size?: "small" | "medium" | "default";
|
|
22
|
+
layout?: "auto" | "fixed";
|
|
23
|
+
}>, {
|
|
24
|
+
rounded: boolean;
|
|
25
|
+
outerBordered: boolean;
|
|
26
|
+
}>>> & Readonly<{}>, {
|
|
27
|
+
rounded: boolean;
|
|
28
|
+
outerBordered: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
refreshing?: boolean;
|
|
3
|
+
refresher?: boolean;
|
|
4
|
+
refresherBg?: string;
|
|
5
|
+
direction?: "vertical" | "horizontal";
|
|
6
|
+
items: Record<string, any>[];
|
|
7
|
+
itemSize: number | string;
|
|
8
|
+
itemKey?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
bottomSpace?: number;
|
|
11
|
+
}>, {
|
|
12
|
+
refresherBg: string;
|
|
13
|
+
direction: string;
|
|
14
|
+
id: () => string;
|
|
15
|
+
bottomSpace: number;
|
|
16
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
refresh: () => void;
|
|
18
|
+
lower: () => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
refreshing?: boolean;
|
|
21
|
+
refresher?: boolean;
|
|
22
|
+
refresherBg?: string;
|
|
23
|
+
direction?: "vertical" | "horizontal";
|
|
24
|
+
items: Record<string, any>[];
|
|
25
|
+
itemSize: number | string;
|
|
26
|
+
itemKey?: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
bottomSpace?: number;
|
|
29
|
+
}>, {
|
|
30
|
+
refresherBg: string;
|
|
31
|
+
direction: string;
|
|
32
|
+
id: () => string;
|
|
33
|
+
bottomSpace: number;
|
|
34
|
+
}>>> & Readonly<{
|
|
35
|
+
onRefresh?: (() => any) | undefined;
|
|
36
|
+
onLower?: (() => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
refresherBg: string;
|
|
39
|
+
direction: "vertical" | "horizontal";
|
|
40
|
+
id: string;
|
|
41
|
+
bottomSpace: number;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
43
|
+
default?(_: {
|
|
44
|
+
item: Record<string, any>;
|
|
45
|
+
index: number;
|
|
46
|
+
}): any;
|
|
47
|
+
}>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type __VLS_WithDefaults<P, D> = {
|
|
59
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
|
+
default: D[K];
|
|
61
|
+
}> : P[K];
|
|
62
|
+
};
|
|
63
|
+
type __VLS_Prettify<T> = {
|
|
64
|
+
[K in keyof T]: T[K];
|
|
65
|
+
} & {};
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
package/CHANGELOG.md
DELETED
package/eslint.config.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const baseConfig = require('../../eslint.config.cjs');
|
|
2
|
-
|
|
3
|
-
module.exports = [
|
|
4
|
-
...baseConfig,
|
|
5
|
-
{
|
|
6
|
-
files: ['**/*.json'],
|
|
7
|
-
rules: {
|
|
8
|
-
'@nx/dependency-checks': [
|
|
9
|
-
'error',
|
|
10
|
-
{
|
|
11
|
-
ignoredFiles: [
|
|
12
|
-
'{projectRoot}/eslint.config.{js,cjs,mjs}',
|
|
13
|
-
'{projectRoot}/vite.config.{js,ts,mjs,mts}',
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
languageOptions: {
|
|
19
|
-
parser: require('jsonc-eslint-parser'),
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
];
|
package/project.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ui-sun",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "packages/ui-sun/src",
|
|
5
|
-
"projectType": "library",
|
|
6
|
-
"tags": [],
|
|
7
|
-
"targets": {
|
|
8
|
-
"postbuild": {
|
|
9
|
-
"executor": "nx:run-commands",
|
|
10
|
-
"dependsOn": [
|
|
11
|
-
"build"
|
|
12
|
-
],
|
|
13
|
-
"options": {
|
|
14
|
-
"commands": [
|
|
15
|
-
"node scripts/copy-assets.js ui-sun **/*.scss"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"release:dev": {
|
|
20
|
-
"executor": "nx:run-commands",
|
|
21
|
-
"options": {
|
|
22
|
-
"commands": [
|
|
23
|
-
"yalc publish dist/ui-sun"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
package/shims-vue.d.ts
DELETED
package/src/accordion/index.vue
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="sun-accordion" :class="{ 'sun-accordion-expanded': expanded }">
|
|
3
|
-
<view class="sun-accordion-header" @tap="toggle()">
|
|
4
|
-
<slot></slot>
|
|
5
|
-
</view>
|
|
6
|
-
|
|
7
|
-
<view class="sun-accordion-content">
|
|
8
|
-
<view class="sun-accordion-content-inner">
|
|
9
|
-
<slot name="content" :toggle="toggle"></slot>
|
|
10
|
-
</view>
|
|
11
|
-
</view>
|
|
12
|
-
</view>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script lang="ts" setup>
|
|
16
|
-
const props = defineProps<{
|
|
17
|
-
disabled?: boolean
|
|
18
|
-
}>();
|
|
19
|
-
|
|
20
|
-
const expanded = defineModel<boolean>('expanded')
|
|
21
|
-
|
|
22
|
-
function toggle() {
|
|
23
|
-
if (!props.disabled) {
|
|
24
|
-
expanded.value = !expanded.value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
</script>
|
package/src/chip/index.vue
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="sun-chip" :class="classes">
|
|
3
|
-
<slot></slot>
|
|
4
|
-
</view>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="ts" setup>
|
|
8
|
-
import { computed } from 'vue';
|
|
9
|
-
|
|
10
|
-
const props = withDefaults(
|
|
11
|
-
defineProps<{
|
|
12
|
-
type?: 'solid' | 'light' | 'outline'
|
|
13
|
-
size?: 'small' | 'default' | 'large'
|
|
14
|
-
color: 'primary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'secondary',
|
|
15
|
-
}>(),
|
|
16
|
-
{
|
|
17
|
-
type: 'light',
|
|
18
|
-
size: 'default',
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
const classes = computed(() => [
|
|
23
|
-
`sun-chip-${props.size}`,
|
|
24
|
-
`sun-chip-${props.type}`,
|
|
25
|
-
`sun-chip-${props.color}`
|
|
26
|
-
]);
|
|
27
|
-
</script>
|
package/src/fab/fab-group.vue
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
v-bind="$attrs"
|
|
4
|
-
class="sun-fab-group"
|
|
5
|
-
:style="{ bottom: `calc(${15 + +offsetY}px + var(--safe-bottom))` }">
|
|
6
|
-
<slot></slot>
|
|
7
|
-
</view>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script lang="ts" setup>
|
|
11
|
-
defineProps({
|
|
12
|
-
offsetY: {
|
|
13
|
-
type: [Number, String],
|
|
14
|
-
default: 0
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
</script>
|
package/src/fab/fab.vue
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<slot v-if="show"></slot>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="ts">
|
|
6
|
-
import { onActivated, onDeactivated, ref } from 'vue';
|
|
7
|
-
|
|
8
|
-
const props = withDefaults(
|
|
9
|
-
defineProps<{
|
|
10
|
-
delay?: number,
|
|
11
|
-
hook?: 'activated' | 'created',
|
|
12
|
-
}>(),
|
|
13
|
-
{
|
|
14
|
-
delay: 50,
|
|
15
|
-
hook: 'activated',
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
const show = ref(false);
|
|
20
|
-
let timer: ReturnType<typeof setTimeout>;
|
|
21
|
-
|
|
22
|
-
function lazyRender() {
|
|
23
|
-
timer = setTimeout(() => {
|
|
24
|
-
show.value = true;
|
|
25
|
-
}, props.delay);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (props.hook === 'created') lazyRender();
|
|
29
|
-
|
|
30
|
-
onActivated(() => {
|
|
31
|
-
lazyRender();
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
onDeactivated(() => {
|
|
35
|
-
show.value = false;
|
|
36
|
-
if (timer) clearTimeout(timer);
|
|
37
|
-
})
|
|
38
|
-
</script>
|
package/src/navbar/index.vue
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="sun-navbar" :style="navbarStyle">
|
|
3
|
-
<view class="sun-navbar-inner">
|
|
4
|
-
<slot></slot>
|
|
5
|
-
|
|
6
|
-
<view class="sun-navbar-center">
|
|
7
|
-
<slot name="center"></slot>
|
|
8
|
-
</view>
|
|
9
|
-
</view>
|
|
10
|
-
</view>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script lang="ts" setup>
|
|
14
|
-
import { withPixel } from '@solar-kit/core';
|
|
15
|
-
import { getNavbarRect } from '@solar-taro/core';
|
|
16
|
-
|
|
17
|
-
const navbarRect = getNavbarRect();
|
|
18
|
-
const navbarStyle = {
|
|
19
|
-
'--navbar-height': withPixel(navbarRect.height),
|
|
20
|
-
'--navbar-content-height': withPixel(navbarRect.buttonHeight),
|
|
21
|
-
'--navbar-padding-top': withPixel(navbarRect.paddingTop),
|
|
22
|
-
'--navbar-padding-bottom': withPixel(navbarRect.paddingBottom),
|
|
23
|
-
'--navbar-padding-left': withPixel(navbarRect.paddingLeft),
|
|
24
|
-
'--navbar-padding-right': withPixel(navbarRect.paddingRight),
|
|
25
|
-
};
|
|
26
|
-
</script>
|