@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.
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/lowcode/tab-container/meta.ts +5 -5
- package/lowcode/tab-container/props.ts +13 -13
- package/lowcode/tab-container-item/meta.ts +1 -1
- package/lowcode/teletext-list/meta.ts +1 -1
- package/lowcode_es/meta.js +1 -1
- package/lowcode_es/tab-container/meta.js +4 -4
- package/lowcode_es/tab-container/props.d.ts +2 -2
- package/lowcode_es/tab-container/props.js +12 -12
- package/lowcode_es/tab-container-item/meta.js +1 -1
- package/lowcode_es/teletext-list/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/lowcode_lib/tab-container/meta.js +4 -4
- package/lowcode_lib/tab-container/props.d.ts +2 -2
- package/lowcode_lib/tab-container/props.js +12 -12
- package/lowcode_lib/tab-container-item/meta.js +1 -1
- package/lowcode_lib/teletext-list/meta.js +1 -1
- package/package.json +4 -4
|
@@ -16,15 +16,15 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
16
16
|
{
|
|
17
17
|
componentName: "TabContainerItem",
|
|
18
18
|
props: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
tab: "标签项1",
|
|
20
|
+
key: "tab-item-1",
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
componentName: "TabContainerItem",
|
|
25
25
|
props: {
|
|
26
|
-
|
|
27
|
-
|
|
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: '
|
|
14
|
+
name: 'tab',
|
|
15
15
|
title: '名称',
|
|
16
16
|
defaultValue: '标签项',
|
|
17
17
|
important: true,
|
|
18
18
|
setter: 'StringSetter',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
name: '
|
|
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
|
-
|
|
44
|
-
|
|
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('
|
|
56
|
-
? String(child.getPropValue('
|
|
55
|
+
const primaryKey = child.getPropValue('key')
|
|
56
|
+
? String(child.getPropValue('key'))
|
|
57
57
|
: child.id;
|
|
58
58
|
return {
|
|
59
|
-
primaryKey,
|
|
60
|
-
|
|
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.
|
|
75
|
+
map[item.key] = tabitem;
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
node.children.mergeChildren(
|
|
79
79
|
(child) => {
|
|
80
|
-
const primaryKey = String(child.getPropValue('
|
|
80
|
+
const primaryKey = String(child.getPropValue('key'));
|
|
81
81
|
if (Object.hasOwnProperty.call(map, primaryKey)) {
|
|
82
|
-
child.setPropValue('
|
|
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.
|
|
104
|
+
(item) => String(item.key) === String(child1.getPropValue('key')),
|
|
105
105
|
);
|
|
106
106
|
const b = value.findIndex(
|
|
107
|
-
(item) => String(item.
|
|
107
|
+
(item) => String(item.key) === String(child2.getPropValue('key')),
|
|
108
108
|
);
|
|
109
109
|
return a - b;
|
|
110
110
|
},
|
package/lowcode_es/meta.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
16
|
-
|
|
15
|
+
tab: "标签项1",
|
|
16
|
+
key: "tab-item-1"
|
|
17
17
|
}
|
|
18
18
|
}, {
|
|
19
19
|
componentName: "TabContainerItem",
|
|
20
20
|
props: {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
tab: "标签项2",
|
|
22
|
+
key: "tab-item-2"
|
|
23
23
|
}
|
|
24
24
|
}]
|
|
25
25
|
}
|
|
@@ -9,13 +9,13 @@ export default [{
|
|
|
9
9
|
props: {
|
|
10
10
|
config: {
|
|
11
11
|
items: [{
|
|
12
|
-
name: '
|
|
12
|
+
name: 'tab',
|
|
13
13
|
title: '名称',
|
|
14
14
|
defaultValue: '标签项',
|
|
15
15
|
important: true,
|
|
16
16
|
setter: 'StringSetter'
|
|
17
17
|
}, {
|
|
18
|
-
name: '
|
|
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
|
-
|
|
40
|
-
|
|
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('
|
|
51
|
+
var primaryKey = child.getPropValue('key') ? String(child.getPropValue('key')) : child.id;
|
|
52
52
|
return {
|
|
53
|
-
|
|
54
|
-
|
|
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.
|
|
69
|
+
map[item.key] = tabitem;
|
|
70
70
|
});
|
|
71
71
|
node.children.mergeChildren(function (child) {
|
|
72
|
-
var primaryKey = String(child.getPropValue('
|
|
72
|
+
var primaryKey = String(child.getPropValue('key'));
|
|
73
73
|
if (Object.hasOwnProperty.call(map, primaryKey)) {
|
|
74
|
-
child.setPropValue('
|
|
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.
|
|
94
|
+
return String(item.key) === String(child1.getPropValue('key'));
|
|
95
95
|
});
|
|
96
96
|
var b = value.findIndex(function (item) {
|
|
97
|
-
return String(item.
|
|
97
|
+
return String(item.key) === String(child2.getPropValue('key'));
|
|
98
98
|
});
|
|
99
99
|
return a - b;
|
|
100
100
|
});
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
21
|
-
|
|
20
|
+
tab: "标签项1",
|
|
21
|
+
key: "tab-item-1"
|
|
22
22
|
}
|
|
23
23
|
}, {
|
|
24
24
|
componentName: "TabContainerItem",
|
|
25
25
|
props: {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
tab: "标签项2",
|
|
27
|
+
key: "tab-item-2"
|
|
28
28
|
}
|
|
29
29
|
}]
|
|
30
30
|
}
|
|
@@ -13,13 +13,13 @@ var _default = exports["default"] = [{
|
|
|
13
13
|
props: {
|
|
14
14
|
config: {
|
|
15
15
|
items: [{
|
|
16
|
-
name: '
|
|
16
|
+
name: 'tab',
|
|
17
17
|
title: '名称',
|
|
18
18
|
defaultValue: '标签项',
|
|
19
19
|
important: true,
|
|
20
20
|
setter: 'StringSetter'
|
|
21
21
|
}, {
|
|
22
|
-
name: '
|
|
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
|
-
|
|
44
|
-
|
|
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('
|
|
55
|
+
var primaryKey = child.getPropValue('key') ? String(child.getPropValue('key')) : child.id;
|
|
56
56
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
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.
|
|
73
|
+
map[item.key] = tabitem;
|
|
74
74
|
});
|
|
75
75
|
node.children.mergeChildren(function (child) {
|
|
76
|
-
var primaryKey = String(child.getPropValue('
|
|
76
|
+
var primaryKey = String(child.getPropValue('key'));
|
|
77
77
|
if (Object.hasOwnProperty.call(map, primaryKey)) {
|
|
78
|
-
child.setPropValue('
|
|
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.
|
|
98
|
+
return String(item.key) === String(child1.getPropValue('key'));
|
|
99
99
|
});
|
|
100
100
|
var b = value.findIndex(function (item) {
|
|
101
|
-
return String(item.
|
|
101
|
+
return String(item.key) === String(child2.getPropValue('key'));
|
|
102
102
|
});
|
|
103
103
|
return a - b;
|
|
104
104
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dckj-npm/dc-material",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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.
|
|
112
|
-
}
|
|
111
|
+
"homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.40/build/index.html"
|
|
112
|
+
}
|