2023-06-06 20:41:44 +08:00
|
|
|
import { CSSProperties } from 'vue';
|
2023-07-14 16:09:34 +00:00
|
|
|
import VueTypes, { createTypes, toValidableType, VueTypeValidableDef, VueTypesInterface } from 'vue-types';
|
2023-06-06 20:41:44 +08:00
|
|
|
|
|
|
|
type PropTypes = VueTypesInterface & {
|
|
|
|
readonly style: VueTypeValidableDef<CSSProperties>;
|
2023-12-13 01:01:52 +00:00
|
|
|
readonly fieldOption: VueTypeValidableDef<Array<FieldOption>>;
|
2023-06-06 20:41:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
const propTypes = createTypes({
|
|
|
|
func: undefined,
|
|
|
|
bool: undefined,
|
|
|
|
string: undefined,
|
|
|
|
number: undefined,
|
|
|
|
object: undefined,
|
|
|
|
integer: undefined
|
|
|
|
}) as PropTypes;
|
|
|
|
|
2023-07-14 16:09:34 +00:00
|
|
|
export default class ProjectTypes extends VueTypes {
|
|
|
|
static get style() {
|
|
|
|
return toValidableType('style', {
|
|
|
|
type: [String, Object],
|
|
|
|
default: undefined
|
2023-07-19 14:48:30 +00:00
|
|
|
});
|
2023-06-06 20:41:44 +08:00
|
|
|
}
|
2023-07-14 16:09:34 +00:00
|
|
|
}
|
2023-06-06 20:41:44 +08:00
|
|
|
export { propTypes };
|