diff --git a/src/assets/data/AlignListData.ts b/src/assets/data/AlignListData.ts index cf7745f..e21657c 100644 --- a/src/assets/data/AlignListData.ts +++ b/src/assets/data/AlignListData.ts @@ -2,9 +2,17 @@ * @Author: ShawnPhang * @Date: 2022-02-12 11:08:57 * @Description: - * @LastEditors: ShawnPhang - * @LastEditTime: 2023-09-19 17:35:44 + * @LastEditors: ShawnPhang , Jeremy Yu + * @LastEditTime: 2024-03-01 20:55:51 */ + +export type AlignListData = { + key: string + icon: string + tip: string + value: string +} + export default [ { key: 'align', @@ -42,4 +50,4 @@ export default [ tip: '下对齐', value: 'bottom', }, -] +] as AlignListData[] diff --git a/src/assets/data/LayerIconList.ts b/src/assets/data/LayerIconList.ts index eddf63b..7562027 100644 --- a/src/assets/data/LayerIconList.ts +++ b/src/assets/data/LayerIconList.ts @@ -2,9 +2,17 @@ * @Author: ShawnPhang * @Date: 2022-04-15 10:51:50 * @Description: - * @LastEditors: ShawnPhang - * @LastEditTime: 2022-04-15 10:51:51 + * @LastEditors: ShawnPhang, Jeremy Yu + * @LastEditTime: 2024-03-01 20:55:51 */ + +export type LayerIconList = { + key: string + icon: string + tip: string + value: number +} + export default [ { key: 'zIndex', @@ -18,4 +26,4 @@ export default [ tip: '下一层', value: -1, }, -] +] as LayerIconList[] diff --git a/src/assets/data/QrCodeLocalization.ts b/src/assets/data/QrCodeLocalization.ts index e4cd970..198dc87 100644 --- a/src/assets/data/QrCodeLocalization.ts +++ b/src/assets/data/QrCodeLocalization.ts @@ -2,9 +2,21 @@ * @Author: ShawnPhang * @Date: 2022-03-16 11:38:48 * @Description: - * @LastEditors: ShawnPhang - * @LastEditTime: 2022-03-23 16:00:11 + * @LastEditors: ShawnPhang, Jeremy Yu + * @LastEditTime: 2024-03-01 20:55:51 */ + +export type QrCodeLocalizationData = { + dotColorTypes: { + key: string + value: string + }[] + dotTypes: { + key: string + value: string + }[] +} + export default { dotColorTypes: [ { @@ -42,4 +54,4 @@ export default { value: '特殊风格', }, ], -} +} as QrCodeLocalizationData diff --git a/src/assets/data/TextIconsData.ts b/src/assets/data/TextIconsData.ts index 8dbdc09..80d554e 100644 --- a/src/assets/data/TextIconsData.ts +++ b/src/assets/data/TextIconsData.ts @@ -2,10 +2,20 @@ * @Author: ShawnPhang * @Date: 2021-08-02 18:27:27 * @Description: - * @LastEditors: ShawnPhang - * @LastEditTime: 2022-02-25 10:30:38 + * @LastEditors: ShawnPhang, Jeremy Yu + * @LastEditTime: 2024-03-01 20:55:51 */ +import { AlignListData } from "./AlignListData" + +export type TStyleIconData = { + key: string + icon: string + tip: string + value: string[] + select: boolean +} + export const styleIconList1 = [ { key: 'fontWeight', @@ -42,7 +52,16 @@ export const styleIconList1 = [ value: ['horizontal-tb', 'vertical-rl'], // tb-rl select: false, }, -] +] as TStyleIconData[] + +export type TStyleIconData2 = { + key: string + icon: string + tip: string + value: string + select: boolean +} + export const styleIconList2 = [ { key: 'textAlign', @@ -72,7 +91,7 @@ export const styleIconList2 = [ value: 'justify', select: false, }, -] +] as TStyleIconData2[] export const alignIconList = [ { @@ -111,4 +130,4 @@ export const alignIconList = [ tip: '下对齐', value: 'bottom', }, -] +] as AlignListData[] diff --git a/src/assets/data/WidgetClassifyList.ts b/src/assets/data/WidgetClassifyList.ts index ca69414..b5a3c7b 100644 --- a/src/assets/data/WidgetClassifyList.ts +++ b/src/assets/data/WidgetClassifyList.ts @@ -2,9 +2,17 @@ * @Author: ShawnPhang * @Date: 2021-07-17 11:20:22 * @Description: - * @LastEditors: ShawnPhang - * @LastEditTime: 2024-01-24 17:07:44 + * @LastEditors: ShawnPhang , Jeremy Yu + * @LastEditTime: 2024-03-01 20:55:51 */ + +export type TWidgetClassifyData = { + name: string + icon: string + show: boolean + component: string +} + export default [ { name: '模板', @@ -49,4 +57,4 @@ export default [ show: false, component: 'user-wrap', }, -] +] as TWidgetClassifyData[] diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 789280e..3af95d2 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -1,4 +1,5 @@ + /** 公共API返回结果 */ type TCommResResult = { code: number