@ray-js/smart-ui 2.1.7-beta-3 → 2.1.7

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.
@@ -11,11 +11,11 @@ export interface SmartCircleProps {
11
11
  */
12
12
  type?: '2d';
13
13
  /**
14
- * 圆环直径,默认单位为 `px`
14
+ * 圆环直径,默认 `100px`
15
15
  *
16
- * @default 100
16
+ * @default '100px'
17
17
  */
18
- size?: number;
18
+ size?: string;
19
19
  /**
20
20
  * 进度条颜色,传入对象格式可以定义渐变色
21
21
  *
@@ -15,7 +15,7 @@ type CheckboxThemeVars = 'checkboxSize' | 'checkboxBorderColor' | 'checkboxTrans
15
15
  type CircleThemeVars = 'circleTextColor';
16
16
  type CollapseThemeVars = 'collapseItemTransitionDuration' | 'collapseItemContentPadding' | 'collapseItemContentFontSize' | 'collapseItemContentLineHeight' | 'collapseItemContentTextColor' | 'collapseItemContentBackgroundColor' | 'collapseItemTitleDisabledColor';
17
17
  type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDownLineHeight';
18
- type DialogThemeVars = 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogMessageMaxHeight' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop';
18
+ type DialogThemeVars = 'dialogCancelColor' | 'dialogConfirmColor' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize';
19
19
  type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldInputDisabledTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldTextAreaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor' | 'fieldDisabledTextColor';
20
20
  type GoodsActionThemeVars = 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor';
21
21
  type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorIconSize' | 'imageErrorIconColor';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /// <reference types="miniprogram-api-typings" />
2
3
  /// <reference types="miniprogram-api-typings" />
3
4
  import { SmartDialogProps } from './index';
@@ -58,6 +59,14 @@ export type SmartDialogOptions = {
58
59
  * @default '取消'
59
60
  */
60
61
  cancelButtonText?: SmartDialogProps['cancelButtonText'];
62
+ /**
63
+ * 确认按钮的字体颜色
64
+ */
65
+ confirmButtonColor?: React.CSSProperties['color'];
66
+ /**
67
+ * 取消按钮的字体颜色
68
+ */
69
+ cancelButtonColor?: React.CSSProperties['color'];
61
70
  /**
62
71
  * 自定义遮罩层样式
63
72
  */
@@ -31,6 +31,13 @@ export interface SmartIndexBarProps {
31
31
  * @default '#07c160'
32
32
  */
33
33
  highlightColor?: string;
34
+ /**
35
+ * SideBar 是否可滚动定位
36
+ *
37
+ * @version 2.1.7
38
+ * @default false
39
+ */
40
+ scrollable?: boolean;
34
41
  }
35
42
  /**
36
43
  * @deprecated
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SmartComponent } from '../base';
2
3
  export interface SmartCircleProps {
3
4
  /**
@@ -54,5 +55,14 @@ export interface SmartCircleProps {
54
55
  * @default true
55
56
  */
56
57
  clockwise?: boolean;
58
+ /**
59
+ * 自定义样式
60
+ */
61
+ customStyle?: React.CSSProperties;
62
+ /**
63
+ * 自定义样式
64
+ * @deprecated
65
+ */
66
+ style?: React.CSSProperties;
57
67
  }
58
68
  export type SmartCircle = SmartComponent<SmartCircleProps>;
@@ -13,6 +13,6 @@ function Circle(props) {
13
13
  // @ts-ignore 属性修改,breaking change 向下兼容
14
14
  fillColor: props.color,
15
15
  // @ts-ignore 属性修改,breaking change 向下兼容
16
- percent: props.value }, props)));
16
+ percent: props.value, customStyle: props.style }, props)));
17
17
  }
18
18
  export { Circle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.1.7-beta-3",
3
+ "version": "2.1.7",
4
4
  "author": "睦海(李利民)",
5
5
  "description": "轻量、可靠的智能小程序 UI 组件库",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@ray-js/components-ty-slider": "^0.2.52",
38
- "@tuya-miniapp/smart-ui": "2.1.7-beta-1",
38
+ "@tuya-miniapp/smart-ui": "^2.1.7",
39
39
  "lodash-es": "^4.17.21"
40
40
  },
41
41
  "devDependencies": {