nutui-uniapp
Version:
京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)
28 lines (23 loc) • 602 B
text/typescript
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