From 76d46281000cd35d26321028358547dde66bcd23 Mon Sep 17 00:00:00 2001 From: MoreStrive Date: Fri, 5 Jul 2024 09:48:34 +0700 Subject: [PATCH] feat: fix type --- .../templates/articles/cards/Audio.vue | 2 +- .../templates/articles/cards/Card.vue | 2 +- .../templates/articles/cards/Video.vue | 2 +- .../articles/cards/VideoBackground.vue | 2 +- .../templates/articles/details/General.vue | 2 +- .../categories/categories/Default.vue | 2 +- .../categories/categories/Vertical.vue | 2 +- .../templates/collections/articles/Audio.vue | 2 +- .../collections/articles/Default.vue | 2 +- .../page-component/templates/others/index.ts | 2 +- .../page-component/templates/others/index.vue | 4 +- .../others/securities/Securities.vue | 15 ---- .../templates/others/securities/index.ts | 1 - .../templates/others/stocks/334x641.vue | 34 +++++++++ .../templates/others/stocks/index.ts | 1 + .../others/{securities => stocks}/index.vue | 6 +- .../templates/sections/articles/Default.vue | 2 +- .../layouts/articles/details/Default.vue | 1 - components/widget/JSwidget.vue | 75 +++++++++++++++++++ definitions/enum/page.enum.ts | 6 +- pages/index.vue | 2 +- server/models/dynamic-page/index.ts | 6 +- 22 files changed, 133 insertions(+), 40 deletions(-) delete mode 100644 components/dynamic-page/page-component/templates/others/securities/Securities.vue delete mode 100644 components/dynamic-page/page-component/templates/others/securities/index.ts create mode 100644 components/dynamic-page/page-component/templates/others/stocks/334x641.vue create mode 100644 components/dynamic-page/page-component/templates/others/stocks/index.ts rename components/dynamic-page/page-component/templates/others/{securities => stocks}/index.vue (77%) create mode 100644 components/widget/JSwidget.vue diff --git a/components/dynamic-page/page-component/templates/articles/cards/Audio.vue b/components/dynamic-page/page-component/templates/articles/cards/Audio.vue index 4dbbbbf..e9bd865 100644 --- a/components/dynamic-page/page-component/templates/articles/cards/Audio.vue +++ b/components/dynamic-page/page-component/templates/articles/cards/Audio.vue @@ -8,7 +8,7 @@ const props = defineProps<{ dataType?: any; dataQuery?: any; layout?: string; - label?: string; + label?: any; }>(); const LAYOUT_PARSE = computed(() => { diff --git a/components/dynamic-page/page-component/templates/articles/cards/Card.vue b/components/dynamic-page/page-component/templates/articles/cards/Card.vue index dd3b594..2d05fd0 100644 --- a/components/dynamic-page/page-component/templates/articles/cards/Card.vue +++ b/components/dynamic-page/page-component/templates/articles/cards/Card.vue @@ -9,7 +9,7 @@ const props = defineProps<{ dataType?: any; dataQuery?: any; layout?: string; - label?: string; + label?: any; }>(); const LAYOUT_PARSE = computed(() => { diff --git a/components/dynamic-page/page-component/templates/articles/cards/Video.vue b/components/dynamic-page/page-component/templates/articles/cards/Video.vue index 2da9654..c051e02 100644 --- a/components/dynamic-page/page-component/templates/articles/cards/Video.vue +++ b/components/dynamic-page/page-component/templates/articles/cards/Video.vue @@ -7,7 +7,7 @@ const props = defineProps<{ dataType?: any; dataQuery?: any; layout?: string; - label?: string; + label?: any; }>(); const LAYOUT_PARSE = computed(() => { diff --git a/components/dynamic-page/page-component/templates/articles/cards/VideoBackground.vue b/components/dynamic-page/page-component/templates/articles/cards/VideoBackground.vue index 913ed2c..01e21e1 100644 --- a/components/dynamic-page/page-component/templates/articles/cards/VideoBackground.vue +++ b/components/dynamic-page/page-component/templates/articles/cards/VideoBackground.vue @@ -8,7 +8,7 @@ const props = defineProps<{ dataType?: any; dataQuery?: any; layout?: string; - label?: string; + label?: any; }>(); const LAYOUT_PARSE = computed(() => { diff --git a/components/dynamic-page/page-component/templates/articles/details/General.vue b/components/dynamic-page/page-component/templates/articles/details/General.vue index c3d2fbf..93ea84c 100644 --- a/components/dynamic-page/page-component/templates/articles/details/General.vue +++ b/components/dynamic-page/page-component/templates/articles/details/General.vue @@ -9,7 +9,7 @@ const _props = defineProps<{ dataType?: any; dataQuery?: any; layout?: string; - label?: string; + label?: any; }>(); const SETTING_OPTIONS = { BREADCRUMB_MAX_ELEMENT: 3, diff --git a/components/dynamic-page/page-component/templates/categories/categories/Default.vue b/components/dynamic-page/page-component/templates/categories/categories/Default.vue index 1af65d3..e07f4b4 100644 --- a/components/dynamic-page/page-component/templates/categories/categories/Default.vue +++ b/components/dynamic-page/page-component/templates/categories/categories/Default.vue @@ -5,7 +5,7 @@ import { COLLECTION_QUERY_DROP, getValueStringWithKeyAndColon, getInputValue } f const _props = defineProps<{ dataResult?: any[]; dataQuery?: string; - label?: string; + label?: any; }>(); const designObject = computed(() => { diff --git a/components/dynamic-page/page-component/templates/categories/categories/Vertical.vue b/components/dynamic-page/page-component/templates/categories/categories/Vertical.vue index 647db56..b2c7674 100644 --- a/components/dynamic-page/page-component/templates/categories/categories/Vertical.vue +++ b/components/dynamic-page/page-component/templates/categories/categories/Vertical.vue @@ -5,7 +5,7 @@ import { COLLECTION_QUERY_DROP, getValueStringWithKeyAndColon, getInputValue } f const _props = defineProps<{ dataResult?: any[]; dataQuery?: string; - label?: string; + label?: any; }>(); const SETTING_OPTIONS = { diff --git a/components/dynamic-page/page-component/templates/collections/articles/Audio.vue b/components/dynamic-page/page-component/templates/collections/articles/Audio.vue index 489f4c0..d36079a 100644 --- a/components/dynamic-page/page-component/templates/collections/articles/Audio.vue +++ b/components/dynamic-page/page-component/templates/collections/articles/Audio.vue @@ -8,7 +8,7 @@ const _props = defineProps<{ dataResult?: any[]; dataQuery?: string; layout?: string; - label?: string; + label?: any; content?: any; }>(); diff --git a/components/dynamic-page/page-component/templates/collections/articles/Default.vue b/components/dynamic-page/page-component/templates/collections/articles/Default.vue index 38bb162..c70b2a4 100644 --- a/components/dynamic-page/page-component/templates/collections/articles/Default.vue +++ b/components/dynamic-page/page-component/templates/collections/articles/Default.vue @@ -8,7 +8,7 @@ const _props = defineProps<{ dataResult?: any[]; dataQuery?: string; layout?: string; - label?: string; + label?: any; content?: any; }>(); diff --git a/components/dynamic-page/page-component/templates/others/index.ts b/components/dynamic-page/page-component/templates/others/index.ts index a000827..5b88cfc 100644 --- a/components/dynamic-page/page-component/templates/others/index.ts +++ b/components/dynamic-page/page-component/templates/others/index.ts @@ -1,4 +1,4 @@ // export { default as Weather_Day } from './weathers/WeatherDay.vue' // export { default as Comment_Default } from './comments/Default.vue' export { default as Other_Weather } from './weathers/index.vue' -export { default as Other_Secutities } from './securities/index.vue' \ No newline at end of file +export { default as Other_Stock } from './stocks/index.vue' \ No newline at end of file diff --git a/components/dynamic-page/page-component/templates/others/index.vue b/components/dynamic-page/page-component/templates/others/index.vue index 72700c5..8b8fe66 100644 --- a/components/dynamic-page/page-component/templates/others/index.vue +++ b/components/dynamic-page/page-component/templates/others/index.vue @@ -1,6 +1,6 @@ - - diff --git a/components/dynamic-page/page-component/templates/others/securities/index.ts b/components/dynamic-page/page-component/templates/others/securities/index.ts deleted file mode 100644 index cbe0931..0000000 --- a/components/dynamic-page/page-component/templates/others/securities/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as Securities_Default } from './Securities.vue' \ No newline at end of file diff --git a/components/dynamic-page/page-component/templates/others/stocks/334x641.vue b/components/dynamic-page/page-component/templates/others/stocks/334x641.vue new file mode 100644 index 0000000..8020998 --- /dev/null +++ b/components/dynamic-page/page-component/templates/others/stocks/334x641.vue @@ -0,0 +1,34 @@ + + + diff --git a/components/dynamic-page/page-component/templates/others/stocks/index.ts b/components/dynamic-page/page-component/templates/others/stocks/index.ts new file mode 100644 index 0000000..714346f --- /dev/null +++ b/components/dynamic-page/page-component/templates/others/stocks/index.ts @@ -0,0 +1 @@ +export { default as Stock_Default } from './334x641.vue' \ No newline at end of file diff --git a/components/dynamic-page/page-component/templates/others/securities/index.vue b/components/dynamic-page/page-component/templates/others/stocks/index.vue similarity index 77% rename from components/dynamic-page/page-component/templates/others/securities/index.vue rename to components/dynamic-page/page-component/templates/others/stocks/index.vue index 2e9367c..7cc4777 100644 --- a/components/dynamic-page/page-component/templates/others/securities/index.vue +++ b/components/dynamic-page/page-component/templates/others/stocks/index.vue @@ -1,15 +1,14 @@