@weitutech/by-components 1.0.31 → 1.1.1
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/README.md +30 -3
- package/lib/by-components.common.js +7831 -58668
- package/lib/by-components.umd.js +7631 -58451
- package/lib/by-components.umd.min.js +2 -301
- package/package.json +24 -5
- package/CHANGELOG.md +0 -44
- package/docs/extension.md +0 -15
- package/docs/form.md +0 -52
- package/docs/table.md +0 -26
- package/src/components/custom-column/index.vue +0 -369
- package/src/components/fold-search/index.vue +0 -29
- package/src/components/form/comps/custom-date-picker.vue +0 -135
- package/src/components/form/comps/date-picker-range.vue +0 -78
- package/src/components/form/comps/pair-number-input.vue +0 -67
- package/src/components/form/comps/select.vue +0 -127
- package/src/components/form/form.vue +0 -369
- package/src/components/page-search/page-search.vue +0 -114
- package/src/components/pager/index.vue +0 -81
- package/src/components/table/index.vue +0 -240
- package/src/index.js +0 -31
- package/src/plugin/vxeTable.js +0 -300
- package/src/plugin/vxeTable.scss +0 -14
- package/src/style/custom-column.scss +0 -194
- package/src/style/fold-search.scss +0 -21
- package/src/style/form.scss +0 -342
- package/src/style/index.scss +0 -6
- package/src/style/page-search.scss +0 -26
- package/src/style/pager.scss +0 -40
- package/src/style/table.scss +0 -39
- package/src/utils/index.js +0 -32
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<vxe-grid
|
|
4
|
-
ref="xGrid"
|
|
5
|
-
v-bind="options"
|
|
6
|
-
v-on="eventListeners"
|
|
7
|
-
@cell-click="handleCellClick"
|
|
8
|
-
@resizable-change="handleResizableChange"
|
|
9
|
-
>
|
|
10
|
-
<template v-for="item in slotMap" #[item]="context">
|
|
11
|
-
<slot :name="item" v-bind="context" />
|
|
12
|
-
</template>
|
|
13
|
-
<template v-if="options.pagerConfig" #pager>
|
|
14
|
-
<!-- 📢 由于BPager利用的是ElementUi分页目前只支持vxeTable中分页配置中的currentPage、pageSize、total、pageSizes选项配置 -->
|
|
15
|
-
<by-pager
|
|
16
|
-
:page="options.pagerConfig.currentPage"
|
|
17
|
-
:limit="options.pagerConfig.pageSize"
|
|
18
|
-
:total-count="options.pagerConfig.total"
|
|
19
|
-
:page-sizes="options.pagerConfig.pageSizes"
|
|
20
|
-
@onChange="pageChange"
|
|
21
|
-
/>
|
|
22
|
-
</template>
|
|
23
|
-
</vxe-grid>
|
|
24
|
-
<CustomColumn
|
|
25
|
-
v-if="gridOptions.customColumnConfig && gridOptions.customColumnConfig.showCustomColumn"
|
|
26
|
-
ref="CustomColumnRef"
|
|
27
|
-
:info-method="gridOptions.customColumnConfig.infoMethod"
|
|
28
|
-
:submit-method="gridOptions.customColumnConfig.submitMethod"
|
|
29
|
-
:dialog-visible="customTableVisible"
|
|
30
|
-
@closeDialog="closeCustomColumnDialog"
|
|
31
|
-
@changeTable="changeTableFields"
|
|
32
|
-
@changeTableGroup="changeTableGroupFields"
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import CustomColumn from "../custom-column/index.vue"
|
|
39
|
-
export default {
|
|
40
|
-
name: 'BYTable',
|
|
41
|
-
components: {
|
|
42
|
-
CustomColumn
|
|
43
|
-
},
|
|
44
|
-
props: {
|
|
45
|
-
gridOptions: {
|
|
46
|
-
type: Object,
|
|
47
|
-
default: () => {}
|
|
48
|
-
},
|
|
49
|
-
name: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: ""
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
/**
|
|
57
|
-
* @see https://vxetable.cn/v3.8/#/grid/api
|
|
58
|
-
*/
|
|
59
|
-
events: [
|
|
60
|
-
"keydown", "current-change", "radio-change", "checkbox-change", "checkbox-all",
|
|
61
|
-
"checkbox-range-start", "checkbox-range-change", "checkbox-range-end",
|
|
62
|
-
"cell-dblclick", "cell-menu", "cell-mouseenter", "cell-mouseleave", "cell-delete-value",
|
|
63
|
-
"header-cell-click", "header-cell-dblclick", "header-cell-menu", "footer-cell-click",
|
|
64
|
-
"footer-cell-dblclick", "footer-cell-menu", "clear-merge", "sort-change", "clear-sort",
|
|
65
|
-
"filter-visible", "filter-change", "clear-filter", "toggle-row-expand",
|
|
66
|
-
"toggle-tree-expand", "menu-click", "cell-selected", "edit-closed", "edit-activated", "edit-disabled",
|
|
67
|
-
"valid-error", "scroll", "custom", "page-change", "form-submit", "form-submit-invalid", "form-reset",
|
|
68
|
-
"form-collapse", "proxy-query", "proxy-delete", "proxy-save", "toolbar-button-click", "toolbar-tool-click",
|
|
69
|
-
"zoom"
|
|
70
|
-
],
|
|
71
|
-
// 自定义对话框显示和隐藏控制
|
|
72
|
-
customTableVisible: false
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
computed: {
|
|
76
|
-
options() {
|
|
77
|
-
const { customColumnConfig, columns, ...others } = this.gridOptions
|
|
78
|
-
const cols = JSON.parse(localStorage.getItem(this.name)) || undefined
|
|
79
|
-
if (cols && this.name) {
|
|
80
|
-
columns.forEach(item => {
|
|
81
|
-
item.width = (cols.find(col => col.field === item.field) || {}).width || undefined
|
|
82
|
-
})
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
border: true,
|
|
86
|
-
resizable: true,
|
|
87
|
-
showOverflow: true,
|
|
88
|
-
height: 550,
|
|
89
|
-
align: "left",
|
|
90
|
-
copyFields: [],
|
|
91
|
-
pagerConfig: false,
|
|
92
|
-
emptyText: "暂无数据",
|
|
93
|
-
loadingConfig: {
|
|
94
|
-
text: "加载中..."
|
|
95
|
-
},
|
|
96
|
-
columns,
|
|
97
|
-
...others,
|
|
98
|
-
resizableConfig: {
|
|
99
|
-
minWidth: 50,
|
|
100
|
-
...this.gridOptions.resizableConfig
|
|
101
|
-
},
|
|
102
|
-
rowConfig: {
|
|
103
|
-
height: 41,
|
|
104
|
-
isHover: true,
|
|
105
|
-
...this.gridOptions.rowConfig
|
|
106
|
-
},
|
|
107
|
-
sortConfig: {
|
|
108
|
-
remote: true,
|
|
109
|
-
trigger: "cell",
|
|
110
|
-
...this.gridOptions.sortConfig
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
// 插槽集合
|
|
115
|
-
slotMap() {
|
|
116
|
-
const slotSet = new Set([])
|
|
117
|
-
const slots = this.gridOptions?.customColumnConfig?.slots ?? []
|
|
118
|
-
this.options.columns.forEach(col => {
|
|
119
|
-
if (col.slots) {
|
|
120
|
-
const slots = Object.values(col.slots)
|
|
121
|
-
slots.forEach(slot => slotSet.add(slot))
|
|
122
|
-
}
|
|
123
|
-
})
|
|
124
|
-
return [...Array.from(slotSet), ...slots]
|
|
125
|
-
},
|
|
126
|
-
// 注册emit事件
|
|
127
|
-
eventListeners() {
|
|
128
|
-
const listeners = {}
|
|
129
|
-
this.events.forEach(eventName => {
|
|
130
|
-
listeners[eventName] = (event) => this.$emit(eventName, event)
|
|
131
|
-
})
|
|
132
|
-
return listeners
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
methods: {
|
|
136
|
-
handleCellClick(context) {
|
|
137
|
-
if (this.options.copyFields.includes(context.column.field)) {
|
|
138
|
-
const text = context.cell.outerText
|
|
139
|
-
this.copy(text)
|
|
140
|
-
}
|
|
141
|
-
this.$emit("cell-click", context)
|
|
142
|
-
},
|
|
143
|
-
handleResizableChange(context) {
|
|
144
|
-
this.$emit("resizable-change", context)
|
|
145
|
-
if (!this.name) return
|
|
146
|
-
const collectColumn = context.$table.collectColumn
|
|
147
|
-
console.log(collectColumn, "collectColumn")
|
|
148
|
-
const clos = collectColumn.map(col => ({ field: col.field, width: col.renderWidth }))
|
|
149
|
-
localStorage.setItem(this.name, JSON.stringify(clos))
|
|
150
|
-
},
|
|
151
|
-
pageChange(values) {
|
|
152
|
-
this.$emit("page-change", values)
|
|
153
|
-
},
|
|
154
|
-
copy(text) {
|
|
155
|
-
const oInput = document.createElement("input")
|
|
156
|
-
oInput.value = text
|
|
157
|
-
document.body.appendChild(oInput)
|
|
158
|
-
oInput.select() // 选择对象;
|
|
159
|
-
document.execCommand("Copy") // 执行浏览器复制命令
|
|
160
|
-
this.$message({
|
|
161
|
-
message: "复制成功",
|
|
162
|
-
type: "success"
|
|
163
|
-
})
|
|
164
|
-
oInput.remove()
|
|
165
|
-
},
|
|
166
|
-
getCustomColumnRef() {
|
|
167
|
-
return this.$refs.CustomColumnRef
|
|
168
|
-
},
|
|
169
|
-
handleOpenCustomColumn() {
|
|
170
|
-
this.customTableVisible = true
|
|
171
|
-
},
|
|
172
|
-
// 改变表头字段
|
|
173
|
-
changeTableFields(cols) {
|
|
174
|
-
const columns = []
|
|
175
|
-
cols.forEach(item => {
|
|
176
|
-
if (!columns.some(col => col.field === item.key) && item.type) {
|
|
177
|
-
columns.push(
|
|
178
|
-
{
|
|
179
|
-
field: item.key,
|
|
180
|
-
title: item.label,
|
|
181
|
-
minWidth: item.minWidth || item.width,
|
|
182
|
-
maxWidth: item.maxWidth,
|
|
183
|
-
sortable: typeof (item.sortable) === "undefined" ? true : JSON.parse(item.sortable),
|
|
184
|
-
fixed: item.fixed,
|
|
185
|
-
slots: this.gridOptions.customColumnConfig.slots.includes(item.key) ? { default: item.key } : undefined
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
}
|
|
189
|
-
})
|
|
190
|
-
this.$emit("setColumn", columns)
|
|
191
|
-
},
|
|
192
|
-
// 多层级表头
|
|
193
|
-
changeTableGroupFields(cols) {
|
|
194
|
-
const recursiveData = (cols)=> {
|
|
195
|
-
const arr = []
|
|
196
|
-
cols.forEach((item,index)=> {
|
|
197
|
-
if(item.data && item.data.length > 0) {
|
|
198
|
-
arr.push({
|
|
199
|
-
title: item.label,
|
|
200
|
-
align: 'center',
|
|
201
|
-
children: recursiveData(item.data)
|
|
202
|
-
})
|
|
203
|
-
if(index < cols.length - 1) {
|
|
204
|
-
arr.push({
|
|
205
|
-
title: '',
|
|
206
|
-
width: 5,
|
|
207
|
-
headerClassName: 'group-split',
|
|
208
|
-
className: 'group-split',
|
|
209
|
-
})
|
|
210
|
-
}
|
|
211
|
-
}else {
|
|
212
|
-
if (!arr.some(col => col.field === item.key) && item.type) {
|
|
213
|
-
arr.push({
|
|
214
|
-
field: item.key,
|
|
215
|
-
title: item.label,
|
|
216
|
-
minWidth: item.minWidth || item.width,
|
|
217
|
-
maxWidth: item.maxWidth,
|
|
218
|
-
sortable: typeof (item.sortable) === "undefined" ? true : JSON.parse(item.sortable),
|
|
219
|
-
fixed: item.fixed,
|
|
220
|
-
slots: this.gridOptions.customColumnConfig.slots.includes(item.key) ? { default: item.key } : undefined
|
|
221
|
-
})
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
})
|
|
225
|
-
return arr
|
|
226
|
-
}
|
|
227
|
-
this.$emit("setGroupColumn", recursiveData(cols))
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
// 关闭自定义表头弹框
|
|
231
|
-
closeCustomColumnDialog() {
|
|
232
|
-
this.customTableVisible = false
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
</script>
|
|
237
|
-
|
|
238
|
-
<style lang="scss" scoped>
|
|
239
|
-
|
|
240
|
-
</style>
|
package/src/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import ByPager from './components/pager/index'
|
|
2
|
-
import ByTable from './components/table/index'
|
|
3
|
-
import ByForm from './components/form/form'
|
|
4
|
-
import ByPageSearch from './components/page-search/page-search'
|
|
5
|
-
import ByFoldSearch from './components/fold-search/index'
|
|
6
|
-
import BySelect from './components/form/comps/select.vue'
|
|
7
|
-
import ByDatePickerRange from './components/form/comps/date-picker-range.vue'
|
|
8
|
-
import domZindex from 'dom-zindex'
|
|
9
|
-
const components = {
|
|
10
|
-
ByPager,
|
|
11
|
-
ByTable,
|
|
12
|
-
ByForm,
|
|
13
|
-
ByPageSearch,
|
|
14
|
-
ByFoldSearch,
|
|
15
|
-
BySelect,
|
|
16
|
-
ByDatePickerRange
|
|
17
|
-
}
|
|
18
|
-
// 设置当前 z-index 起始值
|
|
19
|
-
domZindex.setCurrent(99999)
|
|
20
|
-
|
|
21
|
-
const install = (Vue) => {
|
|
22
|
-
Object.keys(components).forEach(name => {
|
|
23
|
-
Vue.component(name, components[name])
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// 支持直接通过 script 标签引入
|
|
28
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
29
|
-
install(window.Vue)
|
|
30
|
-
}
|
|
31
|
-
export default {install }
|
package/src/plugin/vxeTable.js
DELETED
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import Vue from "vue"
|
|
2
|
-
// import XEUtils from "xe-utils"
|
|
3
|
-
import {
|
|
4
|
-
// 全局实例对象
|
|
5
|
-
// VXETable,
|
|
6
|
-
|
|
7
|
-
// 可选表格模块
|
|
8
|
-
// VxeTableFilterModule,
|
|
9
|
-
// VxeTableEditModule,
|
|
10
|
-
// VxeTableMenuModule,
|
|
11
|
-
// VxeTableExportModule,
|
|
12
|
-
// VxeTableKeyboardModule,
|
|
13
|
-
// VxeTableValidatorModule,
|
|
14
|
-
// VxeTableCustomModule,
|
|
15
|
-
|
|
16
|
-
// 可选组件
|
|
17
|
-
VxeIcon,
|
|
18
|
-
VxeTable,
|
|
19
|
-
VxeColumn,
|
|
20
|
-
VxeColgroup,
|
|
21
|
-
VxeGrid,
|
|
22
|
-
VxeTooltip,
|
|
23
|
-
VxeToolbar,
|
|
24
|
-
VxePager,
|
|
25
|
-
// VxeForm,
|
|
26
|
-
// VxeFormItem,
|
|
27
|
-
// VxeFormGather,
|
|
28
|
-
// VxeCheckbox,
|
|
29
|
-
// VxeCheckboxGroup,
|
|
30
|
-
// VxeRadio,
|
|
31
|
-
// VxeRadioGroup,
|
|
32
|
-
// VxeRadioButton,
|
|
33
|
-
// VxeSwitch,
|
|
34
|
-
// VxeInput,
|
|
35
|
-
VxeSelect
|
|
36
|
-
// VxeOptgroup,
|
|
37
|
-
// VxeOption,
|
|
38
|
-
// VxeTextarea,
|
|
39
|
-
// VxeButton,
|
|
40
|
-
// VxeButtonGroup,
|
|
41
|
-
// VxeModal,
|
|
42
|
-
// VxeList,
|
|
43
|
-
// VxePulldown
|
|
44
|
-
} from "vxe-table"
|
|
45
|
-
|
|
46
|
-
// 旧版本使用 setup({}) 或者 config({})
|
|
47
|
-
// VXETable.config({
|
|
48
|
-
// // size: null, // 全局尺寸
|
|
49
|
-
// // zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡;新版本可以使用 dom-zindex 共享配置
|
|
50
|
-
// // version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
|
|
51
|
-
// // loadingText: '加载中...', // 全局loading提示内容,如果为null则不显示文本
|
|
52
|
-
// table: {
|
|
53
|
-
// // showHeader: true,
|
|
54
|
-
// // keepSource: false,
|
|
55
|
-
// // showOverflow: null,
|
|
56
|
-
// // showHeaderOverflow: null,
|
|
57
|
-
// // showFooterOverflow: null,
|
|
58
|
-
// // size: null,
|
|
59
|
-
// // autoResize: false,
|
|
60
|
-
// // stripe: false,
|
|
61
|
-
// // border: false,
|
|
62
|
-
// // round: false,
|
|
63
|
-
// // minHeight: 144,
|
|
64
|
-
// emptyText: "暂无数据"
|
|
65
|
-
// // resizeConfig: {
|
|
66
|
-
// // refreshDelay: 250
|
|
67
|
-
// // },
|
|
68
|
-
// // rowConfig: {
|
|
69
|
-
// // keyField: '_X_ROW_KEY' // 行数据的唯一主键字段名
|
|
70
|
-
// // },
|
|
71
|
-
// // radioConfig: {
|
|
72
|
-
// // trigger: 'default'
|
|
73
|
-
// // },
|
|
74
|
-
// // checkboxConfig: {
|
|
75
|
-
// // strict: false,
|
|
76
|
-
// // highlight: false,
|
|
77
|
-
// // range: false,
|
|
78
|
-
// // trigger: 'default'
|
|
79
|
-
// // },
|
|
80
|
-
// // sortConfig: {
|
|
81
|
-
// // remote: false,
|
|
82
|
-
// // trigger: 'default',
|
|
83
|
-
// // orders: ['asc', 'desc', null],
|
|
84
|
-
// // sortMethod: null
|
|
85
|
-
// // },
|
|
86
|
-
// // filterConfig: {
|
|
87
|
-
// // remote: false,
|
|
88
|
-
// // filterMethod: null
|
|
89
|
-
// // },
|
|
90
|
-
// // expandConfig: {
|
|
91
|
-
// // trigger: 'default',
|
|
92
|
-
// // showIcon: true
|
|
93
|
-
// // },
|
|
94
|
-
// // treeConfig: {
|
|
95
|
-
// // rowField: 'id',
|
|
96
|
-
// // parentField: 'parentId',
|
|
97
|
-
// // children: 'children',
|
|
98
|
-
// // hasChild: 'hasChild',
|
|
99
|
-
// // mapChildren: '_X_ROW_CHILD',
|
|
100
|
-
// // indent: 20,
|
|
101
|
-
// // showIcon: true
|
|
102
|
-
// // },
|
|
103
|
-
// // tooltipConfig: {
|
|
104
|
-
// // enterable: true
|
|
105
|
-
// // },
|
|
106
|
-
// // menuConfig: {
|
|
107
|
-
// // visibleMethod () {}
|
|
108
|
-
// // },
|
|
109
|
-
// // editConfig: {
|
|
110
|
-
// // mode: 'cell',
|
|
111
|
-
// // showAsterisk: true
|
|
112
|
-
// // },
|
|
113
|
-
// // importConfig: {
|
|
114
|
-
// // modes: ['insert', 'covering']
|
|
115
|
-
// // },
|
|
116
|
-
// // exportConfig: {
|
|
117
|
-
// // modes: ['current', 'selected']
|
|
118
|
-
// // },
|
|
119
|
-
// // customConfig: {
|
|
120
|
-
// // storage: false,
|
|
121
|
-
// // mode: 'simple' // 默认自定义列方式
|
|
122
|
-
// // },
|
|
123
|
-
// // area-config: {
|
|
124
|
-
// // multiple: false
|
|
125
|
-
// // },
|
|
126
|
-
// // scrollX: {
|
|
127
|
-
// // enabled: false, // 是否默认开启横向虚拟滚动
|
|
128
|
-
// // gt: 60 // 当列大于指定数量时自动触发启用虚拟滚动
|
|
129
|
-
// // },
|
|
130
|
-
// // scrollY: {
|
|
131
|
-
// // enabled: false, // 是否默认开启纵向虚拟滚动
|
|
132
|
-
// // gt: 100 // 当数据大于指定数量时自动触发启用虚拟滚动
|
|
133
|
-
// // },
|
|
134
|
-
// // loading: {
|
|
135
|
-
// // icon: 'vxe-icon-spinner roll',
|
|
136
|
-
// // text: '加载中...'
|
|
137
|
-
// // }
|
|
138
|
-
// }
|
|
139
|
-
// // grid: {
|
|
140
|
-
// // emptyText: "暂无数据"
|
|
141
|
-
// // size: null,
|
|
142
|
-
// // zoomConfig: {
|
|
143
|
-
// // escRestore: true
|
|
144
|
-
// // },
|
|
145
|
-
// // pagerConfig: {
|
|
146
|
-
// // },
|
|
147
|
-
// // toolbarConfig: {
|
|
148
|
-
// // },
|
|
149
|
-
// // proxyConfig: {
|
|
150
|
-
// // autoLoad: true,
|
|
151
|
-
// // message: true,
|
|
152
|
-
// // props: {
|
|
153
|
-
// // list: null, // 用于列表,读取响应数据
|
|
154
|
-
// // result: 'result', // 用于分页,读取响应数据
|
|
155
|
-
// // total: 'page.total' // 用于分页,读取总条数
|
|
156
|
-
// // }
|
|
157
|
-
// // beforeItem: null,
|
|
158
|
-
// // beforeColumn: null,
|
|
159
|
-
// // beforeQuery: null,
|
|
160
|
-
// // afterQuery: null,
|
|
161
|
-
// // beforeDelete: null,
|
|
162
|
-
// // afterDelete: null,
|
|
163
|
-
// // beforeSave: null,
|
|
164
|
-
// // afterSave: null
|
|
165
|
-
// // }
|
|
166
|
-
// // }
|
|
167
|
-
// // pager: {
|
|
168
|
-
// // size: null,
|
|
169
|
-
// // autoHidden: false,
|
|
170
|
-
// // pageSize: 10,
|
|
171
|
-
// // pagerCount: 7,
|
|
172
|
-
// // pageSizes: [10, 15, 20, 50, 100],
|
|
173
|
-
// // layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
|
|
174
|
-
// // },
|
|
175
|
-
// // form: {
|
|
176
|
-
// // preventSubmit: false
|
|
177
|
-
// // size: null,
|
|
178
|
-
// // colon: false,
|
|
179
|
-
// // validConfig: {
|
|
180
|
-
// // autoPos: true
|
|
181
|
-
// // },
|
|
182
|
-
// // tooltipConfig: {
|
|
183
|
-
// // enterable: true
|
|
184
|
-
// // },
|
|
185
|
-
// // titleAsterisk: true
|
|
186
|
-
// // },
|
|
187
|
-
// // input: {
|
|
188
|
-
// // size: null,
|
|
189
|
-
// // transfer: false
|
|
190
|
-
// // parseFormat: 'yyyy-MM-dd HH:mm:ss.SSS',
|
|
191
|
-
// // labelFormat: '',
|
|
192
|
-
// // valueFormat: '',
|
|
193
|
-
// // startDay: 1,
|
|
194
|
-
// // digits: 2,
|
|
195
|
-
// // controls: true
|
|
196
|
-
// // },
|
|
197
|
-
// // textarea: {
|
|
198
|
-
// // size: null
|
|
199
|
-
// // autosize: {
|
|
200
|
-
// // minRows: 1,
|
|
201
|
-
// // maxRows: 10
|
|
202
|
-
// // }
|
|
203
|
-
// // },
|
|
204
|
-
// // select: {
|
|
205
|
-
// // size: null,
|
|
206
|
-
// // transfer: false,
|
|
207
|
-
// // optionConfig: {
|
|
208
|
-
// // keyField: '_X_OPTION_KEY' // 选项数据的唯一主键字段名
|
|
209
|
-
// // },
|
|
210
|
-
// // multiCharOverflow: 8
|
|
211
|
-
// // },
|
|
212
|
-
// // toolbar: {
|
|
213
|
-
// // size: null,
|
|
214
|
-
// // import: {
|
|
215
|
-
// // mode: 'covering'
|
|
216
|
-
// // },
|
|
217
|
-
// // export: {
|
|
218
|
-
// // types: ['csv', 'html', 'xml', 'txt']
|
|
219
|
-
// // },
|
|
220
|
-
// // buttons: [],
|
|
221
|
-
// // tools: []
|
|
222
|
-
// // },
|
|
223
|
-
// // button: {
|
|
224
|
-
// // size: null,
|
|
225
|
-
// // transfer: false
|
|
226
|
-
// // },
|
|
227
|
-
// // radio: {
|
|
228
|
-
// // size: null
|
|
229
|
-
// // },
|
|
230
|
-
// // checkbox: {
|
|
231
|
-
// // size: null
|
|
232
|
-
// // },
|
|
233
|
-
// // switch: {
|
|
234
|
-
// // size: null
|
|
235
|
-
// // },
|
|
236
|
-
// // modal: {
|
|
237
|
-
// // // size: null,
|
|
238
|
-
// // minWidth: 340,
|
|
239
|
-
// // minHeight: 200,
|
|
240
|
-
// // lockView: true,
|
|
241
|
-
// // mask: true,
|
|
242
|
-
// // duration: 3000,
|
|
243
|
-
// // marginSize: 0,
|
|
244
|
-
// // dblclickZoom: true,
|
|
245
|
-
// // showTitleOverflow: true
|
|
246
|
-
// // storage: false
|
|
247
|
-
// // },
|
|
248
|
-
// // list: {
|
|
249
|
-
// // scrollY: {
|
|
250
|
-
// // gt: 100
|
|
251
|
-
// // }
|
|
252
|
-
// // }
|
|
253
|
-
// })
|
|
254
|
-
|
|
255
|
-
// 导入默认的语言
|
|
256
|
-
// import zhCN from "vxe-table/lib/locale/lang/zh-CN"
|
|
257
|
-
|
|
258
|
-
// 按需加载的方式默认是不带国际化的,自定义国际化需要自行解析占位符 '{0}',例如:
|
|
259
|
-
// VXETable.setConfig({
|
|
260
|
-
// i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args)
|
|
261
|
-
// })
|
|
262
|
-
|
|
263
|
-
// 可选表格模块
|
|
264
|
-
// Vue.use(VxeTableFilterModule)
|
|
265
|
-
// Vue.use(VxeTableEditModule)
|
|
266
|
-
// Vue.use(VxeTableMenuModule)
|
|
267
|
-
// Vue.use(VxeTableExportModule)
|
|
268
|
-
// Vue.use(VxeTableKeyboardModule)
|
|
269
|
-
// Vue.use(VxeTableValidatorModule)
|
|
270
|
-
// Vue.use(VxeTableCustomModule)
|
|
271
|
-
|
|
272
|
-
// 可选组件
|
|
273
|
-
Vue.use(VxeIcon)
|
|
274
|
-
Vue.use(VxeTable)
|
|
275
|
-
Vue.use(VxeColumn)
|
|
276
|
-
Vue.use(VxeColgroup)
|
|
277
|
-
Vue.use(VxeGrid)
|
|
278
|
-
Vue.use(VxeTooltip)
|
|
279
|
-
Vue.use(VxeToolbar)
|
|
280
|
-
Vue.use(VxePager)
|
|
281
|
-
// Vue.use(VxeForm)
|
|
282
|
-
// Vue.use(VxeFormItem)
|
|
283
|
-
// Vue.use(VxeFormGather)
|
|
284
|
-
// Vue.use(VxeCheckbox)
|
|
285
|
-
// Vue.use(VxeCheckboxGroup)
|
|
286
|
-
// Vue.use(VxeRadio)
|
|
287
|
-
// Vue.use(VxeRadioGroup)
|
|
288
|
-
// Vue.use(VxeRadioButton)
|
|
289
|
-
// Vue.use(VxeSwitch)
|
|
290
|
-
// Vue.use(VxeInput)
|
|
291
|
-
Vue.use(VxeSelect)
|
|
292
|
-
// Vue.use(VxeOptgroup)
|
|
293
|
-
// Vue.use(VxeOption)
|
|
294
|
-
// Vue.use(VxeTextarea)
|
|
295
|
-
// Vue.use(VxeButton)
|
|
296
|
-
// Vue.use(VxeButtonGroup)
|
|
297
|
-
// Vue.use(VxeModal)
|
|
298
|
-
// Vue.use(VxeList)
|
|
299
|
-
// Vue.use(VxePulldown)
|
|
300
|
-
import "./vxeTable.scss"
|
package/src/plugin/vxeTable.scss
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// 修改scss变量
|
|
2
|
-
$vxe-font-size: 12px;
|
|
3
|
-
$vxe-table-header-font-color: #000;
|
|
4
|
-
$vxe-table-header-background-color: #fafafa;
|
|
5
|
-
$vxe-font-color: #606266;
|
|
6
|
-
// $vxe-primary-color: #409eff;
|
|
7
|
-
// $vxe-table-font-color: $vxe-font-color;
|
|
8
|
-
$vxe-table-border-color: #ebeef5;
|
|
9
|
-
// $vxe-table-border-radius: 4px;
|
|
10
|
-
$vxe-table-row-height-default: 41px;
|
|
11
|
-
$vxe-table-column-padding-default: 9.5px 0;
|
|
12
|
-
// ...
|
|
13
|
-
|
|
14
|
-
@import 'vxe-table/styles/index.scss';
|