@wot-ui/ui 2.0.0-alpha.9 → 2.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/README.md CHANGED
@@ -57,7 +57,6 @@
57
57
  <img src="https://v2.wot-ui.cn/wx.jpg" width="200" height="200"/>
58
58
  <img src="https://v2.wot-ui.cn/alipay.png" width="200" height="200" />
59
59
  <img src="https://v2.wot-ui.cn/h5.png" width="200" height="200" />
60
- <img src="https://v2.wot-ui.cn/android.png" width="200" height="200" />
61
60
 
62
61
  </p>
63
62
 
@@ -71,19 +70,23 @@
71
70
 
72
71
  我们也非常欢迎大家一起贡献优秀的 Demo 与案例,欢迎在此 [issue](https://github.com/wot-ui/wot-ui/issues/16) 提交案例。
73
72
 
74
- ## 周边生态
75
-
76
- | 项目 | 描述 |
77
- | ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
78
- | [wot-starter](https://github.com/wot-ui/wot-starter) | 基于 [vitesse-uni-app](https://github.com/uni-helper/vitesse-uni-app) wot-ui 快速起手项目 |
79
- | [wot-ui-intellisense](https://github.com/wot-ui/wot-ui-intellisense) | wot-ui vscode 代码提示插件 |
80
- | [awesome-uni-app](https://github.com/uni-helper/awesome-uni-app) | 多端统一开发框架 uni-app 优秀开发资源汇总 |
81
- | [create-uni](https://github.com/uni-helper/create-uni) | 快速创建 uni-app 项目 |
82
- | [wot-starter-retail](https://github.com/Moonofweisheng/wot-starter-retail) | 基于 wot-ui uni-app 零售行业模板 |
83
- | [uni-mini-ci](https://github.com/Moonofweisheng/uni-mini-ci) | 一个 uni-app 小程序端构建后支持 CI(持续集成)的插件 |
84
- | [my-uni](https://github.com/wot-ui/my-uni) | 摸鱼 uni 插件库合集 |
85
- | [unibest](https://github.com/unibest-tech/unibest) | 基于 wot-ui 的 uni-app 模板 |
86
- | [uni-ku-root](https://github.com/uni-ku/root) | 一个模拟 App.vue 原有能力的根组件插件 |
73
+ ## 生态
74
+
75
+ | 分类 | 项目 | 描述 |
76
+ | --- | --- | --- |
77
+ | 官方生态 | [wot-starter](https://starter.wot-ui.cn/) | Wot UI 官方快速起手项目 |
78
+ | 官方生态 | [@wot-ui/router](https://my-uni.wot-ui.cn/) | Wot UI 官方路由与工程能力扩展 |
79
+ | 官方生态 | [@wot-ui/cli](https://github.com/wot-ui/open-wot) | Wot UI 官方 AI 工具链与 CLI |
80
+ | 官方生态 | [@wot-ui/unocss-preset](https://github.com/wot-ui/unocss-preset) | Wot UI 官方 UnoCSS 预设 |
81
+ | 官方生态 | [VS Code 插件](https://marketplace.visualstudio.com/items?itemName=wot-ui.wot-ui-intellisense) | Wot UI 官方 VS Code 代码提示插件 |
82
+ | 官方生态 | [小程序 CI 工具](https://github.com/Moonofweisheng/uni-mini-ci) | Wot UI 官方推荐的小程序 CI 工具 |
83
+ | 官方生态 | [wot-starter-retail](https://github.com/wot-ui/wot-starter-retail) | Wot UI 官方零售行业模板方案 |
84
+ | 开发资源 | [awesome-uni-app](https://github.com/uni-helper/awesome-uni-app) | 多端统一开发框架 uni-app 优秀开发资源汇总 |
85
+ | 开发资源 | [create-uni](https://github.com/uni-helper/create-uni) | 快速创建 uni-app 项目 |
86
+ | 开发资源 | [uni-ku](https://github.com/uni-ku) | uni-app 生态扩展与工具集合 |
87
+ | 开发资源 | [uni-echarts](https://uni-echarts.xiaohe.ink/) | uni-app 图表组件与接入方案 |
88
+ | 模板方案 | [vitesse-uni-app](https://vitesse-docs.netlify.app/) | 现代化 uni-app 基础模板 |
89
+ | 模板方案 | [unibest](https://unibest.tech/) | 功能完善的 uni-app 开发模板 |
87
90
 
88
91
  ## 贡献指南
89
92
 
package/changelog.md CHANGED
@@ -1,112 +1,31 @@
1
1
  # 更新日志
2
2
 
3
3
 
4
- ## [2.0.0-alpha.9](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2026-04-17)
5
-
6
-
7
- ### ✨ Features | 新功能
8
-
9
- * **icon:** ✨ `css-icon` 支持直接传图标类名 ([#2](https://github.com/wot-ui/wot-ui/issues/2)) ([2ccb940](https://github.com/wot-ui/wot-ui/commit/2ccb9408d6788d6c72277d3dffb2554f1fef9d69))
10
-
11
-
12
- ### ✏️ Documentation | 文档
13
-
14
- * ✏️ 更新文档导航并添加 UnoCSS Preset 指南 ([f786d39](https://github.com/wot-ui/wot-ui/commit/f786d3932d5c836883923185b657244afa258d66))
15
- * ✏️ 更新文档配置并移除未使用的导入 ([bc19dac](https://github.com/wot-ui/wot-ui/commit/bc19dac9a5e213f40d5fea2e1e761d78e65172c0))
16
- * ✏️ 新增 wot-ui-unocss-preset-guide 技能文档 ([655678d](https://github.com/wot-ui/wot-ui/commit/655678d2b6b63530fe9ed6f074d0349c3774411c))
17
-
18
- ## [2.0.0-alpha.8](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2026-04-13)
4
+ ### [2.0.1](https://github.com/wot-ui/wot-ui/compare/v2.0.0...v2.0.1) (2026-04-22)
19
5
 
20
6
 
21
7
  ### ✏️ Documentation | 文档
22
8
 
23
- * ✏️ 新增 open-wot 指南并更新 skills 文档 ([a27c52a](https://github.com/wot-ui/wot-ui/commit/a27c52ad2ea8e3cff1c72927ea6f9d1632823dc0))
24
-
25
- ## [2.0.0-alpha.7](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2026-04-12)
26
-
27
- ## [2.0.0-alpha.6](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2026-04-12)
28
-
29
-
30
- ### ✨ Features | 新功能
31
-
32
- * ✨ WIP ([9582280](https://github.com/wot-ui/wot-ui/commit/9582280662b6a336f52707d4cabb436f15d4a2cb))
33
- * ✨ WIP ([9d8a173](https://github.com/wot-ui/wot-ui/commit/9d8a1734fb7f7387e044d806392b70936da314a7))
34
- * ✨ WIP ([cb70bfd](https://github.com/wot-ui/wot-ui/commit/cb70bfd76fb549e6137968d0584c28e7a7014d71))
35
- * ✨ WIP ([aef0140](https://github.com/wot-ui/wot-ui/commit/aef0140e0c72faa7c36238b1309642d1316c21fd))
36
- * ✨ WIP ([e9c7159](https://github.com/wot-ui/wot-ui/commit/e9c71596af0e18f7545d242cc0925872f1848cfb))
37
- * ✨ WIP ([cec770b](https://github.com/wot-ui/wot-ui/commit/cec770b08893e7df7be7767b8817e9a6fe2685ee))
38
- * ✨ WIP ([3c2b401](https://github.com/wot-ui/wot-ui/commit/3c2b4018abcd8833d39c485fe8ea5354d0fe7061))
39
- * ✨ WIP ([343fc11](https://github.com/wot-ui/wot-ui/commit/343fc11f71ba800b8049d9ce05976022499fbb35))
40
- * **button:** ✨ 新增 soft 类型变体 ([#1](https://github.com/wot-ui/wot-ui/issues/1)) ([a9c15df](https://github.com/wot-ui/wot-ui/commit/a9c15df53b9f92528ad61bbbd725c1c6781c33d0))
41
-
42
- ## [2.0.0-alpha.5](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2026-04-08)
43
-
44
-
45
- ### ✨ Features | 新功能
46
-
47
- * ✨ WIP ([4aaab9b](https://github.com/wot-ui/wot-ui/commit/4aaab9b311677933c0f9fe800649aecb0ea8088c))
48
- * ✨ WIP ([fa64e4f](https://github.com/wot-ui/wot-ui/commit/fa64e4f2f2d3049b85322883e63fdb968fde9cfa))
49
- * ✨ WIP ([96ad504](https://github.com/wot-ui/wot-ui/commit/96ad5040c2b56b648007a76d956c8604890d291c))
50
- * ✨ WIP ([4c0be9a](https://github.com/wot-ui/wot-ui/commit/4c0be9a08472390be77cd6eec7987b57e6e1c35a))
51
- * ✨ WIP ([50a0e03](https://github.com/wot-ui/wot-ui/commit/50a0e03cb9f9b9873e456fd212a0053c233c6d8a))
52
-
53
- ## [2.0.0-alpha.4](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2026-04-07)
54
-
55
-
56
- ### ✨ Features | 新功能
57
-
58
- * ✨ WIP ([a1de9b1](https://github.com/wot-ui/wot-ui/commit/a1de9b16c441163d7f176f2e39619efc6eb3b8be))
59
- * ✨ WIP ([4a1a4c9](https://github.com/wot-ui/wot-ui/commit/4a1a4c97fba796ab5c270c91800b7ea43e2736c6))
60
- * ✨ WIP ([72d3d60](https://github.com/wot-ui/wot-ui/commit/72d3d60f8fb4e00d2979b9113194c5fc78936f98))
61
- * ✨ WIP ([124bd88](https://github.com/wot-ui/wot-ui/commit/124bd886b1df4db98a1f206b7d64784140524c93))
62
-
63
- ## [2.0.0-alpha.3](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2026-04-06)
64
-
65
-
66
- ### ✨ Features | 新功能
67
-
68
- * ✨ WIP ([a21ee36](https://github.com/wot-ui/wot-ui/commit/a21ee36e66e970f0e8df1e8957f57948c535aad6))
69
- * ✨ WIP ([f1529f3](https://github.com/wot-ui/wot-ui/commit/f1529f324285f728a2e40cf332563a2aefb596ec))
70
- * ✨ WIP ([3c48af8](https://github.com/wot-ui/wot-ui/commit/3c48af810294e5864de5cb79ba563de1f10e1cfa))
71
-
72
- ## [2.0.0-alpha.2](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2026-04-06)
73
-
74
-
75
- ### ✨ Features | 新功能
76
-
77
- * ✨ WIP ([73317ee](https://github.com/wot-ui/wot-ui/commit/73317ee090cef1f55d8619919aa8a05b43eb1ccd))
78
-
79
- ## [2.0.0-alpha.1](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.0...v2.0.0-alpha.1) (2026-04-06)
9
+ * ✏️ 完善 form 组件文档示例 ([53df04a](https://github.com/wot-ui/wot-ui/commit/53df04a63076506b9de3896fcf04f5178f99c893))
10
+ * ✏️ 修正 v1 链接至正确的子域名 ([558cd94](https://github.com/wot-ui/wot-ui/commit/558cd9414829b694a6c605087d57805cccef769e))
11
+ * ✏️ update miniprogram qrcode ([091fc30](https://github.com/wot-ui/wot-ui/commit/091fc308a2981ba9c4b7bdb295889544ef908c1f))
12
+ * ✏️ 更新表单组件示例 ([b439d8a](https://github.com/wot-ui/wot-ui/commit/b439d8af0a7560ba54a7fbc77700f71b9b859267))
13
+ * ✏️ 更新脚手架命令,使用 wot-starter-v2 模板 ([d7d846a](https://github.com/wot-ui/wot-ui/commit/d7d846a81a869fbb70d570eb2df33dc69b5e441b))
14
+ * ✏️ 更新文档和生态系统链接,移除无用内容 ([60a0cc8](https://github.com/wot-ui/wot-ui/commit/60a0cc81c293c096bcf727db5e867cdb269006e7))
80
15
 
81
16
 
82
17
  ### ✨ Features | 新功能
83
18
 
84
- * ✨ WIP ([80e884a](https://github.com/wot-ui/wot-ui/commit/80e884a96d3cb901bb3efc72231ac34bf4f7517d))
19
+ * ✨ 调整 button 组件高度由 padding 撑开转为固定高度 ([#4](https://github.com/wot-ui/wot-ui/issues/4)) ([b26b134](https://github.com/wot-ui/wot-ui/commit/b26b134471d78bb4ff09ba34f86852193ebc902d))
85
20
 
86
- ## [2.0.0-alpha.0](https://github.com/wot-ui/wot-ui/compare/v1.14.0...v2.0.0-alpha.0) (2026-04-06)
21
+ ## [2.0.0](https://github.com/wot-ui/wot-ui/compare/v2.0.0-alpha.21...v2.0.0) (2026-04-21)
87
22
 
88
23
 
89
24
  ### ✏️ Documentation | 文档
90
25
 
91
- * ✏️ 优化首页标题展示效果 ([3b6833c](https://github.com/wot-ui/wot-ui/commit/3b6833c911f6d091c8e8385078e4ef376d9b2d2a))
26
+ * ✏️ 更新 banner 背景样式和按钮过渡效果,增强视觉效果 ([0dedfc1](https://github.com/wot-ui/wot-ui/commit/0dedfc16966c5946a0ad464b22ef5c95ae44a147))
92
27
 
93
28
 
94
29
  ### ✨ Features | 新功能
95
30
 
96
- * ✨ v2 初始化 ([219f4d4](https://github.com/wot-ui/wot-ui/commit/219f4d4dcdd11b9161065fc5e5fcbe67a36e0f0a))
97
- * ✨ WIP ([a65b6e2](https://github.com/wot-ui/wot-ui/commit/a65b6e249eb5081037a055ab998f65253cb61df8))
98
- * ✨ WIP ([08dc4f2](https://github.com/wot-ui/wot-ui/commit/08dc4f2759641e1db1a158bd03477f53e044de58))
99
- * ✨ WIP ([4b94773](https://github.com/wot-ui/wot-ui/commit/4b94773629af81e253bd27ef583a520cca9f983e))
100
- * ✨ WIP ([9d03ea1](https://github.com/wot-ui/wot-ui/commit/9d03ea1e2787a15359f243081f0e871e87277bba))
101
- * ✨ WIP ([0c75bdc](https://github.com/wot-ui/wot-ui/commit/0c75bdc84c02a5aa725308c3e4c6ca873c675c6a))
102
- * ✨ WIP ([ddca5c3](https://github.com/wot-ui/wot-ui/commit/ddca5c361978e2366041454b98d789f5fe94ccdd))
103
- * ✨ WIP ([651fc4e](https://github.com/wot-ui/wot-ui/commit/651fc4e6079010067af2895011a846257c07b0a1))
104
- * ✨ WIP ([83f1afb](https://github.com/wot-ui/wot-ui/commit/83f1afbd71a9ac1da6052ea0e366cac2c116ac47))
105
- * ✨ WIP ([105ac1b](https://github.com/wot-ui/wot-ui/commit/105ac1b9e5170bde9669b1c9088514199667b177))
106
- * ✨ WIP ([611bee9](https://github.com/wot-ui/wot-ui/commit/611bee9dc9b6e9e5c920aa142564fb0e04058b1b))
107
- * ✨ WIP ([0f5ad92](https://github.com/wot-ui/wot-ui/commit/0f5ad92c6c1baaf16009987d257622b6a2006bd4))
108
- * ✨ WIP ([d284db9](https://github.com/wot-ui/wot-ui/commit/d284db952157398b4a30f99b54c8f006304cbf28))
109
- * ✨ WIP ([19eaa47](https://github.com/wot-ui/wot-ui/commit/19eaa474a9ea7efcb63de3557c4d9a1d7198733f))
110
- * ✨ WIP ([8ef0b9c](https://github.com/wot-ui/wot-ui/commit/8ef0b9c3ea4ecefada742eca0a25922201c62f30))
111
- * ✨ WIP ([1333cc6](https://github.com/wot-ui/wot-ui/commit/1333cc6b93647369fea1f7862406b0865f6e41af))
112
- * ✨ WIP ([7f3f18c](https://github.com/wot-ui/wot-ui/commit/7f3f18ce60cb780d0509b7b421b133f080f9527b))
31
+ * ✨ wot-ui v2 发布 ([2e96ba1](https://github.com/wot-ui/wot-ui/commit/2e96ba168360672521df51aa120ce03a1cf31ca0))
@@ -124,30 +124,22 @@ $button-font-size-small: var(--wot-button-font-size-small, $typography-body-size
124
124
  $button-font-size-medium: var(--wot-button-font-size-medium, $typography-body-size-extra-large) !default;
125
125
  // large 尺寸文字字号
126
126
  $button-font-size-large: var(--wot-button-font-size-large, $typography-body-size-extra-large) !default;
127
- // mini 尺寸文字行高
128
- $button-line-height-mini: var(--wot-button-line-height-mini, $typography-body-line-height-size-main) !default;
129
- // small 尺寸文字行高
130
- $button-line-height-small: var(--wot-button-line-height-small, $typography-body-line-height-size-main) !default;
131
- // medium 尺寸文字行高
132
- $button-line-height-medium: var(--wot-button-line-height-medium, $typography-body-line-height-size-extra-large) !default;
133
- // large 尺寸文字行高
134
- $button-line-height-large: var(--wot-button-line-height-large, $typography-body-line-height-size-extra-large) !default;
135
- // mini 尺寸左右内边距
136
- $button-left-right-padding-mini: var(--wot-button-left-right-padding-mini, $padding-loose) !default;
137
- // small 尺寸左右内边距
138
- $button-left-right-padding-small: var(--wot-button-left-right-padding-small, $padding-loose) !default;
139
- // medium 尺寸左右内边距
140
- $button-left-right-padding-medium: var(--wot-button-left-right-padding-medium, $padding-extra-loose) !default;
141
- // large 尺寸左右内边距
142
- $button-left-right-padding-large: var(--wot-button-left-right-padding-large, $padding-super-loose) !default;
143
- // mini 尺寸上下内边距
144
- $button-up-down-padding-mini: var(--wot-button-up-down-padding-mini, $padding-super-tight) !default;
145
- // small 尺寸上下内边距
146
- $button-up-down-padding-small: var(--wot-button-up-down-padding-small, $padding-extra-tight) !default;
147
- // medium 尺寸上下内边距
148
- $button-up-down-padding-medium: var(--wot-button-up-down-padding-medium, $padding-tight) !default;
149
- // large 尺寸上下内边距
150
- $button-up-down-padding-large: var(--wot-button-up-down-padding-large, $padding-main) !default;
127
+ // mini 尺寸内边距
128
+ $button-padding-mini: var(--wot-button-padding-mini, $padding-zero $padding-loose) !default;
129
+ // small 尺寸内边距
130
+ $button-padding-small: var(--wot-button-padding-small, $padding-zero $padding-loose) !default;
131
+ // medium 尺寸内边距
132
+ $button-padding-medium: var(--wot-button-padding-medium, $padding-zero $padding-extra-loose) !default;
133
+ // large 尺寸内边距
134
+ $button-padding-large: var(--wot-button-padding-large, $padding-zero $padding-super-loose) !default;
135
+ // mini 尺寸高度
136
+ $button-height-mini: var(--wot-button-height-mini, $n-28) !default;
137
+ // small 尺寸高度
138
+ $button-height-small: var(--wot-button-height-small, $n-32) !default;
139
+ // medium 尺寸高度
140
+ $button-height-medium: var(--wot-button-height-medium, $n-40) !default;
141
+ // large 尺寸高度
142
+ $button-height-large: var(--wot-button-height-large, $n-44) !default;
151
143
  // mini 尺寸仅图标按钮内边距
152
144
  $button-only-icon-padding-mini: var(--wot-button-only-icon-padding-mini, $padding-super-tight) !default;
153
145
  // small 尺寸仅图标按钮内边距
@@ -155,7 +147,7 @@ $button-only-icon-padding-small: var(--wot-button-only-icon-padding-small, $padd
155
147
  // medium 尺寸仅图标按钮内边距
156
148
  $button-only-icon-padding-medium: var(--wot-button-only-icon-padding-medium, $padding-tight) !default;
157
149
  // large 尺寸仅图标按钮内边距
158
- $button-only-icon-padding-large: var(--wot-button-only-icon-padding-large, $padding-loose) !default;
150
+ $button-only-icon-padding-large: var(--wot-button-only-icon-padding-large, $padding-main) !default;
159
151
  // mini 尺寸图标与文字间距
160
152
  $button-spacing-mini: var(--wot-button-spacing-mini, $spacing-super-tight) !default;
161
153
  // small 尺寸图标与文字间距
@@ -245,37 +237,33 @@ $button-types: (
245
237
  // 按钮尺寸配置映射
246
238
  $button-sizes: (
247
239
  "mini": (
248
- "padding-y": $button-up-down-padding-mini,
249
- "padding-x": $button-left-right-padding-mini,
240
+ "height": $button-height-mini,
241
+ "padding": $button-padding-mini,
250
242
  "font-size": $button-font-size-mini,
251
- "line-height": $button-line-height-mini,
252
243
  "icon-font-size": $button-size-icon-mini,
253
244
  "spacing": $button-spacing-mini,
254
245
  "icon-padding": $button-only-icon-padding-mini
255
246
  ),
256
247
  "small": (
257
- "padding-y": $button-up-down-padding-small,
258
- "padding-x": $button-left-right-padding-small,
248
+ "height": $button-height-small,
249
+ "padding": $button-padding-small,
259
250
  "font-size": $button-font-size-small,
260
- "line-height": $button-line-height-small,
261
251
  "icon-font-size": $button-size-icon-small,
262
252
  "spacing": $button-spacing-small,
263
253
  "icon-padding": $button-only-icon-padding-small
264
254
  ),
265
255
  "medium": (
266
- "padding-y": $button-up-down-padding-medium,
267
- "padding-x": $button-left-right-padding-medium,
256
+ "height": $button-height-medium,
257
+ "padding": $button-padding-medium,
268
258
  "font-size": $button-font-size-medium,
269
- "line-height": $button-line-height-medium,
270
259
  "icon-font-size": $button-size-icon-medium,
271
260
  "spacing": $button-spacing-medium,
272
261
  "icon-padding": $button-only-icon-padding-medium
273
262
  ),
274
263
  "large": (
275
- "padding-y": $button-up-down-padding-large,
276
- "padding-x": $button-left-right-padding-large,
264
+ "height": $button-height-large,
265
+ "padding": $button-padding-large,
277
266
  "font-size": $button-font-size-large,
278
- "line-height": $button-line-height-large,
279
267
  "icon-font-size": $button-size-icon-large,
280
268
  "spacing": $button-spacing-large,
281
269
  "icon-padding": $button-only-icon-padding-large
@@ -305,6 +293,7 @@ $button-variants: (
305
293
  margin-left: initial;
306
294
  margin-right: initial;
307
295
  border-radius: $button-radius-main;
296
+ flex-shrink: 0;
308
297
 
309
298
  &::after {
310
299
  position: absolute;
@@ -455,14 +444,14 @@ $button-variants: (
455
444
  @each $size,
456
445
  $conf in $button-sizes {
457
446
  @include when($size) {
458
- padding: map.get($conf, "padding-y") map.get($conf, "padding-x");
447
+ height: map.get($conf, "height");
448
+ padding: map.get($conf, "padding");
459
449
  font-size: map.get($conf, "font-size");
460
- line-height: map.get($conf, "line-height");
450
+ line-height: map.get($conf, "height");
461
451
  font-weight: normal;
462
452
 
463
453
  :deep(.wd-button__icon) {
464
454
  font-size: map.get($conf, "icon-font-size");
465
- line-height: 1;
466
455
 
467
456
  + .wd-button__text {
468
457
  margin-left: map.get($conf, "spacing");
@@ -470,6 +459,7 @@ $button-variants: (
470
459
  }
471
460
 
472
461
  @include when(icon) {
462
+ min-width: map.get($conf, "height");
473
463
  padding: map.get($conf, "icon-padding");
474
464
  }
475
465
  }
@@ -527,6 +527,10 @@ export type buttonThemeVars = {
527
527
  buttonFontSizeMedium?: string // medium 尺寸文字字号
528
528
  buttonFontSizeMini?: string // mini 尺寸文字字号
529
529
  buttonFontSizeSmall?: string // small 尺寸文字字号
530
+ buttonHeightLarge?: string // large 尺寸高度
531
+ buttonHeightMedium?: string // medium 尺寸高度
532
+ buttonHeightMini?: string // mini 尺寸高度
533
+ buttonHeightSmall?: string // small 尺寸高度
530
534
  buttonInfoBg?: string // 信息类型背景色
531
535
  buttonInfoBgActive?: string // 信息类型背景激活色
532
536
  buttonInfoColor?: string // 信息类型文本色
@@ -537,14 +541,6 @@ export type buttonThemeVars = {
537
541
  buttonInfoPlainBorderActive?: string // 信息类型 plain 边框激活色
538
542
  buttonInfoSoftBg?: string // 信息类型 soft 背景色
539
543
  buttonInfoSoftBgActive?: string // 信息类型 soft 背景激活色
540
- buttonLeftRightPaddingLarge?: string // large 尺寸左右内边距
541
- buttonLeftRightPaddingMedium?: string // medium 尺寸左右内边距
542
- buttonLeftRightPaddingMini?: string // mini 尺寸左右内边距
543
- buttonLeftRightPaddingSmall?: string // small 尺寸左右内边距
544
- buttonLineHeightLarge?: string // large 尺寸文字行高
545
- buttonLineHeightMedium?: string // medium 尺寸文字行高
546
- buttonLineHeightMini?: string // mini 尺寸文字行高
547
- buttonLineHeightSmall?: string // small 尺寸文字行高
548
544
  buttonLoadingSize?: string // 加载图标尺寸
549
545
  buttonLoadingSpacing?: string // 加载图标与文字间距
550
546
  buttonMainColor?: string // 实心按钮默认文本色
@@ -552,6 +548,10 @@ export type buttonThemeVars = {
552
548
  buttonOnlyIconPaddingMedium?: string // medium 尺寸仅图标按钮内边距
553
549
  buttonOnlyIconPaddingMini?: string // mini 尺寸仅图标按钮内边距
554
550
  buttonOnlyIconPaddingSmall?: string // small 尺寸仅图标按钮内边距
551
+ buttonPaddingLarge?: string // large 尺寸内边距
552
+ buttonPaddingMedium?: string // medium 尺寸内边距
553
+ buttonPaddingMini?: string // mini 尺寸内边距
554
+ buttonPaddingSmall?: string // small 尺寸内边距
555
555
  buttonPrimaryBg?: string // 主类型背景色
556
556
  buttonPrimaryBgActive?: string // 主类型背景激活色
557
557
  buttonPrimaryColor?: string // 主类型文本色
@@ -583,10 +583,6 @@ export type buttonThemeVars = {
583
583
  buttonSuccessPlainBorderActive?: string // 成功类型 plain 边框激活色
584
584
  buttonSuccessSoftBg?: string // 成功类型 soft 背景色
585
585
  buttonSuccessSoftBgActive?: string // 成功类型 soft 背景激活色
586
- buttonUpDownPaddingLarge?: string // large 尺寸上下内边距
587
- buttonUpDownPaddingMedium?: string // medium 尺寸上下内边距
588
- buttonUpDownPaddingMini?: string // mini 尺寸上下内边距
589
- buttonUpDownPaddingSmall?: string // small 尺寸上下内边距
590
586
  buttonWarningBg?: string // 警告类型背景色
591
587
  buttonWarningBgActive?: string // 警告类型背景激活色
592
588
  buttonWarningColor?: string // 警告类型文本色
package/package.json CHANGED
@@ -1 +1 @@
1
- {"id":"wot-ui","name":"@wot-ui/ui","displayName":"wot-ui 一个轻量、美观、AI友好的 uni-app 组件库","version":"2.0.0-alpha.9","license":"MIT","description":"wot-ui 一个轻量、美观、AI友好的 uni-app 组件库。","keywords":["wot-ui","国际化","组件库","vue3","暗黑模式"],"main":"index.ts","repository":{"type":"git","url":"https://github.com/wot-ui/wot-ui.git"},"engines":{"HBuilderX":"^3.8.7"},"dcloudext":{"type":"component-vue","sale":{"regular":{"price":"0.00"},"sourcecode":{"price":"0.00"}},"contact":{"qq":""},"declaration":{"ads":"无","data":"插件不采集任何数据","permissions":"无"},"npmurl":"https://www.npmjs.com/package/@wot-ui/ui"},"vetur":{"tags":"tags.json","attributes":"attributes.json"},"web-types":"web-types.json","uni_modules":{"dependencies":[],"encrypt":[],"platforms":{"cloud":{"tcb":"y","aliyun":"y","alipay":"n"},"client":{"Vue":{"vue2":"n","vue3":"y"},"App":{"app-vue":"y","app-nvue":"n","app-uvue":"n"},"H5-mobile":{"Safari":"y","Android Browser":"y","微信浏览器(Android)":"y","QQ浏览器(Android)":"y"},"H5-pc":{"Chrome":"y","IE":"u","Edge":"y","Firefox":"y","Safari":"y"},"小程序":{"微信":"y","阿里":"y","百度":"u","字节跳动":"u","QQ":"y","钉钉":"y","快手":"u","飞书":"u","京东":"u"},"快应用":{"华为":"u","联盟":"u"}}}},"peerDependencies":{"vue":">=3.2.47"}}
1
+ {"id":"wot-ui","name":"@wot-ui/ui","displayName":"wot-ui 一个轻量、美观、AI友好的 uni-app 组件库","version":"2.0.1","license":"MIT","description":"wot-ui 一个轻量、美观、AI友好的 uni-app 组件库。","keywords":["wot-ui","国际化","组件库","vue3","暗黑模式"],"main":"index.ts","repository":{"type":"git","url":"https://github.com/wot-ui/wot-ui.git"},"engines":{"HBuilderX":"^3.8.7"},"dcloudext":{"type":"component-vue","sale":{"regular":{"price":"0.00"},"sourcecode":{"price":"0.00"}},"contact":{"qq":""},"declaration":{"ads":"无","data":"插件不采集任何数据","permissions":"无"},"npmurl":"https://www.npmjs.com/package/@wot-ui/ui"},"vetur":{"tags":"tags.json","attributes":"attributes.json"},"web-types":"web-types.json","uni_modules":{"dependencies":[],"encrypt":[],"platforms":{"cloud":{"tcb":"y","aliyun":"y","alipay":"n"},"client":{"Vue":{"vue2":"n","vue3":"y"},"App":{"app-vue":"y","app-nvue":"n","app-uvue":"n"},"H5-mobile":{"Safari":"y","Android Browser":"y","微信浏览器(Android)":"y","QQ浏览器(Android)":"y"},"H5-pc":{"Chrome":"y","IE":"u","Edge":"y","Firefox":"y","Safari":"y"},"小程序":{"微信":"y","阿里":"y","百度":"u","字节跳动":"u","QQ":"y","钉钉":"y","快手":"u","飞书":"u","京东":"u"},"快应用":{"华为":"u","联盟":"u"}}}},"peerDependencies":{"vue":">=3.2.47"}}