centaline-data-driven-v3 0.1.34 → 0.1.36
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/centaline-data-driven-v3.umd.js +67 -67
- package/package.json +1 -1
- package/src/assets/commonWeb.css +4 -4
- package/src/components/web/ComboBox.vue +7 -13
- package/src/components/web/Field.vue +6 -4
- package/src/components/web/Tree/Tree.vue +1 -1
- package/src/components/web/TreeList.vue +2 -2
- package/src/main.js +1 -1
package/package.json
CHANGED
package/src/assets/commonWeb.css
CHANGED
|
@@ -889,10 +889,6 @@ body {
|
|
|
889
889
|
.el-select__wrapper .el-select__selection {
|
|
890
890
|
flex-wrap: nowrap !important;
|
|
891
891
|
}
|
|
892
|
-
.el-select__wrapper .el-select__selection .tagMultiple{
|
|
893
|
-
display: flex;
|
|
894
|
-
margin-right: 20px;
|
|
895
|
-
}
|
|
896
892
|
|
|
897
893
|
.el-select__input-wrapper {
|
|
898
894
|
height: 22px;
|
|
@@ -1090,4 +1086,8 @@ body {
|
|
|
1090
1086
|
height: 26px;
|
|
1091
1087
|
}
|
|
1092
1088
|
|
|
1089
|
+
.ct-field .el-select__selected-item {
|
|
1090
|
+
align-items: center !important;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
1093
|
/*elementPlus样式重置结束*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:height="300" @click="clickHandler"
|
|
9
9
|
:class="[model.moreActionRouter ? 'selectmore' : '', open ? 'open' : '']"
|
|
10
10
|
:filter-method="debouncedRemoteMethod" @compositionstart="handleCompositionStart"
|
|
11
|
-
@compositionend="handleCompositionEnd"
|
|
11
|
+
@compositionend="handleCompositionEnd">
|
|
12
12
|
<template #default="{ item }">
|
|
13
13
|
<el-tooltip :disabled="!item.toolTip" :content="item.toolTip" placement="right">
|
|
14
14
|
<span v-html="item.displayName || item.name"></span>
|
|
@@ -19,14 +19,12 @@
|
|
|
19
19
|
<span>{{ model.prefix }}</span>
|
|
20
20
|
</template>
|
|
21
21
|
<template #tag>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</template>
|
|
29
|
-
</div>
|
|
22
|
+
<template v-for="(v, i) in model.labelValue" :key="i">
|
|
23
|
+
<el-tag class="ml-2" type="info" disable-transitions :closable="!v.locked && !model.locked"
|
|
24
|
+
:style="{ marginRight: i+1==model.labelValue.length ? '20px' : '' }"
|
|
25
|
+
@close="closeTag(v.code)">
|
|
26
|
+
{{ v.name }}</el-tag>
|
|
27
|
+
</template>
|
|
30
28
|
</template>
|
|
31
29
|
</el-select-v2>
|
|
32
30
|
<template v-if="model.flagaFterText">
|
|
@@ -276,10 +274,6 @@ function closeTag(val) {
|
|
|
276
274
|
model.value.value.splice(model.value.value.indexOf(val), 1)
|
|
277
275
|
change(model.value.value)
|
|
278
276
|
}
|
|
279
|
-
const formatLabel = (option) => {
|
|
280
|
-
console.log('进入 formatter', option); // 测试是否触发
|
|
281
|
-
return option.name || option.label;
|
|
282
|
-
};
|
|
283
277
|
defineExpose({
|
|
284
278
|
model
|
|
285
279
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ct-field">
|
|
3
3
|
<div class="el-form-item el-form-item--small"
|
|
4
|
-
:class="[!model.valid ? 'is-error' : '', 'label-' + model.labelPlacement]">
|
|
4
|
+
:class="[!model.valid ? 'is-error' : '',model.isList?'': 'label-' + model.labelPlacement]">
|
|
5
5
|
|
|
6
6
|
<!-- 使用单一元素结构 -->
|
|
7
7
|
<template v-if="model.isList">
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
</slot>
|
|
15
15
|
</div>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</template>
|
|
16
|
+
<!-- <template v-else>
|
|
17
|
+
<div class="el-form-item__label" v-if="model.labelPlacement == '1'"></div>
|
|
18
|
+
</template> -->
|
|
19
19
|
|
|
20
20
|
<slot name="PreLabel">
|
|
21
21
|
<div v-if="model.preLabel1" class="preLabel" :style="model.isList ? 'white-space: nowrap' : ''">
|
|
@@ -94,7 +94,9 @@ const model = props.vmodel
|
|
|
94
94
|
flex-direction: column;
|
|
95
95
|
|
|
96
96
|
.el-form-item__label {
|
|
97
|
+
width: 100% !important;
|
|
97
98
|
justify-content: flex-start;
|
|
99
|
+
text-align: left;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
</style>
|
|
@@ -180,7 +180,6 @@ function SearchTree(m) {
|
|
|
180
180
|
//节点击点事件
|
|
181
181
|
function handleNodeClick(data, formType) {
|
|
182
182
|
closeMenu();
|
|
183
|
-
|
|
184
183
|
if (data && formType) {
|
|
185
184
|
refTree.value.setCurrentKey(data.code)
|
|
186
185
|
}
|
|
@@ -198,6 +197,7 @@ function handleNodeClick(data, formType) {
|
|
|
198
197
|
if (rowdata) {
|
|
199
198
|
newdata.rowRouter = rowdata
|
|
200
199
|
}
|
|
200
|
+
newdata.title = model.value.source?.content?.title || '';
|
|
201
201
|
emit('loaded', newdata);
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -65,7 +65,7 @@ const searchtreeHeight = ref(0)
|
|
|
65
65
|
const refleft = ref()
|
|
66
66
|
const reftree = ref()
|
|
67
67
|
|
|
68
|
-
const asideWidth = ref(Number(props.leftWidth ? props.leftWidth :
|
|
68
|
+
const asideWidth = ref(Number(props.leftWidth ? props.leftWidth : 300));
|
|
69
69
|
|
|
70
70
|
let isResizing = false;
|
|
71
71
|
let startX = 0;
|
|
@@ -105,7 +105,7 @@ function loaded(data) {
|
|
|
105
105
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
emit('loaded');
|
|
108
|
+
emit('loaded',data);
|
|
109
109
|
}
|
|
110
110
|
function setsearchtreeHeight() {
|
|
111
111
|
if (refleft.value) {
|
package/src/main.js
CHANGED
|
@@ -65,7 +65,7 @@ app.use(centaline, {
|
|
|
65
65
|
//获取请求头
|
|
66
66
|
getRequestHeaders: function () {
|
|
67
67
|
return {
|
|
68
|
-
authobject: '{EmpID:"
|
|
68
|
+
authobject: '{EmpID:"Token_2db5b0a6-7156-462c-bf29-53731a255b32",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_2db5b0a6-7156-462c-bf29-53731a255b32",Platform:"WEB"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
70
|
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
|
71
71
|
//authObject: '{EmpID:"Token_4e09499b-4b76-46df-9ce5-5498d48ed062",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4e09499b-4b76-46df-9ce5-5498d48ed062",Platform:"WEB"}',
|