@dckj-npm/dc-material 0.1.131 → 0.1.133

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.
@@ -2,7 +2,9 @@ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode
2
2
 
3
3
  // 假设这是你的异步函数,用于从服务器获取选项
4
4
  async function fetchFormOptions(): Promise<{ title: string; value: string }[]> {
5
+ // const url = 'https://51ymb.com/source/api/dynamicFormTable/map'
5
6
  const url = '/source/api/dynamicFormTable/map'
7
+
6
8
  const params = {
7
9
  fkProjectSpace: '1046107745394233344',
8
10
  }
@@ -33,7 +35,9 @@ async function fetchFormOptions(): Promise<{ title: string; value: string }[]> {
33
35
  }
34
36
 
35
37
  const data = await response.json()
36
- return data.map((item: any) => ({
38
+ console.log('data', data)
39
+ console.log('response', response)
40
+ return data.data.map((item: any) => ({
37
41
  title: item.tableComment,
38
42
  value: item.tableName,
39
43
  }))
@@ -12,6 +12,7 @@ function _fetchFormOptions() {
12
12
  return _regeneratorRuntime.wrap(function _callee$(_context) {
13
13
  while (1) switch (_context.prev = _context.next) {
14
14
  case 0:
15
+ // const url = 'https://51ymb.com/source/api/dynamicFormTable/map'
15
16
  url = '/source/api/dynamicFormTable/map';
16
17
  params = {
17
18
  fkProjectSpace: '1046107745394233344'
@@ -48,13 +49,15 @@ function _fetchFormOptions() {
48
49
  return response.json();
49
50
  case 11:
50
51
  data = _context.sent;
51
- return _context.abrupt("return", data.map(function (item) {
52
+ console.log('data', data);
53
+ console.log('response', response);
54
+ return _context.abrupt("return", data.data.map(function (item) {
52
55
  return {
53
56
  title: item.tableComment,
54
57
  value: item.tableName
55
58
  };
56
59
  }));
57
- case 13:
60
+ case 15:
58
61
  case "end":
59
62
  return _context.stop();
60
63
  }
@@ -95,7 +95,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
95
95
  packageName = '@dckj-npm/dc-material';
96
96
  }
97
97
  if (version === void 0) {
98
- version = '0.1.131';
98
+ version = '0.1.133';
99
99
  }
100
100
  if (basicLibraryVersion === void 0) {
101
101
  basicLibraryVersion = {
@@ -17,6 +17,7 @@ function _fetchFormOptions() {
17
17
  return _regenerator["default"].wrap(function _callee$(_context) {
18
18
  while (1) switch (_context.prev = _context.next) {
19
19
  case 0:
20
+ // const url = 'https://51ymb.com/source/api/dynamicFormTable/map'
20
21
  url = '/source/api/dynamicFormTable/map';
21
22
  params = {
22
23
  fkProjectSpace: '1046107745394233344'
@@ -53,13 +54,15 @@ function _fetchFormOptions() {
53
54
  return response.json();
54
55
  case 11:
55
56
  data = _context.sent;
56
- return _context.abrupt("return", data.map(function (item) {
57
+ console.log('data', data);
58
+ console.log('response', response);
59
+ return _context.abrupt("return", data.data.map(function (item) {
57
60
  return {
58
61
  title: item.tableComment,
59
62
  value: item.tableName
60
63
  };
61
64
  }));
62
- case 13:
65
+ case 15:
63
66
  case "end":
64
67
  return _context.stop();
65
68
  }
@@ -100,7 +100,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
100
100
  packageName = '@dckj-npm/dc-material';
101
101
  }
102
102
  if (version === void 0) {
103
- version = '0.1.131';
103
+ version = '0.1.133';
104
104
  }
105
105
  if (basicLibraryVersion === void 0) {
106
106
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.131",
3
+ "version": "0.1.133",
4
4
  "description": "dc低代码物料",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -103,7 +103,7 @@
103
103
  },
104
104
  "componentConfig": {
105
105
  "isComponentLibrary": true,
106
- "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.131/build/lowcode/assets-prod.json"
106
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.133/build/lowcode/assets-prod.json"
107
107
  },
108
108
  "lcMeta": {
109
109
  "type": "component"