@dckj-npm/dc-material 0.1.39 → 0.1.41

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.
@@ -16,15 +16,15 @@ const snippets: IPublicTypeSnippet[] = [
16
16
  {
17
17
  componentName: "TabContainerItem",
18
18
  props: {
19
- title: "标签项1",
20
- primaryKey: "tab-item-1",
19
+ tab: "标签项1",
20
+ key: "tab-item-1",
21
21
  },
22
22
  },
23
23
  {
24
24
  componentName: "TabContainerItem",
25
25
  props: {
26
- title: "标签项2",
27
- primaryKey: "tab-item-2",
26
+ tab: "标签项2",
27
+ key: "tab-item-2",
28
28
  },
29
29
  },
30
30
  ],
@@ -67,4 +67,4 @@ const TabContainerMeta: IPublicTypeComponentMetadata = {
67
67
  export default {
68
68
  ...TabContainerMeta,
69
69
  snippets
70
- };
70
+ };
@@ -11,14 +11,14 @@ export default [
11
11
  config: {
12
12
  items: [
13
13
  {
14
- name: 'title',
14
+ name: 'tab',
15
15
  title: '名称',
16
16
  defaultValue: '标签项',
17
17
  important: true,
18
18
  setter: 'StringSetter',
19
19
  },
20
20
  {
21
- name: 'primaryKey',
21
+ name: 'key',
22
22
  title: '项目编号',
23
23
  condition: () => false,
24
24
  setter: 'StringSetter',
@@ -40,8 +40,8 @@ export default [
40
40
  },
41
41
  initialValue: () => {
42
42
  return {
43
- primaryKey: String(Math.floor(Math.random() * 10000)),
44
- title: '标签项',
43
+ key: String(Math.floor(Math.random() * 10000)),
44
+ tab: '标签项',
45
45
  closeable: false,
46
46
  disabled: false,
47
47
  };
@@ -52,12 +52,12 @@ export default [
52
52
  extraProps: {
53
53
  getValue(target) {
54
54
  const map = target.node.children.map((child) => {
55
- const primaryKey = child.getPropValue('primaryKey')
56
- ? String(child.getPropValue('primaryKey'))
55
+ const primaryKey = child.getPropValue('key')
56
+ ? String(child.getPropValue('key'))
57
57
  : child.id;
58
58
  return {
59
- primaryKey,
60
- title: child.getPropValue('title') || '标签项',
59
+ key: primaryKey,
60
+ tab: child.getPropValue('tab') || '标签项',
61
61
  closeable: child.getPropValue('closeable'),
62
62
  disabled: child.getPropValue('disabled'),
63
63
  };
@@ -72,14 +72,14 @@ export default [
72
72
  }
73
73
  value.forEach((item) => {
74
74
  const tabitem = Object.assign({}, item);
75
- map[item.primaryKey] = tabitem;
75
+ map[item.key] = tabitem;
76
76
  });
77
77
 
78
78
  node.children.mergeChildren(
79
79
  (child) => {
80
- const primaryKey = String(child.getPropValue('primaryKey'));
80
+ const primaryKey = String(child.getPropValue('key'));
81
81
  if (Object.hasOwnProperty.call(map, primaryKey)) {
82
- child.setPropValue('title', map[primaryKey].title);
82
+ child.setPropValue('tab', map[primaryKey].tab);
83
83
  child.setPropValue('closeable', map[primaryKey].closeable);
84
84
  child.setPropValue('disabled', map[primaryKey].disabled);
85
85
  delete map[primaryKey];
@@ -101,10 +101,10 @@ export default [
101
101
  },
102
102
  (child1, child2) => {
103
103
  const a = value.findIndex(
104
- (item) => String(item.primaryKey) === String(child1.getPropValue('primaryKey')),
104
+ (item) => String(item.key) === String(child1.getPropValue('key')),
105
105
  );
106
106
  const b = value.findIndex(
107
- (item) => String(item.primaryKey) === String(child2.getPropValue('primaryKey')),
107
+ (item) => String(item.key) === String(child2.getPropValue('key')),
108
108
  );
109
109
  return a - b;
110
110
  },
@@ -26,7 +26,7 @@ const TabContainerItemMeta: IPublicTypeComponentMetadata = {
26
26
  },
27
27
  tip: 'title | 选项卡标题',
28
28
  },
29
- name: 'title',
29
+ name: 'tab',
30
30
  description: '选项卡标题',
31
31
  setter: {
32
32
  componentName: 'StringSetter',
@@ -315,7 +315,7 @@ const snippets: IPublicTypeSnippet[] = [
315
315
  props: {
316
316
  name: '报名火热',
317
317
  color: 'orange',
318
- key: 'teletext-tagc-1'
318
+ key: 'teletext-tag-c'
319
319
  },
320
320
  }
321
321
  ]
@@ -92,7 +92,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
92
92
  packageName = '@dckj-npm/dc-material';
93
93
  }
94
94
  if (version === void 0) {
95
- version = '0.1.37';
95
+ version = '0.1.41';
96
96
  }
97
97
  if (basicLibraryVersion === void 0) {
98
98
  basicLibraryVersion = {
@@ -12,14 +12,14 @@ var snippets = [{
12
12
  children: [{
13
13
  componentName: "TabContainerItem",
14
14
  props: {
15
- title: "标签项1",
16
- primaryKey: "tab-item-1"
15
+ tab: "标签项1",
16
+ key: "tab-item-1"
17
17
  }
18
18
  }, {
19
19
  componentName: "TabContainerItem",
20
20
  props: {
21
- title: "标签项2",
22
- primaryKey: "tab-item-2"
21
+ tab: "标签项2",
22
+ key: "tab-item-2"
23
23
  }
24
24
  }]
25
25
  }
@@ -36,8 +36,8 @@ declare const _default: ({
36
36
  };
37
37
  };
38
38
  initialValue: () => {
39
- primaryKey: string;
40
- title: string;
39
+ key: string;
40
+ tab: string;
41
41
  closeable: boolean;
42
42
  disabled: boolean;
43
43
  };
@@ -9,13 +9,13 @@ export default [{
9
9
  props: {
10
10
  config: {
11
11
  items: [{
12
- name: 'title',
12
+ name: 'tab',
13
13
  title: '名称',
14
14
  defaultValue: '标签项',
15
15
  important: true,
16
16
  setter: 'StringSetter'
17
17
  }, {
18
- name: 'primaryKey',
18
+ name: 'key',
19
19
  title: '项目编号',
20
20
  condition: function condition() {
21
21
  return false;
@@ -36,8 +36,8 @@ export default [{
36
36
  },
37
37
  initialValue: function initialValue() {
38
38
  return {
39
- primaryKey: String(Math.floor(Math.random() * 10000)),
40
- title: '标签项',
39
+ key: String(Math.floor(Math.random() * 10000)),
40
+ tab: '标签项',
41
41
  closeable: false,
42
42
  disabled: false
43
43
  };
@@ -48,10 +48,10 @@ export default [{
48
48
  extraProps: {
49
49
  getValue: function getValue(target) {
50
50
  var map = target.node.children.map(function (child) {
51
- var primaryKey = child.getPropValue('primaryKey') ? String(child.getPropValue('primaryKey')) : child.id;
51
+ var primaryKey = child.getPropValue('key') ? String(child.getPropValue('key')) : child.id;
52
52
  return {
53
- primaryKey: primaryKey,
54
- title: child.getPropValue('title') || '标签项',
53
+ key: primaryKey,
54
+ tab: child.getPropValue('tab') || '标签项',
55
55
  closeable: child.getPropValue('closeable'),
56
56
  disabled: child.getPropValue('disabled')
57
57
  };
@@ -66,12 +66,12 @@ export default [{
66
66
  }
67
67
  value.forEach(function (item) {
68
68
  var tabitem = Object.assign({}, item);
69
- map[item.primaryKey] = tabitem;
69
+ map[item.key] = tabitem;
70
70
  });
71
71
  node.children.mergeChildren(function (child) {
72
- var primaryKey = String(child.getPropValue('primaryKey'));
72
+ var primaryKey = String(child.getPropValue('key'));
73
73
  if (Object.hasOwnProperty.call(map, primaryKey)) {
74
- child.setPropValue('title', map[primaryKey].title);
74
+ child.setPropValue('tab', map[primaryKey].tab);
75
75
  child.setPropValue('closeable', map[primaryKey].closeable);
76
76
  child.setPropValue('disabled', map[primaryKey].disabled);
77
77
  delete map[primaryKey];
@@ -91,10 +91,10 @@ export default [{
91
91
  return items;
92
92
  }, function (child1, child2) {
93
93
  var a = value.findIndex(function (item) {
94
- return String(item.primaryKey) === String(child1.getPropValue('primaryKey'));
94
+ return String(item.key) === String(child1.getPropValue('key'));
95
95
  });
96
96
  var b = value.findIndex(function (item) {
97
- return String(item.primaryKey) === String(child2.getPropValue('primaryKey'));
97
+ return String(item.key) === String(child2.getPropValue('key'));
98
98
  });
99
99
  return a - b;
100
100
  });
@@ -23,7 +23,7 @@ var TabContainerItemMeta = {
23
23
  },
24
24
  tip: 'title | 选项卡标题'
25
25
  },
26
- name: 'title',
26
+ name: 'tab',
27
27
  description: '选项卡标题',
28
28
  setter: {
29
29
  componentName: 'StringSetter',
@@ -280,7 +280,7 @@ var snippets = [{
280
280
  props: {
281
281
  name: '报名火热',
282
282
  color: 'orange',
283
- key: 'teletext-tagc-1'
283
+ key: 'teletext-tag-c'
284
284
  }
285
285
  }]
286
286
  }
@@ -97,7 +97,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
97
97
  packageName = '@dckj-npm/dc-material';
98
98
  }
99
99
  if (version === void 0) {
100
- version = '0.1.37';
100
+ version = '0.1.41';
101
101
  }
102
102
  if (basicLibraryVersion === void 0) {
103
103
  basicLibraryVersion = {
@@ -17,14 +17,14 @@ var snippets = [{
17
17
  children: [{
18
18
  componentName: "TabContainerItem",
19
19
  props: {
20
- title: "标签项1",
21
- primaryKey: "tab-item-1"
20
+ tab: "标签项1",
21
+ key: "tab-item-1"
22
22
  }
23
23
  }, {
24
24
  componentName: "TabContainerItem",
25
25
  props: {
26
- title: "标签项2",
27
- primaryKey: "tab-item-2"
26
+ tab: "标签项2",
27
+ key: "tab-item-2"
28
28
  }
29
29
  }]
30
30
  }
@@ -36,8 +36,8 @@ declare const _default: ({
36
36
  };
37
37
  };
38
38
  initialValue: () => {
39
- primaryKey: string;
40
- title: string;
39
+ key: string;
40
+ tab: string;
41
41
  closeable: boolean;
42
42
  disabled: boolean;
43
43
  };
@@ -13,13 +13,13 @@ var _default = exports["default"] = [{
13
13
  props: {
14
14
  config: {
15
15
  items: [{
16
- name: 'title',
16
+ name: 'tab',
17
17
  title: '名称',
18
18
  defaultValue: '标签项',
19
19
  important: true,
20
20
  setter: 'StringSetter'
21
21
  }, {
22
- name: 'primaryKey',
22
+ name: 'key',
23
23
  title: '项目编号',
24
24
  condition: function condition() {
25
25
  return false;
@@ -40,8 +40,8 @@ var _default = exports["default"] = [{
40
40
  },
41
41
  initialValue: function initialValue() {
42
42
  return {
43
- primaryKey: String(Math.floor(Math.random() * 10000)),
44
- title: '标签项',
43
+ key: String(Math.floor(Math.random() * 10000)),
44
+ tab: '标签项',
45
45
  closeable: false,
46
46
  disabled: false
47
47
  };
@@ -52,10 +52,10 @@ var _default = exports["default"] = [{
52
52
  extraProps: {
53
53
  getValue: function getValue(target) {
54
54
  var map = target.node.children.map(function (child) {
55
- var primaryKey = child.getPropValue('primaryKey') ? String(child.getPropValue('primaryKey')) : child.id;
55
+ var primaryKey = child.getPropValue('key') ? String(child.getPropValue('key')) : child.id;
56
56
  return {
57
- primaryKey: primaryKey,
58
- title: child.getPropValue('title') || '标签项',
57
+ key: primaryKey,
58
+ tab: child.getPropValue('tab') || '标签项',
59
59
  closeable: child.getPropValue('closeable'),
60
60
  disabled: child.getPropValue('disabled')
61
61
  };
@@ -70,12 +70,12 @@ var _default = exports["default"] = [{
70
70
  }
71
71
  value.forEach(function (item) {
72
72
  var tabitem = Object.assign({}, item);
73
- map[item.primaryKey] = tabitem;
73
+ map[item.key] = tabitem;
74
74
  });
75
75
  node.children.mergeChildren(function (child) {
76
- var primaryKey = String(child.getPropValue('primaryKey'));
76
+ var primaryKey = String(child.getPropValue('key'));
77
77
  if (Object.hasOwnProperty.call(map, primaryKey)) {
78
- child.setPropValue('title', map[primaryKey].title);
78
+ child.setPropValue('tab', map[primaryKey].tab);
79
79
  child.setPropValue('closeable', map[primaryKey].closeable);
80
80
  child.setPropValue('disabled', map[primaryKey].disabled);
81
81
  delete map[primaryKey];
@@ -95,10 +95,10 @@ var _default = exports["default"] = [{
95
95
  return items;
96
96
  }, function (child1, child2) {
97
97
  var a = value.findIndex(function (item) {
98
- return String(item.primaryKey) === String(child1.getPropValue('primaryKey'));
98
+ return String(item.key) === String(child1.getPropValue('key'));
99
99
  });
100
100
  var b = value.findIndex(function (item) {
101
- return String(item.primaryKey) === String(child2.getPropValue('primaryKey'));
101
+ return String(item.key) === String(child2.getPropValue('key'));
102
102
  });
103
103
  return a - b;
104
104
  });
@@ -28,7 +28,7 @@ var TabContainerItemMeta = {
28
28
  },
29
29
  tip: 'title | 选项卡标题'
30
30
  },
31
- name: 'title',
31
+ name: 'tab',
32
32
  description: '选项卡标题',
33
33
  setter: {
34
34
  componentName: 'StringSetter',
@@ -285,7 +285,7 @@ var snippets = [{
285
285
  props: {
286
286
  name: '报名火热',
287
287
  color: 'orange',
288
- key: 'teletext-tagc-1'
288
+ key: 'teletext-tag-c'
289
289
  }
290
290
  }]
291
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "dc低代码物料",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -103,10 +103,10 @@
103
103
  },
104
104
  "componentConfig": {
105
105
  "isComponentLibrary": true,
106
- "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.37/build/lowcode/assets-prod.json"
106
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.41/build/lowcode/assets-prod.json"
107
107
  },
108
108
  "lcMeta": {
109
109
  "type": "component"
110
110
  },
111
- "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.36/build/index.html"
112
- }
111
+ "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.40/build/index.html"
112
+ }