tav-ui
Version:
1 lines • 2.91 kB
Source Map (JSON)
{"version":3,"file":"types2.mjs","sources":["../../../../../../../packages/components/drawer/src/types.ts"],"sourcesContent":["import { tavI18n } from '@tav-ui/locales'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\ntype Recordable<T = any> = Record<string, T>\n\nexport const footerProps = {\n confirmLoading: { type: Boolean },\n /**\n * @description: Show close button\n */\n showCancelBtn: { type: Boolean, default: true },\n cancelButtonProps: Object as PropType<Recordable>,\n cancelText: { type: String, default: tavI18n('Tav.common.cancelText') },\n /**\n * @description: Show confirmation button\n */\n showOkBtn: { type: Boolean, default: true },\n okButtonProps: Object as PropType<Recordable>,\n okText: { type: String, default: tavI18n('Tav.common.okText') },\n okType: { type: String, default: 'primary' },\n showFooter: { type: Boolean },\n footerHeight: {\n type: [String, Number] as PropType<string | number>,\n default: 60,\n },\n}\n\nexport const drawerProps = {\n isDetail: { type: Boolean },\n title: { type: String, default: '' },\n loadingText: { type: String },\n showDetailBack: { type: Boolean, default: true },\n visible: { type: Boolean },\n loading: { type: Boolean },\n maskClosable: { type: Boolean, default: true },\n getContainer: {\n type: [Object, String] as PropType<any>,\n },\n closeFunc: {\n type: [Function, Object] as PropType<any>,\n default: null,\n },\n destroyOnClose: { type: Boolean },\n ...footerProps,\n}\n\nexport type DrawerProps = ExtractPropTypes<typeof drawerProps>\n"],"names":[],"mappings":";;;AACY,MAAC,WAAW,GAAG;AAC3B,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AACnC,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AACjD,EAAE,iBAAiB,EAAE,MAAM;AAC3B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAAE;AACzE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAC7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