flame-plus 0.1.33 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +3 -0
- package/.env +0 -0
- package/.eslintrc.js +20 -0
- package/README.md +1 -7
- package/package.json +48 -23
- package/{src/packages → packages}/components/base/flmButton/flmButton.vue +1 -1
- package/{src/packages → packages}/components/base/flmCascader/flmCascader.vue +1 -1
- package/{src/packages → packages}/components/base/flmCheckbox/flmCheckbox.vue +1 -1
- package/{src/packages → packages}/components/base/flmCheckbox/flmCheckboxGroup.vue +1 -1
- package/{src/packages → packages}/components/base/flmColorPicker/flmColorPicker.vue +1 -1
- package/{src/packages → packages}/components/base/flmDatePicker/flmDatePicker.vue +1 -1
- package/{src/packages → packages}/components/base/flmDialog/flmDialog.vue +1 -1
- package/{src/packages → packages}/components/base/flmInput/flmInput.vue +1 -1
- package/{src/packages → packages}/components/base/flmInputNumber/flmInputNumber.vue +1 -1
- package/{src/packages → packages}/components/base/flmPagination/flmPagination.vue +1 -1
- package/{src/packages → packages}/components/base/flmRadio/flmRadio.vue +1 -1
- package/{src/packages → packages}/components/base/flmRate/flmRate.vue +1 -1
- package/{src/packages → packages}/components/base/flmRead/flmRead.vue +2 -2
- package/{src/packages → packages}/components/base/flmSelect/flmSelect.vue +1 -1
- package/{src/packages → packages}/components/base/flmSlider/flmSlider.vue +1 -1
- package/{src/packages → packages}/components/base/flmSwitch/flmSwitch.vue +1 -1
- package/{src/packages → packages}/components/base/flmTimePicker/flmTimePicker.vue +1 -1
- package/{src/packages → packages}/components/base/flmTimeSelect/flmTimeSelect.vue +1 -1
- package/{src/packages → packages}/components/base/flmTransfer/flmTransfer.vue +1 -1
- package/{src/packages → packages}/components/complex/flmForm/flmForm.vue +1 -2
- package/{src/packages → packages}/components/complex/flmSearch/flmSearch.vue +1 -1
- package/{src/packages → packages}/components/complex/flmTable/flmTable.vue +1 -1
- package/{src/packages → packages}/components/complex/flmToolbar/flmToolbar.vue +2 -2
- package/{src/packages → packages}/components/index.ts +1 -2
- package/{src/packages → packages}/components/page/flmReportPage/flmReportPage.vue +122 -79
- package/packages/index.ts +8 -0
- package/packages/model/flmComponentConfig/base/flmButton.ts +53 -0
- package/packages/model/flmComponentConfig/base/flmCascader.ts +77 -0
- package/packages/model/flmComponentConfig/base/flmCheckbox.ts +51 -0
- package/packages/model/flmComponentConfig/base/flmColorPicker.ts +30 -0
- package/packages/model/flmComponentConfig/base/flmDatePicker.ts +73 -0
- package/packages/model/flmComponentConfig/base/flmDialog.ts +49 -0
- package/packages/model/flmComponentConfig/base/flmInput.ts +57 -0
- package/packages/model/flmComponentConfig/base/flmInputNumber.ts +37 -0
- package/packages/model/flmComponentConfig/base/flmPagination.ts +37 -0
- package/packages/model/flmComponentConfig/base/flmRadio.ts +42 -0
- package/packages/model/flmComponentConfig/base/flmRate.ts +49 -0
- package/packages/model/flmComponentConfig/base/flmRead.ts +6 -0
- package/packages/model/flmComponentConfig/base/flmSelect.ts +104 -0
- package/packages/model/flmComponentConfig/base/flmSlider.ts +51 -0
- package/packages/model/flmComponentConfig/base/flmSwitch.ts +37 -0
- package/packages/model/flmComponentConfig/base/flmTimePicker.ts +61 -0
- package/packages/model/flmComponentConfig/base/flmTimeSelect.ts +44 -0
- package/packages/model/flmComponentConfig/base/flmTransfer.ts +51 -0
- package/packages/model/flmComponentConfig/complex/flmForm.ts +147 -0
- package/packages/model/flmComponentConfig/complex/flmSearch.ts +5 -0
- package/packages/model/flmComponentConfig/complex/flmTable.ts +132 -0
- package/packages/model/flmComponentConfig/complex/flmToolbar.ts +13 -0
- package/packages/model/flmComponentConfig/index.ts +31 -0
- package/packages/model/flmComponentConfig/page/flmReportPage.ts +31 -0
- package/packages/model/flmComponentConfig/public.ts +293 -0
- package/tsconfig.json +73 -20
- package/typings/lodash.d.ts +4 -0
- package/webpack.config.js +15 -0
- package/.vscode/extensions.json +0 -3
- package/flameDist/flame-plus.es.js +0 -5128
- package/flameDist/flame-plus.es.js.map +0 -1
- package/flameDist/flame-plus.umd.js +0 -16
- package/flameDist/flame-plus.umd.js.map +0 -1
- package/flameDist/style.css +0 -1
- package/flameDist/vite.svg +0 -1
- package/index.html +0 -13
- package/pnpm-lock.yaml +0 -2107
- package/public/vite.svg +0 -1
- package/src/App.vue +0 -10
- package/src/assets/vue.svg +0 -1
- package/src/components/HelloWorld.vue +0 -33
- package/src/main.ts +0 -19
- package/src/packages/components/page/flmExportPage/flmExportPage.vue +0 -219
- package/src/packages/index.ts +0 -96
- package/src/shims-vue.d.ts +0 -9
- package/vite.config.js +0 -37
- /package/{src/packages → packages}/utils/filterConfig.ts +0 -0
- /package/{src/packages → packages}/utils/index.ts +0 -0
- /package/{src/packages → packages}/utils/isValidKey.ts +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { XOR } from 'ts-xor'
|
|
2
|
+
import {
|
|
3
|
+
ElementSize,
|
|
4
|
+
ButtonConfig,
|
|
5
|
+
CascaderConfig,
|
|
6
|
+
CheckboxConfig,
|
|
7
|
+
ColorPickerConfig,
|
|
8
|
+
DatePickerConfig,
|
|
9
|
+
InputConfig,
|
|
10
|
+
InputNumberConfig,
|
|
11
|
+
RadioGroupConfig,
|
|
12
|
+
RateConfig,
|
|
13
|
+
ReadConfig,
|
|
14
|
+
SelectConfig,
|
|
15
|
+
SliderConfig,
|
|
16
|
+
SwitchConfig,
|
|
17
|
+
TimePickerConfig,
|
|
18
|
+
TimeSelectConfig,
|
|
19
|
+
TransferConfig,
|
|
20
|
+
} from '../../../model/flmComponentConfig'
|
|
21
|
+
|
|
22
|
+
/** @form 表单 */
|
|
23
|
+
|
|
24
|
+
// 表单控件类型
|
|
25
|
+
export enum ControlTypes {
|
|
26
|
+
'flmCascader' = 'flmCascader',
|
|
27
|
+
'flmCheckbox' = 'flmCheckbox',
|
|
28
|
+
'flmColorPicker' = 'flmColorPicker',
|
|
29
|
+
'flmDatePicker' = 'flmDatePicker',
|
|
30
|
+
'flmInput' = 'flmInput',
|
|
31
|
+
'flmInputNumber' = 'flmInputNumber',
|
|
32
|
+
'flmRadio' = 'flmRadio',
|
|
33
|
+
'flmRate' = 'flmRate',
|
|
34
|
+
'flmRead' = 'flmRead',
|
|
35
|
+
'flmSelect' = 'flmSelect',
|
|
36
|
+
'flmSlider' = 'flmSlider',
|
|
37
|
+
'flmSwitch' = 'flmSwitch',
|
|
38
|
+
'flmTimePicker' = 'flmTimePicker',
|
|
39
|
+
'flmTimeSelect' = 'flmTimeSelect',
|
|
40
|
+
'flmTransfer' = 'flmTransfer',
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 表单控件配置
|
|
44
|
+
export type ControlConfig = CascaderConfig
|
|
45
|
+
| CheckboxConfig
|
|
46
|
+
| ColorPickerConfig
|
|
47
|
+
| DatePickerConfig
|
|
48
|
+
| InputConfig
|
|
49
|
+
| InputNumberConfig
|
|
50
|
+
| RadioGroupConfig
|
|
51
|
+
| RateConfig
|
|
52
|
+
| ReadConfig
|
|
53
|
+
| SelectConfig
|
|
54
|
+
| SliderConfig
|
|
55
|
+
| SwitchConfig
|
|
56
|
+
| TimePickerConfig
|
|
57
|
+
| TimeSelectConfig
|
|
58
|
+
| TransferConfig
|
|
59
|
+
|
|
60
|
+
// 表单model
|
|
61
|
+
export type FormModel = Record<string, any>
|
|
62
|
+
|
|
63
|
+
// 表单设置(https://element-plus.gitee.io/zh-CN/component/button.html)
|
|
64
|
+
export interface FormConfig {
|
|
65
|
+
// 默认属性
|
|
66
|
+
'model'?: FormModel
|
|
67
|
+
'rules'?: Record<string, Array<FormRule>>
|
|
68
|
+
'inline'?: boolean
|
|
69
|
+
'label-position'?: 'left' | 'right' | 'top'
|
|
70
|
+
'label-width'?: string | number
|
|
71
|
+
'label-suffix'?: string
|
|
72
|
+
'hide-required-asterisk'?: boolean
|
|
73
|
+
'show-message'?: boolean
|
|
74
|
+
'inline-message'?: boolean
|
|
75
|
+
'status-icon'?: boolean
|
|
76
|
+
'validate-on-rule-change'?: boolean
|
|
77
|
+
'size'?: ElementSize
|
|
78
|
+
'disabled'?: boolean
|
|
79
|
+
// 自定义属性
|
|
80
|
+
'items'?: Array<FormItemConfig> // 表单项
|
|
81
|
+
'buttons'?: Array<FormButtonConfig> // 表单按钮
|
|
82
|
+
'columnNumber'?: number // 每行列数
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 表单项设置
|
|
86
|
+
export type FormItemConfig = XOR<SlotItemConfig, ControlItemConfig>
|
|
87
|
+
// 表单项默认属性
|
|
88
|
+
export interface FormItemDefaultConfig {
|
|
89
|
+
'prop'?: string | Array<string>
|
|
90
|
+
'label'?: string
|
|
91
|
+
'label-width'?: string | number
|
|
92
|
+
'required'?: boolean
|
|
93
|
+
'rules'?: any
|
|
94
|
+
'error'?: string
|
|
95
|
+
'show-message'?: boolean
|
|
96
|
+
'inline-message'?: boolean
|
|
97
|
+
'size'?: ElementSize
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// 插槽项属性
|
|
101
|
+
interface SlotItemConfig extends FormItemDefaultConfig {
|
|
102
|
+
'isSlot': boolean // 是否为插槽
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// 控件项属性
|
|
106
|
+
interface ControlItemConfig extends FormItemDefaultConfig {
|
|
107
|
+
'controlType': ControlTypes, // 控件类型
|
|
108
|
+
'controlConfig': ControlConfig // 控件设置
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// 表单校验规则
|
|
112
|
+
interface FormRule {
|
|
113
|
+
'required'?: true,
|
|
114
|
+
'min'?: number
|
|
115
|
+
'max'?: number
|
|
116
|
+
'message'?: string
|
|
117
|
+
'trigger'?: 'change' | 'blur'
|
|
118
|
+
'validator'?: Function
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// 表单默认方法
|
|
122
|
+
export enum FormEvent {
|
|
123
|
+
'submit' = 'submit', // 提交
|
|
124
|
+
'cancel' = 'cancel', // 取消
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 表单按钮属性,增加属性(event - 方法名)
|
|
128
|
+
export interface FormButtonConfig extends ButtonConfig {
|
|
129
|
+
'event': FormEvent | string
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// 表单默认设置
|
|
133
|
+
export const formDefaultConfig: FormConfig = {
|
|
134
|
+
'inline': false,
|
|
135
|
+
'label-position': 'right',
|
|
136
|
+
'hide-required-asterisk': false,
|
|
137
|
+
'show-message': true,
|
|
138
|
+
'inline-message': false,
|
|
139
|
+
'status-icon': false,
|
|
140
|
+
'validate-on-rule-change': true,
|
|
141
|
+
'disabled': false,
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// 是否为输入框组件
|
|
145
|
+
export const isInputControl = (control: ControlItemConfig['controlConfig']): control is InputConfig => {
|
|
146
|
+
return (control as InputConfig)['modelValue'] !== undefined
|
|
147
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { ElementSize } from '../../../model/flmComponentConfig'
|
|
2
|
+
|
|
3
|
+
/** @table 表格 */
|
|
4
|
+
|
|
5
|
+
// 表格设置(https://element-plus.gitee.io/zh-CN/component/table.html)
|
|
6
|
+
export interface TableConfig {
|
|
7
|
+
// 默认属性
|
|
8
|
+
'data'?: Array<any>
|
|
9
|
+
'height'?: string | number
|
|
10
|
+
'max-height'?: string | number
|
|
11
|
+
'stripe'?: boolean
|
|
12
|
+
'border'?: boolean
|
|
13
|
+
'size'?: ElementSize
|
|
14
|
+
'fit'?: boolean
|
|
15
|
+
'show-header'?: boolean
|
|
16
|
+
'highlight-current-row'?: boolean
|
|
17
|
+
'current-row-key'?: string | number
|
|
18
|
+
'row-class-name'?: Function | string
|
|
19
|
+
'row-style'?: Function | object
|
|
20
|
+
'cell-class-name'?: Function | string
|
|
21
|
+
'cell-style'?: Function | object
|
|
22
|
+
'header-row-class-name'?: Function | string
|
|
23
|
+
'header-row-style'?: Function | object
|
|
24
|
+
'header-cell-class-name'?: Function | string
|
|
25
|
+
'header-cell-style'?: Function | object
|
|
26
|
+
'row-key'?: Function | string
|
|
27
|
+
'empty-text'?: string
|
|
28
|
+
'default-expand-all'?: boolean
|
|
29
|
+
'expand-row-keys'?: Array<any>
|
|
30
|
+
'default-sort'?: { prop: any, order: 'ascending' | 'descending' }
|
|
31
|
+
'tooltip-effect'?: 'dark' | 'light'
|
|
32
|
+
'show-summary'?: boolean
|
|
33
|
+
'sum-text'?: string
|
|
34
|
+
'summary-method'?: Function
|
|
35
|
+
'span-method'?: Function
|
|
36
|
+
'select-on-indeterminate'?: boolean
|
|
37
|
+
'indent'?: number
|
|
38
|
+
'lazy'?: boolean
|
|
39
|
+
'load'?: Function
|
|
40
|
+
'tree-props'?: { hasChildren: string, children: string }
|
|
41
|
+
'table-layout'?: 'fixed' | 'auto'
|
|
42
|
+
'scrollbar-always-on'?: boolean
|
|
43
|
+
// 自定义属性
|
|
44
|
+
'columns'?: Array<TableColumnConfig>
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// 表格列设置
|
|
48
|
+
export interface TableColumnConfig {
|
|
49
|
+
// 默认属性
|
|
50
|
+
'type'?: 'selection' | 'index' | 'expand'
|
|
51
|
+
'index'?: number | Function
|
|
52
|
+
'label'?: string
|
|
53
|
+
'column-key'?: string
|
|
54
|
+
'prop'?: string
|
|
55
|
+
'width'?: string | number
|
|
56
|
+
'min-width'?: string | number
|
|
57
|
+
'fixed'?: true | 'left' | 'right'
|
|
58
|
+
'render-header'?: Function
|
|
59
|
+
'sortable'?: true | false | 'custom'
|
|
60
|
+
'sort-method'?: Function
|
|
61
|
+
'sort-by'?:Function
|
|
62
|
+
'sort-orders'?: Array<'ascending' | 'descending' | null>
|
|
63
|
+
'resizable'?: boolean
|
|
64
|
+
'formatter'?: Function
|
|
65
|
+
'show-overflow-tooltip'?: boolean
|
|
66
|
+
'align'?: 'left' | 'center' | 'right'
|
|
67
|
+
'header-align'?: 'left' | 'center' | 'right'
|
|
68
|
+
'class-name'?: string
|
|
69
|
+
'label-class-name'?: string
|
|
70
|
+
'selectable'?: Function
|
|
71
|
+
'reserve-selection'?: boolean
|
|
72
|
+
'filters'?: Array<{ text: string, value: string }>
|
|
73
|
+
'filter-placement'?: string
|
|
74
|
+
'filter-multiple'?: boolean
|
|
75
|
+
'filter-method'?: Function
|
|
76
|
+
'filtered-value'?: Array<any>
|
|
77
|
+
// 自定义属性
|
|
78
|
+
'isSlot'?: boolean
|
|
79
|
+
'columns'?: Array<TableColumnConfig>
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// 表格默认事件
|
|
83
|
+
export interface TableDefaultEvent {
|
|
84
|
+
onSelect: (selection: any, row: any) => void,
|
|
85
|
+
onSelectAll: (selection: any) => void,
|
|
86
|
+
onSelectionChange: (row: any, column: any, cell: any, event: any) => void,
|
|
87
|
+
onCellMouseEnter: (row: any, column: any, cell: any, event: any) => void,
|
|
88
|
+
onCellMouseLeave: (row: any, column: any, cell: any, event: any) => void,
|
|
89
|
+
onCellClick: (row: any, column: any, cell: any, event: any) => void,
|
|
90
|
+
onCellDblclick: (row: any, column: any, cell: any, event: any) => void,
|
|
91
|
+
onCellContextmenu: (row: any, column: any, cell: any, event: any) => void,
|
|
92
|
+
onRowClick: (row: any, column: any, event: any) => void,
|
|
93
|
+
onRowContextmenu: (row: any, column: any, event: any) => void,
|
|
94
|
+
onRowDblclick: (row: any, column: any, event: any) => void,
|
|
95
|
+
onHeaderClick: (column: any, event: any) => void,
|
|
96
|
+
onHeaderContextmenu: (column: any, event: any) => void,
|
|
97
|
+
onSortChange: ({ column, prop, order }: any) => void,
|
|
98
|
+
onFilterChange: (filters: any) => void,
|
|
99
|
+
onCurrentChange: (currentRow: any, oldCurrentRow: any) => void,
|
|
100
|
+
onHeaderDragend: (newWidth: any, oldWidth: any, column: any, event: any) => void,
|
|
101
|
+
onExpandChange: (row: any, expanded: any) => void,
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 表格默认设置
|
|
105
|
+
export const tableDefaultConfig: TableConfig = {
|
|
106
|
+
'stripe': false,
|
|
107
|
+
'border': false,
|
|
108
|
+
'fit': true,
|
|
109
|
+
'show-header': true,
|
|
110
|
+
'highlight-current-row': false,
|
|
111
|
+
'empty-text': '暂无数据',
|
|
112
|
+
'default-expand-all': false,
|
|
113
|
+
'tooltip-effect': 'dark',
|
|
114
|
+
'show-summary': false,
|
|
115
|
+
'sum-text': '合计',
|
|
116
|
+
'select-on-indeterminate': true,
|
|
117
|
+
'indent': 16,
|
|
118
|
+
'tree-props': { hasChildren: 'hasChildren', children: 'children' },
|
|
119
|
+
'table-layout': 'fixed',
|
|
120
|
+
'scrollbar-always-on': false,
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// 表格列默认设置
|
|
124
|
+
export const tableColumnDefaultConfig: TableColumnConfig = {
|
|
125
|
+
'sortable': false,
|
|
126
|
+
'sort-orders': ['ascending', 'descending', null],
|
|
127
|
+
'resizable': false,
|
|
128
|
+
'show-overflow-tooltip': false,
|
|
129
|
+
'align': 'left',
|
|
130
|
+
'reserve-selection': false,
|
|
131
|
+
'filter-multiple': true,
|
|
132
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonConfig } from '../../../model/flmComponentConfig'
|
|
2
|
+
|
|
3
|
+
// 工具栏按钮设置
|
|
4
|
+
export interface ToolbarButtonConfig extends ButtonConfig {
|
|
5
|
+
'event': string // 需要补充页面函数枚举
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// 工具栏设置
|
|
9
|
+
export interface ToolbarConfig {
|
|
10
|
+
'publicConfig': ButtonConfig // 按钮公共设置
|
|
11
|
+
'maxButton': number // 最大按钮数(不包含展开按钮)
|
|
12
|
+
'buttons': Array<ToolbarButtonConfig> // 按钮列表
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @公共属性 */
|
|
2
|
+
export * from './public'
|
|
3
|
+
|
|
4
|
+
/** @基础控件 */
|
|
5
|
+
export * from './base/flmButton' // 按钮
|
|
6
|
+
export * from './base/flmCascader' // 多选框
|
|
7
|
+
export * from './base/flmCheckbox' // 多选框
|
|
8
|
+
export * from './base/flmColorPicker' // 取色器
|
|
9
|
+
export * from './base/flmDatePicker' // 日期选择器
|
|
10
|
+
export * from './base/flmInput' // 输入框
|
|
11
|
+
export * from './base/flmInputNumber' // 数字输入框
|
|
12
|
+
export * from './base/flmPagination' // 分页器
|
|
13
|
+
export * from './base/flmRadio' // 单选框
|
|
14
|
+
export * from './base/flmRate' // 评分
|
|
15
|
+
export * from './base/flmRead' // 查看
|
|
16
|
+
export * from './base/flmSelect' // 选择器
|
|
17
|
+
export * from './base/flmSlider' // 滑块
|
|
18
|
+
export * from './base/flmSwitch' // 开关
|
|
19
|
+
export * from './base/flmTimePicker' // 时间选择器
|
|
20
|
+
export * from './base/flmTimeSelect' // 时间选择
|
|
21
|
+
export * from './base/flmTransfer' // 穿梭框
|
|
22
|
+
export * from './base/flmDialog' // 弹窗
|
|
23
|
+
|
|
24
|
+
/** @复合组件 */
|
|
25
|
+
export * from './complex/flmForm' // 表单
|
|
26
|
+
export * from './complex/flmSearch' // 搜索
|
|
27
|
+
export * from './complex/flmTable' // 表格
|
|
28
|
+
export * from './complex/flmToolbar' // 工具栏
|
|
29
|
+
|
|
30
|
+
/** @页面组件 */
|
|
31
|
+
export * from './page/flmReportPage' // 报表页面
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 关羽 xiaobing525@163.com
|
|
3
|
+
* @Date: 2023-01-04 22:32:16
|
|
4
|
+
* @LastEditors: 关羽 xiaobing525@163.com
|
|
5
|
+
* @LastEditTime: 2023-01-11 21:37:39
|
|
6
|
+
* @FilePath: /flame-components/packages/model/flmComponentConfig/page/flmReportPage.ts
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
import {
|
|
10
|
+
FormConfig,
|
|
11
|
+
SearchConfig,
|
|
12
|
+
ToolbarConfig,
|
|
13
|
+
TableConfig,
|
|
14
|
+
PaginationConfig,
|
|
15
|
+
DialogConfig
|
|
16
|
+
} from '../../../model/flmComponentConfig'
|
|
17
|
+
|
|
18
|
+
// 报表页面设置
|
|
19
|
+
export interface ReportPageSetting {
|
|
20
|
+
'search': SearchConfig
|
|
21
|
+
'toolbar': ToolbarConfig
|
|
22
|
+
'table': TableConfig
|
|
23
|
+
'tableAction': ToolbarConfig
|
|
24
|
+
'pagination': PaginationConfig
|
|
25
|
+
'readDialog': DialogConfig
|
|
26
|
+
'readForm': FormConfig
|
|
27
|
+
'addDialog': DialogConfig
|
|
28
|
+
'addForm': FormConfig
|
|
29
|
+
'editDialog': DialogConfig
|
|
30
|
+
'editForm': FormConfig
|
|
31
|
+
}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
// 组件尺寸
|
|
2
|
+
export enum ElementSize {
|
|
3
|
+
'large' = 'large',
|
|
4
|
+
'default' = 'default',
|
|
5
|
+
'small' = 'small'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// 图标
|
|
9
|
+
export enum ElementIcons {
|
|
10
|
+
'AddLocation' = 'AddLocation',
|
|
11
|
+
'Aim' = 'Aim',
|
|
12
|
+
'AlarmClock' = 'AlarmClock',
|
|
13
|
+
'Apple' = 'Apple',
|
|
14
|
+
'ArrowDownBold' = 'ArrowDownBold',
|
|
15
|
+
'ArrowDown' = 'ArrowDown',
|
|
16
|
+
'ArrowLeftBold' = 'ArrowLeftBold',
|
|
17
|
+
'ArrowLeft' = 'ArrowLeft',
|
|
18
|
+
'ArrowRightBold' = 'ArrowRightBold',
|
|
19
|
+
'ArrowRight' = 'ArrowRight',
|
|
20
|
+
'ArrowUpBold' = 'ArrowUpBold',
|
|
21
|
+
'ArrowUp' = 'ArrowUp',
|
|
22
|
+
'Avatar' = 'Avatar',
|
|
23
|
+
'Back' = 'Back',
|
|
24
|
+
'Baseball' = 'Baseball',
|
|
25
|
+
'Basketball' = 'Basketball',
|
|
26
|
+
'BellFilled' = 'BellFilled',
|
|
27
|
+
'Bell' = 'Bell',
|
|
28
|
+
'Bicycle' = 'Bicycle',
|
|
29
|
+
'BottomLeft' = 'BottomLeft',
|
|
30
|
+
'BottomRight' = 'BottomRight',
|
|
31
|
+
'Bottom' = 'Bottom',
|
|
32
|
+
'Bowl' = 'Bowl',
|
|
33
|
+
'Box' = 'Box',
|
|
34
|
+
'Briefcase' = 'Briefcase',
|
|
35
|
+
'BrushFilled' = 'BrushFilled',
|
|
36
|
+
'Brush' = 'Brush',
|
|
37
|
+
'Burger' = 'Burger',
|
|
38
|
+
'Calendar' = 'Calendar',
|
|
39
|
+
'CameraFilled' = 'CameraFilled',
|
|
40
|
+
'Camera' = 'Camera',
|
|
41
|
+
'CaretBottom' = 'CaretBottom',
|
|
42
|
+
'CaretLeft' = 'CaretLeft',
|
|
43
|
+
'CaretRight' = 'CaretRight',
|
|
44
|
+
'CaretTop' = 'CaretTop',
|
|
45
|
+
'Cellphone' = 'Cellphone',
|
|
46
|
+
'ChatDotRound' = 'ChatDotRound',
|
|
47
|
+
'ChatDotSquare' = 'ChatDotSquare',
|
|
48
|
+
'ChatLineRound' = 'ChatLineRound',
|
|
49
|
+
'ChatLineSquare' = 'ChatLineSquare',
|
|
50
|
+
'ChatRound' = 'ChatRound',
|
|
51
|
+
'ChatSquare' = 'ChatSquare',
|
|
52
|
+
'Check' = 'Check',
|
|
53
|
+
'Checked' = 'Checked',
|
|
54
|
+
'Cherry' = 'Cherry',
|
|
55
|
+
'Chicken' = 'Chicken',
|
|
56
|
+
'CircleCheckFilled' = 'CircleCheckFilled',
|
|
57
|
+
'CircleCheck' = 'CircleCheck',
|
|
58
|
+
'CircleCloseFilled' = 'CircleCloseFilled',
|
|
59
|
+
'CircleClose' = 'CircleClose',
|
|
60
|
+
'CirclePlusFilled' = 'CirclePlusFilled',
|
|
61
|
+
'CirclePlus' = 'CirclePlus',
|
|
62
|
+
'Clock' = 'Clock',
|
|
63
|
+
'CloseBold' = 'CloseBold',
|
|
64
|
+
'Close' = 'Close',
|
|
65
|
+
'Cloudy' = 'Cloudy',
|
|
66
|
+
'CoffeeCup' = 'CoffeeCup',
|
|
67
|
+
'Coffee' = 'Coffee',
|
|
68
|
+
'Coin' = 'Coin',
|
|
69
|
+
'ColdDrink' = 'ColdDrink',
|
|
70
|
+
'CollectionTag' = 'CollectionTag',
|
|
71
|
+
'Collection' = 'Collection',
|
|
72
|
+
'Comment' = 'Comment',
|
|
73
|
+
'Compass' = 'Compass',
|
|
74
|
+
'Connection' = 'Connection',
|
|
75
|
+
'Coordinate' = 'Coordinate',
|
|
76
|
+
'CopyDocument' = 'CopyDocument',
|
|
77
|
+
'Cpu' = 'Cpu',
|
|
78
|
+
'CreditCard' = 'CreditCard',
|
|
79
|
+
'Crop' = 'Crop',
|
|
80
|
+
'DArrowLeft' = 'DArrowLeft',
|
|
81
|
+
'DArrowRight' = 'DArrowRight',
|
|
82
|
+
'DCaret' = 'DCaret',
|
|
83
|
+
'DataAnalysis' = 'DataAnalysis',
|
|
84
|
+
'DataBoard' = 'DataBoard',
|
|
85
|
+
'DataLine' = 'DataLine',
|
|
86
|
+
'DeleteFilled' = 'DeleteFilled',
|
|
87
|
+
'DeleteLocation' = 'DeleteLocation',
|
|
88
|
+
'Delete' = 'Delete',
|
|
89
|
+
'Dessert' = 'Dessert',
|
|
90
|
+
'Discount' = 'Discount',
|
|
91
|
+
'DishDot' = 'DishDot',
|
|
92
|
+
'Dish' = 'Dish',
|
|
93
|
+
'DocumentAdd' = 'DocumentAdd',
|
|
94
|
+
'DocumentChecked' = 'DocumentChecked',
|
|
95
|
+
'DocumentCopy' = 'DocumentCopy',
|
|
96
|
+
'DocumentDelete' = 'DocumentDelete',
|
|
97
|
+
'DocumentRemove' = 'DocumentRemove',
|
|
98
|
+
'Document' = 'Document',
|
|
99
|
+
'Download' = 'Download',
|
|
100
|
+
'Drizzling' = 'Drizzling',
|
|
101
|
+
'EditPen' = 'EditPen',
|
|
102
|
+
'Edit' = 'Edit',
|
|
103
|
+
'ElemeFilled' = 'ElemeFilled',
|
|
104
|
+
'Eleme' = 'Eleme',
|
|
105
|
+
'ElementPlus' = 'ElementPlus',
|
|
106
|
+
'Expand' = 'Expand',
|
|
107
|
+
'Failed' = 'Failed',
|
|
108
|
+
'Female' = 'Female',
|
|
109
|
+
'Files' = 'Files',
|
|
110
|
+
'Film' = 'Film',
|
|
111
|
+
'Filter' = 'Filter',
|
|
112
|
+
'Finished' = 'Finished',
|
|
113
|
+
'FirstAidKit' = 'FirstAidKit',
|
|
114
|
+
'Flag' = 'Flag',
|
|
115
|
+
'Fold' = 'Fold',
|
|
116
|
+
'FolderAdd' = 'FolderAdd',
|
|
117
|
+
'FolderChecked' = 'FolderChecked',
|
|
118
|
+
'FolderDelete' = 'FolderDelete',
|
|
119
|
+
'FolderOpened' = 'FolderOpened',
|
|
120
|
+
'FolderRemove' = 'FolderRemove',
|
|
121
|
+
'Folder' = 'Folder',
|
|
122
|
+
'Food' = 'Food',
|
|
123
|
+
'Football' = 'Football',
|
|
124
|
+
'ForkSpoon' = 'ForkSpoon',
|
|
125
|
+
'Fries' = 'Fries',
|
|
126
|
+
'FullScreen' = 'FullScreen',
|
|
127
|
+
'GobletFull' = 'GobletFull',
|
|
128
|
+
'GobletSquareFull' = 'GobletSquareFull',
|
|
129
|
+
'GobletSquare' = 'GobletSquare',
|
|
130
|
+
'Goblet' = 'Goblet',
|
|
131
|
+
'GoodsFilled' = 'GoodsFilled',
|
|
132
|
+
'Goods' = 'Goods',
|
|
133
|
+
'Grape' = 'Grape',
|
|
134
|
+
'Grid' = 'Grid',
|
|
135
|
+
'Guide' = 'Guide',
|
|
136
|
+
'Headset' = 'Headset',
|
|
137
|
+
'HelpFilled' = 'HelpFilled',
|
|
138
|
+
'Help' = 'Help',
|
|
139
|
+
'Hide' = 'Hide',
|
|
140
|
+
'Histogram' = 'Histogram',
|
|
141
|
+
'HomeFilled' = 'HomeFilled',
|
|
142
|
+
'HotWater' = 'HotWater',
|
|
143
|
+
'House' = 'House',
|
|
144
|
+
'IceCreamRound' = 'IceCreamRound',
|
|
145
|
+
'IceCreamSquare' = 'IceCreamSquare',
|
|
146
|
+
'IceCream' = 'IceCream',
|
|
147
|
+
'IceDrink' = 'IceDrink',
|
|
148
|
+
'IceTea' = 'IceTea',
|
|
149
|
+
'InfoFilled' = 'InfoFilled',
|
|
150
|
+
'Iphone' = 'Iphone',
|
|
151
|
+
'Key' = 'Key',
|
|
152
|
+
'KnifeFork' = 'KnifeFork',
|
|
153
|
+
'Lightning' = 'Lightning',
|
|
154
|
+
'Link' = 'Link',
|
|
155
|
+
'List' = 'List',
|
|
156
|
+
'Loading' = 'Loading',
|
|
157
|
+
'LocationFilled' = 'LocationFilled',
|
|
158
|
+
'LocationInformation' = 'LocationInformation',
|
|
159
|
+
'Location' = 'Location',
|
|
160
|
+
'Lock' = 'Lock',
|
|
161
|
+
'Lollipop' = 'Lollipop',
|
|
162
|
+
'MagicStick' = 'MagicStick',
|
|
163
|
+
'Magnet' = 'Magnet',
|
|
164
|
+
'Male' = 'Male',
|
|
165
|
+
'Management' = 'Management',
|
|
166
|
+
'MapLocation' = 'MapLocation',
|
|
167
|
+
'Medal' = 'Medal',
|
|
168
|
+
'Menu' = 'Menu',
|
|
169
|
+
'MessageBox' = 'MessageBox',
|
|
170
|
+
'Message' = 'Message',
|
|
171
|
+
'Mic' = 'Mic',
|
|
172
|
+
'Microphone' = 'Microphone',
|
|
173
|
+
'MilkTea' = 'MilkTea',
|
|
174
|
+
'Minus' = 'Minus',
|
|
175
|
+
'Money' = 'Money',
|
|
176
|
+
'Monitor' = 'Monitor',
|
|
177
|
+
'MoonNight' = 'MoonNight',
|
|
178
|
+
'Moon' = 'Moon',
|
|
179
|
+
'MoreFilled' = 'MoreFilled',
|
|
180
|
+
'More' = 'More',
|
|
181
|
+
'MostlyCloudy' = 'MostlyCloudy',
|
|
182
|
+
'Mouse' = 'Mouse',
|
|
183
|
+
'Mug' = 'Mug',
|
|
184
|
+
'MuteNotification' = 'MuteNotification',
|
|
185
|
+
'Mute' = 'Mute',
|
|
186
|
+
'NoSmoking' = 'NoSmoking',
|
|
187
|
+
'Notebook' = 'Notebook',
|
|
188
|
+
'Notification' = 'Notification',
|
|
189
|
+
'Odometer' = 'Odometer',
|
|
190
|
+
'OfficeBuilding' = 'OfficeBuilding',
|
|
191
|
+
'Open' = 'Open',
|
|
192
|
+
'Operation' = 'Operation',
|
|
193
|
+
'Opportunity' = 'Opportunity',
|
|
194
|
+
'Orange' = 'Orange',
|
|
195
|
+
'Paperclip' = 'Paperclip',
|
|
196
|
+
'PartlyCloudy' = 'PartlyCloudy',
|
|
197
|
+
'Pear' = 'Pear',
|
|
198
|
+
'PhoneFilled' = 'PhoneFilled',
|
|
199
|
+
'Phone' = 'Phone',
|
|
200
|
+
'PictureFilled' = 'PictureFilled',
|
|
201
|
+
'PictureRounded' = 'PictureRounded',
|
|
202
|
+
'Picture' = 'Picture',
|
|
203
|
+
'PieChart' = 'PieChart',
|
|
204
|
+
'Place' = 'Place',
|
|
205
|
+
'Platform' = 'Platform',
|
|
206
|
+
'Plus' = 'Plus',
|
|
207
|
+
'Pointer' = 'Pointer',
|
|
208
|
+
'Position' = 'Position',
|
|
209
|
+
'Postcard' = 'Postcard',
|
|
210
|
+
'Pouring' = 'Pouring',
|
|
211
|
+
'Present' = 'Present',
|
|
212
|
+
'PriceTag' = 'PriceTag',
|
|
213
|
+
'Printer' = 'Printer',
|
|
214
|
+
'Promotion' = 'Promotion',
|
|
215
|
+
'QuestionFilled' = 'QuestionFilled',
|
|
216
|
+
'Rank' = 'Rank',
|
|
217
|
+
'ReadingLamp' = 'ReadingLamp',
|
|
218
|
+
'Reading' = 'Reading',
|
|
219
|
+
'RefreshLeft' = 'RefreshLeft',
|
|
220
|
+
'RefreshRight' = 'RefreshRight',
|
|
221
|
+
'Refresh' = 'Refresh',
|
|
222
|
+
'Refrigerator' = 'Refrigerator',
|
|
223
|
+
'RemoveFilled' = 'RemoveFilled',
|
|
224
|
+
'Remove' = 'Remove',
|
|
225
|
+
'Right' = 'Right',
|
|
226
|
+
'ScaleToOriginal' = 'ScaleToOriginal',
|
|
227
|
+
'School' = 'School',
|
|
228
|
+
'Scissor' = 'Scissor',
|
|
229
|
+
'Search' = 'Search',
|
|
230
|
+
'Select' = 'Select',
|
|
231
|
+
'Sell' = 'Sell',
|
|
232
|
+
'SemiSelect' = 'SemiSelect',
|
|
233
|
+
'Service' = 'Service',
|
|
234
|
+
'SetUp' = 'SetUp',
|
|
235
|
+
'Setting' = 'Setting',
|
|
236
|
+
'Share' = 'Share',
|
|
237
|
+
'Ship' = 'Ship',
|
|
238
|
+
'Shop' = 'Shop',
|
|
239
|
+
'ShoppingBag' = 'ShoppingBag',
|
|
240
|
+
'ShoppingCartFull' = 'ShoppingCartFull',
|
|
241
|
+
'ShoppingCart' = 'ShoppingCart',
|
|
242
|
+
'Smoking' = 'Smoking',
|
|
243
|
+
'Soccer' = 'Soccer',
|
|
244
|
+
'SoldOut' = 'SoldOut',
|
|
245
|
+
'SortDown' = 'SortDown',
|
|
246
|
+
'SortUp' = 'SortUp',
|
|
247
|
+
'Sort' = 'Sort',
|
|
248
|
+
'Stamp' = 'Stamp',
|
|
249
|
+
'StarFilled' = 'StarFilled',
|
|
250
|
+
'Star' = 'Star',
|
|
251
|
+
'Stopwatch' = 'Stopwatch',
|
|
252
|
+
'SuccessFilled' = 'SuccessFilled',
|
|
253
|
+
'Sugar' = 'Sugar',
|
|
254
|
+
'Suitcase' = 'Suitcase',
|
|
255
|
+
'Sunny' = 'Sunny',
|
|
256
|
+
'Sunrise' = 'Sunrise',
|
|
257
|
+
'Sunset' = 'Sunset',
|
|
258
|
+
'SwitchButton' = 'SwitchButton',
|
|
259
|
+
'Switch' = 'Switch',
|
|
260
|
+
'TakeawayBox' = 'TakeawayBox',
|
|
261
|
+
'Ticket' = 'Ticket',
|
|
262
|
+
'Tickets' = 'Tickets',
|
|
263
|
+
'Timer' = 'Timer',
|
|
264
|
+
'ToiletPaper' = 'ToiletPaper',
|
|
265
|
+
'Tools' = 'Tools',
|
|
266
|
+
'TopLeft' = 'TopLeft',
|
|
267
|
+
'TopRight' = 'TopRight',
|
|
268
|
+
'Top' = 'Top',
|
|
269
|
+
'TrendCharts' = 'TrendCharts',
|
|
270
|
+
'Trophy' = 'Trophy',
|
|
271
|
+
'TurnOff' = 'TurnOff',
|
|
272
|
+
'Umbrella' = 'Umbrella',
|
|
273
|
+
'Unlock' = 'Unlock',
|
|
274
|
+
'UploadFilled' = 'UploadFilled',
|
|
275
|
+
'Upload' = 'Upload',
|
|
276
|
+
'UserFilled' = 'UserFilled',
|
|
277
|
+
'User' = 'User',
|
|
278
|
+
'Van' = 'Van',
|
|
279
|
+
'VideoCameraFilled' = 'VideoCameraFilled',
|
|
280
|
+
'VideoCamera' = 'VideoCamera',
|
|
281
|
+
'VideoPause' = 'VideoPause',
|
|
282
|
+
'VideoPlay' = 'VideoPlay',
|
|
283
|
+
'View' = 'View',
|
|
284
|
+
'WalletFilled' = 'WalletFilled',
|
|
285
|
+
'Wallet' = 'Wallet',
|
|
286
|
+
'WarningFilled' = 'WarningFilled',
|
|
287
|
+
'Warning' = 'Warning',
|
|
288
|
+
'Watch' = 'Watch',
|
|
289
|
+
'Watermelon' = 'Watermelon',
|
|
290
|
+
'WindPower' = 'WindPower',
|
|
291
|
+
'ZoomIn' = 'ZoomIn',
|
|
292
|
+
'ZoomOut' = 'ZoomOut',
|
|
293
|
+
}
|