@tarojs/components 3.4.2 → 3.4.5

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.
Files changed (50) hide show
  1. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  2. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  3. package/dist/cjs/taro-textarea-core.cjs.entry.js +3 -1
  4. package/dist/collection/components/image/image.js +1 -1
  5. package/dist/collection/components/image/style/index.css +3 -0
  6. package/dist/collection/components/tabbar/style/index.css +2 -0
  7. package/dist/collection/components/textarea/textarea.js +3 -1
  8. package/dist/esm/taro-image-core.entry.js +1 -1
  9. package/dist/esm/taro-tabbar.entry.js +1 -1
  10. package/dist/esm/taro-textarea-core.entry.js +3 -1
  11. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  12. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  13. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  14. package/dist/taro-components/{p-9eb7dfa8.entry.js → p-1c1336f5.entry.js} +1 -1
  15. package/dist/taro-components/p-293531af.system.entry.js +1 -0
  16. package/dist/taro-components/p-33ee636a.system.js +1 -1
  17. package/dist/taro-components/p-5ae86835.system.entry.js +1 -0
  18. package/dist/taro-components/{p-a345ba40.entry.js → p-6de12779.entry.js} +1 -1
  19. package/dist/taro-components/p-b32442fc.system.entry.js +1 -0
  20. package/dist/taro-components/p-d041b413.entry.js +1 -0
  21. package/dist/taro-components/taro-components.esm.js +1 -1
  22. package/dist/types/components/image/image.d.ts +1 -1
  23. package/dist-h5/react/components/input.js +2 -2
  24. package/dist-h5/react/utils/reactify-wc.js +2 -2
  25. package/dist-h5/vue/components/picker.js +2 -2
  26. package/dist-h5/vue/components/scroll-view.js +2 -2
  27. package/dist-h5/vue/createFormsComponent.js +2 -2
  28. package/dist-h5/vue/mixins/listeners.js +2 -2
  29. package/dist-h5/vue3/components/icon.js +3 -0
  30. package/dist-h5/vue3/components/image.js +3 -0
  31. package/dist-h5/vue3/components/scroll-view.js +3 -0
  32. package/dist-h5/vue3/components/text.js +3 -0
  33. package/dist-h5/vue3/createComponent.js +3 -0
  34. package/dist-h5/vue3/createFormsComponent.js +5 -2
  35. package/dist-h5/vue3/forwardRef.js +11 -0
  36. package/dist-h5/vue3/index.js +41 -5
  37. package/package.json +4 -4
  38. package/types/Button.d.ts +24 -8
  39. package/types/Input.d.ts +20 -17
  40. package/types/KeyboardAccessory.d.ts +19 -7
  41. package/types/LivePlayer.d.ts +2 -2
  42. package/types/PageContainer.d.ts +6 -6
  43. package/types/Picker.d.ts +5 -5
  44. package/types/ShareElement.d.ts +196 -3
  45. package/types/common.d.ts +1 -1
  46. package/virtual-list/react/createListComponent.js +2 -2
  47. package/dist/taro-components/p-19c46f62.system.entry.js +0 -1
  48. package/dist/taro-components/p-2dc57c71.system.entry.js +0 -1
  49. package/dist/taro-components/p-63ff7fa7.entry.js +0 -1
  50. package/dist/taro-components/p-fcc1c676.system.entry.js +0 -1
@@ -1,12 +1,15 @@
1
1
  import { h } from 'vue';
2
+ import { useForwardRef } from '../forwardRef';
2
3
  export default {
3
4
  emits: ['tap'],
4
5
  setup: function setup(props, _ref) {
5
6
  var slots = _ref.slots,
6
7
  emit = _ref.emit,
7
8
  attrs = _ref.attrs;
9
+ var forwardRef = useForwardRef();
8
10
  return function () {
9
11
  return h('taro-image-core', {
12
+ ref: forwardRef,
10
13
  class: ['hydrated', {
11
14
  'taro-img__widthfix': attrs.mode === 'widthFix'
12
15
  }],
@@ -1,12 +1,15 @@
1
1
  import { h } from 'vue';
2
+ import { useForwardRef } from '../forwardRef';
2
3
  export default {
3
4
  emits: ['tap', 'scroll'],
4
5
  setup: function setup(props, _ref) {
5
6
  var slots = _ref.slots,
6
7
  emit = _ref.emit,
7
8
  attrs = _ref.attrs;
9
+ var forwardRef = useForwardRef();
8
10
  return function () {
9
11
  return h('taro-scroll-view-core', {
12
+ ref: forwardRef,
10
13
  class: ['hydrated', {
11
14
  'taro-scroll-view__scroll-x': attrs['scroll-x'] === '',
12
15
  'taro-scroll-view__scroll-y': attrs['scroll-y'] === ''
@@ -1,12 +1,15 @@
1
1
  import { h } from 'vue';
2
+ import { useForwardRef } from '../forwardRef';
2
3
  export default {
3
4
  emits: ['tap'],
4
5
  setup: function setup(props, _ref) {
5
6
  var slots = _ref.slots,
6
7
  emit = _ref.emit,
7
8
  attrs = _ref.attrs;
9
+ var forwardRef = useForwardRef();
8
10
  return function () {
9
11
  return h('taro-text-core', {
12
+ ref: forwardRef,
10
13
  class: ['hydrated', {
11
14
  'taro-text_selectable': attrs.selectable
12
15
  }],
@@ -1,5 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { h } from 'vue';
3
+ import { useForwardRef } from './forwardRef';
3
4
  export default function createComponent(name) {
4
5
  var classNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
5
6
  return {
@@ -7,8 +8,10 @@ export default function createComponent(name) {
7
8
  setup: function setup(props, _ref) {
8
9
  var slots = _ref.slots,
9
10
  emit = _ref.emit;
11
+ var forwardRef = useForwardRef();
10
12
  return function () {
11
13
  return h("".concat(name, "-core"), {
14
+ ref: forwardRef,
12
15
  class: ['hydrated'].concat(_toConsumableArray(classNames)),
13
16
  onClick: function onClick(e) {
14
17
  emit('tap', e);
@@ -1,11 +1,12 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
 
4
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
 
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
 
8
8
  import { h, toRefs, computed } from 'vue';
9
+ import { useForwardRef } from './forwardRef';
9
10
  export default function createFormsComponent(name, eventName) {
10
11
  var modelValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'value';
11
12
  var classNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
@@ -33,8 +34,10 @@ export default function createFormsComponent(name, eventName) {
33
34
 
34
35
  return name === 'taro-input' ? (_ref2 = {}, _defineProperty(_ref2, modelValue, model.value), _defineProperty(_ref2, 'auto-focus', focus.value), _ref2) : _defineProperty({}, modelValue, model.value);
35
36
  });
37
+ var forwardRef = useForwardRef();
36
38
  return function () {
37
39
  return h("".concat(name, "-core"), _objectSpread(_objectSpread({
40
+ ref: forwardRef,
38
41
  class: ['hydrated'].concat(_toConsumableArray(classNames))
39
42
  }, attrs.value), {}, _defineProperty({
40
43
  onClick: function onClick(e) {
@@ -0,0 +1,11 @@
1
+ import { getCurrentInstance } from 'vue';
2
+ export function useForwardRef() {
3
+ var instance = getCurrentInstance();
4
+
5
+ function forwardRef(ref) {
6
+ instance.exposed = ref;
7
+ instance.exposeProxy = ref;
8
+ }
9
+
10
+ return forwardRef;
11
+ }
@@ -5,6 +5,47 @@ import Text from './components/text';
5
5
  import Image from './components/image';
6
6
  import Icon from './components/icon';
7
7
  import ScrollView from './components/scroll-view';
8
+ export { Text, Image, Icon, ScrollView };
9
+ export var View = createComponent('taro-view');
10
+ export var RichText = createComponent('taro-rich-text');
11
+ export var Button = createComponent('taro-button');
12
+ export var CheckboxGroup = createComponent('taro-checkbox-group');
13
+ export var Editor = createComponent('taro-editor');
14
+ export var Form = createComponent('taro-form');
15
+ export var Label = createComponent('taro-label');
16
+ export var PickerView = createComponent('taro-picker-view');
17
+ export var PickerViewColumn = createComponent('taro-picker-view-column');
18
+ export var CoverImage = createComponent('taro-cover-image');
19
+ export var CoverView = createComponent('taro-cover-view');
20
+ export var MovableArea = createComponent('taro-movable-area');
21
+ export var MovableView = createComponent('taro-movable-view');
22
+ export var Swiper = createComponent('taro-swiper');
23
+ export var FunctionalPageNavigator = createComponent('taro-functional-page-navigator');
24
+ export var Navigator = createComponent('taro-navigator');
25
+ export var Audio = createComponent('taro-audio');
26
+ export var Camera = createComponent('taro-camera');
27
+ export var LivePlayer = createComponent('taro-live-player');
28
+ export var Map = createComponent('taro-map');
29
+ export var Ad = createComponent('taro-ad');
30
+ export var OfficialAccount = createComponent('taro-official-account');
31
+ export var OpenData = createComponent('taro-open-data');
32
+ export var WebView = createComponent('taro-web-view');
33
+ export var NavigationBar = createComponent('taro-navigation-bar');
34
+ export var Block = createComponent('taro-block');
35
+ export var Canvas = createComponent('taro-canvas');
36
+ export var CustomWrapper = createComponent('taro-custom-wrapper');
37
+ export var Checkbox = createComponent('taro-checkbox', ['weui-cells_checkbox']);
38
+ export var Progress = createComponent('taro-progress', ['weui-progress']);
39
+ export var RadioGroup = createComponent('taro-radio-group', ['weui-cells_radiogroup']);
40
+ export var Radio = createComponent('taro-radio', ['weui-cells_checkbox']);
41
+ export var SwiperItem = createComponent('taro-swiper-item', ['swiper-slide']);
42
+ export var Video = createComponent('taro-video', ['taro-video-container']);
43
+ export var Slot = createComponent('taro-slot');
44
+ export var Input = createFormsComponent('taro-input', 'input');
45
+ export var Textarea = createFormsComponent('taro-textarea', 'input');
46
+ export var Picker = createFormsComponent('taro-picker', 'change');
47
+ export var Switch = createFormsComponent('taro-switch', 'change', 'checked');
48
+ export var Slider = createFormsComponent('taro-slider', 'change', 'value', ['weui-slider-box']);
8
49
  export function initVue3Components(app) {
9
50
  app.config.isCustomElement = function (tag) {
10
51
  return /^taro-/.test(tag) || tag === 'root' || tag === 'block';
@@ -19,11 +60,6 @@ export function initVue3Components(app) {
19
60
  app.component(name, createComponent(name, classNames));
20
61
  }
21
62
  });
22
- var Input = createFormsComponent('taro-input', 'input');
23
- var Textarea = createFormsComponent('taro-textarea', 'input');
24
- var Picker = createFormsComponent('taro-picker', 'change');
25
- var Switch = createFormsComponent('taro-switch', 'change', 'checked');
26
- var Slider = createFormsComponent('taro-slider', 'change', 'value', ['weui-slider-box']);
27
63
  app.component('taro-input', Input);
28
64
  app.component('taro-textarea', Textarea);
29
65
  app.component('taro-picker', Picker);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.4.2",
3
+ "version": "3.4.5",
4
4
  "description": "",
5
5
  "main:h5": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
40
  "@stencil/core": "2.9.0",
41
- "@tarojs/taro": "3.4.2",
41
+ "@tarojs/taro": "3.4.5",
42
42
  "better-scroll": "^1.14.1",
43
43
  "classnames": "^2.2.5",
44
44
  "intersection-observer": "^0.7.0",
@@ -49,11 +49,11 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@stencil/sass": "1.4.1",
52
- "@types/react-native": "0.66.5",
52
+ "@types/react-native": "0.67.0",
53
53
  "jquery": "^3.4.1",
54
54
  "karmatic": "^2.1.0",
55
55
  "simulant": "^0.2.2",
56
56
  "workbox-build": "4.3.1"
57
57
  },
58
- "gitHead": "26b329326c6a7da652e8d712ee33df01ab8d2d0e"
58
+ "gitHead": "789e873f7b9477124b44a900cd4f6a2810e4e06a"
59
59
  }
package/types/Button.d.ts CHANGED
@@ -171,9 +171,10 @@ interface ButtonProps extends StandardProps {
171
171
  /** 获取用户实名
172
172
  *
173
173
  * 生效时机:`open-type="getRealnameAuthInfo"`
174
+ * @deprecated
174
175
  * @supported weapp
175
176
  */
176
- onGetRealnameAuthInfo?: CommonEventFunction
177
+ onGetRealNameAuthInfo?: CommonEventFunction
177
178
 
178
179
  /** 当使用开放能力时,发生错误的回调
179
180
  *
@@ -194,7 +195,14 @@ interface ButtonProps extends StandardProps {
194
195
  * 生效时机:`open-type="launchApp"`
195
196
  * @supported weapp
196
197
  */
197
- onLaunchapp?: CommonEventFunction
198
+ onLaunchApp?: CommonEventFunction
199
+
200
+ /** 获取用户头像回调
201
+ *
202
+ * 生效时机:`open-type="chooseAvatar"`
203
+ * @supported weapp
204
+ */
205
+ onChooseAvatar?: CommonEventFunction
198
206
  }
199
207
 
200
208
  declare namespace ButtonProps {
@@ -226,7 +234,7 @@ declare namespace ButtonProps {
226
234
  /** open-type 的合法值 */
227
235
  interface openTypeKeys {
228
236
  weapp: {
229
- /** 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息
237
+ /** 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从回调中获得具体信息
230
238
  * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html
231
239
  */
232
240
  contact
@@ -234,15 +242,17 @@ declare namespace ButtonProps {
234
242
  * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%BC%95
235
243
  */
236
244
  share
237
- /** 获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息
245
+ /** 获取用户手机号,可以从回调中获取到用户信息
238
246
  * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
239
247
  */
240
248
  getPhoneNumber
241
- /** 获取用户信息,可以从 bindgetuserinfo 回调中获取到用户信息 */
249
+ /** 获取用户信息,可以从回调中获取到用户信息 */
242
250
  getUserInfo
243
- /** 用户实名信息授权,已经弃用 */
244
- getRealnameAuthInfo
245
- /** 打开APP,可以通过app-parameter属性设定向APP传的参数
251
+ /** 用户实名信息授权
252
+ * @deprecated
253
+ */
254
+ getRealNameAuthInfo
255
+ /** 打开APP,可以通过 app-parameter 属性设定向APP传的参数
246
256
  * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html
247
257
  */
248
258
  launchApp
@@ -250,6 +260,8 @@ declare namespace ButtonProps {
250
260
  openSetting
251
261
  /** 打开“意见反馈”页面,用户可提交反馈内容并上传日志,开发者可以登录小程序管理后台后进入左侧菜单“客服反馈”页面获取到反馈内容 */
252
262
  feedback
263
+ /** 获取用户头像,可以从回调中获得具体信息 */
264
+ chooseAvatar
253
265
  }
254
266
  /** 支付宝小程序专属的 open-type 合法值
255
267
  * @see https://opendocs.alipay.com/mini/component/button
@@ -361,6 +373,10 @@ declare namespace ButtonProps {
361
373
  encryptedData: string
362
374
  /** 加密算法的初始向量 */
363
375
  iv: string
376
+ /** 动态令牌。可通过动态令牌换取用户手机号。
377
+ * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%BC%95
378
+ */
379
+ code?: string
364
380
  }
365
381
 
366
382
  interface onOpenSettingEventDetail {
package/types/Input.d.ts CHANGED
@@ -35,6 +35,10 @@ interface InputProps extends StandardProps, FormItemProps {
35
35
  */
36
36
  placeholderClass?: string
37
37
 
38
+ /** 指定 placeholder 文字的颜色
39
+ * @supported rn
40
+ */
41
+ placeholderTextColor?: string
38
42
  /** 是否禁用
39
43
  * @supported weapp, h5, rn
40
44
  */
@@ -233,25 +237,24 @@ declare namespace InputProps {
233
237
  * @example_react
234
238
  * ```tsx
235
239
  * class App extends Component {
236
- *
237
240
  * render () {
238
241
  * return (
239
- * <View className='example-body'>
240
- * <Text>可以自动聚焦的 input</Text>
241
- * <Input type='text' placeholder='将会获取焦点' focus/>
242
- * <Text>控制最大输入长度的 input</Text>
243
- * <Input type='text' placeholder='最大输入长度为 10' maxlength='10'/>
244
- * <Text>数字输入的 input</Text>
245
- * <Input type='number' placeholder='这是一个数字输入框'/>
246
- * <Text>密码输入的 input</Text>
247
- * <Input type='password' password placeholder='这是一个密码输入框'/>
248
- * <Text>带小数点的 input</Text>
249
- * <Input type='digit' placeholder='带小数点的数字键盘'/>
250
- * <Text>身份证输入的 input</Text>
251
- * <Input type='idcard' placeholder='身份证输入键盘'/>
252
- * <Text>控制占位符颜色的 input</Text>
253
- * <Input type='text' placeholder='占位符字体是红色的' placeholderStyle='color:red'/>
254
- * </View>
242
+ * <View className='example-body'>
243
+ * <Text>可以自动聚焦的 input</Text>
244
+ * <Input type='text' placeholder='将会获取焦点' focus/>
245
+ * <Text>控制最大输入长度的 input</Text>
246
+ * <Input type='text' placeholder='最大输入长度为 10' maxlength='10'/>
247
+ * <Text>数字输入的 input</Text>
248
+ * <Input type='number' placeholder='这是一个数字输入框'/>
249
+ * <Text>密码输入的 input</Text>
250
+ * <Input type='password' password placeholder='这是一个密码输入框'/>
251
+ * <Text>带小数点的 input</Text>
252
+ * <Input type='digit' placeholder='带小数点的数字键盘'/>
253
+ * <Text>身份证输入的 input</Text>
254
+ * <Input type='idcard' placeholder='身份证输入键盘'/>
255
+ * <Text>控制占位符颜色的 input</Text>
256
+ * <Input type='text' placeholder='占位符字体是红色的' placeholderStyle='color:red'/>
257
+ * </View>
255
258
  * )
256
259
  * }
257
260
  * }
@@ -4,21 +4,33 @@ import { StandardProps } from './common'
4
4
  /** @ignore */
5
5
  type KeyboardAccessoryProps = StandardProps
6
6
 
7
- /** 设置 input / textarea 聚焦时键盘上方 cover-view / cover-image 工具栏视图
7
+ /** 设置 Input / Textarea 聚焦时键盘上方 CoverView / CoverImage 工具栏视图。需要配置 Taro 插件 `@tarojs/plugin-platform-weapp` 的 `enablekeyboardAccessory` 参数为 `true` 后才能使用,请参考:[#9548](https://github.com/NervJS/taro/issues/9548#issuecomment-891682216)。
8
8
  *
9
9
  * @classification forms
10
10
  * @supported weapp
11
11
  * @example
12
+ * ```js
13
+ * // config/index.js
14
+ * {
15
+ * // ...
16
+ * plugins: [
17
+ * ['@tarojs/plugin-platform-weapp', {
18
+ * enablekeyboardAccessory: true
19
+ * }]
20
+ * ]
21
+ * }
22
+ * ```
23
+ *
12
24
  * ```tsx
13
25
  * class App extends Component {
14
26
  * render () {
15
27
  * return (
16
- * <Textarea holdKeyboard="{{true}}">
17
- * <KeyboardAccessory className="container" style={{ height: 50 }} >
18
- * <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'green' }}>1</CoverView>
19
- * <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'red' }}>2</CoverView>
20
- * </KeyboardAccessory>
21
- * </Textarea>
28
+ * <Textarea holdKeyboard="{{true}}">
29
+ * <KeyboardAccessory className="container" style={{ height: 50 }} >
30
+ * <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'green' }}>1</CoverView>
31
+ * <CoverView onClick={() => { TODO }} style={{ flex: 1, background: 'red' }}>2</CoverView>
32
+ * </KeyboardAccessory>
33
+ * </Textarea>
22
34
  * )
23
35
  * }
24
36
  * }
@@ -44,13 +44,13 @@ interface LivePlayerProps extends StandardProps {
44
44
  */
45
45
  backgroundMute?: boolean
46
46
 
47
- /** 进最小缓冲区,单位s
47
+ /** 最小缓冲区,单位s
48
48
  * @default 1
49
49
  * @supported weapp
50
50
  */
51
51
  minCache?: number
52
52
 
53
- /** 进最小缓冲区,单位s
53
+ /** 最大缓冲区,单位s
54
54
  * @default 3
55
55
  * @supported weapp
56
56
  */
@@ -38,21 +38,21 @@ interface PageContainerProps extends StandardProps {
38
38
  */
39
39
  round?: boolean
40
40
 
41
- /** 自定义遮罩层样式
41
+ /** 是否在下滑一段距离后关闭
42
42
  * @default false
43
43
  * @supported weapp
44
44
  */
45
45
  closeOnSlideDown?: boolean
46
46
 
47
- /** 是否在下滑一段距离后关闭
47
+ /** 自定义遮罩层样式
48
48
  * @supported weapp
49
49
  */
50
- overlayStyle?: boolean
50
+ overlayStyle?: string
51
51
 
52
52
  /** 自定义弹出层样式
53
53
  * @supported weapp
54
54
  */
55
- customStyle?: boolean
55
+ customStyle?: string
56
56
 
57
57
  /** 进入前触发
58
58
  * @supported weapp
@@ -97,10 +97,10 @@ declare namespace PageContainerProps {
97
97
  top
98
98
  /** 下方弹出 */
99
99
  bottom
100
- /** 左边弹出 */
101
- left
102
100
  /** 右边弹出 */
103
101
  right
102
+ /** 中央弹出 */
103
+ center
104
104
  }
105
105
  }
106
106
 
package/types/Picker.d.ts CHANGED
@@ -103,7 +103,7 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
103
103
  * 列改变时触发
104
104
  * @supported weapp, h5, rn
105
105
  */
106
- onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEvnetDetail>
106
+ onColumnChange?: CommonEventFunction<PickerMultiSelectorProps.ColumnChangeEventDetail>
107
107
  }
108
108
 
109
109
  declare namespace PickerMultiSelectorProps {
@@ -111,7 +111,7 @@ declare namespace PickerMultiSelectorProps {
111
111
  /** 表示变更值的下标 */
112
112
  value: number[]
113
113
  }
114
- interface ColumnChangeEvnetDetail {
114
+ interface ColumnChangeEventDetail {
115
115
  /** 表示改变了第几列(下标从0开始) */
116
116
  column: number
117
117
  /** 表示变更值的下标 */
@@ -350,7 +350,7 @@ declare namespace PickerRegionProps {
350
350
  * </view>
351
351
  * </view>
352
352
  * </template>
353
- *
353
+ *
354
354
  * <script>
355
355
  * export default {
356
356
  * data() {
@@ -365,11 +365,11 @@ declare namespace PickerRegionProps {
365
365
  * onChange: function(e) {
366
366
  * this.selectorChecked = this.selector[e.detail.value]
367
367
  * },
368
- *
368
+ *
369
369
  * onTimeChange: function(e) {
370
370
  * this.timeSel = e.detail.value
371
371
  * },
372
- *
372
+ *
373
373
  * onDateChange: function(e) {
374
374
  * this.dateSel = e.detail.value
375
375
  * }