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