ol-base-components 2.8.9 → 2.8.11
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
|
@@ -519,7 +519,7 @@ export default {
|
|
|
519
519
|
// 从 IndexedDB 中获取 Swagger 数据
|
|
520
520
|
getData()
|
|
521
521
|
.then(async swaggerData => {
|
|
522
|
-
|
|
522
|
+
let swaggerColumns =
|
|
523
523
|
swaggerData.paths[this.url].get.responses["200"].content["application/json"].schema
|
|
524
524
|
.properties.items.items.properties;
|
|
525
525
|
|
|
@@ -559,7 +559,7 @@ export default {
|
|
|
559
559
|
// 如果是枚举值直接转成Desc结尾的,swagger中没有Desc但是后端接口会返回带Desc的字段,用于前端展示枚举值的中文
|
|
560
560
|
if (item.enum && Array.isArray(item.enum)) {
|
|
561
561
|
obj.prop = `${key}Desc`;
|
|
562
|
-
obj.label = item.description.replace(
|
|
562
|
+
obj.label = item.description.replace(/(枚举|枚举值)/g, "");
|
|
563
563
|
}
|
|
564
564
|
this.tableData.columns.push(obj);
|
|
565
565
|
}
|