tianheng-ui 0.0.74 → 0.0.76
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/tianheng-ui.js +3 -3
- package/package.json +1 -1
- package/packages/FormMaking/Container.vue +15 -7
- package/packages/FormMaking/styles/index.scss +3 -3
- package/packages/TableMaking/widgetConfig.vue +2 -0
- package/packages/TableMaking/widgetTable.vue +8 -8
- package/packages/Workflow/index.vue +31 -31
package/package.json
CHANGED
@@ -389,7 +389,7 @@ export default {
|
|
389
389
|
data: {
|
390
390
|
type: Object,
|
391
391
|
default: () => {
|
392
|
-
return {
|
392
|
+
return {};
|
393
393
|
}
|
394
394
|
},
|
395
395
|
tools: {
|
@@ -447,8 +447,11 @@ export default {
|
|
447
447
|
this.layoutComponents = layoutComponents;
|
448
448
|
this.advanceComponents = advanceComponents;
|
449
449
|
return {
|
450
|
-
widgetFormData:
|
451
|
-
|
450
|
+
widgetFormData: {
|
451
|
+
list: [],
|
452
|
+
config: baseConfig
|
453
|
+
},
|
454
|
+
widgetFormSelect: {},
|
452
455
|
widgetValue: {},
|
453
456
|
configTab: "widget",
|
454
457
|
client: "monitor",
|
@@ -510,17 +513,22 @@ export default {
|
|
510
513
|
widgetFormData: {
|
511
514
|
deep: true,
|
512
515
|
handler: function(val) {
|
513
|
-
console.log("widgetFormData =>", val);
|
514
516
|
this.$emit("update:data", val);
|
515
517
|
}
|
516
518
|
},
|
517
519
|
data(val) {
|
518
|
-
console.log("data =>", val);
|
519
520
|
this.setJSON(val);
|
520
|
-
// this.widgetFormData = val;
|
521
521
|
}
|
522
522
|
},
|
523
|
-
mounted() {
|
523
|
+
mounted() {
|
524
|
+
if (this.data && this.data.list) {
|
525
|
+
this.widgetFormData.list = this.data.list;
|
526
|
+
this.widgetFormSelect = this.data.list[0]
|
527
|
+
}
|
528
|
+
if (this.data && this.data.config) {
|
529
|
+
this.widgetFormData.config = this.data.config;
|
530
|
+
}
|
531
|
+
},
|
524
532
|
methods: {
|
525
533
|
// 读取excel file
|
526
534
|
readExcelFile(file) {
|
@@ -239,9 +239,9 @@ $primary-background-color: #ecf5ff;
|
|
239
239
|
margin-left: 0 !important;
|
240
240
|
}
|
241
241
|
}
|
242
|
-
.widget-table-list:hover::-webkit-scrollbar-thumb {
|
243
|
-
|
244
|
-
}
|
242
|
+
// .widget-table-list:hover::-webkit-scrollbar-thumb {
|
243
|
+
// background-color: rgba(69, 90, 100, 0.2);
|
244
|
+
// }
|
245
245
|
|
246
246
|
.tableH5 {
|
247
247
|
min-height: 50px;
|
@@ -228,11 +228,13 @@ export default {
|
|
228
228
|
.fields-item {
|
229
229
|
padding: 0 10px;
|
230
230
|
height: 30px;
|
231
|
+
margin-right: 0;
|
231
232
|
line-height: 30px;
|
232
233
|
}
|
233
234
|
|
234
235
|
.el-checkbox {
|
235
236
|
padding: 0 10px;
|
237
|
+
margin-right: 0;
|
236
238
|
width: 100%;
|
237
239
|
height: 30px;
|
238
240
|
line-height: 30px;
|
@@ -161,13 +161,13 @@ export default {
|
|
161
161
|
box-sizing: border-box;
|
162
162
|
|
163
163
|
.table-content {
|
164
|
-
height:
|
164
|
+
height: 120px;
|
165
165
|
overflow-y: scroll;
|
166
166
|
}
|
167
167
|
}
|
168
168
|
.tableList {
|
169
169
|
margin-top: 10px;
|
170
|
-
height: calc(100% -
|
170
|
+
height: calc(100% - 240px);
|
171
171
|
border: 1px solid #dcdfe6;
|
172
172
|
|
173
173
|
.table-header {
|
@@ -230,11 +230,11 @@ export default {
|
|
230
230
|
}
|
231
231
|
}
|
232
232
|
}
|
233
|
-
.table-content:hover::-webkit-scrollbar-thumb {
|
234
|
-
|
235
|
-
}
|
236
|
-
.table-content:hover::-webkit-scrollbar-thumb {
|
237
|
-
|
238
|
-
}
|
233
|
+
// .table-content:hover::-webkit-scrollbar-thumb {
|
234
|
+
// background-color: rgba(69, 90, 100, 0.2);
|
235
|
+
// }
|
236
|
+
// .table-content:hover::-webkit-scrollbar-thumb {
|
237
|
+
// background-color: rgba(69, 90, 100, 0.2);
|
238
|
+
// }
|
239
239
|
}
|
240
240
|
</style>
|
@@ -365,35 +365,35 @@ export default {
|
|
365
365
|
color: #fafafa;
|
366
366
|
}
|
367
367
|
|
368
|
-
body,
|
369
|
-
body * {
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
}
|
368
|
+
// body,
|
369
|
+
// body * {
|
370
|
+
// /* 滚动条 */
|
371
|
+
// &::-webkit-scrollbar-track-piece {
|
372
|
+
// background-color: #fff; /*滚动条的背景颜色*/
|
373
|
+
// -webkit-border-radius: 0; /*滚动条的圆角宽度*/
|
374
|
+
// }
|
375
|
+
// &::-webkit-scrollbar {
|
376
|
+
// width: 10px; /*滚动条的宽度*/
|
377
|
+
// height: 8px; /*滚动条的高度*/
|
378
|
+
// }
|
379
|
+
// &::-webkit-scrollbar-thumb:vertical {
|
380
|
+
// /*垂直滚动条的样式*/
|
381
|
+
// height: 50px;
|
382
|
+
// background-color: rgba(153, 153, 153, 0.5);
|
383
|
+
// -webkit-border-radius: 4px;
|
384
|
+
// outline: 2px solid #fff;
|
385
|
+
// outline-offset: -2px;
|
386
|
+
// border: 2px solid #fff;
|
387
|
+
// }
|
388
|
+
// &::-webkit-scrollbar-thumb {
|
389
|
+
// /*滚动条的hover样式*/
|
390
|
+
// background-color: rgba(159, 159, 159, 0.3);
|
391
|
+
// -webkit-border-radius: 4px;
|
392
|
+
// }
|
393
|
+
// &::-webkit-scrollbar-thumb:hover {
|
394
|
+
// /*滚动条的hover样式*/
|
395
|
+
// background-color: rgba(159, 159, 159, 0.5);
|
396
|
+
// -webkit-border-radius: 4px;
|
397
|
+
// }
|
398
|
+
// }
|
399
399
|
</style>
|