@solar-taro/ui-sun 1.1.0 → 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 CHANGED
@@ -1,3 +1,18 @@
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
+
12
+ ## 1.1.0 (2025-03-11)
13
+
14
+ This was a version bump only for ui-sun to align it with other projects, there were no code changes.
15
+
1
16
  ## 1.0.3 (2025-02-17)
2
17
 
3
18
  This was a version bump only for ui-sun to align it with other projects, there were no code changes.
@@ -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: "primary" | "success" | "danger" | "warning" | "info" | "dark" | "light" | "secondary";
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: "primary" | "success" | "danger" | "warning" | "info" | "dark" | "light" | "secondary";
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
+ } & {};