From a8a334b3c326610be70dd762978e8bf1a8766adc Mon Sep 17 00:00:00 2001 From: 三个三 <2029364173@qq.com> Date: 星期四, 02 十一月 2023 12:36:31 +0800 Subject: [PATCH] !50 add 新增 前端接入websocket接收消息 * add 新增 前端接入websocket接收消息 --- src/utils/propTypes.ts | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/propTypes.ts b/src/utils/propTypes.ts index 4d69bb6..1847040 100644 --- a/src/utils/propTypes.ts +++ b/src/utils/propTypes.ts @@ -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,12 @@ 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 }; -- Gitblit v1.9.3