centaline-data-driven 1.5.49 → 1.5.51
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/release-log.md +35 -0
- package/src/assets/icontext.png +0 -0
- package/src/centaline/css/common.css +9 -4
- package/src/centaline/dynamicFile/src/dynamicFile.vue +1 -1
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +2 -2
- package/src/centaline/dynamicL/src/dynamicL.vue +7 -3
- package/src/centaline/dynamicMo/src/dynamicMo.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +3 -0
- package/src/centaline/dynamicSo/src/dynamicSo.vue +1 -1
- package/src/centaline/dynamicT/src/dynamicT.vue +40 -6
- package/src/centaline/dynamicTags/src/dynamicTags.vue +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +385 -371
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## v1.5.51
|
|
2
|
+
2023-08-18
|
|
3
|
+
|
|
4
|
+
bug修复
|
|
5
|
+
|
|
6
|
+
文件上传 官方上传方式,显示逻辑fileName改成url判断
|
|
7
|
+
|
|
8
|
+
优化
|
|
9
|
+
|
|
10
|
+
文本域输入被挡优化
|
|
11
|
+
|
|
12
|
+
文本文字与数字对齐
|
|
13
|
+
|
|
14
|
+
输入框左边距调整
|
|
15
|
+
|
|
16
|
+
## v1.5.50
|
|
17
|
+
2023-08-15
|
|
18
|
+
|
|
19
|
+
bug修复
|
|
20
|
+
|
|
21
|
+
表格计算高度没有判断对象是否存在
|
|
22
|
+
|
|
23
|
+
## v1.5.49
|
|
24
|
+
2023-08-15
|
|
25
|
+
|
|
26
|
+
优化
|
|
27
|
+
|
|
28
|
+
文本框支持高级查询
|
|
29
|
+
|
|
30
|
+
错误提示时controlLabel有值就用controlLabel
|
|
31
|
+
|
|
32
|
+
bug修复
|
|
33
|
+
|
|
34
|
+
表格计算高度没有判断对象是否存在
|
|
35
|
+
|
|
1
36
|
## v1.5.48
|
|
2
37
|
2023-08-10
|
|
3
38
|
|
|
Binary file
|
|
@@ -44,7 +44,7 @@ html {
|
|
|
44
44
|
font-size: inherit;
|
|
45
45
|
line-height: 26px;
|
|
46
46
|
outline: 0;
|
|
47
|
-
padding: 0 15px;
|
|
47
|
+
padding: 0 15px 0 5px;
|
|
48
48
|
padding-right: 30px;
|
|
49
49
|
-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
50
50
|
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
@@ -176,7 +176,7 @@ html {
|
|
|
176
176
|
background-color: #ed745f;
|
|
177
177
|
}
|
|
178
178
|
.ct-dialog_content .ct-dialog_header span {
|
|
179
|
-
display: inline-block;
|
|
179
|
+
display: inline-block;
|
|
180
180
|
height: 20px;
|
|
181
181
|
font-size: 18px;
|
|
182
182
|
color: #fff;
|
|
@@ -285,7 +285,7 @@ html {
|
|
|
285
285
|
font-size: inherit;
|
|
286
286
|
line-height: 26px;
|
|
287
287
|
outline: 0;
|
|
288
|
-
padding: 0 15px;
|
|
288
|
+
padding: 0 15px 0 5px;
|
|
289
289
|
padding-right: 30px;
|
|
290
290
|
-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
291
291
|
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
@@ -401,6 +401,11 @@ html {
|
|
|
401
401
|
.el-textarea .el-input__count {
|
|
402
402
|
/* right: 24px; */
|
|
403
403
|
}
|
|
404
|
+
.textarea-box .el-textarea .el-textarea__inner,.textarea-box .el-input .el-input__inner{
|
|
405
|
+
padding: 5px 15px 5px 5px;
|
|
406
|
+
border: 0;
|
|
407
|
+
resize: none;
|
|
408
|
+
}
|
|
404
409
|
.ct-flex-div-input input.el-input__inner {
|
|
405
410
|
/* width: 100%; */
|
|
406
411
|
}
|
|
@@ -612,7 +617,7 @@ html {
|
|
|
612
617
|
right: 3px;
|
|
613
618
|
}
|
|
614
619
|
.ct-unitnameLable {
|
|
615
|
-
line-height:
|
|
620
|
+
/* line-height: 21px; */
|
|
616
621
|
}
|
|
617
622
|
.ct-lable {
|
|
618
623
|
height: 26px;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<div slot="file" slot-scope="{ file }" :title="file.fileName">
|
|
120
120
|
<div class="cover-list-item">
|
|
121
121
|
<div @click="viewerfile(file)">
|
|
122
|
-
<el-image fit="fill" :src="file.
|
|
122
|
+
<el-image fit="fill" :src="file.url?file.url:file.mediaUrl?file.url:require('../../../assets/blank.png')" style="width: 100px; height: 100px" :z-index="previewZIndex" >
|
|
123
123
|
</el-image></div>
|
|
124
124
|
<span class="cover-list-item-span-Default" v-if="(model.lock&&file.flagDefault)||(model.rightDefault&&model.rightDefault==1&&file.mediaTypeID==2)">
|
|
125
125
|
<i>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div inputNumbe-line-feed" :class="[model.labelClass]">
|
|
8
8
|
{{model.label}}
|
|
9
9
|
</div>
|
|
10
|
-
<div style="
|
|
10
|
+
<div style="flex:1" v-bind="model.attrs" class="el-date-editor ct-input__inner">
|
|
11
11
|
<input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
|
|
12
12
|
v-model="model.value" @change="onChangeHandler($event)" @input="onInputHandler($event);isShowClear()"
|
|
13
13
|
@blur="onBlurHandler($event)"
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
display: inline-block;
|
|
153
153
|
height: 26px;
|
|
154
154
|
outline: 0;
|
|
155
|
-
padding: 0 15px;
|
|
155
|
+
padding: 0 15px 0 5px;
|
|
156
156
|
-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
157
157
|
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
158
158
|
width: 100%;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<span slot="suffix" v-if="model.unitName" class="ct-unitname">{{model.unitName}}</span>
|
|
12
12
|
</el-input>
|
|
13
13
|
<span v-if="model.sufLabel" style="width:auto" class="spanMessage">{{model.sufLabel}}</span> -->
|
|
14
|
-
<div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput">
|
|
14
|
+
<div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify">
|
|
15
15
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend">
|
|
16
16
|
<div slot="prepend" class="" :class="[model.labelClass]">
|
|
17
17
|
{{model.label}}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<span class="el-select__tags-text">{{item}}</span>
|
|
23
23
|
</span>
|
|
24
24
|
</span>
|
|
25
|
-
<div v-else style="display:
|
|
25
|
+
<div v-else style="display:flex">
|
|
26
26
|
<!-- --计算占用宽度-- -->
|
|
27
27
|
<div style="position: relative" v-if="isShowComput">
|
|
28
28
|
<label class="ct-lable" style="position: absolute; left: -10000px">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</label>
|
|
31
31
|
</div>
|
|
32
32
|
<!-- 展示 -->
|
|
33
|
-
<label class="ct-lable" :style="{ display: (model.labelValue ? '
|
|
33
|
+
<label class="ct-lable" :style="{ display: (model.labelValue ? 'flex' : '') }">
|
|
34
34
|
<el-tooltip placement="top" effect="light" :disabled="isShowTooltip">
|
|
35
35
|
<div slot="content" :style="{ 'width': (model.labelValue.length > 66 ? '400px' : 'auto') }">{{
|
|
36
36
|
model.labelValue
|
|
@@ -102,4 +102,8 @@
|
|
|
102
102
|
-webkit-line-clamp: 1;
|
|
103
103
|
word-break:break-all;
|
|
104
104
|
}
|
|
105
|
+
.text-justify{
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
105
109
|
</style>
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
font-size: inherit;
|
|
354
354
|
line-height: 26px;
|
|
355
355
|
outline: 0;
|
|
356
|
-
padding: 0 15px;
|
|
356
|
+
padding: 0 15px 0 5px;
|
|
357
357
|
padding-right: 30px;
|
|
358
358
|
-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
359
359
|
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
@@ -738,8 +738,11 @@ export default {
|
|
|
738
738
|
&& this.$parent.$parent
|
|
739
739
|
&& this.$parent.$parent.$parent
|
|
740
740
|
&& this.$parent.$parent.$parent.$children
|
|
741
|
+
&& this.$parent.$parent.$parent.$children.length > 0
|
|
741
742
|
&& this.$parent.$parent.$parent.$children[0]
|
|
742
743
|
&& this.$parent.$parent.$parent.$children[0].$el
|
|
744
|
+
&& this.$parent.$parent.$parent.$children[0].$el.classList
|
|
745
|
+
&& this.$parent.$parent.$parent.$children[0].$el.classList.length > 0
|
|
743
746
|
&& this.$parent.$parent.$parent.$children[0].$el.classList.contains('el-aside')) {
|
|
744
747
|
h9 = 4
|
|
745
748
|
}
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
font-size: inherit;
|
|
266
266
|
line-height: 26px;
|
|
267
267
|
outline: 0;
|
|
268
|
-
padding: 0 15px;
|
|
268
|
+
padding: 0 15px 0 5px;
|
|
269
269
|
padding-right: 30px;
|
|
270
270
|
-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
271
271
|
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
30
30
|
</span>
|
|
31
31
|
</span>
|
|
32
|
-
</el-input>
|
|
32
|
+
</el-input>
|
|
33
33
|
</el-popover>
|
|
34
34
|
|
|
35
|
-
<
|
|
35
|
+
<div v-else class="textarea-box" ref="input">
|
|
36
|
+
<el-input :title="model.lock?model.value:''" :type="model.rows==1 ? '':model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
|
|
36
37
|
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.forbiddenWords?'inputHighlights':'']"
|
|
37
|
-
:disabled="model.lock" :rows="model.rows"
|
|
38
|
-
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max"
|
|
38
|
+
:disabled="model.lock" :rows="model.rows"
|
|
39
|
+
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max"
|
|
39
40
|
@keyup.enter.native="search()" style="z-index: 3;background-color: transparent;">
|
|
40
41
|
<span slot="suffix" v-if="model.unitName" class="ct-unitname" :class="showClear?'unitName-20':'unitName-0'">{{model.unitName}}</span>
|
|
41
42
|
|
|
@@ -44,8 +45,12 @@
|
|
|
44
45
|
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
45
46
|
</span>
|
|
46
47
|
</span>
|
|
47
|
-
</el-input>
|
|
48
|
-
<span v-if="this.minText"
|
|
48
|
+
</el-input>
|
|
49
|
+
<span v-if="this.minText" class="textarea-tip">{{this.minText}}</span>
|
|
50
|
+
<span v-if="model.showWordLimit" class="textarea-count">{{model.value.length}}/{{ model.max }}</span>
|
|
51
|
+
<span v-if="!model.forbiddenWords" class="textarea-icon"></span>
|
|
52
|
+
</div>
|
|
53
|
+
<!-- <span v-if="this.minText" :style="{left: minTextLeft+'px'}" style="color: #909399;background: #FFF;position: absolute;font-size: 12px;bottom: 5px;z-index: 3;">{{this.minText}}</span> -->
|
|
49
54
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
50
55
|
<ctQuickInputSos v-if="!model.lock && model.paramName && !model.autoFill" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" :textValue="model.value" @click="quickSelect"></ctQuickInputSos>
|
|
51
56
|
|
|
@@ -57,6 +62,8 @@
|
|
|
57
62
|
</el-button>
|
|
58
63
|
</div>
|
|
59
64
|
</div>
|
|
65
|
+
|
|
66
|
+
|
|
60
67
|
<transition name="el-fade-in" class="ct-flex-div-span">
|
|
61
68
|
<span v-show="!valid" class="errorMessage" :class="{ 'errorMessageMarginLeft': model.inputType === 'textarea' }">
|
|
62
69
|
{{validMessage}}
|
|
@@ -292,4 +299,31 @@
|
|
|
292
299
|
.autoFill{
|
|
293
300
|
width: 100%;
|
|
294
301
|
}
|
|
302
|
+
.textarea-box{
|
|
303
|
+
border: 1px solid #dcdfe6;
|
|
304
|
+
width: 100%;
|
|
305
|
+
position: relative;
|
|
306
|
+
border-radius: 4px;
|
|
307
|
+
}
|
|
308
|
+
.textarea-box:active,.textarea-box:focus,.textarea-box:hover{
|
|
309
|
+
border-color: #ff5b5b !important;
|
|
310
|
+
}
|
|
311
|
+
.textarea-tip{
|
|
312
|
+
margin-left: 5px;
|
|
313
|
+
color: #606266;
|
|
314
|
+
}
|
|
315
|
+
.textarea-count{
|
|
316
|
+
position: absolute;
|
|
317
|
+
right: 10px;
|
|
318
|
+
}
|
|
319
|
+
.textarea-icon{
|
|
320
|
+
background: url('../../../assets/icontext.png')no-repeat;
|
|
321
|
+
background-size: 100% 100%;
|
|
322
|
+
width: 12px;
|
|
323
|
+
height: 12px;
|
|
324
|
+
display: inline-block;
|
|
325
|
+
position: absolute;
|
|
326
|
+
right: 0;
|
|
327
|
+
bottom: 0;
|
|
328
|
+
}
|
|
295
329
|
</style>
|