UNPKG

ano-ui

Version:

<p align="center"> <img src="https://github.com/ano-ui/ano-ui/raw/main/public/logo.svg" style="width:100px;" /> <h1 align="center">Ano-UI (WIP)</h1> <p align="center">An UniApp UI components with UnoCSS.</p> </p> <p align="center"> <a href="https://www.np

32 lines (28 loc) 881 B
import type { ExtractPropTypes, PropType } from 'vue' import { useCustomClassProp, useCustomStyleProp } from '../composables' import { CLICK_EVENT } from '../constants' export const cellProps = { customClass: useCustomClassProp, customStyle: useCustomStyleProp, title: String, value: String, label: String, icon: String, arrow: { type: [Boolean, String] as PropType<boolean | 'right' | 'bottom'>, }, center: Boolean, clickable: Boolean, disabled: Boolean, titleClass: useCustomClassProp, titleStyle: useCustomStyleProp, valueClass: useCustomClassProp, valueStyle: useCustomStyleProp, labelClass: useCustomClassProp, labelStyle: useCustomStyleProp, } export const cellEmits = { [CLICK_EVENT]: (evt: MouseEvent) => evt instanceof Object, } export type CellProps = ExtractPropTypes<typeof cellProps> export type CellEmits = typeof cellEmits