Pre Merge pull request !27 from 三个三/ts

This commit is contained in:
三个三 2023-07-14 16:08:14 +00:00 committed by Gitee
commit e06bac49ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,5 +1,5 @@
import { CSSProperties } from 'vue'; import { CSSProperties } from 'vue';
import { createTypes, VueTypeValidableDef, VueTypesInterface } from 'vue-types'; import VueTypes, { createTypes, toValidableType, VueTypeValidableDef, VueTypesInterface } from 'vue-types';
type PropTypes = VueTypesInterface & { type PropTypes = VueTypesInterface & {
readonly style: VueTypeValidableDef<CSSProperties>; readonly style: VueTypeValidableDef<CSSProperties>;
@ -14,12 +14,13 @@ const propTypes = createTypes({
integer: undefined integer: undefined
}) as PropTypes; }) as PropTypes;
propTypes.extend([ export default class ProjectTypes extends VueTypes {
{ static get style() {
name: 'style', return toValidableType('style', {
getter: true, type: [String, Object],
type: [String, Object], default: undefined
default: undefined
})
} }
]); }
export { propTypes }; export { propTypes };