init
This commit is contained in:
27
uni_modules/nutui-uni/components/tabpane/tabpane.ts
Normal file
27
uni_modules/nutui-uni/components/tabpane/tabpane.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { ExtractPropTypes } from 'vue'
|
||||
import { CLICK_EVENT } from '../_constants'
|
||||
import { commonProps, makeNumericProp } from '../_utils'
|
||||
|
||||
export const tabpaneProps = {
|
||||
...commonProps,
|
||||
/**
|
||||
* @description 标题
|
||||
*/
|
||||
title: makeNumericProp(''),
|
||||
/**
|
||||
* @description 标签 Key, 匹配的标识符
|
||||
*/
|
||||
paneKey: makeNumericProp(''),
|
||||
/**
|
||||
* @description 是否禁用标签
|
||||
*/
|
||||
disabled: Boolean,
|
||||
}
|
||||
|
||||
export type TabPaneProps = ExtractPropTypes<typeof tabpaneProps>
|
||||
|
||||
export const tabpaneEmits = {
|
||||
[CLICK_EVENT]: () => true,
|
||||
}
|
||||
|
||||
export type TabPaneEmits = typeof tabpaneEmits
|
||||
Reference in New Issue
Block a user