stellar-ui-v2 1.40.29 → 1.40.31
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/README.md +8 -8
- package/components/ste-animate/README.md +2 -2
- package/components/ste-animate/ste-animate.vue +31 -10
- package/components/ste-date-picker/ste-date-picker.vue +391 -391
- package/components/ste-index-list/README.md +6 -6
- package/components/ste-marquee/README.md +1 -1
- package/components/ste-marquee/ste-marquee.vue +13 -12
- package/components/ste-message-box/ste-message-box.js +72 -72
- package/components/ste-message-box/ste-message-box.vue +364 -364
- package/components/ste-notice-bar/ste-notice-bar.vue +336 -336
- package/components/ste-page-container/README.md +83 -83
- package/components/ste-page-container/WORKLOG-2026-03-12.md +229 -229
- package/components/ste-page-container/ste-page-container.vue +190 -190
- package/components/ste-popup/README.md +16 -16
- package/components/ste-popup/ste-popup.vue +392 -392
- package/components/ste-price/ste-price.vue +256 -256
- package/components/ste-radio/README.md +16 -16
- package/components/ste-rate/README.md +13 -13
- package/components/ste-select/datetime.vue +106 -106
- package/components/ste-slider/ste-slider.vue +552 -552
- package/components/ste-table-column/checkbox-icon.vue +65 -65
- package/components/ste-table-column/radio-icon.vue +110 -110
- package/components/ste-table-column/sub-table.vue +116 -116
- package/components/ste-tabs/props.js +212 -212
- package/components/ste-toast/ste-toast.js +69 -69
- package/components/ste-video/ste-video.vue +756 -756
- package/index.js +2 -223
- package/package.json +26 -26
- package//346/214/211/351/234/200/345/274/225/345/205/245/344/275/277/347/224/250/346/214/207/345/215/227.md +0 -149
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
## ✨ 特性
|
|
12
12
|
|
|
13
|
-
- 🎯 多平台覆盖,支持 微信小程序、支付宝小程序、H5.
|
|
14
|
-
- 🚀 40+ 个高质量组件,覆盖移动端主流场景.
|
|
15
|
-
- 📖 提供丰富的文档和组件示例.
|
|
13
|
+
- 🎯 多平台覆盖,支持 微信小程序、支付宝小程序、H5.
|
|
14
|
+
- 🚀 40+ 个高质量组件,覆盖移动端主流场景.
|
|
15
|
+
- 📖 提供丰富的文档和组件示例.
|
|
16
16
|
- 🎨 支持修改 CSS 变量实现主题定制.
|
|
17
17
|
|
|
18
18
|
## 📱 预览
|
|
@@ -75,11 +75,11 @@ npm i stellar-ui-v2 -S
|
|
|
75
75
|
|
|
76
76
|
## 周边生态
|
|
77
77
|
|
|
78
|
-
| 项目 | 描述 |
|
|
79
|
-
| --- | --- |
|
|
80
|
-
|[StellarUI-Plus](https://github.com/wuhanshuzhiyun/stellar-ui-plus) | 一个基于vue3构建,打造的uni-app组件库 |
|
|
81
|
-
|[ste-vue-inset-loader](https://github.com/wuhanshuzhiyun/ste-vue-inset-loader) |常用于小程序需要全局引入组件的场景的包 |
|
|
82
|
-
|[ste-helper](https://github.com/wuhanshuzhiyun/stellar-ui-plus/tree/main/plugins/ste-helper) |旨在帮助开发者更加有效率的使用 StellarUI-Plus来开发项目的vscode插件 |
|
|
78
|
+
| 项目 | 描述 |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
|[StellarUI-Plus](https://github.com/wuhanshuzhiyun/stellar-ui-plus) | 一个基于vue3构建,打造的uni-app组件库 |
|
|
81
|
+
|[ste-vue-inset-loader](https://github.com/wuhanshuzhiyun/ste-vue-inset-loader) |常用于小程序需要全局引入组件的场景的包 |
|
|
82
|
+
|[ste-helper](https://github.com/wuhanshuzhiyun/stellar-ui-plus/tree/main/plugins/ste-helper) |旨在帮助开发者更加有效率的使用 StellarUI-Plus来开发项目的vscode插件 |
|
|
83
83
|
|[ste-cli](https://github.com/wuhanshuzhiyun/ste-cli) |stellar配套的脚手架 |
|
|
84
84
|
|
|
85
85
|
## 核心团队
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
| `show` | 控制动画,当值从`false`变为`true`时会触发一次动画 | `Boolean` | `false` | - | - |
|
|
91
91
|
| `type` | 动画类型,见下方`type`值说明 | `String` | - | - | - |
|
|
92
92
|
| `loop` | 是否循环执行。 | `Boolean` | `false` | - | - |
|
|
93
|
-
| `duration`|
|
|
93
|
+
| `duration`| 动画时长,支持 `1500`/`"1500"`/`"1500ms"`/`"1.5s"` | `Number/String` | `300` | - | - |
|
|
94
94
|
| `action` | 不能与 show 同时使用)触发方式,`initial`初始化执行; `click`点击执行 | `String` | - | - | - |
|
|
95
95
|
|
|
96
96
|
#### 动画类型(type)
|
|
@@ -114,4 +114,4 @@ export default {
|
|
|
114
114
|
| `default` | 默认插槽 | - |
|
|
115
115
|
|
|
116
116
|
---$
|
|
117
|
-
{{fuyuwei}}
|
|
117
|
+
{{fuyuwei}}
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
},
|
|
20
20
|
props: {
|
|
21
21
|
show: {
|
|
22
|
-
type:
|
|
22
|
+
type: Boolean,
|
|
23
23
|
default: false,
|
|
24
24
|
},
|
|
25
25
|
type: {
|
|
26
|
-
type:
|
|
26
|
+
type: String,
|
|
27
27
|
default: '',
|
|
28
28
|
},
|
|
29
29
|
loop: {
|
|
30
|
-
type:
|
|
30
|
+
type: Boolean,
|
|
31
31
|
default: false,
|
|
32
32
|
},
|
|
33
33
|
duration: {
|
|
34
|
-
type: [Number,
|
|
34
|
+
type: [Number, String],
|
|
35
35
|
default: 300,
|
|
36
36
|
},
|
|
37
37
|
action: {
|
|
38
|
-
type:
|
|
38
|
+
type: String,
|
|
39
39
|
default: '',
|
|
40
40
|
},
|
|
41
41
|
},
|
|
@@ -57,8 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
cmpRootStyle() {
|
|
59
59
|
let style = {};
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
const duration = this.normalizeDuration(this.duration);
|
|
61
|
+
if (duration) {
|
|
62
|
+
style.animationDuration = duration;
|
|
63
|
+
style['--ste-animate-duration'] = duration;
|
|
62
64
|
}
|
|
63
65
|
return style;
|
|
64
66
|
},
|
|
@@ -73,6 +75,25 @@
|
|
|
73
75
|
},
|
|
74
76
|
},
|
|
75
77
|
methods: {
|
|
78
|
+
normalizeDuration(duration) {
|
|
79
|
+
if (duration === null || duration === undefined || duration === '') {
|
|
80
|
+
return '';
|
|
81
|
+
}
|
|
82
|
+
if (typeof duration === 'number') {
|
|
83
|
+
return `${duration}ms`;
|
|
84
|
+
}
|
|
85
|
+
const val = String(duration).trim().toLowerCase();
|
|
86
|
+
if (!val) {
|
|
87
|
+
return '';
|
|
88
|
+
}
|
|
89
|
+
if (/^\d+(\.\d+)?$/.test(val)) {
|
|
90
|
+
return `${val}ms`;
|
|
91
|
+
}
|
|
92
|
+
if (/^\d+(\.\d+)?(ms|s)$/.test(val)) {
|
|
93
|
+
return val;
|
|
94
|
+
}
|
|
95
|
+
return '';
|
|
96
|
+
},
|
|
76
97
|
handleClick() {
|
|
77
98
|
if (this.action === 'click') {
|
|
78
99
|
this.animated();
|
|
@@ -176,7 +197,7 @@
|
|
|
176
197
|
border: 4rpx solid rgba(255, 255, 255, 0.6);
|
|
177
198
|
border-radius: 30px;
|
|
178
199
|
transform: scale(0);
|
|
179
|
-
animation: twinkle 2s ease-out infinite;
|
|
200
|
+
animation: twinkle var(--ste-animate-duration, 2s) ease-out infinite;
|
|
180
201
|
}
|
|
181
202
|
|
|
182
203
|
&::after {
|
|
@@ -199,8 +220,8 @@
|
|
|
199
220
|
filter: blur(6rpx);
|
|
200
221
|
opacity: 0.73;
|
|
201
222
|
transform: skew(-20deg);
|
|
202
|
-
animation: flicker 1.5s linear infinite;
|
|
223
|
+
animation: flicker var(--ste-animate-duration, 1.5s) linear infinite;
|
|
203
224
|
}
|
|
204
225
|
}
|
|
205
226
|
}
|
|
206
|
-
</style>
|
|
227
|
+
</style>
|