This commit is contained in:
2026-03-25 14:54:15 +08:00
commit ab4646b43a
827 changed files with 123812 additions and 0 deletions
@@ -0,0 +1,22 @@
import type { PropType } from 'vue';
export const stringProp = <T>(defaultVal: T) => ({
type: String as unknown as PropType<T>,
default: defaultVal
});
export const stringOrObjectProp = <T>(defaultVal: T) => ({
type: [String, Object] as PropType<string | Record<string, any>>,
default: defaultVal
});
export const baseProps = {
/**
* 自定义根节点样式
*/
customStyle: stringOrObjectProp(''),
/**
* 自定义根节点样式类
*/
customClass: stringProp('')
};