tianheng-ui 0.0.93 → 0.0.94

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.93",
4
+ "version": "0.0.94",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -96,7 +96,7 @@ export default {
96
96
  return [];
97
97
  }
98
98
  },
99
- client: String
99
+ client: String,
100
100
  },
101
101
  data() {
102
102
  return {
@@ -802,6 +802,7 @@ export default {
802
802
  // 支撑 JavaScript 动态编译
803
803
  handleEventAction(key) {
804
804
  if (!key) return;
805
+
805
806
  const eventScript = this.config.eventScript;
806
807
  for (let i = 0; i < eventScript.length; i++) {
807
808
  const element = eventScript[i];
@@ -855,7 +856,8 @@ export default {
855
856
  // 获取数据,仅支持获取当前组件节点下的数据
856
857
  getData() {
857
858
  return this.models;
858
- }
859
+ },
860
+
859
861
  }
860
862
  };
861
863
  </script>
@@ -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 (this.widgetFormData && this.widgetFormData.list.length) {
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 = { token: res.data, baseUrl: this.oauthConfig.baseUrl };
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 title="按钮配置" name="3">
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>