@tongfun/tf-widget 0.1.26 → 0.1.29
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 +23 -2
- package/lib/tf-widget.common.js +168 -127
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +168 -127
- package/lib/tf-widget.umd.min.js +3 -3
- package/package/t-data-list/main.vue +1 -1
- package/package/t-input/children/basic.vue +16 -10
- package/package/t-input/children/group.vue +2 -2
- package/package/tf-widget/src/children/basic-data/basic-data.vue +5 -0
- package/package.json +2 -2
- package/src/api/edit.js +0 -97
- package/src/api/file-enclosure.js +0 -26
- package/src/api/push-down.js +0 -19
- package/src/api/table.js +0 -294
- package/src/api/tableV3.js +0 -166
- package/src/assets/images/icons/index.js +0 -9
- package/src/assets/images/icons/svg/add.svg +0 -5
- package/src/assets/images/icons/svg/push-down.svg +0 -2
- package/src/assets/images/icons/svg/remove.svg +0 -1
- package/src/assets/images/icons/svg/table-empty.svg +0 -1
- package/src/assets/styles/common-table.less +0 -202
- package/src/directives/debounce.js +0 -24
- package/src/index.js +0 -31
- package/src/mixins/t-data-query-mixin.js +0 -290
- package/src/utils/auth.js +0 -22
- package/src/utils/request.js +0 -42
- package/src/utils/stato-anormale.js +0 -59
- package/src/utils/utils.js +0 -109
- package/src/utils/validate.js +0 -84
package/src/api/tableV3.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import request from '@/utils/request.js'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 列表数据
|
|
5
|
-
*/
|
|
6
|
-
// 获取列表的数据
|
|
7
|
-
export function getTableData (target, data, queryType) {
|
|
8
|
-
data.sceneSelector = queryType
|
|
9
|
-
return request({
|
|
10
|
-
url: `/api${target}/tList`,
|
|
11
|
-
method: 'post',
|
|
12
|
-
data
|
|
13
|
-
})
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// 获取列表的合计
|
|
17
|
-
export function getTableSum (target, data) {
|
|
18
|
-
data.sceneSelector = 'LIST'
|
|
19
|
-
return request({
|
|
20
|
-
url: `/api${target}/tSum`,
|
|
21
|
-
method: 'post',
|
|
22
|
-
data
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// 删除数据
|
|
27
|
-
export function del ({ ids, target }) {
|
|
28
|
-
return request({
|
|
29
|
-
url: `/api${target}/tDel`,
|
|
30
|
-
method: 'post',
|
|
31
|
-
data: [...ids]
|
|
32
|
-
})
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// todo:导入导出
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 方案
|
|
39
|
-
*/
|
|
40
|
-
// 获取方案列表
|
|
41
|
-
export function getFilterPlan (target) {
|
|
42
|
-
return request({
|
|
43
|
-
url: `/api${target}/tSchemeQuery`,
|
|
44
|
-
method: 'get'
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// 添加一个新的方案
|
|
49
|
-
export function addPlan (target, data) {
|
|
50
|
-
return request({
|
|
51
|
-
url: `/api${target}/tSchemeSave`,
|
|
52
|
-
method: 'post',
|
|
53
|
-
data: {
|
|
54
|
-
commonUserQuerySchemeContentSaveDTOS: data.conditionMulti,
|
|
55
|
-
commonUserQuerySchemeUsefulSaveDTOS: data.conditionAlways,
|
|
56
|
-
commonUserQuerySchemeSaveDTO: data.planMsg
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// 删除一个方案
|
|
62
|
-
// todo:如果删除的是一个默认方案怎么办,还是说前端直接默认方案不允许删除
|
|
63
|
-
export function deletePlan (target, planId) {
|
|
64
|
-
return request({
|
|
65
|
-
url: `/api${target}/tSchemeDelete`,
|
|
66
|
-
method: 'post',
|
|
67
|
-
data: [planId]
|
|
68
|
-
})
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// 修改一个方案
|
|
72
|
-
export function updatePlan (target, data) {
|
|
73
|
-
return request({
|
|
74
|
-
url: `/api${target}/tSchemeUpdate`,
|
|
75
|
-
method: 'post',
|
|
76
|
-
data: {
|
|
77
|
-
userQuerySchemeContentUpdateDTOS: data.conditionMulti,
|
|
78
|
-
userQuerySchemeUsefulUpdateDTOS: data.conditionAlways,
|
|
79
|
-
userQuerySchemeUpdateDTO: data.planMsg
|
|
80
|
-
}
|
|
81
|
-
})
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 获取方案中枚举的字段的选项
|
|
85
|
-
export function getEnumOptions (target, field) {
|
|
86
|
-
return request({
|
|
87
|
-
url: `/api${target}/tEnum`,
|
|
88
|
-
method: 'get',
|
|
89
|
-
params: {
|
|
90
|
-
field
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 列表布局(方案高级条件的字段
|
|
97
|
-
*/
|
|
98
|
-
// 获取表格布局
|
|
99
|
-
export function getTableLayout (target) {
|
|
100
|
-
return request({
|
|
101
|
-
url: `/api${target}/tListHeader`,
|
|
102
|
-
method: 'get'
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
// 修改布局
|
|
106
|
-
export function updateTalbeLayout (data) {
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 列表的分组查询
|
|
112
|
-
*/
|
|
113
|
-
export function getGroupTree (target) {
|
|
114
|
-
return request({
|
|
115
|
-
url: `/api${target}/tGroupQuery`,
|
|
116
|
-
method: 'get'
|
|
117
|
-
})
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// 添加一个分组节点
|
|
121
|
-
export function addGroupNode (target, name, id, pid, groupCode) {
|
|
122
|
-
return request({
|
|
123
|
-
url: `/api${target}/tGroupInsert`,
|
|
124
|
-
method: 'post',
|
|
125
|
-
data: {
|
|
126
|
-
name,
|
|
127
|
-
id: null,
|
|
128
|
-
pid,
|
|
129
|
-
groupCode
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// 删除一个分组节点
|
|
135
|
-
export function removeGroupNode (target, id) {
|
|
136
|
-
return request({
|
|
137
|
-
url: `/api${target}/tGroupDelete`,
|
|
138
|
-
method: 'post',
|
|
139
|
-
data: { id }
|
|
140
|
-
})
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// 修改一个分组节点
|
|
144
|
-
export function updateGroupNode (target, name, id, pid, groupCode) {
|
|
145
|
-
return request({
|
|
146
|
-
url: `/api${target}/tGroupUpdate`,
|
|
147
|
-
method: 'post',
|
|
148
|
-
data: {
|
|
149
|
-
name,
|
|
150
|
-
id,
|
|
151
|
-
pid,
|
|
152
|
-
groupCode
|
|
153
|
-
}
|
|
154
|
-
})
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export function pushDownValid (name, ids) {
|
|
158
|
-
return request({
|
|
159
|
-
url: '/api/report/billExchange/preHandle',
|
|
160
|
-
method: 'post',
|
|
161
|
-
data: {
|
|
162
|
-
name,
|
|
163
|
-
ids
|
|
164
|
-
}
|
|
165
|
-
})
|
|
166
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import SvgIcon from '../../../../package/svg-icon/src/SvgIcon'// svg组件
|
|
3
|
-
|
|
4
|
-
// register globally
|
|
5
|
-
Vue.component('SvgIcon', SvgIcon)
|
|
6
|
-
|
|
7
|
-
const req = require.context('./svg', false, /\.svg$/)
|
|
8
|
-
const requireAll = requireContext => requireContext.keys().map(requireContext)
|
|
9
|
-
requireAll(req)
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg t="1611221886259" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2618" width="200" height="200">
|
|
2
|
-
<path d="M512 0C229.68 0 0 229.68 0 512s229.68 512 512 512 512-229.68 512-512S794.32 0 512 0z m0 950.858c-241.994 0-438.858-196.864-438.858-438.858S270.006 73.142 512 73.142 950.858 270.006 950.858 512 753.994 950.858 512 950.858z" fill="" p-id="2619"></path>
|
|
3
|
-
<path d="M512 268.19c-20.2 0-36.572 16.372-36.572 36.572v414.476c0 20.2 16.372 36.572 36.572 36.572 20.2 0 36.572-16.372 36.572-36.572V304.762c0-20.2-16.372-36.572-36.572-36.572z" fill="" p-id="2620"></path>
|
|
4
|
-
<path d="M719.238 475.428H304.762c-20.2 0-36.572 16.372-36.572 36.572 0 20.2 16.372 36.572 36.572 36.572h414.476c20.2 0 36.572-16.372 36.572-36.572 0-20.2-16.372-36.572-36.572-36.572z" fill="" p-id="2621"></path>
|
|
5
|
-
</svg>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<!-- <svg t="1611213136482" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4018" width="200" height="200"><path d="M901.632 464.384c28.16-27.648 73.216-27.648 101.376 0 13.312 13.312 20.992 31.232 20.992 50.176s-7.68 37.376-20.992 50.176l-440.32 437.76c-28.16 27.648-73.216 27.648-101.376 0l-440.32-437.76c-13.312-13.312-20.992-31.232-20.992-50.176s7.68-36.864 20.992-50.176c28.16-27.648 73.216-27.648 101.376 0l389.632 387.584 389.632-387.584z m-389.632-56.32L122.368 20.992c-28.16-27.648-73.216-27.648-101.376 0C7.68 34.304 0 52.224 0 71.168c0 18.944 7.68 37.376 20.992 50.176l440.32 437.76c28.16 27.648 73.216 27.648 101.376 0l440.32-437.76c13.312-13.312 20.992-31.232 20.992-50.176 0-18.944-7.68-36.864-20.992-50.176-28.16-27.648-73.216-27.648-101.376 0L512 408.064z m0 0" fill="#5D6775" p-id="4019"></path></svg> -->
|
|
2
|
-
<svg t="1625210151009" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1426" width="200" height="200"><path d="M277.12 231.936a32 32 0 0 0-42.24 48.128L512 522.496l277.12-242.432a32 32 0 1 0-42.24-48.128L512 437.504 277.12 231.936z" p-id="1427"></path><path d="M277.12 487.936a32 32 0 0 0-42.24 48.128L512 778.496l277.12-242.432a32 32 0 1 0-42.24-48.128L512 693.504 277.12 487.936z" p-id="1428"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg t="1611221959247" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3367" width="200" height="200"><path d="M734.3616 553.3184H299.88352c-19.91168 0-36.20352-16.29184-36.20352-36.1984 0-19.9168 16.29184-36.20352 36.20352-36.20352h434.46784c19.91168 0 36.20352 16.29184 36.20352 36.20352 0.00512 19.91168-16.29696 36.1984-36.19328 36.1984zM517.12 1024c-278.784 0-506.88-228.096-506.88-506.88S238.336 10.24 517.12 10.24s506.88 228.096 506.88 506.88-228.096 506.88-506.88 506.88z m0-941.34784c-238.96064 0-434.46784 195.5072-434.46784 434.46784S278.15936 951.58784 517.12 951.58784 951.58784 756.0704 951.58784 517.12 756.08064 82.65216 517.12 82.65216z" p-id="3368"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1610711176402" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3212" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M456 864.8v-1.6 1.6z m57.6-58.4c-32 0-57.6 24.8-57.6 56.8v0.8c0 6.4 4.8 11.2 11.2 11.2s11.2-4.8 11.2-11.2v-0.8c0-18.4 15.2-34.4 34.4-34.4s34.4 16 34.4 34.4v0.8c0 6.4 4.8 11.2 11.2 11.2 6.4 0 11.2-4.8 11.2-11.2v-0.8c1.6-30.4-24.8-56.8-56-56.8zM380 717.6c-16-3.2-39.2-3.2-44.8 13.6-3.2 10.4 13.6 11.2 28.8 15.2 12 3.2 18.4 9.6 17.6 11.2-3.2 4-21.6-3.2-37.6 2.4s-12.8 20-3.2 24c9.6 3.2 24.8-0.8 60 4.8 17.6 3.2 28.8-3.2 31.2-13.6 3.2-24.8-29.6-52.8-52-57.6zM593.6 776c2.4 10.4 12 16.8 31.2 13.6 35.2-5.6 50.4-1.6 60-4.8 9.6-3.2 12-18.4-3.2-24-16-5.6-33.6 1.6-37.6-2.4-2.4-3.2 4.8-9.6 17.6-12 15.2-3.2 32-4.8 28.8-15.2-4.8-16.8-28-17.6-44.8-13.6-23.2 4.8-56 32.8-52 58.4z" fill="#2C2C2C" p-id="3213"></path><path d="M71.2 1024C32 1024 0 992 0 952.8V502.4c0-7.2 3.2-13.6 8-18.4l201.6-184c4.8-4 10.4-6.4 16.8-6.4h572.8c7.2 0 12.8 2.4 16.8 5.6l200 184c4.8 4.8 8.8 12 8.8 18.4V952c0 39.2-32 71.2-71.2 71.2H71.2z m-40-71.2c0 21.6 18.4 39.2 40.8 39.2h882.4c21.6 0 39.2-16.8 39.2-39.2V509.6H676.8l-1.6 9.6c-5.6 34.4-22.4 66.4-48.8 92.8-31.2 28.8-70.4 44.8-112 44.8-41.6 0-81.6-16-112-44.8-26.4-24-43.2-56.8-48.8-92.8l-1.6-9.6H31.2v443.2zM54.4 484h310.4c6.4 0 12 6.4 12 12.8 0 73.6 63.2 136 137.6 136S652 570.4 652 496.8c0-7.2 5.6-12.8 12-12.8h307.2L797.6 324h-568L54.4 484z m130.4-378.4c-28.8 0-52.8-24-52.8-52.8C132 24 156 0 184.8 0c28.8 0 52.8 24 52.8 52.8 0 28.8-24 52.8-52.8 52.8z m0-89.6c-20 0-36.8 16.8-36.8 36.8 0 20 16.8 36.8 36.8 36.8 20 0 36.8-16.8 36.8-36.8 0-20-16.8-36.8-36.8-36.8z m553.6 207.2c-19.2 0-35.2-16-35.2-35.2s16-35.2 35.2-35.2c19.2 0 35.2 16 35.2 35.2s-16 35.2-35.2 35.2z m0-53.6c-10.4 0-19.2 8.8-19.2 19.2S728 208 738.4 208s19.2-8.8 19.2-19.2-8.8-19.2-19.2-19.2zM364 179.2c-4.8 0-8-3.2-8-8v-36c0-4.8 3.2-8 8-8s8 3.2 8 8v36c0 4.8-4 8-8 8z" fill="#2C2C2C" p-id="3214"></path><path d="M381.6 160.8h-36c-4.8 0-8-3.2-8-8s3.2-8 8-8h36c4.8 0 8 3.2 8 8s-3.2 8-8 8zM72 301.6c-4.8 0-8-3.2-8-8v-70.4c0-4.8 3.2-8 8-8s8 3.2 8 8v70.4c0 4.8-3.2 8-8 8z" fill="#2C2C2C" p-id="3215"></path><path d="M107.2 266.4H36.8c-4.8 0-8-3.2-8-8s3.2-8 8-8h70.4c4.8 0 8 3.2 8 8s-3.2 8-8 8zM944 308c-4.8 0-8-3.2-8-8v-51.2c0-4.8 3.2-8 8-8s8 3.2 8 8V300c0 4.8-3.2 8-8 8z" fill="#2C2C2C" p-id="3216"></path><path d="M969.6 282.4h-51.2c-4.8 0-8-3.2-8-8s3.2-8 8-8h51.2c4.8 0 8 3.2 8 8s-3.2 8-8 8zM856 169.6c-4.8 0-8-3.2-8-8V80.8c0-4.8 3.2-8 8-8s8 3.2 8 8v80.8c0 4.8-3.2 8-8 8z" fill="#2C2C2C" p-id="3217"></path><path d="M896 129.6h-80c-4.8 0-8-3.2-8-8s3.2-8 8-8h80c4.8 0 8 3.2 8 8s-3.2 8-8 8z" fill="#2C2C2C" p-id="3218"></path></svg>
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//通用按钮
|
|
3
|
-
.common-header-button{
|
|
4
|
-
min-width: 2.5vw;
|
|
5
|
-
height: 2.222vh;
|
|
6
|
-
opacity: 1;
|
|
7
|
-
background: #0c4c8e;
|
|
8
|
-
border-color: #0c4c8e;
|
|
9
|
-
border-radius: 2px;
|
|
10
|
-
padding: 0;
|
|
11
|
-
margin-right: 0.4166vw;
|
|
12
|
-
::v-deep span{
|
|
13
|
-
opacity: 1;
|
|
14
|
-
font-size: 0.625vw;
|
|
15
|
-
font-family: Source Han Sans SC, Source Han Sans SC-Regular;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
color: #ffffff;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
// 统一按钮悬浮样式
|
|
21
|
-
.common-header-button:hover{
|
|
22
|
-
background: #0c4c8e;
|
|
23
|
-
border-color: #0c4c8e;
|
|
24
|
-
}
|
|
25
|
-
// 统一按钮focus样式
|
|
26
|
-
.common-header-button:focus{
|
|
27
|
-
background: #0c4c8e;
|
|
28
|
-
border-color: #0c4c8e;
|
|
29
|
-
}
|
|
30
|
-
// 去除button自带margin-left
|
|
31
|
-
::v-deep .el-button+.el-button{
|
|
32
|
-
margin-left: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//模态框取消按钮为浅色
|
|
36
|
-
.close{
|
|
37
|
-
background-color: #e5e5e5;
|
|
38
|
-
border-color: #e5e5e5;
|
|
39
|
-
::v-deep span{
|
|
40
|
-
color: #666;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.close:hover{
|
|
44
|
-
background-color: #e5e5e5;
|
|
45
|
-
color: #666;
|
|
46
|
-
border-color: #e5e5e5;
|
|
47
|
-
}
|
|
48
|
-
.close:focus{
|
|
49
|
-
background-color: #e5e5e5;
|
|
50
|
-
color: #666;
|
|
51
|
-
border-color: #e5e5e5;
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
//通用下拉按钮
|
|
57
|
-
.common-header-drop-button{
|
|
58
|
-
height: 2.222vh;
|
|
59
|
-
margin-right: 0.4166vw;
|
|
60
|
-
::v-deep .el-button-group{
|
|
61
|
-
height: 100%;
|
|
62
|
-
display: flex;
|
|
63
|
-
}
|
|
64
|
-
::v-deep .el-button{
|
|
65
|
-
width: 2.5vw;
|
|
66
|
-
height: 2.222vh;
|
|
67
|
-
opacity: 1;
|
|
68
|
-
background: #0c4c8e;
|
|
69
|
-
padding: 0;
|
|
70
|
-
border-radius: 2px 0 0 2px;
|
|
71
|
-
border: 1px solid #0c4c8e;
|
|
72
|
-
margin-right: 0;
|
|
73
|
-
}
|
|
74
|
-
::v-deep span{
|
|
75
|
-
font-size: 0.625vw;
|
|
76
|
-
font-family: Source Han Sans SC, Source Han Sans SC-Regular;
|
|
77
|
-
}
|
|
78
|
-
::v-deep .el-dropdown__caret-button{
|
|
79
|
-
width: 0.625vw;
|
|
80
|
-
height: 2.222vh;
|
|
81
|
-
background-color: #87a7c8;
|
|
82
|
-
border-radius: 0 2px 2px 0;
|
|
83
|
-
padding: 0;
|
|
84
|
-
border: 0 solid #87a7c8;
|
|
85
|
-
.el-dropdown__icon, el-icon-arrow-down{
|
|
86
|
-
margin: 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
::v-deep .el-dropdown__caret-button::before{
|
|
90
|
-
background-color: #87a7c8;
|
|
91
|
-
}
|
|
92
|
-
::v-deep .el-dropdown__icon{
|
|
93
|
-
width: 0.625vw;
|
|
94
|
-
font-size: 0.625vw;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// 通用下拉按钮(文字较多时)
|
|
99
|
-
.common-header-drop-button-more{
|
|
100
|
-
::v-deep .el-button{
|
|
101
|
-
width: 3.5vw;
|
|
102
|
-
}
|
|
103
|
-
::v-deep .el-dropdown__caret-button{
|
|
104
|
-
width: 0.625vw;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.common-table{
|
|
109
|
-
//表头配置
|
|
110
|
-
::v-deep .elx-header--row{
|
|
111
|
-
.elx-header--column:nth-child(1){
|
|
112
|
-
.elx-cell{
|
|
113
|
-
width: 63px !important;
|
|
114
|
-
height: 3.2407vh !important;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
::v-deep .elx-table--header{
|
|
119
|
-
color: #085497;
|
|
120
|
-
font-size: 0.7291vw;
|
|
121
|
-
background: #edf0f5;
|
|
122
|
-
border-radius: 4px 4px 0 0;
|
|
123
|
-
.elx-cell{
|
|
124
|
-
width: 100% !important;
|
|
125
|
-
padding: 0;
|
|
126
|
-
.elx-cell--title{
|
|
127
|
-
width: 100% !important;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
::v-deep .elx-header--column{
|
|
132
|
-
font-weight: normal;
|
|
133
|
-
height: 3.2407vh !important;
|
|
134
|
-
background-image: none !important;
|
|
135
|
-
}
|
|
136
|
-
::v-deep .elx-body--column{
|
|
137
|
-
height: 3.2407vh !important;
|
|
138
|
-
border-top: 1px solid #E0EAFC;
|
|
139
|
-
border-right: 1px solid #E0EAFC;
|
|
140
|
-
font-size: 0.625vw;
|
|
141
|
-
font-weight: normal;
|
|
142
|
-
color: #666666;
|
|
143
|
-
background-image: none !important;
|
|
144
|
-
}
|
|
145
|
-
// 首列左侧增加border
|
|
146
|
-
::v-deep .elx-body--row{
|
|
147
|
-
.elx-body--column:nth-child(1){
|
|
148
|
-
border-left: 1px solid #E0EAFC;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
// 末行底部增加border
|
|
152
|
-
::v-deep .elx-body--row:nth-last-child(1){
|
|
153
|
-
.elx-body--column{
|
|
154
|
-
border-bottom: 1px solid #E0EAFC;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// ::v-deep .elx-table--body{
|
|
159
|
-
// //border-collapse: collapse;
|
|
160
|
-
// }
|
|
161
|
-
::v-deep .row--current{
|
|
162
|
-
background: #EFF7FF;
|
|
163
|
-
}
|
|
164
|
-
::v-deep .elx-table--body-wrapper{
|
|
165
|
-
background: #FFFFFF;
|
|
166
|
-
height: 70vh;
|
|
167
|
-
}
|
|
168
|
-
@media screen and (max-width: 1366px){
|
|
169
|
-
::v-deep .elx-table--body-wrapper{
|
|
170
|
-
height: 65vh;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
::v-deep .fixed-right--wrapper{
|
|
174
|
-
border: none;
|
|
175
|
-
}
|
|
176
|
-
::v-deep .elx-table--footer-wrapper{
|
|
177
|
-
border: none;
|
|
178
|
-
}
|
|
179
|
-
::v-deep .elx-footer--column{
|
|
180
|
-
background-image: none !important;
|
|
181
|
-
}
|
|
182
|
-
// 合计行
|
|
183
|
-
::v-deep .elx-footer--row{
|
|
184
|
-
td {
|
|
185
|
-
height: 3.2407vh !important;
|
|
186
|
-
//border-top: 1px solid #E0EAFC;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
// 表格控制按钮增大
|
|
190
|
-
::v-deep .el-icon-setting:before{
|
|
191
|
-
font-size: 1.0416vw;
|
|
192
|
-
}
|
|
193
|
-
/deep/ .el-table__fixed-right {
|
|
194
|
-
height: 100% !important; //设置高优先,以覆盖内联样式
|
|
195
|
-
}
|
|
196
|
-
/deep/ .el-table__fixed {
|
|
197
|
-
height: 110px !important; //设置高优先,以覆盖内联样式
|
|
198
|
-
}
|
|
199
|
-
::v-deep .elx-table--fixed-right-wrapper.scrolling--middle{
|
|
200
|
-
box-shadow: none; // 去除列表控制的fix显示shadow
|
|
201
|
-
}
|
|
202
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
bind: function (el, { value }) {
|
|
3
|
-
const time = value || 2000
|
|
4
|
-
el._flag = true
|
|
5
|
-
el._timer = null
|
|
6
|
-
el.handler = (e) => {
|
|
7
|
-
if (!el._flag) {
|
|
8
|
-
// 无需执行时的操作
|
|
9
|
-
e.stopImmediatePropagation()
|
|
10
|
-
return
|
|
11
|
-
}
|
|
12
|
-
el._flag = false
|
|
13
|
-
el._timer = setTimeout(() => {
|
|
14
|
-
el._flag = true
|
|
15
|
-
clearTimeout(el._timer)
|
|
16
|
-
el._timer = null
|
|
17
|
-
}, time)
|
|
18
|
-
}
|
|
19
|
-
el.addEventListener('click', el.handler, true)
|
|
20
|
-
},
|
|
21
|
-
unbind: function (el, binding) {
|
|
22
|
-
el.removeEventListener('click', el.handler, true)
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import TfWidget from '../package/tf-widget'
|
|
3
|
-
import SvgIcon from '../package/svg-icon'
|
|
4
|
-
import TfLayout from '../package/tf-layout'
|
|
5
|
-
import TDataList from '../package/t-data-list'
|
|
6
|
-
import Tinput from '../package/t-input'
|
|
7
|
-
import TfIconPicker from '../package/tf-icon-picker'
|
|
8
|
-
const components = [
|
|
9
|
-
TfWidget,
|
|
10
|
-
SvgIcon,
|
|
11
|
-
TfLayout,
|
|
12
|
-
TDataList,
|
|
13
|
-
Tinput,
|
|
14
|
-
TfIconPicker
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
const install = function (Vue) {
|
|
18
|
-
components.forEach(component => {
|
|
19
|
-
Vue.component(component.name, component)
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
install,
|
|
25
|
-
TfWidget,
|
|
26
|
-
SvgIcon,
|
|
27
|
-
TfLayout,
|
|
28
|
-
TDataList,
|
|
29
|
-
Tinput,
|
|
30
|
-
TfIconPicker
|
|
31
|
-
}
|