bri-components 1.1.2 → 1.1.3
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/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/10.bri-components.min.js +1 -0
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -1
- package/lib/8.bri-components.min.js +1 -1
- package/lib/9.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/package.json +1 -1
- package/src/components/controls/base/DshCascader.vue +14 -11
- package/src/components/controls/base/DshCascaderMultiple.vue +13 -4
- package/src/components/controls/base/DshCheckbox.vue +16 -19
- package/src/components/controls/base/DshCoordinates.vue +9 -8
- package/src/components/controls/base/DshDate.vue +24 -37
- package/src/components/controls/base/DshDaterange.vue +3 -1
- package/src/components/controls/base/DshEditor.vue +72 -59
- package/src/components/controls/base/DshInput.vue +66 -59
- package/src/components/controls/base/DshNumber/BriInputNumber/BriInputNumber.vue +1 -1
- package/src/components/controls/base/DshNumber/DshNumber.vue +50 -48
- package/src/components/controls/base/DshNumberange.vue +11 -21
- package/src/components/controls/base/DshSelect.vue +12 -16
- package/src/components/controls/base/YSerialNumber.vue +10 -3
- package/src/components/controls/base/ZUpload/index.vue +16 -12
- package/src/components/controls/base/ZUpload/upload-list.vue +20 -13
- package/src/components/controls/base/ZUpload/uploadMixin.js +5 -1
- package/src/components/controls/base/textMultiple/DshTextMultiple.vue +13 -5
- package/src/components/controls/base/textMultiple/MultipleInput.vue +5 -5
- package/src/components/controls/controlMap.js +6 -4
- package/src/components/controls/controlMixin.js +36 -26
- package/src/components/controls/controlShow.vue +44 -0
- package/src/components/controls/{base → senior}/BriLabels.vue +7 -12
- package/src/components/controls/{base → senior}/DshPackage.vue +6 -25
- package/src/components/controls/senior/cascaderTable.vue +52 -51
- package/src/components/controls/senior/flatTable.vue +20 -17
- package/src/components/controls/{base → special}/DshBack.vue +4 -4
- package/src/components/controls/{base → special}/DshUndeveloped.vue +3 -1
- package/src/components/form/DshAdvSearchForm.vue +10 -1
- package/src/components/form/DshForm.vue +10 -3
- package/src/components/list/BriFlatTable.vue +5 -5
- package/src/components/list/BriTable.vue +6 -8
- package/src/components/list/DshBox/DshCard.vue +2 -2
- package/src/components/list/DshBox/DshCrossTable.vue +4 -8
- package/src/components/list/DshCascaderTable.vue +1 -1
- package/src/components/small/DshControlDefine.vue +1 -1
- package/src/components/small/DshModal.vue +0 -134
- package/src/components/unit/DshFormItem.vue +7 -10
- package/src/components/unit/DshUnit.vue +1 -11
- package/src/components/unit/unitMixin.js +8 -5
- package/src/index.js +5 -10
- package/src/styles/common/control.less +49 -12
- package/src/styles/components/controls/BriLabels.less +4 -2
- package/src/styles/components/controls/DshCheckbox.less +45 -42
- package/src/styles/components/controls/DshCoordinates.less +24 -27
- package/src/styles/components/controls/DshDate.less +1 -52
- package/src/styles/components/controls/DshEditor.less +51 -34
- package/src/styles/components/controls/DshInput.less +13 -34
- package/src/styles/components/controls/DshNumber.less +33 -0
- package/src/styles/components/controls/DshNumberange.less +8 -3
- package/src/styles/components/controls/DshSelect.less +78 -92
- package/src/styles/components/controls/ZUpload.less +1 -2
- package/src/styles/components/controls/cascaderTable.less +10 -24
- package/src/styles/components/controls/controlShow.less +3 -1
- package/src/styles/components/controls/flatTable.less +10 -23
- package/src/styles/components/form/DshAdvSearchForm.less +0 -9
- package/src/styles/components/form/DshDefaultSearch.less +0 -20
- package/src/styles/components/index.less +2 -1
- package/src/styles/components/other/InfoCascader.less +4 -4
- package/src/styles/components/small/DshControlDefine.less +4 -7
- package/src/styles/components/small/DshDropdown.less +1 -0
- package/src/styles/components/small/DshModal.less +207 -0
- package/src/styles/components/unit/DshFormItem.less +2 -0
- package/src/styles/reset.less +14 -0
- package/src/utils/table.js +3 -3
- package/src/components/controls/base/DshLabels.vue +0 -309
- package/src/components/controls/base/controlShow.vue +0 -52
- package/src/styles/components/controls/DshLabels.less +0 -187
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
class="extra-dynamic"
|
|
104
104
|
:value="conditionItem"
|
|
105
105
|
:propsObj="parameterPropsObj"
|
|
106
|
-
@change="
|
|
106
|
+
@change="parameterChange(conditionItem, arguments)"
|
|
107
107
|
></dsh-select>
|
|
108
108
|
|
|
109
109
|
<!-- operators 筛选条件 -->
|
|
@@ -328,6 +328,15 @@
|
|
|
328
328
|
|
|
329
329
|
this.change(conditionItem);
|
|
330
330
|
},
|
|
331
|
+
// 动态文本和固定文本切换类型
|
|
332
|
+
parameterChange (conditionItem) {
|
|
333
|
+
if (conditionItem.parameterType === "fixedText") {
|
|
334
|
+
conditionItem.fieldParams = [];
|
|
335
|
+
} else if (conditionItem.parameterType === "dynamicText") {
|
|
336
|
+
conditionItem.fieldValue = [];
|
|
337
|
+
}
|
|
338
|
+
this.change();
|
|
339
|
+
},
|
|
331
340
|
// 发生改动
|
|
332
341
|
change (conditionItem) {
|
|
333
342
|
const advSearchObj = {
|
|
@@ -110,15 +110,19 @@
|
|
|
110
110
|
return [];
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
allFormList: {
|
|
115
115
|
type: Array,
|
|
116
116
|
default () {
|
|
117
117
|
return [];
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
changedFields:
|
|
121
|
-
|
|
120
|
+
changedFields: {
|
|
121
|
+
type: Array,
|
|
122
|
+
default () {
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
},
|
|
122
126
|
height: [String, Number],
|
|
123
127
|
rowStyle: {
|
|
124
128
|
type: Object,
|
|
@@ -133,6 +137,9 @@
|
|
|
133
137
|
}
|
|
134
138
|
},
|
|
135
139
|
formControlClass: String,
|
|
140
|
+
|
|
141
|
+
/* 本组件使用的 */
|
|
142
|
+
monitorFormList: Array,
|
|
136
143
|
showRules: {
|
|
137
144
|
type: Boolean,
|
|
138
145
|
default: true
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
scopedSlots: {
|
|
200
200
|
default: props => h("dsh-unit", {
|
|
201
201
|
props: {
|
|
202
|
-
|
|
202
|
+
canEdit: this.getUnitCanEdit(column, row),
|
|
203
203
|
formData: row,
|
|
204
204
|
formItem: this.resetCol(item),
|
|
205
205
|
rowIndex: rowIndex,
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
})
|
|
215
215
|
: h("dsh-unit", {
|
|
216
216
|
props: {
|
|
217
|
-
|
|
217
|
+
canEdit: this.getUnitCanEdit(column, row),
|
|
218
218
|
formData: row,
|
|
219
219
|
formItem: this.resetCol(item),
|
|
220
220
|
rowIndex: rowIndex,
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
},
|
|
268
268
|
on: {
|
|
269
269
|
click: (operationItem) => {
|
|
270
|
-
this.$dispatchEvent(operationItem, params.row, params.
|
|
270
|
+
this.$dispatchEvent(operationItem, params.row, params.rowIndex, this.listData);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
});
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
|
|
379
379
|
/* --------------- 工具方法 ------------- */
|
|
380
380
|
resetCol (col) {
|
|
381
|
-
let
|
|
381
|
+
let resetMap = {
|
|
382
382
|
select: {
|
|
383
383
|
_optionKind: "dropdown"
|
|
384
384
|
},
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
};
|
|
389
389
|
return {
|
|
390
390
|
...col,
|
|
391
|
-
...(
|
|
391
|
+
...(resetMap[col._type] || {}),
|
|
392
392
|
isShare: this.isShare
|
|
393
393
|
};
|
|
394
394
|
},
|
|
@@ -34,12 +34,7 @@
|
|
|
34
34
|
></ve-table>
|
|
35
35
|
|
|
36
36
|
<!-- loading -->
|
|
37
|
-
<
|
|
38
|
-
v-if="isLoading"
|
|
39
|
-
class="bri-table-empty bri-table-loading"
|
|
40
|
-
>
|
|
41
|
-
<slot name="loading">正在加载中,请稍后...</slot>
|
|
42
|
-
</div>
|
|
37
|
+
<ZLoading v-if="isLoading" />
|
|
43
38
|
<!-- empty -->
|
|
44
39
|
<div
|
|
45
40
|
v-else-if="!data.length"
|
|
@@ -123,10 +118,12 @@
|
|
|
123
118
|
// 自定义表格事件,也可配置鼠标事件
|
|
124
119
|
eventCustomOption () {
|
|
125
120
|
return {
|
|
126
|
-
|
|
121
|
+
bodyCellEvents: ({ row, column, rowIndex }) => {
|
|
127
122
|
return {
|
|
128
123
|
click: (event) => {
|
|
129
|
-
|
|
124
|
+
if (!["checkbox"].includes(column.type)) {
|
|
125
|
+
this.$emit("click-row", row, rowIndex, event);
|
|
126
|
+
}
|
|
130
127
|
},
|
|
131
128
|
dblclick: (event) => {
|
|
132
129
|
this.$emit("db-click-row", row, rowIndex, event);
|
|
@@ -139,6 +136,7 @@
|
|
|
139
136
|
// 全选配置项
|
|
140
137
|
checkboxOption () {
|
|
141
138
|
return {
|
|
139
|
+
selectedRowKeys: [],
|
|
142
140
|
// 行选择改变事件
|
|
143
141
|
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
|
|
144
142
|
this.$emit(
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
<!-- 右 val -->
|
|
62
62
|
<div class="unit-value dsh-ellipsis">
|
|
63
63
|
<dsh-td-render
|
|
64
|
-
v-if="colItem.
|
|
64
|
+
v-if="colItem.renderBodyCell"
|
|
65
65
|
:row="dataItem"
|
|
66
66
|
:column="colItem"
|
|
67
67
|
:index="0"
|
|
68
|
-
:render="colItem.
|
|
68
|
+
:render="colItem.renderBodyCell"
|
|
69
69
|
></dsh-td-render>
|
|
70
70
|
|
|
71
71
|
<div
|
|
@@ -273,13 +273,13 @@
|
|
|
273
273
|
@click="clickRow(dataItem, dataIndex)"
|
|
274
274
|
>
|
|
275
275
|
<div
|
|
276
|
-
v-if="colItem.
|
|
276
|
+
v-if="colItem.renderBodyCell"
|
|
277
277
|
class="td-content"
|
|
278
278
|
>
|
|
279
279
|
<dsh-td-render
|
|
280
280
|
:row="dataItem"
|
|
281
281
|
:index="dataIndex"
|
|
282
|
-
:render="colItem.
|
|
282
|
+
:render="colItem.renderBodyCell"
|
|
283
283
|
></dsh-td-render>
|
|
284
284
|
</div>
|
|
285
285
|
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
<dsh-td-render
|
|
324
324
|
:row="dataItem"
|
|
325
325
|
:index="dataIndex"
|
|
326
|
-
:render="operationCol.
|
|
326
|
+
:render="operationCol.renderBodyCell"
|
|
327
327
|
></dsh-td-render>
|
|
328
328
|
</div>
|
|
329
329
|
</td>
|
|
@@ -413,11 +413,7 @@
|
|
|
413
413
|
_name: "操作",
|
|
414
414
|
type: "expend",
|
|
415
415
|
width: 150,
|
|
416
|
-
|
|
417
|
-
columnAlign: "center",
|
|
418
|
-
componentName: "dsh-td-render",
|
|
419
|
-
isFrozenRight: true,
|
|
420
|
-
render: (h, params) => {
|
|
416
|
+
renderBodyCell: (params, h) => {
|
|
421
417
|
return this.operationList.length < 3
|
|
422
418
|
? h("dsh-buttons", {
|
|
423
419
|
props: {
|
|
@@ -143,137 +143,3 @@
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
</script>
|
|
146
|
-
|
|
147
|
-
<style lang="less">
|
|
148
|
-
.DshModal {
|
|
149
|
-
&-header {
|
|
150
|
-
width: 100%;
|
|
151
|
-
height: 100%;
|
|
152
|
-
}
|
|
153
|
-
&-close {
|
|
154
|
-
padding: 2px;
|
|
155
|
-
position: absolute;
|
|
156
|
-
top: 10px;
|
|
157
|
-
right: 10px;
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&-default,
|
|
162
|
-
&-middle,
|
|
163
|
-
&-large,
|
|
164
|
-
&-small {
|
|
165
|
-
.ivu-modal-wrap {
|
|
166
|
-
.ivu-modal {
|
|
167
|
-
margin: auto;
|
|
168
|
-
position: absolute;
|
|
169
|
-
top: 0px;
|
|
170
|
-
bottom: 0px;
|
|
171
|
-
left: 0px;
|
|
172
|
-
right: 0px;
|
|
173
|
-
.ivu-modal-content {
|
|
174
|
-
width: 100%;
|
|
175
|
-
height: 100%;
|
|
176
|
-
display: flex;
|
|
177
|
-
flex-direction: column;
|
|
178
|
-
.ivu-modal-close {}
|
|
179
|
-
|
|
180
|
-
.ivu-modal-header {
|
|
181
|
-
width: 100%;
|
|
182
|
-
height: 44px;
|
|
183
|
-
padding: 10px 40px 10px 16px;
|
|
184
|
-
}
|
|
185
|
-
.ivu-modal-body {
|
|
186
|
-
width: 100%;
|
|
187
|
-
flex: 1;
|
|
188
|
-
min-height: 200px;
|
|
189
|
-
padding: 0px;
|
|
190
|
-
overflow: auto;
|
|
191
|
-
}
|
|
192
|
-
.ivu-modal-footer {
|
|
193
|
-
width: 100%;
|
|
194
|
-
height: 50px;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&-default {
|
|
202
|
-
.ivu-modal-wrap {
|
|
203
|
-
.ivu-modal {
|
|
204
|
-
width: 750px !important;
|
|
205
|
-
height: 550px !important;
|
|
206
|
-
max-height: 100%;
|
|
207
|
-
max-width: 100%;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
&-small {
|
|
212
|
-
.ivu-modal-wrap {
|
|
213
|
-
.ivu-modal {
|
|
214
|
-
width: 500px !important;
|
|
215
|
-
height: 400px !important;
|
|
216
|
-
max-height: 100%;
|
|
217
|
-
max-width: 100%;
|
|
218
|
-
.ivu-modal-content{
|
|
219
|
-
.DshModal-close {
|
|
220
|
-
top: 20px;
|
|
221
|
-
right: 24px;
|
|
222
|
-
color: rgba(0,0,0,0.6);
|
|
223
|
-
font-size: 16px!important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.ivu-modal-header {
|
|
227
|
-
width: 100%;
|
|
228
|
-
height: 44px;
|
|
229
|
-
padding: 20px 24px 0px 24px;
|
|
230
|
-
border-bottom: none;
|
|
231
|
-
&-inner {
|
|
232
|
-
color: rgba(0,0,0,0.9);
|
|
233
|
-
font-size: 16px;
|
|
234
|
-
font-weight: 500;
|
|
235
|
-
line-height: 24px;
|
|
236
|
-
height: 24px;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
.ivu-modal-body {
|
|
240
|
-
padding: 16px 24px 20px;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
&-middle {
|
|
247
|
-
.ivu-modal-wrap {
|
|
248
|
-
.ivu-modal {
|
|
249
|
-
width: 1000px !important;
|
|
250
|
-
height: 800px !important;
|
|
251
|
-
max-height: 100%;
|
|
252
|
-
max-width: 100%;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
&-large {
|
|
257
|
-
.ivu-modal-wrap {
|
|
258
|
-
.ivu-modal {
|
|
259
|
-
width: 80% !important;
|
|
260
|
-
height: 90% !important;
|
|
261
|
-
min-width: 1000px !important;
|
|
262
|
-
max-height: 100%;
|
|
263
|
-
max-width: 100%;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
&-auto {
|
|
268
|
-
.ivu-modal-wrap {
|
|
269
|
-
display: flex;
|
|
270
|
-
align-items: center;
|
|
271
|
-
justify-content: center;
|
|
272
|
-
.ivu-modal {
|
|
273
|
-
top: 0px;
|
|
274
|
-
max-height: 100%;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:class="[
|
|
4
4
|
{
|
|
5
5
|
'DshFormItem': true,
|
|
6
|
-
'DshFormItem-required': formItem._required
|
|
6
|
+
'DshFormItem-required': canEdit && formItem._required,
|
|
7
7
|
'DshFormItem-line': formItem._line,
|
|
8
8
|
},
|
|
9
9
|
formControlClass,
|
|
@@ -23,17 +23,13 @@
|
|
|
23
23
|
:style="labelStyle"
|
|
24
24
|
>
|
|
25
25
|
<!-- 左 -->
|
|
26
|
-
<span
|
|
27
|
-
class="DshFormItem-label-left"
|
|
28
|
-
:style="labelLeftStyle"
|
|
29
|
-
>
|
|
26
|
+
<span class="DshFormItem-label-left">
|
|
30
27
|
<Ctooltip
|
|
31
28
|
:content="formItem._name"
|
|
32
29
|
transfer
|
|
33
30
|
>
|
|
34
31
|
<span :class="{
|
|
35
32
|
'DshFormItem-label-name': true,
|
|
36
|
-
'dsh-ellipsis': true,
|
|
37
33
|
'DshFormItem-label-name-edit': canEdit,
|
|
38
34
|
'DshFormItem-label-name-show': !canEdit
|
|
39
35
|
}">
|
|
@@ -109,9 +105,11 @@
|
|
|
109
105
|
unitMixin
|
|
110
106
|
],
|
|
111
107
|
props: {
|
|
112
|
-
|
|
113
|
-
type:
|
|
114
|
-
default
|
|
108
|
+
allFormList: {
|
|
109
|
+
type: Array,
|
|
110
|
+
default () {
|
|
111
|
+
return [];
|
|
112
|
+
}
|
|
115
113
|
},
|
|
116
114
|
changedFields: {
|
|
117
115
|
type: Array,
|
|
@@ -119,7 +117,6 @@
|
|
|
119
117
|
return [];
|
|
120
118
|
}
|
|
121
119
|
},
|
|
122
|
-
|
|
123
120
|
// 实际最精确值是74px(label:30px, control:32px, 上下padding各: 6px,因为ivu-form-item-content里line-height: 32px导致有问题,故先76px
|
|
124
121
|
height: {
|
|
125
122
|
type: [String, Number],
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<template v-else>
|
|
17
17
|
<component
|
|
18
18
|
:is="componentNameMap[formItem._type]"
|
|
19
|
-
:
|
|
19
|
+
:canEdit="canEdit"
|
|
20
20
|
:value="formData"
|
|
21
21
|
:propsObj="{
|
|
22
22
|
...formItem,
|
|
@@ -40,10 +40,6 @@
|
|
|
40
40
|
unitMixin
|
|
41
41
|
],
|
|
42
42
|
props: {
|
|
43
|
-
isUnit: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: true
|
|
46
|
-
},
|
|
47
43
|
indexStr: String,
|
|
48
44
|
rowIndex: Number,
|
|
49
45
|
parentData: {
|
|
@@ -67,11 +63,5 @@
|
|
|
67
63
|
.ivu-input {
|
|
68
64
|
font-size: 12px;
|
|
69
65
|
}
|
|
70
|
-
|
|
71
|
-
.DshLabels-searchResult {
|
|
72
|
-
position:absolute;
|
|
73
|
-
top: 32px !important;
|
|
74
|
-
left:0;
|
|
75
|
-
}
|
|
76
66
|
}
|
|
77
67
|
</style>
|
|
@@ -3,17 +3,20 @@ import { componentNameMap, registerComponents } from "../controls/controlMap.js"
|
|
|
3
3
|
export default {
|
|
4
4
|
components: registerComponents(),
|
|
5
5
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
canEdit: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: true
|
|
9
|
+
},
|
|
10
|
+
formData: {
|
|
8
11
|
type: Object,
|
|
9
12
|
default () {
|
|
10
13
|
return {};
|
|
11
14
|
}
|
|
12
15
|
},
|
|
13
|
-
|
|
14
|
-
type:
|
|
16
|
+
formItem: {
|
|
17
|
+
type: Object,
|
|
15
18
|
default () {
|
|
16
|
-
return
|
|
19
|
+
return {};
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
},
|
package/src/index.js
CHANGED
|
@@ -29,7 +29,6 @@ import DshUnit from "./components/unit/DshUnit.vue";
|
|
|
29
29
|
import DshFormItem from "./components/unit/DshFormItem.vue";
|
|
30
30
|
|
|
31
31
|
// controls
|
|
32
|
-
import controlShow from "./components/controls/base/controlShow.vue";
|
|
33
32
|
import DshInput from "./components/controls/base/DshInput.vue";
|
|
34
33
|
import DshNumber from "./components/controls/base/DshNumber/DshNumber.vue";
|
|
35
34
|
import DshSelect from "./components/controls/base/DshSelect.vue";
|
|
@@ -91,12 +90,11 @@ import YUploadImage from "./components/controls/base/ZUpload/YUploadImage.vue";
|
|
|
91
90
|
import DshCoordinates from "./components/controls/base/DshCoordinates.vue";
|
|
92
91
|
import DshEditor from "./components/controls/base/DshEditor.vue";
|
|
93
92
|
import DshDivider from "./components/controls/base/DshDivider.vue";
|
|
94
|
-
import DshLabels from "./components/controls/base/DshLabels.vue";
|
|
95
|
-
import DshPackage from "./components/controls/base/DshPackage.vue";
|
|
96
|
-
|
|
97
|
-
import DshBack from "./components/controls/base/DshBack.vue";
|
|
98
|
-
import DshUndeveloped from "./components/controls/base/DshUndeveloped.vue";
|
|
99
93
|
|
|
94
|
+
/* 不挂载全局 */
|
|
95
|
+
import DshPackage from "./components/controls/senior/DshPackage.vue";
|
|
96
|
+
import DshBack from "./components/controls/special/DshBack.vue";
|
|
97
|
+
import DshUndeveloped from "./components/controls/special/DshUndeveloped.vue";
|
|
100
98
|
// other
|
|
101
99
|
import ZIframe from "./components/other/ZIframe.vue";
|
|
102
100
|
|
|
@@ -122,7 +120,6 @@ const map = {
|
|
|
122
120
|
DshUnit,
|
|
123
121
|
DshFormItem,
|
|
124
122
|
|
|
125
|
-
controlShow,
|
|
126
123
|
DshInput,
|
|
127
124
|
DshNumber,
|
|
128
125
|
DshSelect,
|
|
@@ -213,7 +210,6 @@ export {
|
|
|
213
210
|
DshUnit,
|
|
214
211
|
DshFormItem,
|
|
215
212
|
|
|
216
|
-
controlShow,
|
|
217
213
|
DshInput,
|
|
218
214
|
DshNumber,
|
|
219
215
|
DshSelect,
|
|
@@ -271,9 +267,8 @@ export {
|
|
|
271
267
|
DshCoordinates,
|
|
272
268
|
DshEditor,
|
|
273
269
|
DshDivider,
|
|
274
|
-
DshLabels,
|
|
275
|
-
DshPackage,
|
|
276
270
|
|
|
271
|
+
DshPackage,
|
|
277
272
|
DshBack,
|
|
278
273
|
DshUndeveloped,
|
|
279
274
|
|
|
@@ -8,6 +8,48 @@
|
|
|
8
8
|
line-height: 24px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
// // 表单模式
|
|
12
|
+
// .control {
|
|
13
|
+
// &-show {
|
|
14
|
+
// border: none;
|
|
15
|
+
// background-color: transparent;
|
|
16
|
+
// }
|
|
17
|
+
|
|
18
|
+
// &-edit {
|
|
19
|
+
// height: 32px;
|
|
20
|
+
// border: 1px solid @borderColor;
|
|
21
|
+
// border-radius: @borderRadius;
|
|
22
|
+
// background: @inputBg;
|
|
23
|
+
// line-height: 32px;
|
|
24
|
+
// color: @textColor;
|
|
25
|
+
// cursor: pointer;
|
|
26
|
+
// }
|
|
27
|
+
|
|
28
|
+
// &-placeholder {
|
|
29
|
+
// color: @placeholderColor;
|
|
30
|
+
// }
|
|
31
|
+
|
|
32
|
+
// &-readonly {
|
|
33
|
+
// border: 1px solid @border-readonly;
|
|
34
|
+
// border-radius: @borderRadius;
|
|
35
|
+
// background: @inputBg-readonly;
|
|
36
|
+
// line-height: 32px;
|
|
37
|
+
// color: @textColor-readonly;
|
|
38
|
+
// }
|
|
39
|
+
|
|
40
|
+
// &-disabled {
|
|
41
|
+
// color: @textColor-disabled;
|
|
42
|
+
// border: 1px solid @border-disabled;
|
|
43
|
+
// background: @inputBg-disabled;
|
|
44
|
+
// border-radius: @borderRadius;
|
|
45
|
+
// cursor: not-allowed;
|
|
46
|
+
// }
|
|
47
|
+
|
|
48
|
+
// &-notext {
|
|
49
|
+
// color: @placeholderColor;
|
|
50
|
+
// }
|
|
51
|
+
// }
|
|
52
|
+
|
|
11
53
|
// 表单模式
|
|
12
54
|
.control-show {
|
|
13
55
|
border: none;
|
|
@@ -15,40 +57,35 @@
|
|
|
15
57
|
}
|
|
16
58
|
.control-edit {
|
|
17
59
|
height: 32px;
|
|
18
|
-
color: @textColor;
|
|
19
60
|
border: 1px solid @borderColor;
|
|
20
|
-
background: @inputBg;
|
|
21
61
|
border-radius: @borderRadius;
|
|
62
|
+
background: @inputBg;
|
|
22
63
|
line-height: 32px;
|
|
23
64
|
cursor: pointer;
|
|
65
|
+
color: @textColor;
|
|
24
66
|
}
|
|
25
67
|
.control-placeholder {
|
|
26
68
|
color: @placeholderColor;
|
|
27
69
|
}
|
|
28
70
|
.control-readonly {
|
|
29
|
-
color: @textColor-readonly;
|
|
30
71
|
border: 1px solid @border-readonly;
|
|
31
|
-
background: @inputBg-readonly;
|
|
32
72
|
border-radius: @borderRadius;
|
|
73
|
+
background: @inputBg-readonly;
|
|
74
|
+
line-height: 32px;
|
|
75
|
+
color: @textColor-readonly;
|
|
33
76
|
}
|
|
34
77
|
.control-disabled {
|
|
35
|
-
color: @textColor-disabled;
|
|
36
78
|
border: 1px solid @border-disabled;
|
|
37
|
-
background: @inputBg-disabled;
|
|
38
79
|
border-radius: @borderRadius;
|
|
80
|
+
background: @inputBg-disabled;
|
|
39
81
|
cursor: not-allowed;
|
|
82
|
+
color: @textColor-disabled;
|
|
40
83
|
}
|
|
41
84
|
.control-notext {
|
|
42
85
|
color: @placeholderColor;
|
|
43
86
|
}
|
|
44
87
|
|
|
45
88
|
// 暂时移到这里,部分需要删除
|
|
46
|
-
.control-show-text {
|
|
47
|
-
display: inline-block;
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
89
|
.control-nodata-text {
|
|
53
90
|
color: @placeholderColor ;
|
|
54
91
|
font-weight: 400;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.BriLabels {
|
|
2
|
+
display: flex;
|
|
2
3
|
width: 100%;
|
|
3
4
|
|
|
4
5
|
&-dropdown {
|
|
@@ -110,7 +111,8 @@
|
|
|
110
111
|
align-items: center;
|
|
111
112
|
height: 32px;
|
|
112
113
|
overflow-y: hidden;
|
|
113
|
-
|
|
114
|
+
|
|
115
|
+
&-item {
|
|
114
116
|
.unit-show();
|
|
115
117
|
.dsh-ellipsis();
|
|
116
118
|
display: inline-flex;
|
|
@@ -118,7 +120,7 @@
|
|
|
118
120
|
height: fit-content;
|
|
119
121
|
padding: 0 8px;
|
|
120
122
|
background-color: @borderColor;
|
|
121
|
-
color: rgba(0,0,0,0.9);
|
|
123
|
+
color: rgba(0, 0, 0, 0.9);
|
|
122
124
|
font-size: 12px;
|
|
123
125
|
font-weight: 400;
|
|
124
126
|
line-height: 24px;
|