ol-base-components 2.1.6 → 2.1.8
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 +1 -1
- package/src/api/run.js +1 -1
- package/src/package/index.js +0 -4
- package/src/globalData.js +0 -7
package/package.json
CHANGED
package/src/api/run.js
CHANGED
|
@@ -9,7 +9,7 @@ const path = require("path");
|
|
|
9
9
|
const swaggerUrl = process.argv[2]
|
|
10
10
|
? `${process.argv[2]}/swagger/v1/swagger.json`
|
|
11
11
|
: "";
|
|
12
|
-
const outputPath = process.argv[3] ||
|
|
12
|
+
const outputPath = process.argv[3] || "src/api/swagger.js" || "swagger.js";
|
|
13
13
|
|
|
14
14
|
http
|
|
15
15
|
.get(swaggerUrl, (response) => {
|
package/src/package/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import OlTable from "./table";
|
|
|
2
2
|
import OlSearch from "./formSearch";
|
|
3
3
|
import Dialog from "./dialog";
|
|
4
4
|
import SwaggerClient from "swagger-client";
|
|
5
|
-
import globalData from "../globalData";
|
|
6
5
|
|
|
7
6
|
const consoleTooltip = () => {
|
|
8
7
|
// 定义颜色和样式
|
|
@@ -192,9 +191,6 @@ const install = async function (
|
|
|
192
191
|
outputDir: "",
|
|
193
192
|
}
|
|
194
193
|
) {
|
|
195
|
-
if (options && options.swaggerUrl) globalData.swaggerUrl = options.swaggerUrl;
|
|
196
|
-
if (options && options.outputDir) globalData.outputDir = options.outputDir;
|
|
197
|
-
|
|
198
194
|
// 设置全局数据
|
|
199
195
|
components.map((item) => {
|
|
200
196
|
Vue.component(`ol-${item.name}`, item);
|