@ray-js/smart-ui 2.11.0 → 2.11.1-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.
@@ -118,6 +118,13 @@ export interface SmartActionSheetProps {
118
118
  * @version v2.6.0
119
119
  */
120
120
  useTitleSlot?: boolean;
121
+ /**
122
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
123
+ *
124
+ * @default false
125
+ * @version 2.11.1
126
+ */
127
+ fullCoverView?: boolean;
121
128
  }
122
129
  export interface SmartActionSheetEvents extends SmartTransitionEvents {
123
130
  /**
@@ -105,6 +105,13 @@ export interface SmartBottomSheetProps {
105
105
  * @default false
106
106
  */
107
107
  lockMaxDrag?: boolean;
108
+ /**
109
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
110
+ *
111
+ * @default false
112
+ * @version 2.11.1
113
+ */
114
+ fullCoverView?: boolean;
108
115
  }
109
116
  export interface SmartBottomSheetEvents extends SmartTransitionEvents {
110
117
  /**
@@ -2,7 +2,7 @@
2
2
  /// <reference types="miniprogram-api-typings" />
3
3
  /// <reference types="miniprogram-api-typings" />
4
4
  import { SmartDialogProps } from './index';
5
- type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon' | 'iconColor' | 'iconSize'>;
5
+ type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon' | 'iconColor' | 'iconSize' | 'nativeDisabled' | 'fullCoverView'>;
6
6
  type AnyObject = {};
7
7
  export type SmartDialogOptions = {
8
8
  /**
@@ -94,13 +94,6 @@ export type SmartDialogOptions = {
94
94
  * @version v2.2.1
95
95
  */
96
96
  ignoreQueue?: boolean;
97
- /**
98
- * 开启弹框期间是否禁用本地手势
99
- *
100
- * @default false
101
- * @version v2.3.8
102
- */
103
- nativeDisabled?: boolean;
104
97
  } & SmartDialogCommonProps;
105
98
  export interface SmartDialogInputOptions extends SmartDialogOptions {
106
99
  /**
@@ -195,6 +195,13 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
195
195
  * @version 2.6.3
196
196
  */
197
197
  autoClose?: boolean;
198
+ /**
199
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
200
+ *
201
+ * @default false
202
+ * @version 2.11.1
203
+ */
204
+ fullCoverView?: boolean;
198
205
  }
199
206
  export interface SmartDialogEvents {
200
207
  /**
@@ -106,6 +106,13 @@ export interface SmartPopupProps {
106
106
  * @version 2.3.8
107
107
  */
108
108
  nativeDisabled?: boolean;
109
+ /**
110
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
111
+ *
112
+ * @default false
113
+ * @version 2.11.1
114
+ */
115
+ fullCoverView?: boolean;
109
116
  }
110
117
  export interface SmartPopupEvents extends SmartTransitionEvents {
111
118
  /**
@@ -14,7 +14,7 @@ export const withReactProps = (WrappedComponent) => {
14
14
  // 自身是否是一个 Slot 组件
15
15
  const isSelfSlot = typeof (props === null || props === void 0 ? void 0 : props.slot) === 'string';
16
16
  const slotProps = isSelfSlot ? {} : (_a = props === null || props === void 0 ? void 0 : props.slot) !== null && _a !== void 0 ? _a : {};
17
- const slotPropsNames = Object.keys(slotProps);
17
+ const slotPropsNames = Object.keys(slotProps).filter(key => React.isValidElement(slotProps[key]));
18
18
  const omitPropKeys = ['className', 'slot', 'children'];
19
19
  const stylePropsKeys = [];
20
20
  let vantProps = omit(props, omitPropKeys);
@@ -118,6 +118,13 @@ export interface SmartActionSheetProps {
118
118
  * @version v2.6.0
119
119
  */
120
120
  useTitleSlot?: boolean;
121
+ /**
122
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
123
+ *
124
+ * @default false
125
+ * @version 2.11.1
126
+ */
127
+ fullCoverView?: boolean;
121
128
  }
122
129
  export interface SmartActionSheetEvents extends SmartTransitionEvents {
123
130
  /**
@@ -105,6 +105,13 @@ export interface SmartBottomSheetProps {
105
105
  * @default false
106
106
  */
107
107
  lockMaxDrag?: boolean;
108
+ /**
109
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
110
+ *
111
+ * @default false
112
+ * @version 2.11.1
113
+ */
114
+ fullCoverView?: boolean;
108
115
  }
109
116
  export interface SmartBottomSheetEvents extends SmartTransitionEvents {
110
117
  /**
@@ -2,7 +2,7 @@
2
2
  /// <reference types="miniprogram-api-typings" />
3
3
  /// <reference types="miniprogram-api-typings" />
4
4
  import { SmartDialogProps } from './index';
5
- type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon' | 'iconColor' | 'iconSize'>;
5
+ type SmartDialogCommonProps = Pick<SmartDialogProps, 'title' | 'width' | 'message' | 'theme' | 'overlay' | 'transition' | 'icon' | 'iconColor' | 'iconSize' | 'nativeDisabled' | 'fullCoverView'>;
6
6
  type AnyObject = {};
7
7
  export type SmartDialogOptions = {
8
8
  /**
@@ -94,13 +94,6 @@ export type SmartDialogOptions = {
94
94
  * @version v2.2.1
95
95
  */
96
96
  ignoreQueue?: boolean;
97
- /**
98
- * 开启弹框期间是否禁用本地手势
99
- *
100
- * @default false
101
- * @version v2.3.8
102
- */
103
- nativeDisabled?: boolean;
104
97
  } & SmartDialogCommonProps;
105
98
  export interface SmartDialogInputOptions extends SmartDialogOptions {
106
99
  /**
@@ -195,6 +195,13 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
195
195
  * @version 2.6.3
196
196
  */
197
197
  autoClose?: boolean;
198
+ /**
199
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
200
+ *
201
+ * @default false
202
+ * @version 2.11.1
203
+ */
204
+ fullCoverView?: boolean;
198
205
  }
199
206
  export interface SmartDialogEvents {
200
207
  /**
@@ -106,6 +106,13 @@ export interface SmartPopupProps {
106
106
  * @version 2.3.8
107
107
  */
108
108
  nativeDisabled?: boolean;
109
+ /**
110
+ * 是否使用 cover-view 包裹弹层,用于覆盖原生组件(如 map、video)时使用
111
+ *
112
+ * @default false
113
+ * @version 2.11.1
114
+ */
115
+ fullCoverView?: boolean;
109
116
  }
110
117
  export interface SmartPopupEvents extends SmartTransitionEvents {
111
118
  /**
@@ -32,7 +32,9 @@ var withReactProps = function (WrappedComponent) {
32
32
  // 自身是否是一个 Slot 组件
33
33
  var isSelfSlot = typeof (props === null || props === void 0 ? void 0 : props.slot) === 'string';
34
34
  var slotProps = isSelfSlot ? {} : (_a = props === null || props === void 0 ? void 0 : props.slot) !== null && _a !== void 0 ? _a : {};
35
- var slotPropsNames = Object.keys(slotProps);
35
+ var slotPropsNames = Object.keys(slotProps).filter(function (key) {
36
+ return react_1.default.isValidElement(slotProps[key]);
37
+ });
36
38
  var omitPropKeys = ['className', 'slot', 'children'];
37
39
  var stylePropsKeys = [];
38
40
  var vantProps = (0, lodash_es_1.omit)(props, omitPropKeys);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.11.0",
3
+ "version": "2.11.1-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.8",
45
- "@tuya-miniapp/smart-ui": "^2.11.0",
45
+ "@tuya-miniapp/smart-ui": "2.11.1-beta-0",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {