forked from dyf/dyf-vue-ui
多租户平台
This commit is contained in:
26
src/utils/propTypes.ts
Normal file
26
src/utils/propTypes.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { CSSProperties } from 'vue';
|
||||
import VueTypes, { createTypes, toValidableType, VueTypeValidableDef, VueTypesInterface } from 'vue-types';
|
||||
|
||||
type PropTypes = VueTypesInterface & {
|
||||
readonly style: VueTypeValidableDef<CSSProperties>;
|
||||
readonly fieldOption: VueTypeValidableDef<Array<FieldOption>>;
|
||||
};
|
||||
|
||||
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 };
|
||||
Reference in New Issue
Block a user