resolver-egretimp-plus 0.1.113 → 0.1.114
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/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/common.scss +4 -0
- package/dist/theme/element/src/components/text.scss +17 -0
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/analysisComponent.jsx +2 -1
- package/src/components/helper/table.jsx +26 -23
- package/src/components/packages-web/ElText.jsx +0 -1
- package/src/theme/element/components/common.scss +4 -0
- package/src/theme/element/components/text.scss +17 -0
- package/src/components/styles/CustomComponenTable.scss +0 -141
- package/src/components/styles/text.scss +0 -20
package/package.json
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
})
|
|
153
153
|
ruleExecuter.penddingRules[hireRelat] = null
|
|
154
154
|
}
|
|
155
|
+
// 使用json-rules-engine书写的规则,打开这边,需要对之前的规则进行注释,并且需要再index.js文件中进行开启 ====end====
|
|
156
|
+
|
|
155
157
|
if (props.config?.immediateClickEvent) {
|
|
156
158
|
const unWatch = watch(dataLoad, (val) => {
|
|
157
159
|
if (val) {
|
|
@@ -164,7 +166,6 @@ export default {
|
|
|
164
166
|
immediate: true
|
|
165
167
|
})
|
|
166
168
|
}
|
|
167
|
-
// 使用json-rules-engine书写的规则,打开这边,需要对之前的规则进行注释,并且需要再index.js文件中进行开启 ====end====
|
|
168
169
|
}
|
|
169
170
|
const onVnodeUnmounted = () => {
|
|
170
171
|
props.config.vmIsBind = false
|
|
@@ -40,9 +40,10 @@ export async function tableValidate({
|
|
|
40
40
|
const currentStart = (page.pageNum - 1) * page.pageSize
|
|
41
41
|
const currentEnd = page.pageNum * page.pageSize
|
|
42
42
|
for (let index = 0; index < list.length; index++) {
|
|
43
|
+
|
|
43
44
|
if (index < currentStart || index >= currentEnd) {
|
|
44
45
|
const row = list[index];
|
|
45
|
-
const configColumns = multiPmPageMetaList[index] || multiPmPageMetaList[index % page.pageSize]
|
|
46
|
+
const configColumns = multiPmPageMetaList[index] || multiPmPageMetaList[index % page.pageSize] || multiPmPageMetaList[0]
|
|
46
47
|
const rowScope = {row, $index: index}
|
|
47
48
|
for (let j = 0; j < configColumns.length; j++) {
|
|
48
49
|
const columnConfig = configColumns[j];
|
|
@@ -58,31 +59,33 @@ export async function tableValidate({
|
|
|
58
59
|
disabled: calcDisable(columnConfig, props.mode)
|
|
59
60
|
}
|
|
60
61
|
const rules = getFormItemRule(columnConfig, lang, params, compProps, true)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
62
|
+
if (rules && rules.length) {
|
|
63
|
+
const validator = new AsyncValidator({
|
|
64
|
+
[columnConfig.dynamicHireRelat]: rules
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
async function toValidate() {
|
|
68
|
+
try {
|
|
69
|
+
await validator.validate({[columnConfig.dynamicHireRelat]: row[columnConfig.metaCode]})
|
|
70
|
+
} catch (error) {
|
|
71
|
+
return new Promise((resolve, inject) => {
|
|
72
|
+
setTimeout(() => {
|
|
73
|
+
let failPageNum = 0
|
|
74
|
+
if (index) {
|
|
75
|
+
failPageNum = parseInt((index + 1) / page.pageSize)
|
|
76
|
+
if ((index + 1) % page.pageSize) {
|
|
77
|
+
failPageNum ++
|
|
78
|
+
}
|
|
76
79
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
})
|
|
81
|
-
}
|
|
80
|
+
page.pageNum = failPageNum
|
|
81
|
+
inject({})
|
|
82
|
+
});
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
return true
|
|
82
86
|
}
|
|
83
|
-
|
|
87
|
+
await toValidate()
|
|
84
88
|
}
|
|
85
|
-
await toValidate()
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
}
|
|
@@ -2,7 +2,6 @@ import { ElText, ElIcon } from 'element-plus'
|
|
|
2
2
|
import { computed, defineProps, inject, getCurrentInstance, useAttrs, useSlots } from 'vue'
|
|
3
3
|
import { commonPropsType } from '../../utils/index.js'
|
|
4
4
|
import { h, resolveComponent, withModifiers } from 'vue'
|
|
5
|
-
import '../styles/text.scss'
|
|
6
5
|
import { useToolTip } from '../helper/calcTooltip.jsx'
|
|
7
6
|
|
|
8
7
|
export default {
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
.el-text {
|
|
2
2
|
line-height: 1em;
|
|
3
|
+
}
|
|
4
|
+
.resolver-custom-cust-input-wrap {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
min-height: 32px;
|
|
10
|
+
line-height: 24px;
|
|
11
|
+
padding: 1px 11px;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
14
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
15
|
+
background: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
16
|
+
cursor: 'not-allowed';
|
|
17
|
+
}
|
|
18
|
+
.resolver-custom-is-disabled {
|
|
19
|
+
background: var(--el-disabled-bg-color);
|
|
3
20
|
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
.error-tip-block {
|
|
2
|
-
& + .el-form-item__error {
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
.custom-component-table {
|
|
7
|
-
--boder-radius: 4px;
|
|
8
|
-
border-radius: var(--boder-radius);
|
|
9
|
-
// width: 100%;
|
|
10
|
-
.el-table, &.el-table {
|
|
11
|
-
--el-table-header-bg-color: #f5f6f7;
|
|
12
|
-
--el-table-header-text-color: #646a73;
|
|
13
|
-
}
|
|
14
|
-
.el-table--border {
|
|
15
|
-
border: 1px solid var(--el-table-border-color);
|
|
16
|
-
border-radius: var(--boder-radius);
|
|
17
|
-
&::before {
|
|
18
|
-
width: 0px;
|
|
19
|
-
// border-left: 1px solid var(--el-table-border-color);
|
|
20
|
-
// border-radius: var(--boder-radius);
|
|
21
|
-
// background-color: transparent;
|
|
22
|
-
}
|
|
23
|
-
&::after {
|
|
24
|
-
width: 0px;
|
|
25
|
-
// border-right: 1px solid var(--el-table-border-color);
|
|
26
|
-
// border-radius: var(--boder-radius);
|
|
27
|
-
// background-color: transparent;
|
|
28
|
-
}
|
|
29
|
-
.el-table__inner-wrapper {
|
|
30
|
-
&::before {
|
|
31
|
-
height: 0px;
|
|
32
|
-
// border-bottom: 1px solid var(--el-table-border-color);
|
|
33
|
-
// border-radius: var(--boder-radius);
|
|
34
|
-
// background-color: transparent;
|
|
35
|
-
}
|
|
36
|
-
&::after {
|
|
37
|
-
height: 0px;
|
|
38
|
-
// border-top: 1px solid var(--el-table-border-color);
|
|
39
|
-
// border-radius: var(--boder-radius);
|
|
40
|
-
// background-color: transparent;
|
|
41
|
-
}
|
|
42
|
-
.el-table__border-left-patch {
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.el-table__cell:last-of-type {
|
|
47
|
-
border-right: none;
|
|
48
|
-
}
|
|
49
|
-
.el-table__body {
|
|
50
|
-
tbody {
|
|
51
|
-
tr:last-of-type {
|
|
52
|
-
.el-table__cell {
|
|
53
|
-
border-bottom: none;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
.el-table .el-table__cell {
|
|
60
|
-
padding: 4px 0;
|
|
61
|
-
}
|
|
62
|
-
.el-form-item {
|
|
63
|
-
margin-right: 0;
|
|
64
|
-
margin-bottom: 0;
|
|
65
|
-
}
|
|
66
|
-
thead th {
|
|
67
|
-
font-weight: 400;
|
|
68
|
-
height: 40px;
|
|
69
|
-
.head-span {
|
|
70
|
-
text-overflow: ellipsis;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
th.el-table__cell.is-leaf {
|
|
76
|
-
border-bottom: none;
|
|
77
|
-
}
|
|
78
|
-
td.el-table__cell {
|
|
79
|
-
color: var(--el-input-text-color,var(--el-text-color-regular));
|
|
80
|
-
}
|
|
81
|
-
.el-table__cell {
|
|
82
|
-
height: 40px;
|
|
83
|
-
.el-date-editor, .el-date-editor--date{
|
|
84
|
-
.el-input__wrapper{
|
|
85
|
-
padding: 0 8px;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
.el-input {
|
|
89
|
-
display: flex;
|
|
90
|
-
}
|
|
91
|
-
.el-input {
|
|
92
|
-
--el-input-height: 24px;
|
|
93
|
-
}
|
|
94
|
-
.el-form-item__label {
|
|
95
|
-
height: 24px;
|
|
96
|
-
}
|
|
97
|
-
.el-form-item__content {
|
|
98
|
-
min-height: 24px;
|
|
99
|
-
}
|
|
100
|
-
.el-select__wrapper, .el-input__wrapper {
|
|
101
|
-
box-shadow: none;
|
|
102
|
-
border-bottom: 1px solid var(--el-border-color);
|
|
103
|
-
padding: 0;
|
|
104
|
-
border-radius: 0;
|
|
105
|
-
background-color: transparent;
|
|
106
|
-
min-height: 24px;
|
|
107
|
-
&.is-focused {
|
|
108
|
-
border-color: var(--el-color-primary);
|
|
109
|
-
}
|
|
110
|
-
&.is-focus {
|
|
111
|
-
border-color: var(--el-color-primary);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.is-error {
|
|
115
|
-
.el-select__wrapper, .el-input__wrapper {
|
|
116
|
-
box-shadow: none;
|
|
117
|
-
border-bottom: 1px solid var(--el-color-danger);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.cell {
|
|
122
|
-
// line-height: 16px;
|
|
123
|
-
}
|
|
124
|
-
.pagination-wrap {
|
|
125
|
-
display: flex;
|
|
126
|
-
}
|
|
127
|
-
.hidden-column {
|
|
128
|
-
border: none;
|
|
129
|
-
overflow: hidden;
|
|
130
|
-
// display: none;
|
|
131
|
-
}
|
|
132
|
-
.hidden-column + .el-table__cell {
|
|
133
|
-
// border: none;
|
|
134
|
-
}
|
|
135
|
-
.next-hidden-column.end-show-column {
|
|
136
|
-
border: none;
|
|
137
|
-
}
|
|
138
|
-
.clear-index {
|
|
139
|
-
z-index: unset;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.resolver-custom-cust-input-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
min-height: 32px;
|
|
7
|
-
line-height: 24px;
|
|
8
|
-
padding: 1px 11px;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
11
|
-
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
12
|
-
background: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
13
|
-
cursor: 'not-allowed';
|
|
14
|
-
}
|
|
15
|
-
.resolver-custom-is-disabled {
|
|
16
|
-
background: var(--el-disabled-bg-color);
|
|
17
|
-
}
|
|
18
|
-
.cursor {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
}
|