papayaui 0.2.1 → 0.2.2

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.
@@ -9,8 +9,9 @@
9
9
  :bg-color="bgColor"
10
10
  :closeable="closeable"
11
11
  :round="round"
12
- :close-on-click-overlay="maskCloseAble"
12
+ :close-on-click-overlay="closeOnClickOverlay ?? maskCloseAble"
13
13
  :safe-area-inset-bottom="false"
14
+ :duration="duration"
14
15
  @update:show="emit('update:show', !!$event)"
15
16
  @open="emit('open')"
16
17
  @opened="emit('opened')"
@@ -3,7 +3,15 @@ import { pick } from '../../utils'
3
3
  import { popupEmits, popupProps } from '../popup/props'
4
4
 
5
5
  export const bottomPopupProps = {
6
- ...pick(popupProps, ['show', 'zIndex', 'overlay', 'bgColor', 'safeAreaInsetBottom']),
6
+ ...pick(popupProps, [
7
+ 'show',
8
+ 'zIndex',
9
+ 'overlay',
10
+ 'bgColor',
11
+ 'safeAreaInsetBottom',
12
+ 'closeOnClickOverlay',
13
+ 'duration',
14
+ ]),
7
15
  /**
8
16
  * 标题
9
17
  */
@@ -31,6 +39,7 @@ export const bottomPopupProps = {
31
39
  },
32
40
  /**
33
41
  * 是否可以点击空白处关闭
42
+ * @deprecated 即将移除,统一使用 `closeOnClickOverlay`属性
34
43
  */
35
44
  maskCloseAble: popupProps.closeOnClickOverlay,
36
45
  }
@@ -3,7 +3,14 @@
3
3
  :show="show"
4
4
  :title="title"
5
5
  :height="height"
6
+ :round="round"
7
+ :z-index="zIndex"
8
+ :overlay="overlay"
9
+ :bg-color="bgColor"
10
+ :closeable="closeable"
11
+ :close-on-click-overlay="closeOnClickOverlay"
6
12
  :safe-area-inset-bottom="false"
13
+ :duration="duration"
7
14
  @update:show="emit('update:show', $event as boolean)"
8
15
  @open="emit('open')"
9
16
  @opened="emit('opened')"
@@ -1,7 +1,7 @@
1
- import type { ExtractPropTypes, CSSProperties, PropType } from 'vue'
1
+ import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'
2
2
  import type { TreeNode, UseTreeFieldNames } from '../../core/useTree'
3
3
  import { defaultFieldNames } from '../../core/useTree'
4
- import { isArray, isObject, pick } from '../../utils'
4
+ import { isArray, isObject } from '../../utils'
5
5
  import { bottomPopupEmits, bottomPopupProps } from '../bottom-popup/props'
6
6
 
7
7
  export interface CascaderNode<T = any> {
@@ -13,7 +13,7 @@ export type CascaderOption = any
13
13
  export type CascaderValue = any
14
14
 
15
15
  export const cascaderProps = {
16
- ...pick(bottomPopupProps, ['show', 'height', 'title', 'safeAreaInsetBottom']),
16
+ ...bottomPopupProps,
17
17
  /**
18
18
  * 值
19
19
  */
@@ -4,7 +4,14 @@
4
4
  :show="show"
5
5
  :title="title"
6
6
  :height="height"
7
+ :round="round"
8
+ :z-index="zIndex"
9
+ :overlay="overlay"
10
+ :bg-color="bgColor"
11
+ :closeable="closeable"
12
+ :close-on-click-overlay="closeOnClickOverlay"
7
13
  :safe-area-inset-bottom="false"
14
+ :duration="duration"
8
15
  @update:show="emit('update:show', $event as boolean)"
9
16
  @open="emit('open')"
10
17
  @opened="emit('opened')"
@@ -1,13 +1,13 @@
1
- import type { ExtractPropTypes, CSSProperties, PropType } from 'vue'
1
+ import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'
2
2
  import type { UseListProps } from '../../core/useList'
3
- import { isArray, isNumber, isObject, isString, pick } from '../../utils'
3
+ import { isArray, isNumber, isObject, isString } from '../../utils'
4
4
  import { bottomPopupEmits, bottomPopupProps } from '../bottom-popup/props'
5
5
 
6
6
  export type Option = any
7
7
  export type OptionValue = number | string
8
8
 
9
9
  export const pickerPopupProps = {
10
- ...pick(bottomPopupProps, ['show', 'height', 'title', 'safeAreaInsetBottom']),
10
+ ...bottomPopupProps,
11
11
  /**
12
12
  * 选择的值
13
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "papayaui",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "适用于uniapp的ui扩展库",
5
5
  "packageManager": "pnpm@8.6.0",
6
6
  "dependencies": {
@@ -1,14 +0,0 @@
1
- import { defaultNamespace } from '../../core'
2
-
3
- const Dialog = () => {
4
- const node = uni
5
- .createSelectorQuery()
6
- .select(`#${defaultNamespace}-dialog`)
7
- .node((result) => {
8
- console.log('result', result)
9
- })
10
- .exec()
11
- console.log(node)
12
- }
13
-
14
- export default Dialog
package/fonts/.DS_Store DELETED
Binary file
package/images/.DS_Store DELETED
Binary file