wui-components-v2 1.1.45 → 1.1.47

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.
Files changed (2) hide show
  1. package/api/page.ts +11 -4
  2. package/package.json +2 -1
package/api/page.ts CHANGED
@@ -8,10 +8,17 @@ interface PageConfig {
8
8
  sourceName: string
9
9
  }
10
10
  // 列表页面配置
11
- export function pageConfig(sourceId: string): Promise<PageConfig> {
12
- return req({
13
- url: `/v3/ltmpl/config?sourceId=${sourceId}`,
14
- })
11
+ export async function pageConfig(sourceId: string): Promise<PageConfig> {
12
+ const res = await req({url: `/v3/ltmpl/config?sourceId=${sourceId}`})||{}
13
+ const {ltmplConfig={}}=res
14
+ const {extDisplayConfig={}}=ltmplConfig
15
+ return { //配置结构调整
16
+ ...res,
17
+ ltmplConfig:{
18
+ ...ltmplConfig,
19
+ ...extDisplayConfig
20
+ }
21
+ }
15
22
  }
16
23
 
17
24
  // 获取列表页面数据key
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",
@@ -13,6 +13,7 @@
13
13
  "test": "echo \"Error: no test specified\" && exit 1"
14
14
  },
15
15
  "dependencies": {
16
+ "@wot-ui/ui": "^2.0.8",
16
17
  "china-address-parse": "^1.2.1",
17
18
  "dayjs": "^1.11.20",
18
19
  "jsencrypt": "^3.3.2",