cloud-web-corejs 1.0.54-dev.361 → 1.0.54-dev.363
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 +1 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +1 -2
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +1 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +60 -30
- package/src/index.js +14 -1
package/package.json
CHANGED
|
@@ -1521,9 +1521,8 @@ modules = {
|
|
|
1521
1521
|
this.title = fileStoreArea.storeAreaName;
|
|
1522
1522
|
let tabType = this.option.tabType;
|
|
1523
1523
|
if (tabType) {
|
|
1524
|
-
|
|
1524
|
+
this.showType = tabType === "table" ? 2 : 1;
|
|
1525
1525
|
}
|
|
1526
|
-
this.showType = showType;
|
|
1527
1526
|
this.$nextTick(() => {
|
|
1528
1527
|
treeScollx({ target: this, type: "default" });
|
|
1529
1528
|
this.treeFlag = true;
|
|
@@ -1 +1,200 @@
|
|
|
1
|
-
.vxe-table--cell-area
|
|
1
|
+
.vxe-table--cell-area {
|
|
2
|
+
position: initial;
|
|
3
|
+
}
|
|
4
|
+
.vxe-header--column.col--cell-active {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
.vxe-header--column.col--cell-active:not(.col--group)::after {
|
|
8
|
+
border-bottom: var(--vxe-ui-table-cell-area-status-border-width, 1px) solid
|
|
9
|
+
var(--vxe-ui-font-primary-color, #409eff);
|
|
10
|
+
}
|
|
11
|
+
.vxe-header--column.col--cell-active::after {
|
|
12
|
+
content: "";
|
|
13
|
+
position: absolute;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
background: var(
|
|
19
|
+
--vxe-ui-table-header-active-area-background-color,
|
|
20
|
+
rgba(64, 158, 255, 0.1)
|
|
21
|
+
);
|
|
22
|
+
-webkit-user-select: none;
|
|
23
|
+
-moz-user-select: none;
|
|
24
|
+
-ms-user-select: none;
|
|
25
|
+
user-select: none;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
}
|
|
30
|
+
.vxe-table .vxe-body--column.col--to-row {
|
|
31
|
+
background-color: var(--vxe-ui-table-header-background-color, #f8f8f9);
|
|
32
|
+
}
|
|
33
|
+
.vxe-table--fnr.vxe-modal--wrapper .vxe-modal--content {
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
.vxe-table--fnr.vxe-modal--wrapper .vxe-modal--content {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
}
|
|
40
|
+
.vxe-table--fnr .vxe-table--fnr-tabs {
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
border-bottom: 1px solid var(--vxe-ui-table-border-color, #e8eaec);
|
|
43
|
+
background-color: var(--vxe-ui-tabs-card-header-background-color);
|
|
44
|
+
-webkit-user-select: none;
|
|
45
|
+
-moz-user-select: none;
|
|
46
|
+
-ms-user-select: none;
|
|
47
|
+
user-select: none;
|
|
48
|
+
}
|
|
49
|
+
.vxe-table--fnr .vxe-table--fnr-tabs > span {
|
|
50
|
+
position: relative;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
padding: 0 1em;
|
|
53
|
+
height: 2.4em;
|
|
54
|
+
line-height: 2.4em;
|
|
55
|
+
text-align: center;
|
|
56
|
+
border-right: 1px solid var(--vxe-ui-table-border-color, #e8eaec);
|
|
57
|
+
background-color: var(--vxe-ui-table-header-background-color, #f8f8f8);
|
|
58
|
+
vertical-align: bottom;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
.vxe-table--fnr .vxe-table--fnr-tabs > span.is--active {
|
|
62
|
+
background-color: var(--vxe-ui-layout-background-color, #fff);
|
|
63
|
+
}
|
|
64
|
+
.vxe-table--fnr .vxe-table--fnr-tabs > span.is--active:after {
|
|
65
|
+
content: "";
|
|
66
|
+
position: absolute;
|
|
67
|
+
left: 0;
|
|
68
|
+
bottom: -1px;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 1px;
|
|
71
|
+
background-color: var(--vxe-ui-layout-background-color, #fff);
|
|
72
|
+
z-index: 1;
|
|
73
|
+
}
|
|
74
|
+
.vxe-table--fnr .vxe-table--fnr-body {
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
padding: 0.3em 1em 0 1em;
|
|
77
|
+
}
|
|
78
|
+
.vxe-table--fnr .vxe-table--fnr-form {
|
|
79
|
+
width: 100%;
|
|
80
|
+
border: 0;
|
|
81
|
+
border-spacing: 0;
|
|
82
|
+
border-collapse: separate;
|
|
83
|
+
}
|
|
84
|
+
.vxe-table--fnr .vxe-table--fnr-form tr {
|
|
85
|
+
visibility: hidden;
|
|
86
|
+
}
|
|
87
|
+
.vxe-table--fnr .vxe-table--fnr-form tr.is--visible {
|
|
88
|
+
visibility: visible;
|
|
89
|
+
}
|
|
90
|
+
.vxe-table--fnr .vxe-table--fnr-form-title {
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
padding-right: 0.8em;
|
|
93
|
+
}
|
|
94
|
+
.vxe-table--fnr .vxe-table--fnr-form-content,
|
|
95
|
+
.vxe-table--fnr .vxe-table--fnr-form-input {
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
98
|
+
.vxe-table--fnr .vxe-table--fnr-form-content {
|
|
99
|
+
padding: 0.3em 0;
|
|
100
|
+
}
|
|
101
|
+
.vxe-table--fnr .vxe-table--fnr-form-filter {
|
|
102
|
+
padding-left: 1.8em;
|
|
103
|
+
vertical-align: top;
|
|
104
|
+
}
|
|
105
|
+
.vxe-table--fnr .vxe-table--fnr-form-filter > .vxe-checkbox {
|
|
106
|
+
display: block;
|
|
107
|
+
margin: 0.6em 0 0 0;
|
|
108
|
+
}
|
|
109
|
+
.vxe-table--fnr .vxe-table--fnr-footer {
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
padding: 0.8em 1em;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
text-align: right;
|
|
114
|
+
}
|
|
115
|
+
.vxe-table--fnr .vxe-table--fnr-search {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
flex-grow: 1;
|
|
119
|
+
border-top: 1px solid var(--vxe-ui-table-border-color, #e8eaec);
|
|
120
|
+
border-bottom: 1px solid var(--vxe-ui-table-border-color, #e8eaec);
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
}
|
|
123
|
+
.vxe-table--fnr .vxe-table--fnr-search .vxe-list--virtual-wrapper,
|
|
124
|
+
.vxe-table--fnr .vxe-table--fnr-search .vxe-table--fnr-search-list {
|
|
125
|
+
height: 100%;
|
|
126
|
+
}
|
|
127
|
+
.vxe-table--fnr .vxe-table--fnr-search-header {
|
|
128
|
+
flex-shrink: 0;
|
|
129
|
+
height: 2.5em;
|
|
130
|
+
line-height: 2.5em;
|
|
131
|
+
padding: 0 0.8em;
|
|
132
|
+
font-weight: 700;
|
|
133
|
+
background-color: var(--vxe-ui-table-header-background-color, #f8f8f8);
|
|
134
|
+
}
|
|
135
|
+
.vxe-table--fnr .vxe-table--fnr-find-item,
|
|
136
|
+
.vxe-table--fnr .vxe-table--fnr-search-header {
|
|
137
|
+
display: flex;
|
|
138
|
+
}
|
|
139
|
+
.vxe-table--fnr .vxe-table--fnr-find-item > div,
|
|
140
|
+
.vxe-table--fnr .vxe-table--fnr-search-header > div {
|
|
141
|
+
-webkit-user-select: none;
|
|
142
|
+
-moz-user-select: none;
|
|
143
|
+
-ms-user-select: none;
|
|
144
|
+
user-select: none;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
}
|
|
149
|
+
.vxe-table--fnr .vxe-table--fnr-find-item > div:nth-child(1),
|
|
150
|
+
.vxe-table--fnr .vxe-table--fnr-search-header > div:nth-child(1) {
|
|
151
|
+
width: 100px;
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
}
|
|
154
|
+
.vxe-table--fnr .vxe-table--fnr-find-item > div:nth-child(2),
|
|
155
|
+
.vxe-table--fnr .vxe-table--fnr-search-header > div:nth-child(2) {
|
|
156
|
+
width: 160px;
|
|
157
|
+
flex-shrink: 0;
|
|
158
|
+
}
|
|
159
|
+
.vxe-table--fnr .vxe-table--fnr-find-item > div:nth-child(3),
|
|
160
|
+
.vxe-table--fnr .vxe-table--fnr-search-header > div:nth-child(3) {
|
|
161
|
+
flex-grow: 1;
|
|
162
|
+
}
|
|
163
|
+
.vxe-table--fnr .vxe-table--fnr-search-body {
|
|
164
|
+
flex-grow: 1;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
border-top: 1px solid var(--vxe-ui-table-border-color, #e8eaec);
|
|
167
|
+
border-bottom: 1px solid var(--vxe-ui-table-border-color, #e8eaec);
|
|
168
|
+
}
|
|
169
|
+
.vxe-table--fnr .vxe-table--fnr-find-item {
|
|
170
|
+
height: 2em;
|
|
171
|
+
line-height: 2em;
|
|
172
|
+
padding: 0 0.8em;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
.vxe-table--fnr .vxe-table--fnr-find-item.is--active {
|
|
176
|
+
color: var(--vxe-ui-font-primary-color, #409eff);
|
|
177
|
+
background-color: var(--vxe-ui-table-row-current-background-color, #e6f7ff);
|
|
178
|
+
}
|
|
179
|
+
.vxe-table--fnr .vxe-table--fnr-find-item:hover.is--active {
|
|
180
|
+
background-color: var(
|
|
181
|
+
--vxe-ui-table-row-hover-current-background-color,
|
|
182
|
+
#d7effb
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
.vxe-table--fnr .vxe-table--fnr-find-item:hover > div {
|
|
186
|
+
text-decoration: underline;
|
|
187
|
+
}
|
|
188
|
+
.vxe-table--fnr .vxe-table--fnr-search-footer {
|
|
189
|
+
flex-shrink: 0;
|
|
190
|
+
height: 2em;
|
|
191
|
+
line-height: 2em;
|
|
192
|
+
padding: 0 0.8em;
|
|
193
|
+
visibility: hidden;
|
|
194
|
+
}
|
|
195
|
+
.vxe-table--fnr .vxe-table--fnr-search-footer.is--error {
|
|
196
|
+
color: var(--vxe-ui-status-error-color, #f56c6c);
|
|
197
|
+
}
|
|
198
|
+
.vxe-table--fnr .vxe-table--fnr-search-footer.is--visible {
|
|
199
|
+
visibility: visible;
|
|
200
|
+
}
|
|
@@ -1,27 +1,57 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<container-item-wrapper
|
|
2
|
+
<container-item-wrapper
|
|
3
|
+
:widget="widget"
|
|
4
|
+
:class="widget.options.isFullscreen ? 'full-height' : ''"
|
|
5
|
+
>
|
|
3
6
|
<div :key="widget.id" class="tab-container" v-show="!widget.options.hidden">
|
|
4
|
-
<el-tabs
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
<el-tabs
|
|
8
|
+
v-model="activeTabName"
|
|
9
|
+
:type="widget.displayType"
|
|
10
|
+
:ref="widget.id"
|
|
11
|
+
:class="[customClass, widget.options.tabClass]"
|
|
12
|
+
:style="{
|
|
13
|
+
height: widget.options.isFullscreen ? '' : widget.options.height || '300px',
|
|
14
|
+
}"
|
|
15
|
+
>
|
|
16
|
+
<el-tab-pane
|
|
17
|
+
v-for="(tab, index) in visibleTabs"
|
|
18
|
+
:key="index"
|
|
19
|
+
:label="getI18nLabel(tab.options.label)"
|
|
20
|
+
:disabled="tab.options.disabled"
|
|
21
|
+
:name="tab.options.name"
|
|
22
|
+
>
|
|
9
23
|
<template v-for="(subWidget, swIdx) in tab.widgetList">
|
|
10
24
|
<template v-if="'container' === subWidget.category">
|
|
11
|
-
<component
|
|
12
|
-
|
|
25
|
+
<component
|
|
26
|
+
:is="subWidget.type + '-item'"
|
|
27
|
+
:widget="subWidget"
|
|
28
|
+
:key="swIdx"
|
|
29
|
+
:parent-list="tab.widgetList"
|
|
30
|
+
:index-of-parent-list="swIdx"
|
|
31
|
+
:parent-widget="widget"
|
|
32
|
+
:tableParam="tableParam"
|
|
33
|
+
:formItemProp="formItemProp"
|
|
34
|
+
>
|
|
13
35
|
<!-- 递归传递插槽!!! -->
|
|
14
36
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
15
|
-
<slot :name="slot" v-bind="scope"/>
|
|
37
|
+
<slot :name="slot" v-bind="scope" />
|
|
16
38
|
</template>
|
|
17
39
|
</component>
|
|
18
40
|
</template>
|
|
19
41
|
<template v-else>
|
|
20
|
-
<component
|
|
21
|
-
|
|
42
|
+
<component
|
|
43
|
+
:is="subWidget.type + '-widget'"
|
|
44
|
+
:field="subWidget"
|
|
45
|
+
:key="swIdx"
|
|
46
|
+
:parent-list="tab.widgetList"
|
|
47
|
+
:index-of-parent-list="swIdx"
|
|
48
|
+
:parent-widget="widget"
|
|
49
|
+
:tableParam="tableParam"
|
|
50
|
+
:formItemProp="formItemProp"
|
|
51
|
+
>
|
|
22
52
|
<!-- 递归传递插槽!!! -->
|
|
23
53
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
24
|
-
<slot :name="slot" v-bind="scope"/>
|
|
54
|
+
<slot :name="slot" v-bind="scope" />
|
|
25
55
|
</template>
|
|
26
56
|
</component>
|
|
27
57
|
</template>
|
|
@@ -33,36 +63,36 @@
|
|
|
33
63
|
</template>
|
|
34
64
|
|
|
35
65
|
<script>
|
|
36
|
-
import emitter from
|
|
37
|
-
import i18n from
|
|
38
|
-
import refMixin from
|
|
39
|
-
import ContainerItemWrapper from
|
|
40
|
-
import containerItemMixin from
|
|
41
|
-
import FieldComponents from
|
|
66
|
+
import emitter from "../../../../components/xform/utils/emitter";
|
|
67
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
|
68
|
+
import refMixin from "../../../../components/xform/form-render/refMixin";
|
|
69
|
+
import ContainerItemWrapper from "./container-item-wrapper";
|
|
70
|
+
import containerItemMixin from "./containerItemMixin";
|
|
71
|
+
import FieldComponents from "../../../../components/xform/form-designer/form-widget/field-widget/index";
|
|
42
72
|
|
|
43
73
|
export default {
|
|
44
|
-
name:
|
|
45
|
-
componentName:
|
|
74
|
+
name: "tab-item",
|
|
75
|
+
componentName: "ContainerItem",
|
|
46
76
|
mixins: [emitter, i18n, refMixin, containerItemMixin],
|
|
47
77
|
components: {
|
|
48
78
|
ContainerItemWrapper,
|
|
49
|
-
...FieldComponents
|
|
79
|
+
...FieldComponents,
|
|
50
80
|
},
|
|
51
81
|
props: {
|
|
52
|
-
widget: Object
|
|
82
|
+
widget: Object,
|
|
53
83
|
},
|
|
54
|
-
inject: [
|
|
84
|
+
inject: ["refList", "sfRefList", "globalModel"],
|
|
55
85
|
data() {
|
|
56
86
|
return {
|
|
57
|
-
activeTabName:
|
|
87
|
+
activeTabName: "",
|
|
58
88
|
};
|
|
59
89
|
},
|
|
60
90
|
computed: {
|
|
61
91
|
visibleTabs() {
|
|
62
|
-
return this.widget.tabs.filter(tp => {
|
|
92
|
+
return this.widget.tabs.filter((tp) => {
|
|
63
93
|
return !tp.options.hidden;
|
|
64
94
|
});
|
|
65
|
-
}
|
|
95
|
+
},
|
|
66
96
|
},
|
|
67
97
|
created() {
|
|
68
98
|
this.initRefList();
|
|
@@ -75,8 +105,8 @@ export default {
|
|
|
75
105
|
},
|
|
76
106
|
methods: {
|
|
77
107
|
initActiveTab() {
|
|
78
|
-
if (this.widget.type ===
|
|
79
|
-
let activePanes = this.widget.tabs.filter(tp => {
|
|
108
|
+
if (this.widget.type === "tab" && this.widget.tabs.length > 0) {
|
|
109
|
+
let activePanes = this.widget.tabs.filter((tp) => {
|
|
80
110
|
return tp.options.active === true;
|
|
81
111
|
});
|
|
82
112
|
if (activePanes.length > 0) {
|
|
@@ -85,8 +115,8 @@ export default {
|
|
|
85
115
|
this.activeTabName = this.widget.tabs[0].options.name;
|
|
86
116
|
}
|
|
87
117
|
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
118
|
+
},
|
|
119
|
+
},
|
|
90
120
|
};
|
|
91
121
|
</script>
|
|
92
122
|
|
package/src/index.js
CHANGED
|
@@ -25,9 +25,22 @@ import VXETable from 'vxe-table';
|
|
|
25
25
|
import 'vxe-table/lib/style.css';
|
|
26
26
|
|
|
27
27
|
// 引入扩展插件
|
|
28
|
-
import '@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js'
|
|
28
|
+
/* import '@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js'
|
|
29
29
|
import '@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css'
|
|
30
30
|
|
|
31
|
+
// 设置授权信息
|
|
32
|
+
VXETable.setup({
|
|
33
|
+
// showAuthLog: true, // 是否在控制台显示授权信息,专业版支持关闭
|
|
34
|
+
// authId: 'gbeumewkoyt2rhf9', // 获取授权后在官网登录后进入“用户中心”查看
|
|
35
|
+
authId: 'gbeumewkoyt2rhft', // 获取授权后在官网登录后进入“用户中心”查看
|
|
36
|
+
// onAuth (e) {
|
|
37
|
+
// // 打印授权状态
|
|
38
|
+
// console.log(e)
|
|
39
|
+
// }
|
|
40
|
+
}) */
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
31
44
|
import Vab from '@base/utils/vab';
|
|
32
45
|
|
|
33
46
|
Vue.use(Vab);
|