resolver-egretimp-plus 0.1.36 → 0.1.37

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.36",
3
+ "version": "0.1.37",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <component :is="component" class="standard-wrap" v-bind="{...attrs, ...componentProps}">
3
3
  <ElCollapse v-bind="{...collapseProps}" :class="collapseClass" v-model="activeNames">
4
- <ElCollapseItem v-bind="collapseItemProps" :class="{'no-collpase': noCollpase, 'hidden-head': hiddenHead}">
4
+ <ElCollapseItem v-bind="collapseItemProps" :class="collapseItemClass">
5
5
  <template #title>
6
6
  <div class="collapge-slot-title">
7
7
  <ElRow align="middle" :class="{'hidden-head-flag': hiddenHeadFlag}">
@@ -36,6 +36,10 @@ const props = defineProps({
36
36
  ...ElCollapse.props,
37
37
  ...ElCollapseItem.props,
38
38
  ...commonPropsType,
39
+ showSegment: {
40
+ type: String,
41
+ default: '1'
42
+ }
39
43
  })
40
44
  // debugger
41
45
 
@@ -62,6 +66,10 @@ const hiddenHead = computed(() => {
62
66
  const hiddenHeadFlag = computed(() => {
63
67
  return props?.config?.hiddenHeadFlag == '1'
64
68
  })
69
+ // 是否显示头分割线
70
+ const showSegment = computed(() => {
71
+ return props?.showSegment == '1'
72
+ })
65
73
 
66
74
  const collapseClass = computed(() => {
67
75
  return {
@@ -70,6 +78,14 @@ const collapseClass = computed(() => {
70
78
  }
71
79
  })
72
80
 
81
+ const collapseItemClass = computed(() => {
82
+ return {
83
+ 'no-collpase': noCollpase.value,
84
+ 'hidden-head': hiddenHead.value,
85
+ 'show-segment': showSegment.value
86
+ }
87
+ })
88
+
73
89
  const collapseItemProps = computed(() => {
74
90
  const propsObj = Object.keys(ElCollapseItem.props).reduce((ret, key) => {
75
91
  ret[key] = props[key]
@@ -4,7 +4,7 @@ import ElTable, { ElTableColumn } from '../table'
4
4
  import Renderer from '../../renderer.jsx'
5
5
  import { computed, inject, watch, h, ref, reactive } from 'vue'
6
6
  import { commonPropsType, TABLE_COLUMN_NOT_RENDER_META_TYPE, DISPLAY_SHOW, compareComponet, isPlainObject, hasOwn, cloneDeep, isPromise, isPlainColumn, generateUniqueId, calcDisable, camelize, capitalize, DISPLAY_HIDDEN, definePrivatelyProp } from '../../utils/index.js'
7
- import '../styles/CustomComponenTable.scss'
7
+ // import '../styles/CustomComponenTable.scss'
8
8
 
9
9
  export default {
10
10
  inheritAttrs: false,
@@ -92,6 +92,24 @@
92
92
  display: none;
93
93
  }
94
94
  }
95
+
96
+ .show-segment {
97
+ .el-collapse-item__header {
98
+ position: relative;
99
+ &::after {
100
+ display: block;
101
+ content: '';
102
+ position: absolute;
103
+ width: calc(100% + 32px);
104
+ border-bottom: 1px solid #DEE0E3;
105
+ left: -16px;
106
+ bottom: 0px;
107
+ }
108
+ }
109
+ .el-collapse-item__wrap {
110
+ margin-top: 16px;
111
+ }
112
+ }
95
113
  }
96
114
 
97
115
  .CustomComponentCollapse:has(+ .CustomComponentCollapse) {
@@ -9,3 +9,145 @@
9
9
  .el-table .cell {
10
10
  padding: 0 16px;
11
11
  }
12
+
13
+ .error-tip-block {
14
+ & + .el-form-item__error {
15
+ position: relative;
16
+ }
17
+ }
18
+ .custom-component-table {
19
+ --boder-radius: 4px;
20
+ border-radius: var(--boder-radius);
21
+ // width: 100%;
22
+ .el-table, &.el-table {
23
+ --el-table-header-bg-color: #f5f6f7;
24
+ --el-table-header-text-color: #646a73;
25
+ }
26
+ .el-table--border {
27
+ border: 1px solid var(--el-table-border-color);
28
+ border-radius: var(--boder-radius);
29
+ &::before {
30
+ width: 0px;
31
+ // border-left: 1px solid var(--el-table-border-color);
32
+ // border-radius: var(--boder-radius);
33
+ // background-color: transparent;
34
+ }
35
+ &::after {
36
+ width: 0px;
37
+ // border-right: 1px solid var(--el-table-border-color);
38
+ // border-radius: var(--boder-radius);
39
+ // background-color: transparent;
40
+ }
41
+ .el-table__inner-wrapper {
42
+ &::before {
43
+ height: 0px;
44
+ // border-bottom: 1px solid var(--el-table-border-color);
45
+ // border-radius: var(--boder-radius);
46
+ // background-color: transparent;
47
+ }
48
+ &::after {
49
+ height: 0px;
50
+ // border-top: 1px solid var(--el-table-border-color);
51
+ // border-radius: var(--boder-radius);
52
+ // background-color: transparent;
53
+ }
54
+ .el-table__border-left-patch {
55
+ display: none;
56
+ }
57
+ }
58
+ .el-table__cell:last-of-type {
59
+ border-right: none;
60
+ }
61
+ .el-table__body {
62
+ tbody {
63
+ tr:last-of-type {
64
+ .el-table__cell {
65
+ border-bottom: none;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ .el-table .el-table__cell {
72
+ padding: 4px 0;
73
+ }
74
+ .el-form-item {
75
+ margin-right: 0;
76
+ margin-bottom: 0;
77
+ }
78
+ thead th {
79
+ font-weight: 400;
80
+ height: 40px;
81
+ .head-span {
82
+ text-overflow: ellipsis;
83
+ overflow: hidden;
84
+ white-space: nowrap;
85
+ }
86
+ }
87
+ th.el-table__cell.is-leaf {
88
+ border-bottom: none;
89
+ }
90
+ td.el-table__cell {
91
+ color: var(--el-input-text-color,var(--el-text-color-regular));
92
+ }
93
+ .el-table__cell {
94
+ height: 40px;
95
+ .el-date-editor, .el-date-editor--date{
96
+ .el-input__wrapper{
97
+ padding: 0 8px;
98
+ }
99
+ }
100
+ .el-input {
101
+ display: flex;
102
+ }
103
+ .el-input {
104
+ --el-input-height: 24px;
105
+ }
106
+ .el-form-item__label {
107
+ height: 24px;
108
+ }
109
+ .el-form-item__content {
110
+ min-height: 24px;
111
+ }
112
+ .el-select__wrapper, .el-input__wrapper {
113
+ box-shadow: none;
114
+ border-bottom: 1px solid var(--el-border-color);
115
+ padding: 0;
116
+ border-radius: 0;
117
+ background-color: transparent;
118
+ min-height: 24px;
119
+ &.is-focused {
120
+ border-color: var(--el-color-primary);
121
+ }
122
+ &.is-focus {
123
+ border-color: var(--el-color-primary);
124
+ }
125
+ }
126
+ .is-error {
127
+ .el-select__wrapper, .el-input__wrapper {
128
+ box-shadow: none;
129
+ border-bottom: 1px solid var(--el-color-danger);
130
+ }
131
+ }
132
+ }
133
+ .cell {
134
+ // line-height: 16px;
135
+ }
136
+ .pagination-wrap {
137
+ display: flex;
138
+ }
139
+ .hidden-column {
140
+ border: none;
141
+ overflow: hidden;
142
+ // display: none;
143
+ }
144
+ .hidden-column + .el-table__cell {
145
+ // border: none;
146
+ }
147
+ .next-hidden-column.end-show-column {
148
+ border: none;
149
+ }
150
+ .clear-index {
151
+ z-index: unset;
152
+ }
153
+ }
@@ -7,6 +7,7 @@ export const MODE = {
7
7
  }
8
8
  export const ARG_FLAGS = {
9
9
  CURRENT_DATE: '_currentDate',
10
+ CURRENT_DATE_TIME: '_currentDateTime',
10
11
  REF_VAL: '_refVal'
11
12
  }
12
13
  export const VALUE_TYPES = {
@@ -19,8 +19,12 @@ export default function defaultVal(config) {
19
19
  } else if (/^{[\w\W]*}$/.test(configDefaultVal) || /^\[[\w\W]*\]$/.test(configDefaultVal)) {
20
20
  defaultVal = JSON.parse(configDefaultVal)
21
21
  } else {
22
- if (configDefaultVal === ARG_FLAGS.CURRENT_DATE || configDefaultVal === 'currentDate') {
23
- defaultVal = formatDate(new Date(), 'yyyy-MM-dd')
22
+ if (configDefaultVal === ARG_FLAGS.CURRENT_DATE || configDefaultVal === 'currentDate' || configDefaultVal === ARG_FLAGS.CURRENT_DATE_TIME) {
23
+ if (configDefaultVal === ARG_FLAGS.CURRENT_DATE_TIME) {
24
+ defaultVal = formatDate(new Date(), 'yyyy-MM-dd')
25
+ } else {
26
+ defaultVal = formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')
27
+ }
24
28
  } else if (['true', 'false'].includes(configDefaultVal)) {
25
29
  defaultVal = configDefaultVal == 'true' ? true : false
26
30
  } else {