bri-components 1.1.3 → 1.1.5
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/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/bri-components.min.js +6 -6
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/abolish/DshCascaders.less +11 -0
- package/src/{components/controls/base/DshCascaderMultiple.vue → abolish/DshCascaders.vue} +4 -23
- package/src/{components/list → abolish}/DshFlatTable.vue +1 -1
- package/src/abolish/DshTexts.less +13 -0
- package/src/{components/controls/base/textMultiple/DshTextMultiple.vue → abolish/DshTexts.vue} +4 -20
- package/src/components/controls/base/{textMultiple/MultipleInput.vue → BriInputs.vue} +13 -12
- package/src/components/controls/base/{ZUpload/YUploadImage.vue → BriUpload/BriUploadImage.vue} +56 -15
- package/src/components/controls/base/{ZUpload → BriUpload}/index.vue +11 -12
- package/src/components/controls/base/{ZUpload → BriUpload}/uploadMixin.js +2 -2
- package/src/components/controls/base/DshCascader/DshCascader.vue +393 -0
- package/src/components/{other → controls/base/DshCascader}/InfoCascader.vue +11 -9
- package/src/components/controls/base/DshCheckbox.vue +1 -1
- package/src/components/controls/base/DshCoordinates.vue +146 -135
- package/src/components/controls/base/DshEditor.vue +1 -1
- package/src/components/controls/base/DshInput.vue +9 -4
- package/src/components/controls/base/DshNumber/DshNumber.vue +2 -0
- package/src/components/controls/base/DshSelect.vue +1 -1
- package/src/components/controls/controlMap.js +6 -7
- package/src/components/controls/controlMixin.js +31 -10
- package/src/components/list/BriTable.vue +0 -1
- package/src/components/list/DshBox/DshBox.vue +7 -24
- package/src/components/list/DshBox/DshCard.vue +13 -72
- package/src/components/list/DshBox/DshList.vue +8 -136
- package/src/components/list/DshBox/DshPanel.vue +0 -110
- package/src/components/list/DshBox/DshTable.vue +1 -4
- package/src/components/list/ZTree.vue +0 -58
- package/src/components/other/BriSvg.vue +28 -0
- package/src/components/other/DshEditPanel.vue +33 -11
- package/src/components/other/ZIframe.vue +5 -0
- package/src/components/other/ZLoading.vue +24 -12
- package/src/components/small/DshPage.vue +1 -0
- package/src/index.js +17 -28
- package/src/styles/common/control.less +16 -17
- package/src/styles/components/controls/{MultipleInput.less → BriInputs.less} +1 -1
- package/src/styles/components/controls/{ZUpload.less → BriUpload.less} +4 -4
- package/src/styles/components/controls/DshCascader.less +66 -50
- package/src/styles/components/controls/DshCoordinates.less +53 -43
- package/src/styles/components/controls/DshNumber.less +18 -0
- package/src/styles/components/index.less +22 -17
- package/src/styles/components/list/DshBox/DshBox.less +20 -0
- package/src/styles/components/list/DshBox/DshCard.less +59 -0
- package/src/styles/components/list/DshBox/DshList.less +142 -0
- package/src/styles/components/list/DshBox/DshPanel.less +107 -0
- package/src/styles/components/list/DshBox/DshTable.less +4 -0
- package/src/styles/components/list/ZTree.less +52 -0
- package/src/styles/components/other/ZLoading.less +5 -7
- package/src/styles/components/small/DshDropdown.less +1 -7
- package/src/styles/components/small/DshModal.less +1 -1
- package/src/styles/variables.less +1 -0
- package/src/utils/table.js +3 -2
- package/src/components/controls/base/DshCascader.vue +0 -350
- package/src/components/controls/base/YSerialNumber.vue +0 -43
- package/src/components/list/easyTable/index.js +0 -23
- package/src/components/list/easyTable/src/directives/clickoutside.js +0 -32
- package/src/components/list/easyTable/src/mixins/layerAdjustment.js +0 -62
- package/src/components/list/easyTable/src/settings/settings.js +0 -11
- package/src/components/list/easyTable/src/utils/deepClone.js +0 -256
- package/src/components/list/easyTable/src/utils/dom.js +0 -41
- package/src/components/list/easyTable/src/utils/utils.js +0 -190
- package/src/components/list/easyTable/v-checkbox/index.js +0 -7
- package/src/components/list/easyTable/v-checkbox/src/checkbox.vue +0 -127
- package/src/components/list/easyTable/v-checkbox-group/index.js +0 -7
- package/src/components/list/easyTable/v-checkbox-group/src/checkbox-group.vue +0 -68
- package/src/components/list/easyTable/v-dropdown/index.js +0 -7
- package/src/components/list/easyTable/v-dropdown/src/dropdown.vue +0 -337
- package/src/components/list/easyTable/v-table/index.js +0 -7
- package/src/components/list/easyTable/v-table/src/body-cell-merge-mixin.js +0 -141
- package/src/components/list/easyTable/v-table/src/cell-edit-mixin.js +0 -102
- package/src/components/list/easyTable/v-table/src/checkbox-selection-mixin.js +0 -189
- package/src/components/list/easyTable/v-table/src/classes-mixin.js +0 -56
- package/src/components/list/easyTable/v-table/src/drag-width-mixin.js +0 -202
- package/src/components/list/easyTable/v-table/src/export-csv.js +0 -74
- package/src/components/list/easyTable/v-table/src/frozen-columns-mixin.js +0 -134
- package/src/components/list/easyTable/v-table/src/loading.vue +0 -49
- package/src/components/list/easyTable/v-table/src/scroll-bar-control-mixin.js +0 -21
- package/src/components/list/easyTable/v-table/src/scroll-control-mixin.js +0 -92
- package/src/components/list/easyTable/v-table/src/sort-control-mixin.js +0 -108
- package/src/components/list/easyTable/v-table/src/table-empty-mixin.js +0 -73
- package/src/components/list/easyTable/v-table/src/table-empty.vue +0 -66
- package/src/components/list/easyTable/v-table/src/table-filters-mixin.js +0 -126
- package/src/components/list/easyTable/v-table/src/table-footer-mixin.js +0 -122
- package/src/components/list/easyTable/v-table/src/table-resize-mixin.js +0 -279
- package/src/components/list/easyTable/v-table/src/table-row-mouse-events-mixin.js +0 -123
- package/src/components/list/easyTable/v-table/src/table.vue +0 -1565
- package/src/components/list/easyTable/v-table/src/title-cell-merge-mixin.js +0 -115
- package/src/components/list/evTable/EvTable.vue +0 -321
- package/src/components/list/evTable/EvTableMixin.js +0 -26
- package/src/components/small/DshControlDefine.vue +0 -111
- package/src/styles/components/list/evTable.less +0 -79
- package/src/styles/components/list/evtable/animation.less +0 -141
- package/src/styles/components/list/evtable/font/fontello.eot +0 -0
- package/src/styles/components/list/evtable/font/fontello.svg +0 -32
- package/src/styles/components/list/evtable/font/fontello.ttf +0 -0
- package/src/styles/components/list/evtable/font/fontello.woff +0 -0
- package/src/styles/components/list/evtable/font/fontello.woff2 +0 -0
- package/src/styles/components/list/evtable/fontello.less +0 -68
- package/src/styles/components/list/evtable/index.less +0 -5
- package/src/styles/components/list/evtable/v-checkbox.less +0 -167
- package/src/styles/components/list/evtable/v-dropdown.less +0 -235
- package/src/styles/components/list/evtable/v-table.less +0 -334
- package/src/styles/components/list/ivu_reset.less +0 -49
- package/src/styles/components/small/DshControlDefine.less +0 -40
- /package/src/{styles/components/list → abolish}/DshFlatTable.less +0 -0
- /package/src/components/{pages/Error → Error}/Error403.vue +0 -0
- /package/src/components/{pages/Error → Error}/Error404.vue +0 -0
- /package/src/components/{pages/Error → Error}/Error500.vue +0 -0
- /package/src/components/{pages/Error → Error}/error.less +0 -0
- /package/src/components/{pages/Error → Error}/errorBack.vue +0 -0
- /package/src/components/controls/base/{ZUpload → BriUpload}/upload-list.vue +0 -0
- /package/src/components/controls/base/{ZUpload → BriUpload}/upload-listItem.vue +0 -0
- /package/src/styles/components/{other → controls}/InfoCascader.less +0 -0
- /package/src/styles/components/list/{DshCrossTable.less → DshBox/DshCrossTable.less} +0 -0
- /package/src/styles/components/list/{DshSingleData.less → DshBox/DshSingleData.less} +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="DshCard">
|
|
3
3
|
<!-- 无数据 -->
|
|
4
|
-
<div
|
|
4
|
+
<div
|
|
5
|
+
v-if="!data.length"
|
|
6
|
+
class="dsh-tip"
|
|
7
|
+
>{{noDataText}}</div>
|
|
5
8
|
|
|
6
9
|
<!-- 有数据 -->
|
|
7
10
|
<template v-else>
|
|
@@ -21,10 +24,11 @@
|
|
|
21
24
|
></dsh-dropdown>
|
|
22
25
|
|
|
23
26
|
<!-- 背景图 -->
|
|
24
|
-
<div
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
<div class="DshCard-item-image">
|
|
28
|
+
<img
|
|
29
|
+
:src="getCardBgImgSrc(dataItem)"
|
|
30
|
+
alt=""
|
|
31
|
+
>
|
|
28
32
|
</div>
|
|
29
33
|
|
|
30
34
|
<!-- 内容 -->
|
|
@@ -73,7 +77,10 @@
|
|
|
73
77
|
v-html="colItem.formatter(dataItem, 0)"
|
|
74
78
|
></div>
|
|
75
79
|
|
|
76
|
-
<span
|
|
80
|
+
<span
|
|
81
|
+
v-else
|
|
82
|
+
class="unit-value-text"
|
|
83
|
+
>{{ dataItem[colItem._key] }}</span>
|
|
77
84
|
</div>
|
|
78
85
|
</div>
|
|
79
86
|
</div>
|
|
@@ -151,69 +158,3 @@
|
|
|
151
158
|
}
|
|
152
159
|
};
|
|
153
160
|
</script>
|
|
154
|
-
|
|
155
|
-
<style lang="less" scoped>
|
|
156
|
-
.DshCard {
|
|
157
|
-
display: flex;
|
|
158
|
-
flex-wrap: wrap;
|
|
159
|
-
background-color: #ffffff;
|
|
160
|
-
padding: 0 40px;
|
|
161
|
-
&-item {
|
|
162
|
-
width: 250px;
|
|
163
|
-
height: 210px;
|
|
164
|
-
box-sizing: border-box;
|
|
165
|
-
margin: 10px 16px 30px;
|
|
166
|
-
border-radius: 6px;
|
|
167
|
-
overflow: hidden;
|
|
168
|
-
box-shadow: 0px 4px 8px 0px rgba(222, 222, 222, 0.75);
|
|
169
|
-
cursor: pointer;
|
|
170
|
-
display: flex;
|
|
171
|
-
flex-direction: column;
|
|
172
|
-
position: relative;
|
|
173
|
-
|
|
174
|
-
&-dropdown {
|
|
175
|
-
position: absolute;
|
|
176
|
-
top: 5px;
|
|
177
|
-
right: 5px;
|
|
178
|
-
}
|
|
179
|
-
&-image {
|
|
180
|
-
padding-top: 20px;
|
|
181
|
-
height: 122px;
|
|
182
|
-
}
|
|
183
|
-
&-info {
|
|
184
|
-
flex: 1;
|
|
185
|
-
padding: 8px 15px;
|
|
186
|
-
overflow: hidden;
|
|
187
|
-
background: #F7FBFF;
|
|
188
|
-
&-title {
|
|
189
|
-
font-size: 14px;
|
|
190
|
-
font-weight: 600;
|
|
191
|
-
}
|
|
192
|
-
&-col {
|
|
193
|
-
height: 24px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.unit {
|
|
197
|
-
display: flex;
|
|
198
|
-
flex-direction: row;
|
|
199
|
-
&-label {
|
|
200
|
-
max-width: 60px;
|
|
201
|
-
font-weight: 400;
|
|
202
|
-
color: #515A6E;
|
|
203
|
-
}
|
|
204
|
-
&-colon {
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
&-value {
|
|
208
|
-
flex: 1;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
</style>
|
|
215
|
-
<style lang="less">
|
|
216
|
-
.DshCard {
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
</style>
|
|
@@ -62,16 +62,10 @@
|
|
|
62
62
|
v-if="isLoading"
|
|
63
63
|
class="list-loading"
|
|
64
64
|
>
|
|
65
|
-
<div
|
|
66
|
-
|
|
67
|
-
:style="{'opacity': 0.6}"
|
|
68
|
-
></div>
|
|
69
|
-
<div class="v-table-loading-content" style="top: 30px">
|
|
65
|
+
<div class="list-loading-wrap"></div>
|
|
66
|
+
<div class="list-loading-content">
|
|
70
67
|
<span>
|
|
71
|
-
<i
|
|
72
|
-
class="v-icon-spin5 animate-loading-23"
|
|
73
|
-
style="font-size: 28px;opacity:0.6;"
|
|
74
|
-
></i>
|
|
68
|
+
<i class="list-loading-content-icon"></i>
|
|
75
69
|
</span>
|
|
76
70
|
</div>
|
|
77
71
|
</div>
|
|
@@ -118,6 +112,7 @@
|
|
|
118
112
|
{{ index + 1 }}
|
|
119
113
|
</div>
|
|
120
114
|
</div>
|
|
115
|
+
|
|
121
116
|
<!-- 单元格 -->
|
|
122
117
|
<div
|
|
123
118
|
v-for="(col) in selfColumns"
|
|
@@ -140,9 +135,11 @@
|
|
|
140
135
|
:index="index"
|
|
141
136
|
:render="col.renderBodyCell"
|
|
142
137
|
></dsh-td-render>
|
|
138
|
+
|
|
143
139
|
<template v-else-if="col.formatter">
|
|
144
140
|
<div v-html="col.formatter(row, index)"></div>
|
|
145
141
|
</template>
|
|
142
|
+
|
|
146
143
|
<Tooltip
|
|
147
144
|
v-else-if="row[col._key]"
|
|
148
145
|
:transfer="true"
|
|
@@ -153,9 +150,9 @@
|
|
|
153
150
|
>
|
|
154
151
|
<div class="list-tooltip-box">{{ row[col._key] }}</div>
|
|
155
152
|
</Tooltip>
|
|
153
|
+
|
|
156
154
|
<!-- <dsh-unit
|
|
157
155
|
:key="col._key"
|
|
158
|
-
:mode="mode"
|
|
159
156
|
:canEdit="false"
|
|
160
157
|
:formData="row"
|
|
161
158
|
:formItem="col"
|
|
@@ -173,7 +170,7 @@
|
|
|
173
170
|
v-else
|
|
174
171
|
class="list-noData"
|
|
175
172
|
>
|
|
176
|
-
{{noDataText}}
|
|
173
|
+
{{ noDataText }}
|
|
177
174
|
</div>
|
|
178
175
|
</template>
|
|
179
176
|
</div>
|
|
@@ -189,13 +186,6 @@
|
|
|
189
186
|
// DshUnit
|
|
190
187
|
},
|
|
191
188
|
props: {
|
|
192
|
-
// mode: {
|
|
193
|
-
// type: String,
|
|
194
|
-
// default: "default",
|
|
195
|
-
// validator: function (value) {
|
|
196
|
-
// return ["default"].indexOf(value) !== -1;
|
|
197
|
-
// }
|
|
198
|
-
// },
|
|
199
189
|
isLoading: {
|
|
200
190
|
type: Boolean,
|
|
201
191
|
default: false
|
|
@@ -256,9 +246,6 @@
|
|
|
256
246
|
}
|
|
257
247
|
},
|
|
258
248
|
|
|
259
|
-
// isLoading () {
|
|
260
|
-
// return this.propsObj.isLoading;
|
|
261
|
-
// },
|
|
262
249
|
multiple () {
|
|
263
250
|
return this.propsObj.multiple !== false;
|
|
264
251
|
},
|
|
@@ -325,118 +312,3 @@
|
|
|
325
312
|
}
|
|
326
313
|
};
|
|
327
314
|
</script>
|
|
328
|
-
|
|
329
|
-
<style lang="less" scoped>
|
|
330
|
-
@height:44px;
|
|
331
|
-
.DshList {
|
|
332
|
-
.list {
|
|
333
|
-
&-loading {
|
|
334
|
-
min-height: 100px;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
&-cols,
|
|
338
|
-
&-rows {
|
|
339
|
-
position: relative;
|
|
340
|
-
&-left {
|
|
341
|
-
width: 48px;
|
|
342
|
-
text-align: center;
|
|
343
|
-
position: absolute;
|
|
344
|
-
left: 0;
|
|
345
|
-
top: 0;
|
|
346
|
-
label {
|
|
347
|
-
display: inline-block;
|
|
348
|
-
height: 36px;
|
|
349
|
-
padding: 9px 5px;
|
|
350
|
-
margin: 0px;
|
|
351
|
-
line-height: 18px;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.row {
|
|
356
|
-
width: 100%;
|
|
357
|
-
// height: 36px;
|
|
358
|
-
// padding: 9px 5px;
|
|
359
|
-
line-height: 20px;
|
|
360
|
-
display: flex;
|
|
361
|
-
justify-content: space-between;
|
|
362
|
-
&-item {
|
|
363
|
-
min-width: 120px;
|
|
364
|
-
height: 100%;
|
|
365
|
-
padding: 0 16px;
|
|
366
|
-
font-size: 14px;
|
|
367
|
-
align-items: center;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
&-cols {
|
|
373
|
-
height: @height;
|
|
374
|
-
background: #f0f0f0;
|
|
375
|
-
&-left {}
|
|
376
|
-
&-right {}
|
|
377
|
-
|
|
378
|
-
.row {
|
|
379
|
-
font-weight: 700;
|
|
380
|
-
&-item {
|
|
381
|
-
padding: 10px 16px;
|
|
382
|
-
border-top: 1px #e5e5e5 solid;
|
|
383
|
-
border-bottom: 1px #f0f0f0 solid;
|
|
384
|
-
border-left: 1px #e5e5e5 solid;
|
|
385
|
-
|
|
386
|
-
&:last-child{
|
|
387
|
-
border-right: 1px #e5e5e5 solid;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
&-inner {
|
|
391
|
-
.dsh-ellipsis{
|
|
392
|
-
font-size: 14px;
|
|
393
|
-
color: #666;
|
|
394
|
-
font-weight: 700;
|
|
395
|
-
line-height: 24px;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
&-rows {
|
|
403
|
-
&-left {
|
|
404
|
-
label {
|
|
405
|
-
height: 44px;
|
|
406
|
-
line-height: 20px;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
&-right {}
|
|
410
|
-
|
|
411
|
-
.row {
|
|
412
|
-
height: 44px;
|
|
413
|
-
line-height: 20px;
|
|
414
|
-
|
|
415
|
-
cursor: pointer;
|
|
416
|
-
&-item {
|
|
417
|
-
display: flex;
|
|
418
|
-
border: 1px solid #E5E5E5;
|
|
419
|
-
border-width: 0 0 1px 1px;
|
|
420
|
-
|
|
421
|
-
&:last-child{
|
|
422
|
-
border-width: 0 1px 1px 1px;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
&-inner {
|
|
426
|
-
width: 100%;
|
|
427
|
-
font-size: 14px;
|
|
428
|
-
color: #333;
|
|
429
|
-
font-weight: 400;
|
|
430
|
-
line-height: 24px;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
&-noData {
|
|
437
|
-
padding: 10px 0px;
|
|
438
|
-
text-align: center;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
</style>
|
|
@@ -279,113 +279,3 @@
|
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
</script>
|
|
282
|
-
|
|
283
|
-
<style lang="less">
|
|
284
|
-
.DshPanel {
|
|
285
|
-
min-width: 100%;
|
|
286
|
-
height: 100%;
|
|
287
|
-
display: flex;
|
|
288
|
-
flex-direction: row;
|
|
289
|
-
|
|
290
|
-
&-group {
|
|
291
|
-
width: 300px;
|
|
292
|
-
min-width: 300px;
|
|
293
|
-
max-width: 300px;
|
|
294
|
-
height: 100%;
|
|
295
|
-
padding: 10px;
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
display: flex;
|
|
298
|
-
flex-direction: column;
|
|
299
|
-
|
|
300
|
-
&-title {
|
|
301
|
-
width: 100%;
|
|
302
|
-
height: 50px;
|
|
303
|
-
padding: 15px 10px;
|
|
304
|
-
display: flex;
|
|
305
|
-
border-radius: 10px 10px 0px 0px;
|
|
306
|
-
font-size: 14px;
|
|
307
|
-
|
|
308
|
-
&-name {
|
|
309
|
-
max-width: 120px;
|
|
310
|
-
}
|
|
311
|
-
&-number {
|
|
312
|
-
font-weight: bold;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
&-list {
|
|
317
|
-
width: 100%;
|
|
318
|
-
flex: 1;
|
|
319
|
-
min-height: 0px;
|
|
320
|
-
border: 1px dashed #cccccc;
|
|
321
|
-
border-top: none;
|
|
322
|
-
display: flex;
|
|
323
|
-
flex-direction: column;
|
|
324
|
-
|
|
325
|
-
.list-drag {
|
|
326
|
-
width: 100%;
|
|
327
|
-
flex: 1;
|
|
328
|
-
min-height: 0px;
|
|
329
|
-
|
|
330
|
-
&-transition {
|
|
331
|
-
display: block;
|
|
332
|
-
width: 100%;
|
|
333
|
-
height: 100%;
|
|
334
|
-
padding: 10px;
|
|
335
|
-
overflow: auto;
|
|
336
|
-
|
|
337
|
-
.item {
|
|
338
|
-
height: 60px;
|
|
339
|
-
padding: 10px 17px;
|
|
340
|
-
margin-bottom: 10px;
|
|
341
|
-
border: 1px solid rgba(102, 110, 126, 0.1);
|
|
342
|
-
border-radius: 4px;
|
|
343
|
-
background: #FFFFFF;
|
|
344
|
-
cursor: pointer;
|
|
345
|
-
position: relative;
|
|
346
|
-
|
|
347
|
-
&-dropdown {
|
|
348
|
-
position: absolute;
|
|
349
|
-
top: 5px;
|
|
350
|
-
right: 5px;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
&-title {
|
|
354
|
-
width: calc(100% - 22px);
|
|
355
|
-
margin-bottom: 2px;
|
|
356
|
-
font-family: Source Han Sans CN;
|
|
357
|
-
font-size: 14px;
|
|
358
|
-
font-weight: 500;
|
|
359
|
-
color: #515A6E;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&-cols {}
|
|
363
|
-
|
|
364
|
-
.unit {
|
|
365
|
-
display: flex;
|
|
366
|
-
flex-direction: row;
|
|
367
|
-
color: #515A6E;
|
|
368
|
-
&-label {
|
|
369
|
-
max-width: 60px;
|
|
370
|
-
}
|
|
371
|
-
&-colon {
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
&-value {
|
|
375
|
-
flex: 1;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.list-btns {
|
|
383
|
-
width: 100%;
|
|
384
|
-
height: 40px;
|
|
385
|
-
padding: 0px 10px;
|
|
386
|
-
text-align: center;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
</style>
|
|
@@ -470,61 +470,3 @@
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
</script>
|
|
473
|
-
|
|
474
|
-
<style lang="less" scoped>
|
|
475
|
-
.ZTree {
|
|
476
|
-
max-width: 1200px;
|
|
477
|
-
min-width: 720px;
|
|
478
|
-
height: 100%;
|
|
479
|
-
margin: 0px auto;
|
|
480
|
-
background: #fff;
|
|
481
|
-
display: flex;
|
|
482
|
-
flex-direction: column;
|
|
483
|
-
&-action {
|
|
484
|
-
padding: 10px;
|
|
485
|
-
display: flex;
|
|
486
|
-
justify-content: flex-end;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
&-tree {
|
|
490
|
-
width: 100%;
|
|
491
|
-
flex: 1;
|
|
492
|
-
min-height: 0px;
|
|
493
|
-
overflow: auto;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
</style>
|
|
497
|
-
<style lang="less">
|
|
498
|
-
.ZTree {
|
|
499
|
-
&-action-create {
|
|
500
|
-
display: flex;
|
|
501
|
-
flex-direction: row;
|
|
502
|
-
align-items: center;
|
|
503
|
-
|
|
504
|
-
.ivu-icon {
|
|
505
|
-
font-size: 20px;
|
|
506
|
-
font-weight: bold;
|
|
507
|
-
margin-right: -10px;
|
|
508
|
-
vertical-align: middle;
|
|
509
|
-
transform: translate(0, -1px);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
&-tree {
|
|
514
|
-
.ivu-tree-title {
|
|
515
|
-
width: calc(100% - 18px);
|
|
516
|
-
}
|
|
517
|
-
.ivu-tree-arrow {
|
|
518
|
-
margin-top: 5px;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
&-dropdown-menu.DshColorPanel-list {
|
|
522
|
-
width: 242px!important;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
.ZTree-create-content {
|
|
526
|
-
.textRight {
|
|
527
|
-
text-align: right;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg class="bri" aria-hidden="true">
|
|
3
|
+
<use :href="href"></use>
|
|
4
|
+
</svg>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
name: "imgscg",
|
|
11
|
+
components: {},
|
|
12
|
+
props: {
|
|
13
|
+
src: String
|
|
14
|
+
},
|
|
15
|
+
computed: {
|
|
16
|
+
// 这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法
|
|
17
|
+
// 浏览器渲染 SVG 的性能一般,还不如 png。
|
|
18
|
+
href () {
|
|
19
|
+
return `#bri-${this.src}`;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
data () {
|
|
23
|
+
return {};
|
|
24
|
+
},
|
|
25
|
+
created () {},
|
|
26
|
+
methods: {}
|
|
27
|
+
};
|
|
28
|
+
</script>
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="DshEditPanel">
|
|
3
|
-
<Form
|
|
3
|
+
<Form
|
|
4
|
+
class="DshEditPanel-form"
|
|
5
|
+
:model="value"
|
|
6
|
+
:label-width="80"
|
|
7
|
+
label-position="left"
|
|
8
|
+
>
|
|
4
9
|
<FormItem label="应用名称">
|
|
5
|
-
<Input
|
|
10
|
+
<Input
|
|
11
|
+
v-model="value.name"
|
|
12
|
+
placeholder="请输入应用名称"
|
|
13
|
+
autofocus
|
|
14
|
+
@on-blur="onBlur(value)"
|
|
15
|
+
/>
|
|
6
16
|
</FormItem>
|
|
7
17
|
|
|
8
18
|
<FormItem label="主题颜色">
|
|
@@ -13,7 +23,12 @@
|
|
|
13
23
|
class="DshEditPanel-colors-item"
|
|
14
24
|
@click="$dispatchEvent(operationMap.updateColor, colorItem.color, colorKey, value)"
|
|
15
25
|
>
|
|
16
|
-
<div
|
|
26
|
+
<div
|
|
27
|
+
class="DshEditPanel-colors-item-content"
|
|
28
|
+
:style="{
|
|
29
|
+
backgroundColor: colorItem.color
|
|
30
|
+
}"
|
|
31
|
+
></div>
|
|
17
32
|
<Icon
|
|
18
33
|
v-if="colorItem.color === value.color"
|
|
19
34
|
class="DshEditPanel-colors-item-icon"
|
|
@@ -36,7 +51,12 @@
|
|
|
36
51
|
}"
|
|
37
52
|
@click="$dispatchEvent(operationMap.updateIcon, iconItem, iconIndex, value)"
|
|
38
53
|
>
|
|
39
|
-
<div
|
|
54
|
+
<div
|
|
55
|
+
class="DshEditPanel-icons-item-content"
|
|
56
|
+
:style="{
|
|
57
|
+
backgroundImage: `url(${$appData.themeColors[value.color].bgUrl})`
|
|
58
|
+
}"
|
|
59
|
+
>
|
|
40
60
|
<Icon :custom="'bico-font ' + iconItem"></Icon>
|
|
41
61
|
</div>
|
|
42
62
|
</div>
|
|
@@ -47,7 +67,7 @@
|
|
|
47
67
|
<!-- 操作按钮 -->
|
|
48
68
|
<dsh-buttons
|
|
49
69
|
class="bri-footer"
|
|
50
|
-
:list="$getOperationList(['
|
|
70
|
+
:list="$getOperationList(['canCancel', 'canConfirm'])"
|
|
51
71
|
@click="$dispatchEvent($event)"
|
|
52
72
|
></dsh-buttons>
|
|
53
73
|
</div>
|
|
@@ -55,8 +75,8 @@
|
|
|
55
75
|
|
|
56
76
|
<script>
|
|
57
77
|
export default {
|
|
58
|
-
components: {},
|
|
59
78
|
name: "DshEditPanel",
|
|
79
|
+
components: {},
|
|
60
80
|
props: {
|
|
61
81
|
value: {
|
|
62
82
|
type: Object,
|
|
@@ -78,14 +98,14 @@
|
|
|
78
98
|
type: "updateIcon",
|
|
79
99
|
event: "clickUpdateIcon"
|
|
80
100
|
},
|
|
81
|
-
|
|
101
|
+
canCancel: {
|
|
82
102
|
name: "取消",
|
|
83
|
-
type: "
|
|
103
|
+
type: "canCancel",
|
|
84
104
|
event: "clickCancel"
|
|
85
105
|
},
|
|
86
|
-
|
|
106
|
+
canConfirm: {
|
|
87
107
|
name: "确定",
|
|
88
|
-
type: "
|
|
108
|
+
type: "canConfirm",
|
|
89
109
|
btnType: "primary",
|
|
90
110
|
event: "clickConfirm"
|
|
91
111
|
}
|
|
@@ -107,7 +127,9 @@
|
|
|
107
127
|
},
|
|
108
128
|
|
|
109
129
|
onBlur (value) {
|
|
110
|
-
|
|
130
|
+
if (!value.name) {
|
|
131
|
+
value.name = value.oldName || "未命名";
|
|
132
|
+
}
|
|
111
133
|
},
|
|
112
134
|
// 点击修改应用主题色
|
|
113
135
|
clickUpdateColor (item, colorItem, colorKey, appObj) {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
:src="url"
|
|
8
8
|
frameborder="0"
|
|
9
9
|
allowtransparency="true"
|
|
10
|
+
:allow="allow"
|
|
10
11
|
></iframe>
|
|
11
12
|
<div
|
|
12
13
|
v-else
|
|
@@ -33,6 +34,10 @@
|
|
|
33
34
|
url: {
|
|
34
35
|
type: String,
|
|
35
36
|
required: true
|
|
37
|
+
},
|
|
38
|
+
allow: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "fullscreen"
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
43
|
data () {
|