@wot-ui/ui 2.0.0-alpha.8 → 2.0.0-alpha.9
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/attributes.json +1 -1
- package/changelog.md +14 -0
- package/components/wd-action-sheet/index.scss +5 -5
- package/components/wd-avatar/index.scss +5 -5
- package/components/wd-backtop/index.scss +2 -2
- package/components/wd-badge/index.scss +2 -2
- package/components/wd-button/index.scss +5 -5
- package/components/wd-button/types.ts +10 -1
- package/components/wd-button/wd-button.vue +2 -2
- package/components/wd-calendar/index.scss +1 -1
- package/components/wd-calendar-view/index.scss +3 -3
- package/components/wd-card/index.scss +2 -2
- package/components/wd-cascader/index.scss +3 -3
- package/components/wd-cell/index.scss +8 -8
- package/components/wd-checkbox/index.scss +3 -3
- package/components/wd-circle/index.scss +1 -1
- package/components/wd-collapse-item/index.scss +2 -2
- package/components/wd-config-provider/types.ts +1 -1
- package/components/wd-count-down/index.scss +1 -1
- package/components/wd-count-to/index.scss +2 -2
- package/components/wd-datetime-picker/index.scss +3 -3
- package/components/wd-dialog/index.scss +3 -3
- package/components/wd-divider/index.scss +1 -1
- package/components/wd-drop-menu/index.scss +1 -1
- package/components/wd-drop-menu-item/index.scss +2 -2
- package/components/wd-empty/index.scss +1 -1
- package/components/wd-form-item/index.scss +1 -1
- package/components/wd-grid-item/index.scss +1 -1
- package/components/wd-icon/types.ts +8 -5
- package/components/wd-icon/wd-icon.vue +20 -6
- package/components/wd-image-preview/index.scss +1 -1
- package/components/wd-img/index.scss +1 -1
- package/components/wd-index-bar/index.scss +3 -3
- package/components/wd-input/index.scss +1 -1
- package/components/wd-input-number/index.scss +1 -1
- package/components/wd-keyboard/key/index.scss +3 -3
- package/components/wd-loading/index.scss +5 -5
- package/components/wd-loadmore/index.scss +2 -2
- package/components/wd-notice-bar/index.scss +1 -1
- package/components/wd-notify/index.scss +1 -1
- package/components/wd-pagination/index.scss +2 -2
- package/components/wd-password-input/index.scss +2 -2
- package/components/wd-picker/index.scss +1 -1
- package/components/wd-popover/index.scss +1 -1
- package/components/wd-progress/index.scss +2 -2
- package/components/wd-radio/index.scss +3 -3
- package/components/wd-search/index.scss +4 -4
- package/components/wd-segmented/index.scss +1 -1
- package/components/wd-sidebar-item/index.scss +1 -1
- package/components/wd-skeleton/index.scss +1 -1
- package/components/wd-slide-verify/index.scss +1 -1
- package/components/wd-slider/index.scss +4 -4
- package/components/wd-sort-button/index.scss +1 -1
- package/components/wd-step/index.scss +4 -4
- package/components/wd-swiper-nav/index.scss +3 -3
- package/components/wd-switch/index.scss +2 -2
- package/components/wd-switch/types.ts +33 -5
- package/components/wd-switch/wd-switch.vue +23 -3
- package/components/wd-tabbar/index.scss +1 -1
- package/components/wd-tabbar-item/index.scss +1 -1
- package/components/wd-table/index.scss +1 -1
- package/components/wd-tabs/index.scss +4 -4
- package/components/wd-tag/index.scss +6 -6
- package/components/wd-text/index.scss +1 -1
- package/components/wd-textarea/index.scss +2 -2
- package/components/wd-toast/index.scss +1 -1
- package/components/wd-toast/types.ts +14 -4
- package/components/wd-toast/wd-toast.vue +5 -2
- package/components/wd-tooltip/index.scss +1 -1
- package/components/wd-tour/index.scss +1 -1
- package/components/wd-upload/index.scss +3 -3
- package/package.json +1 -1
- package/styles/theme/base/radius.scss +1 -1
- package/styles/theme/base/typography.scss +13 -13
- package/styles/variable.scss +14 -14
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
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
|
+
|
|
4
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)
|
|
5
19
|
|
|
6
20
|
|
|
@@ -10,7 +10,7 @@ $action-sheet-action-bg: var(--wot-action-sheet-action-bg, $filled-oppo) !defaul
|
|
|
10
10
|
// 操作项字体大小
|
|
11
11
|
$action-sheet-action-font-size: var(--wot-action-sheet-action-font-size, $typography-title-size-main) !default;
|
|
12
12
|
// 操作项行高
|
|
13
|
-
$action-sheet-action-line-height: var(--wot-action-sheet-action-line-height, $typography-title-line
|
|
13
|
+
$action-sheet-action-line-height: var(--wot-action-sheet-action-line-height, $typography-title-line-height-size-main) !default;
|
|
14
14
|
// 操作项文字颜色
|
|
15
15
|
$action-sheet-action-color: var(--wot-action-sheet-action-color, $text-main) !default;
|
|
16
16
|
// 操作项内边距
|
|
@@ -22,7 +22,7 @@ $action-sheet-cancel-bg: var(--wot-action-sheet-cancel-bg, $filled-oppo) !defaul
|
|
|
22
22
|
// 取消按钮字体大小
|
|
23
23
|
$action-sheet-cancel-font-size: var(--wot-action-sheet-cancel-font-size, $typography-title-size-main) !default;
|
|
24
24
|
// 取消按钮行高
|
|
25
|
-
$action-sheet-cancel-line-height: var(--wot-action-sheet-cancel-line-height, $typography-title-line
|
|
25
|
+
$action-sheet-cancel-line-height: var(--wot-action-sheet-cancel-line-height, $typography-title-line-height-size-main) !default;
|
|
26
26
|
// 取消按钮文字颜色
|
|
27
27
|
$action-sheet-cancel-color: var(--wot-action-sheet-cancel-color, $text-main) !default;
|
|
28
28
|
// 取消按钮内边距
|
|
@@ -32,7 +32,7 @@ $action-sheet-gap-height: var(--wot-action-sheet-gap-height, $spacing-tight) !de
|
|
|
32
32
|
// 描述文本字体大小
|
|
33
33
|
$action-sheet-description-font-size: var(--wot-action-sheet-description-font-size, $typography-body-size-main) !default;
|
|
34
34
|
// 描述文本行高
|
|
35
|
-
$action-sheet-description-line-height: var(--wot-action-sheet-description-line-height, $typography-body-line
|
|
35
|
+
$action-sheet-description-line-height: var(--wot-action-sheet-description-line-height, $typography-body-line-height-size-main) !default;
|
|
36
36
|
// 描述文本颜色
|
|
37
37
|
$action-sheet-description-color: var(--wot-action-sheet-description-color, $text-auxiliary) !default;
|
|
38
38
|
// 描述文本顶部外边距
|
|
@@ -56,7 +56,7 @@ $action-sheet-panel-img-radius: var(--wot-action-sheet-panel-img-radius, $radius
|
|
|
56
56
|
// 面板标题字体大小
|
|
57
57
|
$action-sheet-panel-title-font-size: var(--wot-action-sheet-panel-title-font-size, $typography-label-size-main) !default;
|
|
58
58
|
// 面板标题行高
|
|
59
|
-
$action-sheet-panel-title-line-height: var(--wot-action-sheet-panel-title-line-height, $typography-label-line
|
|
59
|
+
$action-sheet-panel-title-line-height: var(--wot-action-sheet-panel-title-line-height, $typography-label-line-height-size-main) !default;
|
|
60
60
|
// 面板标题颜色
|
|
61
61
|
$action-sheet-panel-title-color: var(--wot-action-sheet-panel-title-color, $text-auxiliary) !default;
|
|
62
62
|
// 标题背景色
|
|
@@ -68,7 +68,7 @@ $action-sheet-title-height: var(--wot-action-sheet-title-height, $n-56) !default
|
|
|
68
68
|
// 标题字体大小
|
|
69
69
|
$action-sheet-title-font-size: var(--wot-action-sheet-title-font-size, $typography-title-size-main) !default;
|
|
70
70
|
// 标题行高
|
|
71
|
-
$action-sheet-title-line-height: var(--wot-action-sheet-title-line-height, $typography-title-line
|
|
71
|
+
$action-sheet-title-line-height: var(--wot-action-sheet-title-line-height, $typography-title-line-height-size-main) !default;
|
|
72
72
|
// 标题字重
|
|
73
73
|
$action-sheet-title-font-weight: var(--wot-action-sheet-title-font-weight, $font-weight-medium) !default;
|
|
74
74
|
// 关闭图标右侧偏移
|
|
@@ -22,19 +22,19 @@ $avatar-font-size-medium: var(--wot-avatar-font-size-medium, $typography-title-s
|
|
|
22
22
|
// 小尺寸文字字号
|
|
23
23
|
$avatar-font-size-small: var(--wot-avatar-font-size-small, $typography-title-size-main) !default;
|
|
24
24
|
// 默认文字行高
|
|
25
|
-
$avatar-line-height: var(--wot-avatar-line-height, $typography-title-line
|
|
25
|
+
$avatar-line-height: var(--wot-avatar-line-height, $typography-title-line-height-size-large) !default;
|
|
26
26
|
// 大尺寸文字行高
|
|
27
|
-
$avatar-line-height-large: var(--wot-avatar-line-height-large, $typography-title-line
|
|
27
|
+
$avatar-line-height-large: var(--wot-avatar-line-height-large, $typography-title-line-height-size-extra-large) !default;
|
|
28
28
|
// 中尺寸文字行高
|
|
29
|
-
$avatar-line-height-medium: var(--wot-avatar-line-height-medium, $typography-title-line
|
|
29
|
+
$avatar-line-height-medium: var(--wot-avatar-line-height-medium, $typography-title-line-height-size-large) !default;
|
|
30
30
|
// 小尺寸文字行高
|
|
31
|
-
$avatar-line-height-small: var(--wot-avatar-line-height-small, $typography-title-line
|
|
31
|
+
$avatar-line-height-small: var(--wot-avatar-line-height-small, $typography-title-line-height-size-main) !default;
|
|
32
32
|
// 头像背景颜色
|
|
33
33
|
$avatar-bg: var(--wot-avatar-bg, $filled-strong) !default;
|
|
34
34
|
// 默认圆角
|
|
35
35
|
$avatar-border-radius: var(--wot-avatar-border-radius, $radius-main) !default;
|
|
36
36
|
// 全圆角
|
|
37
|
-
$avatar-border-radius-full: var(--wot-avatar-border-radius-full, $radius-
|
|
37
|
+
$avatar-border-radius-full: var(--wot-avatar-border-radius-full, $radius-full) !default;
|
|
38
38
|
// 头像重叠距离
|
|
39
39
|
$avatar-overlap: var(--wot-avatar-overlap) !default;
|
|
40
40
|
// 图标颜色
|
|
@@ -12,7 +12,7 @@ $backtop-height: var(--wot-backtop-height, $n-48) !default;
|
|
|
12
12
|
// 方形模式圆角
|
|
13
13
|
$backtop-radius: var(--wot-backtop-radius, $radius-main) !default;
|
|
14
14
|
// 圆形模式圆角
|
|
15
|
-
$backtop-radius-circle: var(--wot-backtop-radius-circle, $radius-
|
|
15
|
+
$backtop-radius-circle: var(--wot-backtop-radius-circle, $radius-full) !default;
|
|
16
16
|
// 按钮图标颜色
|
|
17
17
|
$backtop-color: var(--wot-backtop-color, $icon-main) !default;
|
|
18
18
|
// 按钮图标尺寸
|
|
@@ -22,7 +22,7 @@ $backtop-text-font-size: var(--wot-backtop-text-font-size, $typography-label-siz
|
|
|
22
22
|
// 文本颜色
|
|
23
23
|
$backtop-text-color: var(--wot-backtop-text-color, $text-main) !default;
|
|
24
24
|
// 文本行高
|
|
25
|
-
$backtop-text-line-height: var(--wot-backtop-text-line-height, $typography-label-line
|
|
25
|
+
$backtop-text-line-height: var(--wot-backtop-text-line-height, $typography-label-line-height-size-main) !default;
|
|
26
26
|
// 组件层级
|
|
27
27
|
$backtop-z-index: var(--wot-backtop-z-index, 100) !default;
|
|
28
28
|
|
|
@@ -24,9 +24,9 @@ $badge-info-color: var(--wot-badge-info-color, $text-secondary) !default;
|
|
|
24
24
|
// 徽标文本字号
|
|
25
25
|
$badge-font-size: var(--wot-badge-font-size, $typography-label-size-extra-small) !default;
|
|
26
26
|
// 徽标文本行高
|
|
27
|
-
$badge-line-height: var(--wot-badge-line-height, $typography-label-line
|
|
27
|
+
$badge-line-height: var(--wot-badge-line-height, $typography-label-line-height-size-extra-small) !default;
|
|
28
28
|
// 默认圆角
|
|
29
|
-
$badge-border-radius: var(--wot-badge-border-radius, $radius-
|
|
29
|
+
$badge-border-radius: var(--wot-badge-border-radius, $radius-full) !default;
|
|
30
30
|
// 方形圆角
|
|
31
31
|
$badge-square-border-radius: var(--wot-badge-square-border-radius, $radius-main) !default;
|
|
32
32
|
// 气泡圆角
|
|
@@ -125,13 +125,13 @@ $button-font-size-medium: var(--wot-button-font-size-medium, $typography-body-si
|
|
|
125
125
|
// large 尺寸文字字号
|
|
126
126
|
$button-font-size-large: var(--wot-button-font-size-large, $typography-body-size-extra-large) !default;
|
|
127
127
|
// mini 尺寸文字行高
|
|
128
|
-
$button-line-height-mini: var(--wot-button-line-height-mini, $typography-body-line
|
|
128
|
+
$button-line-height-mini: var(--wot-button-line-height-mini, $typography-body-line-height-size-main) !default;
|
|
129
129
|
// small 尺寸文字行高
|
|
130
|
-
$button-line-height-small: var(--wot-button-line-height-small, $typography-body-line
|
|
130
|
+
$button-line-height-small: var(--wot-button-line-height-small, $typography-body-line-height-size-main) !default;
|
|
131
131
|
// medium 尺寸文字行高
|
|
132
|
-
$button-line-height-medium: var(--wot-button-line-height-medium, $typography-body-line
|
|
132
|
+
$button-line-height-medium: var(--wot-button-line-height-medium, $typography-body-line-height-size-extra-large) !default;
|
|
133
133
|
// large 尺寸文字行高
|
|
134
|
-
$button-line-height-large: var(--wot-button-line-height-large, $typography-body-line
|
|
134
|
+
$button-line-height-large: var(--wot-button-line-height-large, $typography-body-line-height-size-extra-large) !default;
|
|
135
135
|
// mini 尺寸左右内边距
|
|
136
136
|
$button-left-right-padding-mini: var(--wot-button-left-right-padding-mini, $padding-loose) !default;
|
|
137
137
|
// small 尺寸左右内边距
|
|
@@ -169,7 +169,7 @@ $button-spacing-block: var(--wot-button-spacing-block, $spacing-tight) !default;
|
|
|
169
169
|
// 默认圆角
|
|
170
170
|
$button-radius-main: var(--wot-button-radius-main, $radius-main) !default;
|
|
171
171
|
// 圆形圆角
|
|
172
|
-
$button-radius-full: var(--wot-button-radius-full, $radius-
|
|
172
|
+
$button-radius-full: var(--wot-button-radius-full, $radius-full) !default;
|
|
173
173
|
// 禁用态透明度
|
|
174
174
|
$button-disabled: var(--wot-button-disabled, $opacity-disabled) !default;
|
|
175
175
|
|
|
@@ -106,10 +106,19 @@ export const buttonProps = {
|
|
|
106
106
|
*/
|
|
107
107
|
icon: String,
|
|
108
108
|
/**
|
|
109
|
-
* 类名前缀,用于使用自定义图标,用法参考Icon组件
|
|
109
|
+
* 类名前缀,用于使用自定义图标,用法参考 Icon 组件
|
|
110
110
|
* 默认值: 'wd-icon'
|
|
111
111
|
*/
|
|
112
112
|
classPrefix: makeStringProp('wd-icon'),
|
|
113
|
+
/**
|
|
114
|
+
* CSS 图标,用法参考 Icon 组件
|
|
115
|
+
* 类型: boolean | string
|
|
116
|
+
* 默认值: false
|
|
117
|
+
*/
|
|
118
|
+
cssIcon: {
|
|
119
|
+
type: [Boolean, String],
|
|
120
|
+
default: false
|
|
121
|
+
},
|
|
113
122
|
/**
|
|
114
123
|
* 加载中按钮
|
|
115
124
|
* 默认值: false
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
>
|
|
43
43
|
<view class="wd-button__content">
|
|
44
44
|
<wd-loading v-if="loading" v-bind="customLoadingProps"></wd-loading>
|
|
45
|
-
<wd-icon v-else-if="icon" custom-class="wd-button__icon" :name="icon" :
|
|
45
|
+
<wd-icon v-else-if="icon || cssIcon" custom-class="wd-button__icon" :name="icon" :class-prefix="classPrefix" :css-icon="cssIcon"></wd-icon>
|
|
46
46
|
<view class="wd-button__text" v-if="$slots.default || text">
|
|
47
47
|
<slot>{{ text }}</slot>
|
|
48
48
|
</view>
|
|
@@ -107,7 +107,7 @@ const openTypeValue = computed(() => {
|
|
|
107
107
|
* 是否仅展示图标
|
|
108
108
|
*/
|
|
109
109
|
const isIcon = computed(() => {
|
|
110
|
-
return !slots.default && !props.text && props.icon
|
|
110
|
+
return !slots.default && !props.text && !!(props.icon || props.cssIcon)
|
|
111
111
|
})
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -10,7 +10,7 @@ $calendar-range-padding: var(--wot-calendar-range-padding, $padding-zero $paddin
|
|
|
10
10
|
$calendar-range-font-size: var(--wot-calendar-range-font-size, $typography-body-size-main) !default; // 范围标签字号
|
|
11
11
|
$calendar-range-item-font-size: var(--wot-calendar-range-item-font-size, $typography-body-size-extra-large) !default; // 范围标签项字号
|
|
12
12
|
$calendar-range-item-font-weight: var(--wot-calendar-range-item-font-weight, $font-weight-medium) !default; // 范围标签项字重
|
|
13
|
-
$calendar-range-item-line-height: var(--wot-calendar-range-item-line-height, $typography-body-line
|
|
13
|
+
$calendar-range-item-line-height: var(--wot-calendar-range-item-line-height, $typography-body-line-height-size-extra-large) !default; // 范围标签项行高
|
|
14
14
|
$calendar-range-item-padding: var(--wot-calendar-range-item-padding, $spacing-loose $spacing-zero) !default; // 范围标签项内边距
|
|
15
15
|
$calendar-range-item-color: var(--wot-calendar-range-item-color, $primary-6) !default; // 范围标签项颜色
|
|
16
16
|
$calendar-range-item-color-placeholder: var(--wot-calendar-range-item-color-placeholder, $text-placeholder) !default; // 占位符颜色
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../styles/variable.scss' as *;
|
|
2
2
|
|
|
3
3
|
$calendar-view-panel-title-font-size: var(--wot-calendar-view-panel-title-font-size, $typography-body-size-main) !default; // 面板标题字号
|
|
4
|
-
$calendar-view-panel-title-line-height: var(--wot-calendar-view-panel-title-line-height, $typography-body-line
|
|
4
|
+
$calendar-view-panel-title-line-height: var(--wot-calendar-view-panel-title-line-height, $typography-body-line-height-size-main) !default; // 面板标题行高
|
|
5
5
|
$calendar-view-panel-title-color: var(--wot-calendar-view-panel-title-color, $text-main) !default; // 面板标题文字颜色
|
|
6
6
|
$calendar-view-panel-title-padding: var(--wot-calendar-view-panel-title-padding, $padding-extra-tight $padding-loose) !default; // 面板标题内边距
|
|
7
7
|
$calendar-view-panel-title-font-weight: var(--wot-calendar-view-panel-title-font-weight, $font-weight-medium) !default; // 面板标题字重
|
|
@@ -9,7 +9,7 @@ $calendar-view-panel-title-margin: var(--wot-calendar-view-panel-title-margin, $
|
|
|
9
9
|
$calendar-view-weeks-padding: var(--wot-calendar-view-weeks-padding, $padding-tight $spacing-loose) !default; // 星期栏内边距
|
|
10
10
|
$calendar-view-week-color: var(--wot-calendar-view-week-color, $text-secondary) !default; // 星期文字颜色
|
|
11
11
|
$calendar-view-week-font-size: var(--wot-calendar-view-week-font-size, $typography-body-size-main) !default; // 星期文字字号
|
|
12
|
-
$calendar-view-week-line-height: var(--wot-calendar-view-week-line-height, $typography-body-line
|
|
12
|
+
$calendar-view-week-line-height: var(--wot-calendar-view-week-line-height, $typography-body-line-height-size-main) !default; // 星期文字行高
|
|
13
13
|
$calendar-view-day-font-size: var(--wot-calendar-view-day-font-size, $typography-body-size-extra-large) !default; // 日期单元字号
|
|
14
14
|
$calendar-view-day-color: var(--wot-calendar-view-day-color, $text-main) !default; // 日期单元文字颜色
|
|
15
15
|
$calendar-view-day-font-weight: var(--wot-calendar-view-day-font-weight, $font-weight-medium) !default; // 日期单元字重
|
|
@@ -24,7 +24,7 @@ $calendar-view-range-bg: var(--wot-calendar-view-range-bg, $primary-2) !default;
|
|
|
24
24
|
$calendar-view-range-color: var(--wot-calendar-view-range-color, $text-main) !default; // 区间态文字颜色
|
|
25
25
|
$calendar-view-border-radius-active: var(--wot-calendar-view-border-radius-active, $radius-main) !default; // 激活态圆角
|
|
26
26
|
$calendar-view-info-font-size: var(--wot-calendar-view-info-font-size, $typography-label-size-extra-small) !default; // 顶部/底部辅助信息字号
|
|
27
|
-
$calendar-view-info-line-height: var(--wot-calendar-view-info-line-height, $typography-label-line
|
|
27
|
+
$calendar-view-info-line-height: var(--wot-calendar-view-info-line-height, $typography-label-line-height-size-extra-small) !default; // 顶部/底部辅助信息行高
|
|
28
28
|
$calendar-view-info-position: var(--wot-calendar-view-info-position, $spacing-extra-tight) !default; // 顶部/底部辅助信息偏移位置
|
|
29
29
|
$calendar-view-item-margin-bottom: var(--wot-calendar-view-item-margin-bottom, $spacing-super-tight) !default; // 日期/月份单元底部间距
|
|
30
30
|
$calendar-view-item-padding: var(--wot-calendar-view-item-padding, $padding-zero $spacing-loose) !default; // 日期/月份容器内边距
|
|
@@ -24,7 +24,7 @@ $card-title-font-size: var(--wot-card-title-font-size, $typography-title-size-ma
|
|
|
24
24
|
// 标题字重
|
|
25
25
|
$card-title-font-weight: var(--wot-card-title-font-weight, $font-weight-medium) !default;
|
|
26
26
|
// 标题行高
|
|
27
|
-
$card-title-line-height: var(--wot-card-title-line-height, $typography-body-line
|
|
27
|
+
$card-title-line-height: var(--wot-card-title-line-height, $typography-body-line-height-size-main) !default;
|
|
28
28
|
// 标题内间距
|
|
29
29
|
$card-title-padding: var(--wot-card-title-padding, $padding-loose $padding-extra-loose) !default;
|
|
30
30
|
// 内容文字颜色
|
|
@@ -32,7 +32,7 @@ $card-content-color: var(--wot-card-content-color, $text-secondary) !default;
|
|
|
32
32
|
// 内容字号
|
|
33
33
|
$card-content-font-size: var(--wot-card-content-font-size, $typography-body-size-main) !default;
|
|
34
34
|
// 内容行高
|
|
35
|
-
$card-content-line-height: var(--wot-card-content-line-height, $typography-body-line
|
|
35
|
+
$card-content-line-height: var(--wot-card-content-line-height, $typography-body-line-height-size-main) !default;
|
|
36
36
|
// 内容内边距
|
|
37
37
|
$card-content-padding: var(--wot-card-content-padding, $padding-main $padding-loose) !default;
|
|
38
38
|
// 内容区域边框颜色
|
|
@@ -12,7 +12,7 @@ $cascader-list-item-opacity-disabled: var(--wot-cascader-list-item-opacity-disab
|
|
|
12
12
|
// 选项文字字号
|
|
13
13
|
$cascader-list-item-font-size: var(--wot-cascader-list-item-font-size, $typography-body-size-extra-large) !default;
|
|
14
14
|
// 选项文字行高
|
|
15
|
-
$cascader-list-item-line-height: var(--wot-cascader-list-item-line-height, $typography-body-line
|
|
15
|
+
$cascader-list-item-line-height: var(--wot-cascader-list-item-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
16
16
|
// 选项内边距
|
|
17
17
|
$cascader-list-item-padding: var(--wot-cascader-list-item-padding, $padding-extra-loose $padding-loose) !default;
|
|
18
18
|
// 选项选中态文字颜色
|
|
@@ -24,7 +24,7 @@ $cascader-list-tip-color: var(--wot-cascader-list-tip-color, $text-secondary) !d
|
|
|
24
24
|
// 选项提示文字字号
|
|
25
25
|
$cascader-list-tip-font-size: var(--wot-cascader-list-tip-font-size, $typography-label-size-main) !default;
|
|
26
26
|
// 选项提示文字行高
|
|
27
|
-
$cascader-list-tip-line-height: var(--wot-cascader-list-tip-line-height, $typography-label-line
|
|
27
|
+
$cascader-list-tip-line-height: var(--wot-cascader-list-tip-line-height, $typography-label-line-height-size-main) !default;
|
|
28
28
|
// 选项提示顶部外边距
|
|
29
29
|
$cascader-list-tip-margin-top: var(--wot-cascader-list-tip-margin-top, $spacing-ultra-tight) !default;
|
|
30
30
|
// 选中图标尺寸
|
|
@@ -40,7 +40,7 @@ $cascader-confirm-opacity-disabled: var(--wot-cascader-confirm-opacity-disabled,
|
|
|
40
40
|
// checkStrictly模式确认按钮字号
|
|
41
41
|
$cascader-confirm-font-size: var(--wot-cascader-confirm-font-size, $typography-body-size-large) !default;
|
|
42
42
|
// checkStrictly模式确认按钮行高
|
|
43
|
-
$cascader-confirm-line-height: var(--wot-cascader-confirm-line-height, $typography-body-line
|
|
43
|
+
$cascader-confirm-line-height: var(--wot-cascader-confirm-line-height, $typography-body-line-height-size-large) !default;
|
|
44
44
|
// checkStrictly模式确认按钮字重
|
|
45
45
|
$cascader-confirm-font-weight: var(--wot-cascader-confirm-font-weight, $font-weight-regular) !default;
|
|
46
46
|
// loading 状态下选项区透明度
|
|
@@ -34,35 +34,35 @@ $cell-icon-size: var(--wot-cell-icon-size, $n-20) !default;
|
|
|
34
34
|
// 标题字号
|
|
35
35
|
$cell-title-font-size: var(--wot-cell-title-font-size, $typography-body-size-main) !default;
|
|
36
36
|
// 标题行高
|
|
37
|
-
$cell-title-line-height: var(--wot-cell-title-line-height, $typography-body-line
|
|
37
|
+
$cell-title-line-height: var(--wot-cell-title-line-height, $typography-body-line-height-size-main) !default;
|
|
38
38
|
// 标签字号
|
|
39
39
|
$cell-label-font-size: var(--wot-cell-label-font-size, $typography-body-size-main) !default;
|
|
40
40
|
// 标签行高
|
|
41
|
-
$cell-label-line-height: var(--wot-cell-label-line-height, $typography-body-line
|
|
41
|
+
$cell-label-line-height: var(--wot-cell-label-line-height, $typography-body-line-height-size-main) !default;
|
|
42
42
|
// 值字号
|
|
43
43
|
$cell-value-font-size: var(--wot-cell-value-font-size, $typography-body-size-main) !default;
|
|
44
44
|
// 值行高
|
|
45
|
-
$cell-value-line-height: var(--wot-cell-value-line-height, $typography-body-line
|
|
45
|
+
$cell-value-line-height: var(--wot-cell-value-line-height, $typography-body-line-height-size-main) !default;
|
|
46
46
|
// 大尺寸值字号
|
|
47
47
|
$cell-value-font-size-large: var(--wot-cell-value-font-size-large, $typography-body-size-extra-large) !default;
|
|
48
48
|
// 大尺寸值行高
|
|
49
|
-
$cell-value-line-height-large: var(--wot-cell-value-line-height-large, $typography-body-line
|
|
49
|
+
$cell-value-line-height-large: var(--wot-cell-value-line-height-large, $typography-body-line-height-size-extra-large) !default;
|
|
50
50
|
// 大尺寸标题字号
|
|
51
51
|
$cell-title-font-size-large: var(--wot-cell-title-font-size-large, $typography-body-size-extra-large) !default;
|
|
52
52
|
// 大尺寸标题行高
|
|
53
|
-
$cell-title-line-height-large: var(--wot-cell-title-line-height-large, $typography-body-line
|
|
53
|
+
$cell-title-line-height-large: var(--wot-cell-title-line-height-large, $typography-body-line-height-size-extra-large) !default;
|
|
54
54
|
// 大尺寸标签字号
|
|
55
55
|
$cell-label-font-size-large: var(--wot-cell-label-font-size-large, $typography-body-size-extra-large) !default;
|
|
56
56
|
// 大尺寸标签行高
|
|
57
|
-
$cell-label-line-height-large: var(--wot-cell-label-line-height-large, $typography-body-line
|
|
57
|
+
$cell-label-line-height-large: var(--wot-cell-label-line-height-large, $typography-body-line-height-size-extra-large) !default;
|
|
58
58
|
// 必填标记字号
|
|
59
59
|
$cell-required-font-size: var(--wot-cell-required-font-size, $typography-body-size-main) !default;
|
|
60
60
|
// 必填标记行高
|
|
61
|
-
$cell-required-line-height: var(--wot-cell-required-line-height, $typography-body-line
|
|
61
|
+
$cell-required-line-height: var(--wot-cell-required-line-height, $typography-body-line-height-size-main) !default;
|
|
62
62
|
// 占位符字号
|
|
63
63
|
$cell-placeholder-font-size: var(--wot-cell-placeholder-font-size, $typography-body-size-main) !default;
|
|
64
64
|
// 占位符行高
|
|
65
|
-
$cell-placeholder-line-height: var(--wot-cell-placeholder-line-height, $typography-body-line
|
|
65
|
+
$cell-placeholder-line-height: var(--wot-cell-placeholder-line-height, $typography-body-line-height-size-main) !default;
|
|
66
66
|
// 单元格内边距
|
|
67
67
|
$cell-padding: var(--wot-cell-padding, $padding-loose) !default;
|
|
68
68
|
// 大尺寸单元格内边距
|
|
@@ -7,15 +7,15 @@ $checkbox-icon-size: var(--wot-checkbox-icon-size, $n-22) !default; // 图标尺
|
|
|
7
7
|
$checkbox-unchecked-color: var(--wot-checkbox-unchecked-color, $coolgrey-3) !default; // 未选中图标颜色
|
|
8
8
|
$checkbox-label-font-size: var(--wot-checkbox-label-font-size, $typography-body-size-main) !default; // 文字字号
|
|
9
9
|
$checkbox-label-color: var(--wot-checkbox-label-color, $text-main) !default; // 文字颜色
|
|
10
|
-
$checkbox-label-line-height: var(--wot-checkbox-label-line-height, $typography-body-line
|
|
10
|
+
$checkbox-label-line-height: var(--wot-checkbox-label-line-height, $typography-body-line-height-size-main) !default; // 文字行高
|
|
11
11
|
$checkbox-opacity-disabled: var(--wot-checkbox-opacity-disabled, $opacity-disabled) !default; // 禁用态透明度
|
|
12
12
|
$checkbox-horizontal-margin: var(--wot-checkbox-horizontal-margin, $spacing-zero $spacing-extra-loose $spacing-zero $spacing-zero) !default; // 水平模式多个单选框距离
|
|
13
13
|
$checkbox-button-margin: var(--wot-checkbox-button-margin, $spacing-zero $spacing-extra-loose $spacing-extra-loose $spacing-zero) !default; // 按钮模式多个单选框距离
|
|
14
14
|
$checkbox-button-border-width: var(--wot-checkbox-button-border-width, $stroke-main) !default; // 边框宽度
|
|
15
|
-
$checkbox-button-shape-border-radius: var(--wot-checkbox-button-shape-border-radius, $radius-
|
|
15
|
+
$checkbox-button-shape-border-radius: var(--wot-checkbox-button-shape-border-radius, $radius-full) !default; // 按钮模式图标圆角大小
|
|
16
16
|
$checkbox-button-shape-size: var(--wot-checkbox-button-shape-size, $n-26) !default; // 按钮模式图标容器大小
|
|
17
17
|
$checkbox-button-font-size: var(--wot-checkbox-button-font-size, $typography-body-size-main) !default; // 按钮模式字号
|
|
18
|
-
$checkbox-button-line-height: var(--wot-checkbox-button-line-height, $typography-body-line
|
|
18
|
+
$checkbox-button-line-height: var(--wot-checkbox-button-line-height, $typography-body-line-height-size-main) !default; // 按钮模式行高
|
|
19
19
|
$checkbox-button-bg: var(--wot-checkbox-button-bg, $filled-bottom) !default; // 按钮模式背景颜色
|
|
20
20
|
$checkbox-button-bg-checked: var(--wot-checkbox-button-bg-checked, $filled-oppo) !default; // 按钮模式选中状态背景颜色
|
|
21
21
|
$checkbox-button-icon-size: var(--wot-checkbox-icon-size, $n-10) !default; // 按钮模式图标尺寸
|
|
@@ -6,7 +6,7 @@ $circle-text-color: var(--wot-circle-text-color, currentColor) !default;
|
|
|
6
6
|
// 圆环文字字号
|
|
7
7
|
$circle-text-font-size: var(--wot-circle-text-size, $typography-title-size-large) !default;
|
|
8
8
|
// 圆环文字行高
|
|
9
|
-
$circle-text-line-height: var(--wot-circle-text-line-height, $typography-title-line
|
|
9
|
+
$circle-text-line-height: var(--wot-circle-text-line-height, $typography-title-line-height-size-large) !default;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@include b(circle) {
|
|
@@ -8,7 +8,7 @@ $collapse-item-title-color: var(--wot-collapse-item-title-color, $text-main) !de
|
|
|
8
8
|
// 折叠项标题文字字号
|
|
9
9
|
$collapse-item-title-font-size: var(--wot-collapse-item-title-font-size, $typography-body-size-extra-large) !default;
|
|
10
10
|
// 折叠项标题文字行高
|
|
11
|
-
$collapse-item-title-line-height: var(--wot-collapse-item-title-line-height, $typography-body-line
|
|
11
|
+
$collapse-item-title-line-height: var(--wot-collapse-item-title-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
12
12
|
// 折叠项箭头尺寸
|
|
13
13
|
$collapse-item-arrow-size: var(--wot-collapse-item-arrow-size, $n-16) !default;
|
|
14
14
|
// 折叠项箭头颜色
|
|
@@ -18,7 +18,7 @@ $collapse-item-body-color: var(--wot-collapse-item-body-color, $text-auxiliary)
|
|
|
18
18
|
// 折叠项内容文字字号
|
|
19
19
|
$collapse-item-body-font-size: var(--wot-collapse-item-body-font-size, $typography-label-size-large) !default;
|
|
20
20
|
// 折叠项内容文字行高
|
|
21
|
-
$collapse-item-body-line-height: var(--wot-collapse-item-body-line-height, $typography-label-line
|
|
21
|
+
$collapse-item-body-line-height: var(--wot-collapse-item-body-line-height, $typography-label-line-height-size-large) !default;
|
|
22
22
|
// 折叠项内容区域内边距
|
|
23
23
|
$collapse-item-body-padding: var(--wot-collapse-item-body-padding, $padding-loose $padding-extra-loose) !default;
|
|
24
24
|
|
|
@@ -282,9 +282,9 @@ export type baseThemeVars = {
|
|
|
282
282
|
purple9?: string
|
|
283
283
|
purpleOpac?: string
|
|
284
284
|
radiusExtraLarge?: string
|
|
285
|
+
radiusFull?: string
|
|
285
286
|
radiusLarge?: string
|
|
286
287
|
radiusMain?: string
|
|
287
|
-
radiusRadiusFull?: string
|
|
288
288
|
radiusSmall?: string
|
|
289
289
|
radiusSuperLarge?: string
|
|
290
290
|
radiusUltraLarge?: string
|
|
@@ -6,7 +6,7 @@ $count-down-text-color: var(--wot-count-down-text-color, $text-main) !default;
|
|
|
6
6
|
// 倒计时文本字号
|
|
7
7
|
$count-down-font-size: var(--wot-count-down-font-size, $typography-body-size-main) !default;
|
|
8
8
|
// 倒计时文本行高
|
|
9
|
-
$count-down-line-height: var(--wot-count-down-line-height, $typography-body-line
|
|
9
|
+
$count-down-line-height: var(--wot-count-down-line-height, $typography-body-line-height-size-main) !default;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@include b(count-down) {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
// 数字主体文本字号
|
|
5
5
|
$count-to-text-font-size: var(--wot-count-to-text-font-size, $typography-body-size-ultra-large) !default;
|
|
6
6
|
// 数字主体文本行高
|
|
7
|
-
$count-to-text-line-height: var(--wot-count-to-text-line-height, $typography-body-line
|
|
7
|
+
$count-to-text-line-height: var(--wot-count-to-text-line-height, $typography-body-line-height-size-ultra-large) !default;
|
|
8
8
|
// 分隔文本字号
|
|
9
9
|
$count-to-separator-text-font-size: var(--wot-count-to-separator-text-font-size, $typography-label-size-main) !default;
|
|
10
10
|
// 分隔文本行高
|
|
11
|
-
$count-to-separator-text-line-height: var(--wot-count-to-separator-text-line-height, $typography-label-line
|
|
11
|
+
$count-to-separator-text-line-height: var(--wot-count-to-separator-text-line-height, $typography-label-line-height-size-main) !default;
|
|
12
12
|
|
|
13
13
|
@include b(count-to) {
|
|
14
14
|
vertical-align: bottom;
|
|
@@ -10,7 +10,7 @@ $datetime-picker-title-height: var(--wot-datetime-picker-title-height, $n-56) !d
|
|
|
10
10
|
// 标题文字字号
|
|
11
11
|
$datetime-picker-title-font-size: var(--wot-datetime-picker-title-font-size, $typography-title-size-main) !default;
|
|
12
12
|
// 标题文字行高
|
|
13
|
-
$datetime-picker-title-line-height: var(--wot-datetime-picker-title-line-height, $typography-title-line
|
|
13
|
+
$datetime-picker-title-line-height: var(--wot-datetime-picker-title-line-height, $typography-title-line-height-size-main) !default;
|
|
14
14
|
// 标题文字字重
|
|
15
15
|
$datetime-picker-title-font-weight: var(--wot-datetime-picker-title-font-weight, $font-weight-medium) !default;
|
|
16
16
|
// 标题区域内边距
|
|
@@ -18,7 +18,7 @@ $datetime-picker-title-padding: var(--wot-datetime-picker-title-padding, $paddin
|
|
|
18
18
|
// 操作按钮字号
|
|
19
19
|
$datetime-picker-action-font-size: var(--wot-datetime-picker-action-font-size, $typography-body-size-large) !default;
|
|
20
20
|
// 操作按钮行高
|
|
21
|
-
$datetime-picker-action-line-height: var(--wot-datetime-picker-action-line-height, $typography-body-line
|
|
21
|
+
$datetime-picker-action-line-height: var(--wot-datetime-picker-action-line-height, $typography-body-line-height-size-large) !default;
|
|
22
22
|
// 操作按钮文字颜色
|
|
23
23
|
$datetime-picker-action-color: var(--wot-datetime-picker-action-color, $primary-6) !default;
|
|
24
24
|
// 范围标签内边距
|
|
@@ -30,7 +30,7 @@ $datetime-picker-range-item-font-size: var(--wot-datetime-picker-range-item-font
|
|
|
30
30
|
// 范围标签项字重
|
|
31
31
|
$datetime-picker-range-item-font-weight: var(--wot-datetime-picker-range-item-font-weight, $font-weight-medium) !default;
|
|
32
32
|
// 范围标签项行高
|
|
33
|
-
$datetime-picker-range-item-line-height: var(--wot-datetime-picker-range-item-line-height, $typography-body-line
|
|
33
|
+
$datetime-picker-range-item-line-height: var(--wot-datetime-picker-range-item-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
34
34
|
// 范围标签项内边距
|
|
35
35
|
$datetime-picker-range-item-padding: var(--wot-datetime-picker-range-item-padding, $spacing-loose $spacing-zero) !default;
|
|
36
36
|
// 范围标签项颜色
|
|
@@ -18,7 +18,7 @@ $dialog-title-color: var(--wot-dialog-title-color, $text-main) !default;
|
|
|
18
18
|
// 标题文字字号
|
|
19
19
|
$dialog-title-font-size: var(--wot-dialog-title-font-size, $typography-body-size-extra-large) !default;
|
|
20
20
|
// 标题文字行高
|
|
21
|
-
$dialog-title-line-height: var(--wot-dialog-title-line-height, $typography-body-line
|
|
21
|
+
$dialog-title-line-height: var(--wot-dialog-title-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
22
22
|
// 标题文字字重
|
|
23
23
|
$dialog-title-font-weight: var(--wot-dialog-title-font-weight, $font-weight-medium) !default;
|
|
24
24
|
// 标题底部外边距
|
|
@@ -28,7 +28,7 @@ $dialog-content-color: var(--wot-dialog-content-color, $text-secondary) !default
|
|
|
28
28
|
// 内容文字字号
|
|
29
29
|
$dialog-content-font-size: var(--wot-dialog-content-font-size, $typography-body-size-main) !default;
|
|
30
30
|
// 内容文字行高
|
|
31
|
-
$dialog-content-line-height: var(--wot-dialog-content-line-height, $typography-body-line
|
|
31
|
+
$dialog-content-line-height: var(--wot-dialog-content-line-height, $typography-body-line-height-size-main) !default;
|
|
32
32
|
// 内容区内边距
|
|
33
33
|
$dialog-content-padding: var(--wot-dialog-content-padding, $spacing-loose) !default;
|
|
34
34
|
// 内容区最大高度
|
|
@@ -40,7 +40,7 @@ $dialog-content-input-error-color: var(--wot-dialog-content-input-error-color, $
|
|
|
40
40
|
// 输入错误文字字号
|
|
41
41
|
$dialog-content-input-font-size: var(--wot-dialog-content-input-font-size, $typography-label-size-main) !default;
|
|
42
42
|
// 输入错误文字行高
|
|
43
|
-
$dialog-content-input-line-height: var(--wot-dialog-content-input-line-height, $typography-label-line
|
|
43
|
+
$dialog-content-input-line-height: var(--wot-dialog-content-input-line-height, $typography-label-line-height-size-main) !default;
|
|
44
44
|
// 输入提示顶部内边距
|
|
45
45
|
$dialog-content-input-padding-top: var(--wot-dialog-content-input-padding-top, $spacing-tight) !default;
|
|
46
46
|
// 滚动条颜色
|
|
@@ -12,7 +12,7 @@ $divider-margin: var(--wot-divider-margin, $spacing-extra-loose $spacing-zero) !
|
|
|
12
12
|
// 分割线厚度
|
|
13
13
|
$divider-line-height: var(--wot-divider-line-height, $n-3) !default;
|
|
14
14
|
// 内容文字行高
|
|
15
|
-
$divider-size-line-height: var(--wot-divider-size-line-height, $typography-body-line
|
|
15
|
+
$divider-size-line-height: var(--wot-divider-size-line-height, $typography-body-line-height-size-main) !default;
|
|
16
16
|
// 纵向分割线高度
|
|
17
17
|
$divider-size-vertical-height: var(--wot-divider-size-vertical-height, $spacing-extra-loose) !default;
|
|
18
18
|
// 纵向分割线宽度
|
|
@@ -25,7 +25,7 @@ $drop-menu-text-color: var(--wot-drop-menu-text-color, $text-main) !default;
|
|
|
25
25
|
// 菜单文字字号
|
|
26
26
|
$drop-menu-text-font-size: var(--wot-drop-menu-text-font-size, $typography-body-size-extra-large) !default;
|
|
27
27
|
// 菜单文字行高
|
|
28
|
-
$drop-menu-text-line-height: var(--wot-drop-menu-text-line-height, $typography-body-line
|
|
28
|
+
$drop-menu-text-line-height: var(--wot-drop-menu-text-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
29
29
|
// 菜单激活态字重
|
|
30
30
|
$drop-menu-text-font-weight-active: var(--wot-drop-menu-text-font-weight-active, $font-weight-medium) !default;
|
|
31
31
|
// 菜单激活态文字颜色
|
|
@@ -12,7 +12,7 @@ $drop-item-tip-color-active: var(--wot-drop-item-tip-color-active, $primary-5) !
|
|
|
12
12
|
// 提示文字字号
|
|
13
13
|
$drop-item-tip-font-size: var(--wot-drop-item-tip-font-size, $typography-body-size-main) !default;
|
|
14
14
|
// 提示文字行高
|
|
15
|
-
$drop-item-tip-line-height: var(--wot-drop-item-tip-line-height, $typography-body-line
|
|
15
|
+
$drop-item-tip-line-height: var(--wot-drop-item-tip-line-height, $typography-body-line-height-size-main) !default;
|
|
16
16
|
// 提示文字间距
|
|
17
17
|
$drop-item-tip-spacing: var(--wot-drop-item-tip-spacing, $spacing-tight) !default;
|
|
18
18
|
// 勾选图标尺寸
|
|
@@ -24,7 +24,7 @@ $drop-item-modal-bg: var(--wot-drop-item-modal-bg, $opac-7_55) !default;
|
|
|
24
24
|
// 选项文字字号
|
|
25
25
|
$drop-item-text-font-size: var(--wot-drop-item-text-font-size, $typography-body-size-extra-large) !default;
|
|
26
26
|
// 选项文字行高
|
|
27
|
-
$drop-item-text-line-height: var(--wot-drop-item-text-line-height, $typography-body-line
|
|
27
|
+
$drop-item-text-line-height: var(--wot-drop-item-text-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
28
28
|
// 选项文字颜色
|
|
29
29
|
$drop-item-text-color: var(--wot-drop-item-text-color, $text-main) !default;
|
|
30
30
|
// 弹层顶部边线样式
|
|
@@ -6,7 +6,7 @@ $empty-icon-color: var(--wot-empty-icon-color, $icon-disabled) !default;
|
|
|
6
6
|
// 文案字号
|
|
7
7
|
$empty-text-font-size: var(--wot-empty-text-font-size, $typography-body-size-extra-large) !default;
|
|
8
8
|
// 文案行高
|
|
9
|
-
$empty-text-line-height: var(--wot-empty-text-line-height, $typography-body-line
|
|
9
|
+
$empty-text-line-height: var(--wot-empty-text-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
10
10
|
// 文案字重
|
|
11
11
|
$empty-text-font-weight: var(--wot-empty-text-font-weight, $typography-body-font-weight-strong) !default;
|
|
12
12
|
// 文案颜色
|
|
@@ -6,7 +6,7 @@ $form-item-error-message-color: var(--wot-form-item-error-message-color, $danger
|
|
|
6
6
|
// 错误提示文字字号
|
|
7
7
|
$form-item-error-message-font-size: var(--wot-form-item-error-message-font-size, $typography-label-size-main) !default;
|
|
8
8
|
// 错误提示文字行高
|
|
9
|
-
$form-item-error-message-line-height: var(--wot-form-item-error-message-line-height, $typography-label-line
|
|
9
|
+
$form-item-error-message-line-height: var(--wot-form-item-error-message-line-height, $typography-label-line-height-size-small) !default;
|
|
10
10
|
// 错误提示顶部外边距
|
|
11
11
|
$form-item-error-message-margin-top: var(--wot-form-item-error-message-margin-top, $spacing-super-tight) !default;
|
|
12
12
|
// 占位符文字颜色
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// 网格项文字字号
|
|
5
5
|
$grid-item-font-size: var(--wot-grid-item-font-size, $typography-body-size-extra-large) !default;
|
|
6
6
|
// 网格项文字行高
|
|
7
|
-
$grid-item-line-height: var(--wot-grid-item-line-height, $typography-body-line
|
|
7
|
+
$grid-item-line-height: var(--wot-grid-item-line-height, $typography-body-line-height-size-extra-large) !default;
|
|
8
8
|
// 网格项背景色
|
|
9
9
|
$grid-item-bg: var(--wot-grid-item-bg, $filled-oppo) !default;
|
|
10
10
|
// 网格项内容内边距
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @FilePath: /wot-ui/src/uni_modules/wot-ui/components/wd-icon/types.ts
|
|
8
8
|
* 记得注释
|
|
9
9
|
*/
|
|
10
|
-
import { baseProps,
|
|
10
|
+
import { baseProps, makeStringProp, numericProp } from '../../common/props'
|
|
11
11
|
import type { ExtractPropTypes } from 'vue'
|
|
12
12
|
|
|
13
13
|
export const iconProps = {
|
|
@@ -16,7 +16,7 @@ export const iconProps = {
|
|
|
16
16
|
* 图标名称,支持使用图片链接
|
|
17
17
|
* 类型: string
|
|
18
18
|
*/
|
|
19
|
-
name:
|
|
19
|
+
name: makeStringProp(''),
|
|
20
20
|
/**
|
|
21
21
|
* 图标颜色
|
|
22
22
|
* 类型: string
|
|
@@ -34,11 +34,14 @@ export const iconProps = {
|
|
|
34
34
|
*/
|
|
35
35
|
classPrefix: makeStringProp('wd-icon'),
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* 类型: boolean
|
|
37
|
+
* CSS 图标,为 true 时 name 直接作为 CSS class 而不会拼接 class-prefix 前缀,也可以直接传图标类名
|
|
38
|
+
* 类型: boolean | string
|
|
39
39
|
* 默认值: false
|
|
40
40
|
*/
|
|
41
|
-
cssIcon:
|
|
41
|
+
cssIcon: {
|
|
42
|
+
type: [Boolean, String],
|
|
43
|
+
default: false
|
|
44
|
+
}
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
export type IconProps = ExtractPropTypes<typeof iconProps>
|