@dckj-npm/dc-material 0.1.0 → 0.1.3

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 (150) hide show
  1. package/build/docs/colorful-button.html +48 -0
  2. package/build/docs/colorful-input.html +48 -0
  3. package/build/docs/index.html +48 -0
  4. package/build/docs/umi.6846fe8b.js +1 -0
  5. package/build/docs/umi.7f7df875.css +8 -0
  6. package/build/docs/~demos/colorful-button-demo.html +47 -0
  7. package/build/docs/~demos/colorful-input-demo.html +47 -0
  8. package/build/index.js +19 -12
  9. package/build/lowcode/assets-daily.json +12 -12
  10. package/build/lowcode/assets-dev.json +3 -3
  11. package/build/lowcode/assets-prod.json +12 -12
  12. package/build/lowcode/index.js +1 -1
  13. package/build/lowcode/meta.js +1 -1
  14. package/build/lowcode/preview.js +147 -147
  15. package/build/lowcode/render/default/view.css +1 -1
  16. package/build/lowcode/render/default/view.js +295 -1
  17. package/build/lowcode/view.css +1 -1
  18. package/build/lowcode/view.js +295 -1
  19. package/dist/BizComps.css +1 -1
  20. package/dist/BizComps.js +6 -1
  21. package/dist/BizComps.js.map +1 -1
  22. package/es/assets/icon/navigation/index-selected.png +0 -0
  23. package/es/assets/icon/navigation/index.png +0 -0
  24. package/es/assets/icon/navigation/message-selected.png +0 -0
  25. package/es/assets/icon/navigation/message.png +0 -0
  26. package/es/assets/icon/navigation/mine-selected.png +0 -0
  27. package/es/assets/icon/navigation/mine.png +0 -0
  28. package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
  29. package/es/components/bottom-navigation/bottom-navigation.js +39 -0
  30. package/es/components/bottom-navigation/index.d.ts +3 -0
  31. package/es/components/bottom-navigation/index.js +2 -0
  32. package/es/components/bottom-navigation/index.scss +16 -0
  33. package/es/components/colorful-button/colorful-button.d.ts +12 -12
  34. package/es/components/colorful-button/index.d.ts +3 -3
  35. package/es/components/colorful-input/colorful-input.d.ts +8 -8
  36. package/es/components/colorful-input/index.d.ts +3 -3
  37. package/es/components/dc-slider/index.d.ts +3 -0
  38. package/es/components/dc-slider/index.js +2 -0
  39. package/es/components/dc-slider/index.scss +8 -0
  40. package/es/components/dc-slider/slider.d.ts +32 -0
  41. package/es/components/dc-slider/slider.js +14 -0
  42. package/es/components/position/index.d.ts +3 -0
  43. package/es/components/position/index.js +2 -0
  44. package/es/components/position/index.scss +16 -0
  45. package/es/components/position/position.d.ts +13 -0
  46. package/es/components/position/position.js +39 -0
  47. package/es/components/teletext-list/index.d.ts +6 -6
  48. package/es/components/teletext-list/index.js +2 -2
  49. package/es/components/teletext-list/index.scss +16 -114
  50. package/es/components/teletext-list/teletext-list-item.d.ts +38 -0
  51. package/es/components/teletext-list/teletext-list-item.js +47 -0
  52. package/es/components/teletext-list/teletext-list-item.scss +74 -0
  53. package/es/components/teletext-list/teletext-list.d.ts +48 -48
  54. package/es/components/teletext-list/teletext-list.js +10 -33
  55. package/es/components/title/index.d.ts +8 -0
  56. package/es/components/title/index.js +7 -0
  57. package/es/components/title/title-1.d.ts +10 -0
  58. package/es/components/title/title-1.js +16 -0
  59. package/es/components/title/title-1.scss +26 -0
  60. package/es/components/title/title-2.d.ts +18 -0
  61. package/es/components/title/title-2.js +31 -0
  62. package/es/components/title/title-2.scss +22 -0
  63. package/es/index.d.ts +12 -8
  64. package/es/index.js +4 -2
  65. package/es/index.scss +3 -3
  66. package/es/style.js +2 -2
  67. package/es/variables.d.ts +2 -2
  68. package/lib/assets/icon/navigation/index-selected.png +0 -0
  69. package/lib/assets/icon/navigation/index.png +0 -0
  70. package/lib/assets/icon/navigation/message-selected.png +0 -0
  71. package/lib/assets/icon/navigation/message.png +0 -0
  72. package/lib/assets/icon/navigation/mine-selected.png +0 -0
  73. package/lib/assets/icon/navigation/mine.png +0 -0
  74. package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
  75. package/lib/components/bottom-navigation/bottom-navigation.js +46 -0
  76. package/lib/components/bottom-navigation/index.d.ts +3 -0
  77. package/lib/components/bottom-navigation/index.js +7 -0
  78. package/lib/components/bottom-navigation/index.scss +16 -0
  79. package/lib/components/colorful-button/colorful-button.d.ts +12 -12
  80. package/lib/components/colorful-button/index.d.ts +3 -3
  81. package/lib/components/colorful-input/colorful-input.d.ts +8 -8
  82. package/lib/components/colorful-input/index.d.ts +3 -3
  83. package/lib/components/dc-slider/index.d.ts +3 -0
  84. package/lib/components/dc-slider/index.js +7 -0
  85. package/lib/components/dc-slider/index.scss +8 -0
  86. package/lib/components/dc-slider/slider.d.ts +32 -0
  87. package/lib/components/dc-slider/slider.js +21 -0
  88. package/lib/components/position/index.d.ts +3 -0
  89. package/lib/components/position/index.js +7 -0
  90. package/lib/components/position/index.scss +16 -0
  91. package/lib/components/position/position.d.ts +13 -0
  92. package/lib/components/position/position.js +46 -0
  93. package/lib/components/teletext-list/index.d.ts +6 -6
  94. package/lib/components/teletext-list/index.js +2 -2
  95. package/lib/components/teletext-list/index.scss +16 -114
  96. package/lib/components/teletext-list/teletext-list-item.d.ts +38 -0
  97. package/lib/components/teletext-list/teletext-list-item.js +51 -0
  98. package/lib/components/teletext-list/teletext-list-item.scss +74 -0
  99. package/lib/components/teletext-list/teletext-list.d.ts +48 -48
  100. package/lib/components/teletext-list/teletext-list.js +10 -33
  101. package/lib/components/title/index.d.ts +8 -0
  102. package/lib/components/title/index.js +8 -0
  103. package/lib/components/title/title-1.d.ts +10 -0
  104. package/lib/components/title/title-1.js +21 -0
  105. package/lib/components/title/title-1.scss +26 -0
  106. package/lib/components/title/title-2.d.ts +18 -0
  107. package/lib/components/title/title-2.js +36 -0
  108. package/lib/components/title/title-2.scss +22 -0
  109. package/lib/index.d.ts +12 -8
  110. package/lib/index.js +8 -5
  111. package/lib/index.scss +3 -3
  112. package/lib/style.js +2 -2
  113. package/lib/variables.d.ts +2 -2
  114. package/lowcode/d-c-slider/meta.ts +331 -0
  115. package/lowcode/d-c-slider/snippets.ts +42 -0
  116. package/lowcode/navigation/meta.ts +151 -0
  117. package/lowcode/teletext-list/meta.ts +292 -292
  118. package/lowcode/{colorful-input → title1}/meta.ts +58 -56
  119. package/lowcode/title2/meta.ts +92 -0
  120. package/lowcode_es/d-c-slider/meta.d.ts +140 -0
  121. package/lowcode_es/d-c-slider/meta.js +298 -0
  122. package/lowcode_es/d-c-slider/snippets.d.ts +36 -0
  123. package/lowcode_es/d-c-slider/snippets.js +36 -0
  124. package/lowcode_es/meta.js +8 -6
  125. package/lowcode_es/{colorful-input → navigation}/meta.d.ts +22 -22
  126. package/lowcode_es/navigation/meta.js +135 -0
  127. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  128. package/lowcode_es/teletext-list/meta.js +3 -3
  129. package/{lowcode_lib/colorful-button → lowcode_es/title1}/meta.d.ts +22 -22
  130. package/lowcode_es/{colorful-input → title1}/meta.js +15 -13
  131. package/lowcode_es/{colorful-button → title2}/meta.d.ts +22 -22
  132. package/lowcode_es/title2/meta.js +82 -0
  133. package/lowcode_es/view.js +3 -3
  134. package/lowcode_lib/d-c-slider/meta.d.ts +140 -0
  135. package/lowcode_lib/d-c-slider/meta.js +303 -0
  136. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -0
  137. package/lowcode_lib/d-c-slider/snippets.js +40 -0
  138. package/lowcode_lib/meta.js +8 -6
  139. package/lowcode_lib/{colorful-input → navigation}/meta.d.ts +22 -22
  140. package/lowcode_lib/navigation/meta.js +140 -0
  141. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  142. package/lowcode_lib/teletext-list/meta.js +3 -3
  143. package/lowcode_lib/title1/meta.d.ts +22 -0
  144. package/lowcode_lib/{colorful-input → title1}/meta.js +15 -13
  145. package/lowcode_lib/title2/meta.d.ts +22 -0
  146. package/lowcode_lib/{colorful-button → title2}/meta.js +38 -41
  147. package/lowcode_lib/view.js +2 -2
  148. package/package.json +4 -4
  149. package/lowcode/colorful-button/meta.ts +0 -102
  150. package/lowcode_es/colorful-button/meta.js +0 -85
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var _message = _interopRequireDefault(require("../../src/assets/icon/navigation/message.png"));
8
+ var _messageSelected = _interopRequireDefault(require("../../src/assets/icon/navigation/message-selected.png"));
9
+ var _index = _interopRequireDefault(require("../../src/assets/icon/navigation/index.png"));
10
+ var _indexSelected = _interopRequireDefault(require("../../src/assets/icon/navigation/index-selected.png"));
11
+ var _mine = _interopRequireDefault(require("../../src/assets/icon/navigation/mine.png"));
12
+ var _mineSelected = _interopRequireDefault(require("../../src/assets/icon/navigation/mine-selected.png"));
13
+ var NavigationMeta = {
14
+ "componentName": "Navigation",
15
+ "title": "底部导航",
16
+ "docUrl": "",
17
+ "screenshot": "",
18
+ "devMode": "proCode",
19
+ "npm": {
20
+ "package": "@dckj-npm/dc-material",
21
+ "version": "0.1.1",
22
+ "exportName": "Navigation",
23
+ "main": "src\\index.tsx",
24
+ "destructuring": true,
25
+ "subName": ""
26
+ },
27
+ "configure": {
28
+ "props": [{
29
+ "title": {
30
+ "label": {
31
+ "type": "i18n",
32
+ "en-US": "itemArray",
33
+ "zh-CN": "导航项"
34
+ }
35
+ },
36
+ "name": "itemArray",
37
+ "setter": {
38
+ "componentName": "ArraySetter",
39
+ "props": {
40
+ "itemSetter": {
41
+ "componentName": "ObjectSetter",
42
+ "props": {
43
+ "config": {
44
+ "items": [{
45
+ "title": {
46
+ "label": {
47
+ "type": "i18n",
48
+ "en-US": "text",
49
+ "zh-CN": "名称"
50
+ }
51
+ },
52
+ "name": "text",
53
+ "setter": {
54
+ "componentName": "StringSetter",
55
+ "isRequired": true,
56
+ "initialValue": ""
57
+ }
58
+ }, {
59
+ "title": {
60
+ "label": {
61
+ "type": "i18n",
62
+ "en-US": "icon",
63
+ "zh-CN": "图标"
64
+ }
65
+ },
66
+ "name": "icon",
67
+ "setter": {
68
+ "componentName": "StringSetter",
69
+ "isRequired": true,
70
+ "initialValue": ""
71
+ }
72
+ }, {
73
+ "title": {
74
+ "label": {
75
+ "type": "i18n",
76
+ "en-US": "selectedIcon",
77
+ "zh-CN": "选中图标"
78
+ }
79
+ },
80
+ "name": "selectedIcon",
81
+ "setter": {
82
+ "componentName": "StringSetter",
83
+ "isRequired": true,
84
+ "initialValue": ""
85
+ }
86
+ }],
87
+ "extraSetter": {
88
+ "componentName": "MixedSetter",
89
+ "isRequired": false,
90
+ "props": {}
91
+ }
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "isRequired": true,
97
+ "initialValue": []
98
+ }
99
+ }, {
100
+ "title": {
101
+ "label": {
102
+ "type": "i18n",
103
+ "en-US": "selectedColor",
104
+ "zh-CN": "选中颜色"
105
+ }
106
+ },
107
+ "name": "selectedColor",
108
+ "setter": "ColorSetter"
109
+ }],
110
+ "supports": {
111
+ "style": true
112
+ },
113
+ "component": {}
114
+ }
115
+ };
116
+ var snippets = [{
117
+ "title": "底部导航",
118
+ "screenshot": "",
119
+ "schema": {
120
+ "componentName": "Navigation",
121
+ "props": {
122
+ "itemArray": [{
123
+ "text": "首页",
124
+ "icon": _index["default"],
125
+ "selectedIcon": _indexSelected["default"]
126
+ }, {
127
+ "text": "消息",
128
+ "icon": _message["default"],
129
+ "selectedIcon": _messageSelected["default"]
130
+ }, {
131
+ "text": "我的",
132
+ "icon": _mine["default"],
133
+ "selectedIcon": _mineSelected["default"]
134
+ }]
135
+ }
136
+ }
137
+ }];
138
+ var _default = exports["default"] = (0, _extends2["default"])({}, NavigationMeta, {
139
+ snippets: snippets
140
+ });
@@ -1,22 +1,22 @@
1
- import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
- declare const _default: {
3
- snippets: IPublicTypeSnippet[];
4
- componentName: string;
5
- uri?: string;
6
- title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
- icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
- tags?: string[];
9
- description?: string;
10
- docUrl?: string;
11
- screenshot?: string;
12
- devMode?: "proCode" | "lowCode";
13
- npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
- props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
- configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
- experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
- schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
- group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
- category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
- priority?: number;
21
- };
22
- export default _default;
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -6,7 +6,7 @@ exports["default"] = void 0;
6
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
7
  var TeletextListMeta = {
8
8
  "componentName": "TeletextList",
9
- "title": "TeletextList",
9
+ "title": "图文列表",
10
10
  "docUrl": "",
11
11
  "screenshot": "",
12
12
  "devMode": "proCode",
@@ -247,7 +247,7 @@ var TeletextListMeta = {
247
247
  }
248
248
  };
249
249
  var snippets = [{
250
- "title": "TeletextList",
250
+ "title": "图文列表",
251
251
  "screenshot": "",
252
252
  "schema": {
253
253
  "componentName": "TeletextList",
@@ -256,4 +256,4 @@ var snippets = [{
256
256
  }];
257
257
  var _default = exports["default"] = (0, _extends2["default"])({}, TeletextListMeta, {
258
258
  snippets: snippets
259
- });
259
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
- var ColorfulInputMeta = {
8
- "componentName": "ColorfulInput",
9
- "title": "ColorfulInput",
7
+ var Title1Meta = {
8
+ "componentName": "Title1",
9
+ "title": "个性化标题1",
10
10
  "docUrl": "",
11
11
  "screenshot": "",
12
12
  "devMode": "proCode",
13
13
  "npm": {
14
14
  "package": "@dckj-npm/dc-material",
15
15
  "version": "0.1.0",
16
- "exportName": "ColorfulInput",
16
+ "exportName": "Title1",
17
17
  "main": "src/index.tsx",
18
18
  "destructuring": true,
19
19
  "subName": ""
@@ -23,15 +23,17 @@ var ColorfulInputMeta = {
23
23
  "title": {
24
24
  "label": {
25
25
  "type": "i18n",
26
- "en-US": "color",
27
- "zh-CN": "color"
28
- }
26
+ "en-US": "title",
27
+ "zh-CN": "标题"
28
+ },
29
+ "tip": "title | 标题"
29
30
  },
30
- "name": "color",
31
+ "name": "title",
32
+ "description": "标题",
31
33
  "setter": {
32
34
  "componentName": "StringSetter",
33
35
  "isRequired": false,
34
- "initialValue": ""
36
+ "initialValue": "标题名称"
35
37
  }
36
38
  }],
37
39
  "supports": {
@@ -41,13 +43,13 @@ var ColorfulInputMeta = {
41
43
  }
42
44
  };
43
45
  var snippets = [{
44
- "title": "ColorfulInput",
46
+ "title": "个性化标题1",
45
47
  "screenshot": "",
46
48
  "schema": {
47
- "componentName": "ColorfulInput",
49
+ "componentName": "Title1",
48
50
  "props": {}
49
51
  }
50
52
  }];
51
- var _default = exports["default"] = (0, _extends2["default"])({}, ColorfulInputMeta, {
53
+ var _default = exports["default"] = (0, _extends2["default"])({}, Title1Meta, {
52
54
  snippets: snippets
53
- });
55
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
- var ColorfulButtonMeta = {
8
- "componentName": "ColorfulButton",
9
- "title": "ColorfulButton",
7
+ var Title2Meta = {
8
+ "componentName": "Title2",
9
+ "title": "个性化标题2",
10
10
  "docUrl": "",
11
11
  "screenshot": "",
12
12
  "devMode": "proCode",
13
13
  "npm": {
14
14
  "package": "@dckj-npm/dc-material",
15
15
  "version": "0.1.0",
16
- "exportName": "ColorfulButton",
16
+ "exportName": "Title2",
17
17
  "main": "src/index.tsx",
18
18
  "destructuring": true,
19
19
  "subName": ""
@@ -23,52 +23,49 @@ var ColorfulButtonMeta = {
23
23
  "title": {
24
24
  "label": {
25
25
  "type": "i18n",
26
- "en-US": "type",
27
- "zh-CN": "类型"
26
+ "en-US": "title",
27
+ "zh-CN": "标题"
28
28
  },
29
- "tip": "type | 类型"
29
+ "tip": "title | 标题"
30
30
  },
31
- "name": "type",
32
- "description": "类型",
31
+ "name": "title",
32
+ "description": "标题",
33
33
  "setter": {
34
- "componentName": "RadioGroupSetter",
35
- "props": {
36
- "dataSource": [{
37
- "label": "primary",
38
- "value": "primary"
39
- }, {
40
- "label": "secondary",
41
- "value": "secondary"
42
- }, {
43
- "label": "normal",
44
- "value": "normal"
45
- }],
46
- "options": [{
47
- "label": "primary",
48
- "value": "primary"
49
- }, {
50
- "label": "secondary",
51
- "value": "secondary"
52
- }, {
53
- "label": "normal",
54
- "value": "normal"
55
- }]
56
- },
57
- "initialValue": "primary"
34
+ "componentName": "StringSetter",
35
+ "isRequired": false,
36
+ "initialValue": "标题名称"
58
37
  }
59
38
  }, {
60
39
  "title": {
61
40
  "label": {
62
41
  "type": "i18n",
63
42
  "en-US": "color",
64
- "zh-CN": "color"
65
- }
43
+ "zh-CN": "颜色"
44
+ },
45
+ "tip": "color | 颜色"
66
46
  },
67
47
  "name": "color",
48
+ "description": "颜色",
68
49
  "setter": {
69
- "componentName": "StringSetter",
50
+ "componentName": "ColorSetter",
51
+ "isRequired": false,
52
+ "initialValue": "#144477"
53
+ }
54
+ }, {
55
+ "title": {
56
+ "label": {
57
+ "type": "i18n",
58
+ "en-US": "tipColor",
59
+ "zh-CN": "tip颜色"
60
+ },
61
+ "tip": "tipColor | tip颜色"
62
+ },
63
+ "name": "tipColor",
64
+ "description": "tip颜色",
65
+ "setter": {
66
+ "componentName": "ColorSetter",
70
67
  "isRequired": false,
71
- "initialValue": ""
68
+ "initialValue": "#388AF7"
72
69
  }
73
70
  }],
74
71
  "supports": {
@@ -78,13 +75,13 @@ var ColorfulButtonMeta = {
78
75
  }
79
76
  };
80
77
  var snippets = [{
81
- "title": "ColorfulButton",
78
+ "title": "个性化标题2",
82
79
  "screenshot": "",
83
80
  "schema": {
84
- "componentName": "ColorfulButton",
81
+ "componentName": "Title2",
85
82
  "props": {}
86
83
  }
87
84
  }];
88
- var _default = exports["default"] = (0, _extends2["default"])({}, ColorfulButtonMeta, {
85
+ var _default = exports["default"] = (0, _extends2["default"])({}, Title2Meta, {
89
86
  snippets: snippets
90
- });
87
+ });
@@ -3,14 +3,14 @@
3
3
  exports.__esModule = true;
4
4
  var _exportNames = {};
5
5
  exports["default"] = void 0;
6
- var componentInstances = _interopRequireWildcard(require("../lib/index"));
6
+ var componentInstances = _interopRequireWildcard(require("G:/Project/Company/DongChen/lowcode/dc-material/src/index"));
7
7
  Object.keys(componentInstances).forEach(function (key) {
8
8
  if (key === "default" || key === "__esModule") return;
9
9
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
10
10
  if (key in exports && exports[key] === componentInstances[key]) return;
11
11
  exports[key] = componentInstances[key];
12
12
  });
13
- require("../lib/index.scss");
13
+ require("G:/Project/Company/DongChen/lowcode/dc-material/src/index.scss");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
16
  var entryDefault = exports["default"] = componentInstances["default"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "dc低代码物料",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -100,10 +100,10 @@
100
100
  },
101
101
  "componentConfig": {
102
102
  "isComponentLibrary": true,
103
- "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.0/build/lowcode/assets-prod.json"
103
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.3/build/lowcode/assets-prod.json"
104
104
  },
105
105
  "lcMeta": {
106
106
  "type": "component"
107
107
  },
108
- "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.0/build/index.html"
109
- }
108
+ "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.3/build/index.html"
109
+ }
@@ -1,102 +0,0 @@
1
-
2
- import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
-
4
- const ColorfulButtonMeta: IPublicTypeComponentMetadata = {
5
- "componentName": "ColorfulButton",
6
- "title": "ColorfulButton",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@dckj-npm/dc-material",
12
- "version": "0.1.0",
13
- "exportName": "ColorfulButton",
14
- "main": "src/index.tsx",
15
- "destructuring": true,
16
- "subName": ""
17
- },
18
- "configure": {
19
- "props": [
20
- {
21
- "title": {
22
- "label": {
23
- "type": "i18n",
24
- "en-US": "type",
25
- "zh-CN": "类型"
26
- },
27
- "tip": "type | 类型"
28
- },
29
- "name": "type",
30
- "description": "类型",
31
- "setter": {
32
- "componentName": "RadioGroupSetter",
33
- "props": {
34
- "dataSource": [
35
- {
36
- "label": "primary",
37
- "value": "primary"
38
- },
39
- {
40
- "label": "secondary",
41
- "value": "secondary"
42
- },
43
- {
44
- "label": "normal",
45
- "value": "normal"
46
- }
47
- ],
48
- "options": [
49
- {
50
- "label": "primary",
51
- "value": "primary"
52
- },
53
- {
54
- "label": "secondary",
55
- "value": "secondary"
56
- },
57
- {
58
- "label": "normal",
59
- "value": "normal"
60
- }
61
- ]
62
- },
63
- "initialValue": "primary"
64
- }
65
- },
66
- {
67
- "title": {
68
- "label": {
69
- "type": "i18n",
70
- "en-US": "color",
71
- "zh-CN": "color"
72
- }
73
- },
74
- "name": "color",
75
- "setter": {
76
- "componentName": "StringSetter",
77
- "isRequired": false,
78
- "initialValue": ""
79
- }
80
- }
81
- ],
82
- "supports": {
83
- "style": true
84
- },
85
- "component": {}
86
- }
87
- };
88
- const snippets: IPublicTypeSnippet[] = [
89
- {
90
- "title": "ColorfulButton",
91
- "screenshot": "",
92
- "schema": {
93
- "componentName": "ColorfulButton",
94
- "props": {}
95
- }
96
- }
97
- ];
98
-
99
- export default {
100
- ...ColorfulButtonMeta,
101
- snippets
102
- };
@@ -1,85 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- var ColorfulButtonMeta = {
3
- "componentName": "ColorfulButton",
4
- "title": "ColorfulButton",
5
- "docUrl": "",
6
- "screenshot": "",
7
- "devMode": "proCode",
8
- "npm": {
9
- "package": "@dckj-npm/dc-material",
10
- "version": "0.1.0",
11
- "exportName": "ColorfulButton",
12
- "main": "src/index.tsx",
13
- "destructuring": true,
14
- "subName": ""
15
- },
16
- "configure": {
17
- "props": [{
18
- "title": {
19
- "label": {
20
- "type": "i18n",
21
- "en-US": "type",
22
- "zh-CN": "类型"
23
- },
24
- "tip": "type | 类型"
25
- },
26
- "name": "type",
27
- "description": "类型",
28
- "setter": {
29
- "componentName": "RadioGroupSetter",
30
- "props": {
31
- "dataSource": [{
32
- "label": "primary",
33
- "value": "primary"
34
- }, {
35
- "label": "secondary",
36
- "value": "secondary"
37
- }, {
38
- "label": "normal",
39
- "value": "normal"
40
- }],
41
- "options": [{
42
- "label": "primary",
43
- "value": "primary"
44
- }, {
45
- "label": "secondary",
46
- "value": "secondary"
47
- }, {
48
- "label": "normal",
49
- "value": "normal"
50
- }]
51
- },
52
- "initialValue": "primary"
53
- }
54
- }, {
55
- "title": {
56
- "label": {
57
- "type": "i18n",
58
- "en-US": "color",
59
- "zh-CN": "color"
60
- }
61
- },
62
- "name": "color",
63
- "setter": {
64
- "componentName": "StringSetter",
65
- "isRequired": false,
66
- "initialValue": ""
67
- }
68
- }],
69
- "supports": {
70
- "style": true
71
- },
72
- "component": {}
73
- }
74
- };
75
- var snippets = [{
76
- "title": "ColorfulButton",
77
- "screenshot": "",
78
- "schema": {
79
- "componentName": "ColorfulButton",
80
- "props": {}
81
- }
82
- }];
83
- export default _extends({}, ColorfulButtonMeta, {
84
- snippets: snippets
85
- });