nxd-plugin 1.0.5 → 1.0.6
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/dist/components/HighwayLiveAlarm/default.json.d.ts +31945 -0
- package/dist/components/HighwayStations/default.json.d.ts +31945 -0
- package/dist/nxd-plugin.css +1 -1
- package/dist/nxd-plugin.mjs +116675 -40
- package/dist/nxd-plugin.umd.js +77 -1
- package/dist/src/components/HighwayLiveAlarm/HighwayLiveAlarm.vue.d.ts +49 -0
- package/dist/src/components/HighwayStations/HighwayStations.vue.d.ts +44 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/utils/auth.d.ts +3 -0
- package/dist/src/utils/methods.d.ts +0 -0
- package/dist/src/utils/request.d.ts +17 -1
- package/package.json +11 -1
- package/readme.md +33 -0
- package/dist/src/utils/index.d.ts +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
tokenInterface: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
tokenInterfaceParams: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
tokenInterfaceType: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
tokenInterfaceIsFormData: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
dataInterface: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
dataInterfaceParams: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
dataInterfaceType: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
dataInterfaceIsFormData: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
baseMapUrl: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {
|
|
39
|
+
tokenInterface: string;
|
|
40
|
+
tokenInterfaceParams: Record<string, any>;
|
|
41
|
+
tokenInterfaceType: string;
|
|
42
|
+
tokenInterfaceIsFormData: boolean;
|
|
43
|
+
dataInterface: string;
|
|
44
|
+
dataInterfaceParams: Record<string, any>;
|
|
45
|
+
dataInterfaceType: string;
|
|
46
|
+
dataInterfaceIsFormData: boolean;
|
|
47
|
+
baseMapUrl: string;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
tokenInterface: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
tokenInterfaceParams: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
tokenInterfaceType: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
tokenInterfaceIsFormData: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
dataInterface: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
dataInterfaceParams: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
dataInterfaceType: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
dataInterfaceIsFormData: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {
|
|
35
|
+
tokenInterface: string;
|
|
36
|
+
tokenInterfaceParams: Record<string, any>;
|
|
37
|
+
tokenInterfaceType: string;
|
|
38
|
+
tokenInterfaceIsFormData: boolean;
|
|
39
|
+
dataInterface: string;
|
|
40
|
+
dataInterfaceParams: Record<string, any>;
|
|
41
|
+
dataInterfaceType: string;
|
|
42
|
+
dataInterfaceIsFormData: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
44
|
+
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as MyComponent } from './components/MyComponent/MyComponent.vue';
|
|
2
2
|
import { default as MyComponent2 } from './components/MyComponent2/MyComponent2.vue';
|
|
3
3
|
import { default as TestCom } from './components/TestCom/TestCom.vue';
|
|
4
|
+
import { default as HighwayLiveAlarm } from './components/HighwayLiveAlarm/HighwayLiveAlarm.vue';
|
|
5
|
+
import { default as HighwayStations } from './components/HighwayStations/HighwayStations.vue';
|
|
4
6
|
import { Plugin } from 'vue';
|
|
5
|
-
export { MyComponent, MyComponent2, TestCom };
|
|
7
|
+
export { MyComponent, MyComponent2, TestCom, HighwayLiveAlarm, HighwayStations };
|
|
6
8
|
declare const plugin: Plugin;
|
|
7
9
|
export default plugin;
|
|
File without changes
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
type Method = 'get' | 'post';
|
|
3
|
+
type Params = Record<string, any>;
|
|
4
|
+
type RequestConfig = AxiosRequestConfig & {
|
|
5
|
+
_retried?: boolean;
|
|
6
|
+
url: string;
|
|
7
|
+
method?: Method;
|
|
8
|
+
params?: Params;
|
|
9
|
+
isFormData?: boolean;
|
|
10
|
+
tokenInterface?: string;
|
|
11
|
+
tokenInterfaceParams?: Params;
|
|
12
|
+
tokenInterfaceType?: Method;
|
|
13
|
+
tokenInterfaceIsFormData?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function myRequest<T = any>({ url, method, params, isFormData, tokenInterface, tokenInterfaceParams, tokenInterfaceType, tokenInterfaceIsFormData, ...rest }: RequestConfig): Promise<T>;
|
|
16
|
+
export default myRequest;
|
|
17
|
+
export declare const reqFile: (url: string, timestamp?: boolean) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nxd-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "dist/nxd-plugin.umd.js",
|
|
5
5
|
"module": "dist/nxd-plugin.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -27,15 +27,25 @@
|
|
|
27
27
|
"vue": "^3.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@types/js-cookie": "^3.0.6",
|
|
30
31
|
"@types/node": "^25.5.0",
|
|
32
|
+
"@types/qs": "^6.15.0",
|
|
31
33
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
32
34
|
"axios": "^1.14.0",
|
|
33
35
|
"jsdom": "^29.0.1",
|
|
34
36
|
"sass": "^1.98.0",
|
|
35
37
|
"typescript": "^6.0.2",
|
|
38
|
+
"unplugin-auto-import": "^21.0.0",
|
|
39
|
+
"unplugin-vue-components": "^32.0.0",
|
|
36
40
|
"vite": "^8.0.3",
|
|
37
41
|
"vite-plugin-dts": "^4.5.4",
|
|
38
42
|
"vue": "^3.5.31",
|
|
39
43
|
"vue-tsc": "^3.0.5"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"echarts": "^6.0.0",
|
|
47
|
+
"element-plus": "^2.13.7",
|
|
48
|
+
"js-cookie": "^3.0.5",
|
|
49
|
+
"qs": "^6.15.1"
|
|
40
50
|
}
|
|
41
51
|
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# 固定参数
|
|
2
|
+
|
|
3
|
+
| 参数 | 类型 | 说明 |
|
|
4
|
+
| :----------------------- | :------ | :--------------------- |
|
|
5
|
+
| tokenInterface | string | token接口地址(不传则不调用token) |
|
|
6
|
+
| tokenInterfaceParams | object | token接口参数 |
|
|
7
|
+
| tokenInterfaceType | string | token接口请求方式 |
|
|
8
|
+
| tokenInterfaceIsFormData | boolean | token接口参数是否为formData |
|
|
9
|
+
| dataInterface | string | 数据接口地址 |
|
|
10
|
+
| dataInterfaceType | string | 数据接口请求方式 |
|
|
11
|
+
| dataInterfaceIsFormData | boolean | 数据接口参数是否为formData |
|
|
12
|
+
| dataInterfaceParams | object | 数据接口参数 |
|
|
13
|
+
|
|
14
|
+
# 统一事件
|
|
15
|
+
|
|
16
|
+
- 关闭组件
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
emit('close','组件名(组件最外层的class名)')
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# 组件列表
|
|
23
|
+
|
|
24
|
+
## 高速公路实况报警
|
|
25
|
+
|
|
26
|
+
组件名
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
HighwayLiveAlarm
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
组件截图
|
|
33
|
+
addLayers
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './request';
|