ol-base-components 1.5.3 → 1.5.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-base-components",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "scripts": {
@@ -147,6 +147,7 @@ function showLoading() {
147
147
  #loading {
148
148
  background: linear-gradient(135deg, #a8c8e0, #f0f4f8); /* 更柔和的渐变背景 */
149
149
  color: #333; /* 文本颜色 */
150
+ z-index:9999999;
150
151
  }
151
152
  `;
152
153
  document.head.appendChild(style);
@@ -184,18 +185,11 @@ function hideLoading() {
184
185
  }
185
186
  }
186
187
 
187
- const install = async function (
188
- Vue,
189
- options = {
190
- swaggerUrl: "",
191
- successSwaggerCallback: null,
192
- }
193
- ) {
188
+ const install = async function (Vue) {
194
189
  // 遍历所有组件
195
190
  components.map((item) => {
196
191
  Vue.component(`ol-${item.name}`, item);
197
192
  });
198
- await swaggerInstall(Vue, options);
199
193
  consoleTooltip();
200
194
  };
201
195
 
@@ -106,6 +106,13 @@
106
106
  :index="computeTableIndex"
107
107
  label="序号"
108
108
  />
109
+ <el-table-column
110
+ v-if="tableData.options && tableData.options.selection"
111
+ width="60"
112
+ align="center"
113
+ type="selection"
114
+ label=""
115
+ />
109
116
  <template v-for="(item, index) in bindTableColumns">
110
117
  <el-table-column
111
118
  :key="index"
@@ -423,20 +430,6 @@ export default {
423
430
  });
424
431
  }
425
432
  });
426
-
427
- // 一定加上selection,通过show显示隐藏
428
- const itemSelection = this.tableData.columns.find((item) => item.type == "selection");
429
- const hasSelection = this.tableData.options.selection;
430
- if (itemSelection) {
431
- itemSelection.show = !!hasSelection;
432
- } else {
433
- this.tableData.columns.unshift({
434
- label: "",
435
- minWidth: "",
436
- type: "selection",
437
- show: !!hasSelection,
438
- });
439
- }
440
433
  }).catch((error) => {
441
434
  console.error("获取 Swagger 数据失败:", error);
442
435
  });