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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.1.113",
3
+ "version": "0.1.114",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -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
- const validator = new AsyncValidator({
62
- [columnConfig.dynamicHireRelat]: rules
63
- })
64
-
65
- async function toValidate() {
66
- try {
67
- await validator.validate({[columnConfig.dynamicHireRelat]: row[columnConfig.metaCode]})
68
- } catch (error) {
69
- return new Promise((resolve, inject) => {
70
- setTimeout(() => {
71
- let failPageNum = 0
72
- if (index) {
73
- failPageNum = parseInt((index + 1) / page.pageSize)
74
- if ((index + 1) % page.pageSize) {
75
- failPageNum ++
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
- page.pageNum = failPageNum
79
- inject({})
80
- });
81
- })
80
+ page.pageNum = failPageNum
81
+ inject({})
82
+ });
83
+ })
84
+ }
85
+ return true
82
86
  }
83
- return true
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 {
@@ -24,3 +24,7 @@
24
24
  text-overflow: ellipsis;
25
25
  white-space: nowrap;
26
26
  }
27
+
28
+ .cursor {
29
+ cursor: pointer;
30
+ }
@@ -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
- }