perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace, extend, pick } from '../utils';
|
||||
import { truthProp, createNamespace, extend, pick } from '../utils';
|
||||
import { popupSharedProps, popupSharedPropKeys } from '../popup/shared';
|
||||
|
||||
// Components
|
||||
@@ -49,18 +49,12 @@ export default defineComponent({
|
||||
title: String,
|
||||
cancelText: String,
|
||||
description: String,
|
||||
closeOnPopstate: truthProp,
|
||||
safeAreaInsetBottom: truthProp,
|
||||
options: {
|
||||
type: Array as PropType<ShareSheetOptions>,
|
||||
default: () => [],
|
||||
},
|
||||
closeOnPopstate: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
}),
|
||||
|
||||
emits: ['cancel', 'select', 'update:show'],
|
||||
|
||||
Reference in New Issue
Block a user