@ray-js/smart-ui 2.7.3 → 2.7.4-beta-0

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.
@@ -5,5 +5,10 @@ export interface SmartConfigProviderProps {
5
5
  * 自定义主题变量
6
6
  */
7
7
  themeVars?: Partial<ThemeVars>;
8
+ /**
9
+ * 主题模式
10
+ * @version 2.7.4
11
+ */
12
+ theme?: 'light' | 'dark';
8
13
  }
9
14
  export type SmartConfigProvider = SmartComponent<SmartConfigProviderProps>;
@@ -1,10 +1,3 @@
1
- /*
2
- * @Author: mjh
3
- * @Date: 2025-05-20 14:47:06
4
- * @LastEditors: mjh
5
- * @LastEditTime: 2025-05-20 15:07:58
6
- * @Description:
7
- */
8
1
  function kebabCase(srt) {
9
2
  const t = srt.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`);
10
3
  if (t[0] === '-') {
@@ -5,5 +5,10 @@ export interface SmartConfigProviderProps {
5
5
  * 自定义主题变量
6
6
  */
7
7
  themeVars?: Partial<ThemeVars>;
8
+ /**
9
+ * 主题模式
10
+ * @version 2.7.4
11
+ */
12
+ theme?: 'light' | 'dark';
8
13
  }
9
14
  export type SmartConfigProvider = SmartComponent<SmartConfigProviderProps>;
@@ -1,12 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- /*
4
- * @Author: mjh
5
- * @Date: 2025-05-20 14:47:06
6
- * @LastEditors: mjh
7
- * @LastEditTime: 2025-05-20 15:07:58
8
- * @Description:
9
- */
10
3
  function kebabCase(srt) {
11
4
  var t = srt.replace(/[A-Z]/g, function (match) { return "-".concat(match.toLowerCase()); });
12
5
  if (t[0] === '-') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.7.3",
3
+ "version": "2.7.4-beta-0",
4
4
  "description": "轻量、可靠的智能小程序 UI 组件库",
5
5
  "scripts": {
6
6
  "syncMiniappData": "node ./build/syncMiniappData.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@ray-js/components-ty-slider": "^0.3.4",
45
- "@tuya-miniapp/smart-ui": "^2.7.3",
45
+ "@tuya-miniapp/smart-ui": "2.7.4-beta-0",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {