lx-admin-frontend/src/utils/propTypes.ts
ahaos ac3ad63894 !29 修改列表打开对话框和接口请求顺序
Merge pull request !29 from ahaos/tspr
2023-07-19 14:48:30 +00:00

26 lines
620 B
TypeScript

import { CSSProperties } from 'vue';
import VueTypes, { createTypes, toValidableType, VueTypeValidableDef, VueTypesInterface } from 'vue-types';
type PropTypes = VueTypesInterface & {
readonly style: VueTypeValidableDef<CSSProperties>;
};
const propTypes = createTypes({
func: undefined,
bool: undefined,
string: undefined,
number: undefined,
object: undefined,
integer: undefined
}) as PropTypes;
export default class ProjectTypes extends VueTypes {
static get style() {
return toValidableType('style', {
type: [String, Object],
default: undefined
});
}
}
export { propTypes };