tianheng-ui 0.0.93 → 0.0.95
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 +5 -5
- package/package.json +1 -1
- package/packages/FormMaking/GenerateForm.vue +1 -1
- package/packages/FormMaking/GenerateFormItem.vue +8 -4
- package/packages/FormMaking/custom/configs/button.vue +2 -2
- package/packages/FormMaking/index.vue +8 -3
- package/packages/TableMaking/generateTable.vue +5 -1
- package/packages/TableMaking/widgetConfig.vue +28 -6
package/package.json
CHANGED
@@ -372,12 +372,15 @@
|
|
372
372
|
</template>
|
373
373
|
|
374
374
|
<template v-if="widget.type == 'image'">
|
375
|
-
<
|
375
|
+
<el-image
|
376
|
+
:style="{
|
377
|
+
width: widget.options.width,
|
378
|
+
height: widget.options.height
|
379
|
+
}"
|
376
380
|
:src="widget.options.defaultValue"
|
377
|
-
:height="widget.options.height"
|
378
|
-
:width="widget.options.width"
|
379
381
|
:fit="widget.options.fit"
|
380
|
-
|
382
|
+
lazy
|
383
|
+
></el-image>
|
381
384
|
</template>
|
382
385
|
|
383
386
|
<template v-if="widget.type == 'upload'">
|
@@ -802,6 +805,7 @@ export default {
|
|
802
805
|
// 支撑 JavaScript 动态编译
|
803
806
|
handleEventAction(key) {
|
804
807
|
if (!key) return;
|
808
|
+
|
805
809
|
const eventScript = this.config.eventScript;
|
806
810
|
for (let i = 0; i < eventScript.length; i++) {
|
807
811
|
const element = eventScript[i];
|
@@ -88,14 +88,14 @@
|
|
88
88
|
<span class="value" @click="handleEventsShow">配置</span>
|
89
89
|
</div>
|
90
90
|
|
91
|
-
<el-radio-group
|
91
|
+
<!-- <el-radio-group
|
92
92
|
style="margin-bottom:10px;"
|
93
93
|
v-model="widget.options.remote"
|
94
94
|
size="mini"
|
95
95
|
>
|
96
96
|
<el-radio-button :label="false">自定义事件</el-radio-button>
|
97
97
|
<el-radio-button :label="true">绑定接口</el-radio-button>
|
98
|
-
</el-radio-group>
|
98
|
+
</el-radio-group> -->
|
99
99
|
|
100
100
|
<div v-show="widget.options.remote">
|
101
101
|
<el-select
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="fm-container">
|
3
|
-
<el-container v-if="widgetFormData.config" class="container-box">
|
3
|
+
<el-container v-if="Object.keys(widgetFormData.config).length" class="container-box">
|
4
4
|
<el-main>
|
5
5
|
<el-container>
|
6
6
|
<!-- 左侧字段区 -->
|
@@ -400,7 +400,7 @@ export default {
|
|
400
400
|
data: {
|
401
401
|
type: Object,
|
402
402
|
default: () => {
|
403
|
-
return {};
|
403
|
+
return { config: {}, list: [] };
|
404
404
|
}
|
405
405
|
},
|
406
406
|
oauthConfig: {
|
@@ -547,8 +547,13 @@ export default {
|
|
547
547
|
this.baseConfig,
|
548
548
|
this.widgetFormData.config
|
549
549
|
);
|
550
|
-
if (
|
550
|
+
if (
|
551
|
+
this.widgetFormData.list &&
|
552
|
+
this.widgetFormData.list.length
|
553
|
+
) {
|
551
554
|
this.widgetFormSelect = this.widgetFormData.list[0];
|
555
|
+
}else {
|
556
|
+
this.widgetFormData.list = []
|
552
557
|
}
|
553
558
|
},
|
554
559
|
mounted() {},
|
@@ -236,7 +236,10 @@ export default {
|
|
236
236
|
data: this.oauthConfig.oauth.params,
|
237
237
|
headers: this.oauthConfig.oauth.headers
|
238
238
|
}).then(res => {
|
239
|
-
const oauthInfo = {
|
239
|
+
const oauthInfo = {
|
240
|
+
token: res.data,
|
241
|
+
baseUrl: this.oauthConfig.baseUrl
|
242
|
+
};
|
240
243
|
sessionStorage.setItem("th_oauth_info", JSON.stringify(oauthInfo));
|
241
244
|
// this.axios.defaults.baseURL = this.oauthConfig.baseUrl;
|
242
245
|
this.requestConfigData();
|
@@ -290,6 +293,7 @@ export default {
|
|
290
293
|
label: "操作",
|
291
294
|
hide: true,
|
292
295
|
slot: "action",
|
296
|
+
fixed: "right",
|
293
297
|
actions: []
|
294
298
|
};
|
295
299
|
|
@@ -109,7 +109,18 @@
|
|
109
109
|
</el-select>
|
110
110
|
</el-form-item>
|
111
111
|
</el-collapse-item> -->
|
112
|
-
<el-collapse-item
|
112
|
+
<el-collapse-item name="3">
|
113
|
+
<template slot="title">
|
114
|
+
<div class="collapse-title">
|
115
|
+
<div>按钮配置</div>
|
116
|
+
<div
|
117
|
+
class="collapse-title-action"
|
118
|
+
@click.stop="handleActionConfig"
|
119
|
+
>
|
120
|
+
配置
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
</template>
|
113
124
|
<el-form-item label-width="90px">
|
114
125
|
<el-checkbox v-model="tableConfig.tools.add.show" slot="label"
|
115
126
|
>新增</el-checkbox
|
@@ -176,11 +187,6 @@
|
|
176
187
|
></el-input>
|
177
188
|
</el-form-item>
|
178
189
|
</el-collapse-item>
|
179
|
-
<!-- <el-collapse-item title="权限设置" name="4">
|
180
|
-
<div>
|
181
|
-
与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;
|
182
|
-
</div>
|
183
|
-
</el-collapse-item> -->
|
184
190
|
</el-collapse>
|
185
191
|
</el-form>
|
186
192
|
</div>
|
@@ -297,6 +303,7 @@ export default {
|
|
297
303
|
this.table.isIndeterminate = false;
|
298
304
|
this.handleChange();
|
299
305
|
},
|
306
|
+
handleActionConfig() {},
|
300
307
|
getJson() {
|
301
308
|
return JSON.parse(JSON.stringify(this.tableConfig));
|
302
309
|
}
|
@@ -346,6 +353,21 @@ export default {
|
|
346
353
|
|
347
354
|
.tableConfig {
|
348
355
|
height: calc(100% - 45px);
|
356
|
+
|
357
|
+
.collapse-title {
|
358
|
+
display: flex;
|
359
|
+
justify-content: space-between;
|
360
|
+
width: 100%;
|
361
|
+
padding-right: 10px;
|
362
|
+
|
363
|
+
.collapse-title-action {
|
364
|
+
transition: 0.25s;
|
365
|
+
}
|
366
|
+
|
367
|
+
.collapse-title-action:hover {
|
368
|
+
color: #409eff;
|
369
|
+
}
|
370
|
+
}
|
349
371
|
}
|
350
372
|
}
|
351
373
|
</style>
|