@ray-js/smart-ui 2.13.5-beta-2 → 2.13.5-beta-4
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/es/@types/config-provider/theme-vars.d.ts +1 -1
- package/es/cell/README.md +1 -0
- package/es/field/README.md +1 -0
- package/es/overlay/README.md +1 -1
- package/es/popup/README.md +3 -0
- package/lib/@types/config-provider/theme-vars.d.ts +1 -1
- package/lib/cell/README.md +1 -0
- package/lib/field/README.md +1 -0
- package/lib/overlay/README.md +1 -1
- package/lib/popup/README.md +3 -0
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ type CheckboxThemeVars = 'checkboxSize' | 'checkboxBorderColor' | 'checkboxBorde
|
|
|
12
12
|
type CircleThemeVars = 'circleTextColor';
|
|
13
13
|
type CollapseThemeVars = 'collapseItemTransitionDuration' | 'collapseItemContentPadding' | 'collapseItemContentFontSize' | 'collapseItemContentLineHeight' | 'collapseItemContentTextColor' | 'collapseItemContentBackgroundColor' | 'collapseItemTitleDisabledColor';
|
|
14
14
|
type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDownLineHeight';
|
|
15
|
-
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
|
|
15
|
+
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldValueMarginLeft' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
|
|
16
16
|
type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorSize';
|
|
17
17
|
type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
|
|
18
18
|
type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding' | 'navBarSideWidthMin' | 'navBarSideWidthMax';
|
package/es/cell/README.md
CHANGED
|
@@ -304,6 +304,7 @@ export default function Demo() {
|
|
|
304
304
|
| --cell-value-color | _var(--app-B6-N3, rgba(0, 0, 0, 0.5))_ | 单元格值文字颜色 |
|
|
305
305
|
| --cell-value-max-width `v2.13.4` | _none_ | 单元格值区域最大宽度,超出部分隐藏;默认不限制 |
|
|
306
306
|
| --cell-value-margin-left `v2.13.4` | _8px_ | 单元格值区域与标题的间距 |
|
|
307
|
+
| --cell-value-flex `v2.13.5` | _0 1 auto_ | 单元格值区域的 flex 行为;默认按内容宽度、不占据剩余空间,内容需撑满整行时设为 `1` |
|
|
307
308
|
| --cell-icon-size | _24px_ | 单元格图标大小 |
|
|
308
309
|
| --cell-right-icon-color | _var(--app-B6-N6, rgba(0, 0, 0, 0.2))_ | 单元格右侧图标颜色 |
|
|
309
310
|
| --cell-border-color `v2.1.4` | _var(--app-B6-N7, rgba(0, 0, 0, 0.1))_ | 单元格边框颜色 |
|
package/es/field/README.md
CHANGED
|
@@ -433,6 +433,7 @@ export default function Demo() {
|
|
|
433
433
|
| --field-subtitle-text-color `v2.1.0` | _var(--app-B6-N3, rgba(0, 0, 0, 0.5))_ | 副标题颜色 |
|
|
434
434
|
| --field-left-icon-margin-right `v2.1.0` | _10px_ | icon的右侧外边距 |
|
|
435
435
|
| --field-left-body-padding-right `v2.1.0` | _16px_ | 左侧部分的右内边距 |
|
|
436
|
+
| --field-value-margin-left `v2.13.5` | _0_ | 值区域(label + 输入框整体)的左外边距,默认 0 以与普通 cell 的 title 左对齐,非必要不建议修改 |
|
|
436
437
|
|
|
437
438
|
#### card模式CSS变量
|
|
438
439
|
| 名称 | 默认值 | 描述 |
|
package/es/overlay/README.md
CHANGED
|
@@ -125,4 +125,4 @@ const styles = {
|
|
|
125
125
|
| --------------------------------- | ----------------------------------------- | ---- |
|
|
126
126
|
| --overlay-background-color | _rgba(0,0,0,0.4)_ / _rgba(0,0,0,0.7)_ | 直接指定遮罩背景色时使用,设置后不再使用毛玻璃/半透明变量 |
|
|
127
127
|
| --overlay-blur-background `v2.12.0` | _rgba(40,44,53,0.22)_ / _rgba(0,0,0,0.6)_ | 支持模糊时的毛玻璃遮罩背景色 |
|
|
128
|
-
| --overlay-blur-radius `v2.12.0` | _16px_
|
|
128
|
+
| --overlay-blur-radius `v2.12.0` | _16px_ | 毛玻璃模糊半径 |
|
package/es/popup/README.md
CHANGED
|
@@ -202,6 +202,9 @@ export default function Demo() {
|
|
|
202
202
|
| --popup-close-icon-color | _#969799_ | 关闭图标颜色 |
|
|
203
203
|
| --popup-close-icon-margin | _12px_ | 关闭图标边距 |
|
|
204
204
|
| --popup-close-icon-z-index | _1_ | 关闭图标层级 |
|
|
205
|
+
| --overlay-background-color | _rgba(0,0,0,0.4)_ / _rgba(0,0,0,0.7)_ | 直接指定遮罩背景色时使用,设置后不再使用毛玻璃/半透明变量 |
|
|
206
|
+
| --overlay-blur-background `v2.12.0` | _rgba(40,44,53,0.22)_ / _rgba(0,0,0,0.6)_ | 支持模糊时的毛玻璃遮罩背景色 |
|
|
207
|
+
| --overlay-blur-radius `v2.12.0` | _16px_ | 毛玻璃模糊半径 |
|
|
205
208
|
|
|
206
209
|
## 常见问题
|
|
207
210
|
|
|
@@ -12,7 +12,7 @@ type CheckboxThemeVars = 'checkboxSize' | 'checkboxBorderColor' | 'checkboxBorde
|
|
|
12
12
|
type CircleThemeVars = 'circleTextColor';
|
|
13
13
|
type CollapseThemeVars = 'collapseItemTransitionDuration' | 'collapseItemContentPadding' | 'collapseItemContentFontSize' | 'collapseItemContentLineHeight' | 'collapseItemContentTextColor' | 'collapseItemContentBackgroundColor' | 'collapseItemTitleDisabledColor';
|
|
14
14
|
type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDownLineHeight';
|
|
15
|
-
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
|
|
15
|
+
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldValueMarginLeft' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
|
|
16
16
|
type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorSize';
|
|
17
17
|
type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
|
|
18
18
|
type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding' | 'navBarSideWidthMin' | 'navBarSideWidthMax';
|
package/lib/cell/README.md
CHANGED
|
@@ -304,6 +304,7 @@ export default function Demo() {
|
|
|
304
304
|
| --cell-value-color | _var(--app-B6-N3, rgba(0, 0, 0, 0.5))_ | 单元格值文字颜色 |
|
|
305
305
|
| --cell-value-max-width `v2.13.4` | _none_ | 单元格值区域最大宽度,超出部分隐藏;默认不限制 |
|
|
306
306
|
| --cell-value-margin-left `v2.13.4` | _8px_ | 单元格值区域与标题的间距 |
|
|
307
|
+
| --cell-value-flex `v2.13.5` | _0 1 auto_ | 单元格值区域的 flex 行为;默认按内容宽度、不占据剩余空间,内容需撑满整行时设为 `1` |
|
|
307
308
|
| --cell-icon-size | _24px_ | 单元格图标大小 |
|
|
308
309
|
| --cell-right-icon-color | _var(--app-B6-N6, rgba(0, 0, 0, 0.2))_ | 单元格右侧图标颜色 |
|
|
309
310
|
| --cell-border-color `v2.1.4` | _var(--app-B6-N7, rgba(0, 0, 0, 0.1))_ | 单元格边框颜色 |
|
package/lib/field/README.md
CHANGED
|
@@ -433,6 +433,7 @@ export default function Demo() {
|
|
|
433
433
|
| --field-subtitle-text-color `v2.1.0` | _var(--app-B6-N3, rgba(0, 0, 0, 0.5))_ | 副标题颜色 |
|
|
434
434
|
| --field-left-icon-margin-right `v2.1.0` | _10px_ | icon的右侧外边距 |
|
|
435
435
|
| --field-left-body-padding-right `v2.1.0` | _16px_ | 左侧部分的右内边距 |
|
|
436
|
+
| --field-value-margin-left `v2.13.5` | _0_ | 值区域(label + 输入框整体)的左外边距,默认 0 以与普通 cell 的 title 左对齐,非必要不建议修改 |
|
|
436
437
|
|
|
437
438
|
#### card模式CSS变量
|
|
438
439
|
| 名称 | 默认值 | 描述 |
|
package/lib/overlay/README.md
CHANGED
|
@@ -125,4 +125,4 @@ const styles = {
|
|
|
125
125
|
| --------------------------------- | ----------------------------------------- | ---- |
|
|
126
126
|
| --overlay-background-color | _rgba(0,0,0,0.4)_ / _rgba(0,0,0,0.7)_ | 直接指定遮罩背景色时使用,设置后不再使用毛玻璃/半透明变量 |
|
|
127
127
|
| --overlay-blur-background `v2.12.0` | _rgba(40,44,53,0.22)_ / _rgba(0,0,0,0.6)_ | 支持模糊时的毛玻璃遮罩背景色 |
|
|
128
|
-
| --overlay-blur-radius `v2.12.0` | _16px_
|
|
128
|
+
| --overlay-blur-radius `v2.12.0` | _16px_ | 毛玻璃模糊半径 |
|
package/lib/popup/README.md
CHANGED
|
@@ -202,6 +202,9 @@ export default function Demo() {
|
|
|
202
202
|
| --popup-close-icon-color | _#969799_ | 关闭图标颜色 |
|
|
203
203
|
| --popup-close-icon-margin | _12px_ | 关闭图标边距 |
|
|
204
204
|
| --popup-close-icon-z-index | _1_ | 关闭图标层级 |
|
|
205
|
+
| --overlay-background-color | _rgba(0,0,0,0.4)_ / _rgba(0,0,0,0.7)_ | 直接指定遮罩背景色时使用,设置后不再使用毛玻璃/半透明变量 |
|
|
206
|
+
| --overlay-blur-background `v2.12.0` | _rgba(40,44,53,0.22)_ / _rgba(0,0,0,0.6)_ | 支持模糊时的毛玻璃遮罩背景色 |
|
|
207
|
+
| --overlay-blur-radius `v2.12.0` | _16px_ | 毛玻璃模糊半径 |
|
|
205
208
|
|
|
206
209
|
## 常见问题
|
|
207
210
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.13.5-beta-
|
|
3
|
+
"version": "2.13.5-beta-4",
|
|
4
4
|
"description": "轻量、可靠的 Ray 面板小程序 UI 组件库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@ray-js/smart-ui",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@ray-js/components-ty-slider": "^0.3.9",
|
|
76
|
-
"@tuya-miniapp/smart-ui": "2.13.5-beta-
|
|
76
|
+
"@tuya-miniapp/smart-ui": "2.13.5-beta-4",
|
|
77
77
|
"lodash-es": "^4.17.21"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|