feat: upgrade assess data types

This commit is contained in:
IchliebedichZhu 2024-03-01 21:25:01 +00:00
parent e580ea3239
commit f11a4c5090
6 changed files with 73 additions and 17 deletions

View File

@ -2,9 +2,17 @@
* @Author: ShawnPhang * @Author: ShawnPhang
* @Date: 2022-02-12 11:08:57 * @Date: 2022-02-12 11:08:57
* @Description: * @Description:
* @LastEditors: ShawnPhang <https://m.palxp.cn> * @LastEditors: ShawnPhang <https://m.palxp.cn>, Jeremy Yu <https://github.com/JeremyYu-cn>
* @LastEditTime: 2023-09-19 17:35:44 * @LastEditTime: 2024-03-01 20:55:51
*/ */
export type AlignListData = {
key: string
icon: string
tip: string
value: string
}
export default [ export default [
{ {
key: 'align', key: 'align',
@ -42,4 +50,4 @@ export default [
tip: '下对齐', tip: '下对齐',
value: 'bottom', value: 'bottom',
}, },
] ] as AlignListData[]

View File

@ -2,9 +2,17 @@
* @Author: ShawnPhang * @Author: ShawnPhang
* @Date: 2022-04-15 10:51:50 * @Date: 2022-04-15 10:51:50
* @Description: * @Description:
* @LastEditors: ShawnPhang * @LastEditors: ShawnPhang, Jeremy Yu <https://github.com/JeremyYu-cn>
* @LastEditTime: 2022-04-15 10:51:51 * @LastEditTime: 2024-03-01 20:55:51
*/ */
export type LayerIconList = {
key: string
icon: string
tip: string
value: number
}
export default [ export default [
{ {
key: 'zIndex', key: 'zIndex',
@ -18,4 +26,4 @@ export default [
tip: '下一层', tip: '下一层',
value: -1, value: -1,
}, },
] ] as LayerIconList[]

View File

@ -2,9 +2,21 @@
* @Author: ShawnPhang * @Author: ShawnPhang
* @Date: 2022-03-16 11:38:48 * @Date: 2022-03-16 11:38:48
* @Description: * @Description:
* @LastEditors: ShawnPhang * @LastEditors: ShawnPhang, Jeremy Yu <https://github.com/JeremyYu-cn>
* @LastEditTime: 2022-03-23 16:00:11 * @LastEditTime: 2024-03-01 20:55:51
*/ */
export type QrCodeLocalizationData = {
dotColorTypes: {
key: string
value: string
}[]
dotTypes: {
key: string
value: string
}[]
}
export default { export default {
dotColorTypes: [ dotColorTypes: [
{ {
@ -42,4 +54,4 @@ export default {
value: '特殊风格', value: '特殊风格',
}, },
], ],
} } as QrCodeLocalizationData

View File

@ -2,10 +2,20 @@
* @Author: ShawnPhang * @Author: ShawnPhang
* @Date: 2021-08-02 18:27:27 * @Date: 2021-08-02 18:27:27
* @Description: * @Description:
* @LastEditors: ShawnPhang * @LastEditors: ShawnPhang, Jeremy Yu <https://github.com/JeremyYu-cn>
* @LastEditTime: 2022-02-25 10:30:38 * @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 = [ export const styleIconList1 = [
{ {
key: 'fontWeight', key: 'fontWeight',
@ -42,7 +52,16 @@ export const styleIconList1 = [
value: ['horizontal-tb', 'vertical-rl'], // tb-rl value: ['horizontal-tb', 'vertical-rl'], // tb-rl
select: false, select: false,
}, },
] ] as TStyleIconData[]
export type TStyleIconData2 = {
key: string
icon: string
tip: string
value: string
select: boolean
}
export const styleIconList2 = [ export const styleIconList2 = [
{ {
key: 'textAlign', key: 'textAlign',
@ -72,7 +91,7 @@ export const styleIconList2 = [
value: 'justify', value: 'justify',
select: false, select: false,
}, },
] ] as TStyleIconData2[]
export const alignIconList = [ export const alignIconList = [
{ {
@ -111,4 +130,4 @@ export const alignIconList = [
tip: '下对齐', tip: '下对齐',
value: 'bottom', value: 'bottom',
}, },
] ] as AlignListData[]

View File

@ -2,9 +2,17 @@
* @Author: ShawnPhang * @Author: ShawnPhang
* @Date: 2021-07-17 11:20:22 * @Date: 2021-07-17 11:20:22
* @Description: * @Description:
* @LastEditors: ShawnPhang <https://m.palxp.cn> * @LastEditors: ShawnPhang <https://m.palxp.cn>, Jeremy Yu <https://github.com/JeremyYu-cn>
* @LastEditTime: 2024-01-24 17:07:44 * @LastEditTime: 2024-03-01 20:55:51
*/ */
export type TWidgetClassifyData = {
name: string
icon: string
show: boolean
component: string
}
export default [ export default [
{ {
name: '模板', name: '模板',
@ -49,4 +57,4 @@ export default [
show: false, show: false,
component: 'user-wrap', component: 'user-wrap',
}, },
] ] as TWidgetClassifyData[]

View File

@ -1,4 +1,5 @@
/** 公共API返回结果 */ /** 公共API返回结果 */
type TCommResResult<T> = { type TCommResResult<T> = {
code: number code: number