neo-cmp-cli 1.1.6 → 1.1.8
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/package.json +1 -1
- package/src/module/index.js +5 -0
- package/src/module/main.js +3 -3
- package/src/module/neoInitByCopy.js +4 -0
- package/src/template/antd-custom-cmp-template/.prettierrc.js +12 -0
- package/src/template/antd-custom-cmp-template/README.md +47 -0
- package/src/template/antd-custom-cmp-template/commitlint.config.js +59 -0
- package/src/template/antd-custom-cmp-template/neo.config.js +109 -0
- package/src/template/antd-custom-cmp-template/package.json +59 -0
- package/src/template/antd-custom-cmp-template/public/css/base.css +283 -0
- package/src/template/antd-custom-cmp-template/public/scripts/app/bluebird.js +6679 -0
- package/src/template/antd-custom-cmp-template/public/template.html +13 -0
- package/src/template/antd-custom-cmp-template/src/assets/css/common.scss +127 -0
- package/src/template/antd-custom-cmp-template/src/assets/css/mixin.scss +47 -0
- package/src/template/antd-custom-cmp-template/src/components/data-dashboard/README.md +39 -0
- package/src/template/antd-custom-cmp-template/src/components/data-dashboard/index.tsx +462 -0
- package/src/template/antd-custom-cmp-template/src/components/data-dashboard/model.ts +76 -0
- package/src/template/antd-custom-cmp-template/src/components/data-dashboard/style.scss +1409 -0
- package/src/template/antd-custom-cmp-template/src/components/info-card/index.tsx +72 -0
- package/src/template/antd-custom-cmp-template/src/components/info-card/model.ts +78 -0
- package/src/template/antd-custom-cmp-template/src/components/info-card/style.scss +105 -0
- package/src/template/antd-custom-cmp-template/tsconfig.json +68 -0
- package/src/template/echart-custom-cmp-template/.prettierrc.js +12 -0
- package/src/template/echart-custom-cmp-template/README.md +47 -0
- package/src/template/echart-custom-cmp-template/commitlint.config.js +59 -0
- package/src/template/echart-custom-cmp-template/neo.config.js +109 -0
- package/src/template/echart-custom-cmp-template/package.json +58 -0
- package/src/template/echart-custom-cmp-template/public/css/base.css +283 -0
- package/src/template/echart-custom-cmp-template/public/scripts/app/bluebird.js +6679 -0
- package/src/template/echart-custom-cmp-template/public/template.html +13 -0
- package/src/template/echart-custom-cmp-template/src/assets/css/common.scss +127 -0
- package/src/template/echart-custom-cmp-template/src/assets/css/mixin.scss +47 -0
- package/src/template/echart-custom-cmp-template/src/components/info-card/index.tsx +69 -0
- package/src/template/echart-custom-cmp-template/src/components/info-card/model.ts +78 -0
- package/src/template/echart-custom-cmp-template/src/components/info-card/style.scss +105 -0
- package/src/template/echart-custom-cmp-template/src/components/list-widget/README.md +2 -0
- package/src/template/echart-custom-cmp-template/src/components/list-widget/index.tsx +208 -0
- package/src/template/echart-custom-cmp-template/src/components/list-widget/model.ts +90 -0
- package/src/template/echart-custom-cmp-template/src/components/list-widget/style.scss +350 -0
- package/src/template/echart-custom-cmp-template/tsconfig.json +68 -0
- package/src/template/react-custom-cmp-template/package.json +2 -2
- package/src/template/react-ts-custom-cmp-template/package.json +2 -3
- package/src/template/react-ts-custom-cmp-template/src/components/info-card/index.tsx +0 -3
- package/src/template/vue2-custom-cmp-template/package.json +2 -2
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 列表组件对接编辑器的描述文件
|
|
3
|
+
*/
|
|
4
|
+
export class ListWidgetModel {
|
|
5
|
+
/**
|
|
6
|
+
* cmpType 为自定义组件名称,用于标识组件的唯一性
|
|
7
|
+
* 在构建时根据当前组件目录名称自动生成
|
|
8
|
+
*/
|
|
9
|
+
// cmpType: string = 'list-widget';
|
|
10
|
+
|
|
11
|
+
// 组件名称,用于设置在编辑器左侧组件面板中展示的名称
|
|
12
|
+
label: string = '列表组件';
|
|
13
|
+
|
|
14
|
+
// 组件描述,用于设置在编辑器左侧组件面板中展示的描述
|
|
15
|
+
description: string = '支持配置的列表展示组件,内置模拟数据';
|
|
16
|
+
|
|
17
|
+
// 分类标签,用于设置在编辑器左侧组件面板哪个分类中展示(可设置多个分类标签)
|
|
18
|
+
tags: string[] = ['自定义组件'];
|
|
19
|
+
|
|
20
|
+
// 组件图标,用于设置在编辑器左侧组件面板中展示的图标
|
|
21
|
+
iconSrc: string = 'https://neo-widgets.bj.bcebos.com/favicon.png';
|
|
22
|
+
// iconSrc: string = 'https://custom-widgets.bj.bcebos.com/custom-icon1.svg'; // custom-icon2
|
|
23
|
+
|
|
24
|
+
// 初次插入页面的默认属性数据
|
|
25
|
+
defaultComProps = {
|
|
26
|
+
title: '内容列表',
|
|
27
|
+
label: '列表组件',
|
|
28
|
+
showImage: true,
|
|
29
|
+
showTags: true,
|
|
30
|
+
itemCount: 8,
|
|
31
|
+
listType: 'default',
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// 设计器端预览时展示的默认数据
|
|
35
|
+
previewComProps = {
|
|
36
|
+
label: '列表组件',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 组件面板配置,用于生成编辑器右侧属性配置面板内容
|
|
41
|
+
*/
|
|
42
|
+
propsSchema = [
|
|
43
|
+
{
|
|
44
|
+
type: 'text',
|
|
45
|
+
name: 'title',
|
|
46
|
+
label: '列表标题',
|
|
47
|
+
value: '内容列表',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'switch',
|
|
51
|
+
name: 'showImage',
|
|
52
|
+
label: '显示图片',
|
|
53
|
+
value: true,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'switch',
|
|
57
|
+
name: 'showTags',
|
|
58
|
+
label: '显示标签',
|
|
59
|
+
value: true,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: 'number',
|
|
63
|
+
name: 'itemCount',
|
|
64
|
+
label: '列表项数量',
|
|
65
|
+
value: 8,
|
|
66
|
+
min: 1,
|
|
67
|
+
max: 50,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: 'radios',
|
|
71
|
+
name: 'listType',
|
|
72
|
+
label: '列表样式',
|
|
73
|
+
value: 'default',
|
|
74
|
+
options: [
|
|
75
|
+
{ label: '默认样式', value: 'default' },
|
|
76
|
+
{ label: '卡片样式', value: 'card' },
|
|
77
|
+
{ label: '简洁样式', value: 'simple' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
// 支持 函数式写法:propsSchemaCreator,com 为组件实例。优先级比 propsSchema 高
|
|
83
|
+
/*
|
|
84
|
+
propsSchemaCreator = (com: any) => {
|
|
85
|
+
return [];
|
|
86
|
+
};
|
|
87
|
+
*/
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export default ListWidgetModel;
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--list-padding: 16px;
|
|
3
|
+
--list-border-radius: 8px;
|
|
4
|
+
--list-shadow: 0 2px 8px rgb(0 0 0 / 10%);
|
|
5
|
+
--list-hover-shadow: 0 4px 12px rgb(0 0 0 / 15%);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.list-widget-container {
|
|
9
|
+
position: relative;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
margin: 12px;
|
|
12
|
+
padding: var(--list-padding);
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
border-radius: var(--list-border-radius);
|
|
15
|
+
box-shadow: var(--list-shadow);
|
|
16
|
+
|
|
17
|
+
.list-header {
|
|
18
|
+
margin-bottom: 20px;
|
|
19
|
+
padding-bottom: 16px;
|
|
20
|
+
border-bottom: 2px solid #f0f0f0;
|
|
21
|
+
position: relative;
|
|
22
|
+
|
|
23
|
+
&::after {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
bottom: -2px;
|
|
27
|
+
left: 0;
|
|
28
|
+
width: 40px;
|
|
29
|
+
height: 2px;
|
|
30
|
+
background: linear-gradient(90deg, #1890ff, #40a9ff);
|
|
31
|
+
border-radius: 1px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.list-title {
|
|
35
|
+
margin: 0;
|
|
36
|
+
color: #262626;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
font-size: 20px;
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.list-content {
|
|
44
|
+
.list-item {
|
|
45
|
+
padding: 18px 0;
|
|
46
|
+
border-bottom: 1px solid #f5f5f5;
|
|
47
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
48
|
+
position: relative;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 0;
|
|
54
|
+
top: 0;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
width: 3px;
|
|
57
|
+
background: linear-gradient(180deg, #1890ff, #40a9ff);
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transition: opacity 0.3s ease;
|
|
60
|
+
border-radius: 0 2px 2px 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: #fafafa;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
margin: 0 -12px;
|
|
67
|
+
padding: 18px 12px;
|
|
68
|
+
box-shadow: var(--list-hover-shadow);
|
|
69
|
+
transform: translateX(4px);
|
|
70
|
+
|
|
71
|
+
&::before {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:last-child {
|
|
77
|
+
border-bottom: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.item-image {
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 200px;
|
|
83
|
+
margin-bottom: 16px;
|
|
84
|
+
border-radius: 8px;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
position: relative;
|
|
87
|
+
|
|
88
|
+
img {
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
object-fit: cover;
|
|
92
|
+
transition: transform 0.3s ease;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:hover img {
|
|
96
|
+
transform: scale(1.05);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.item-content {
|
|
101
|
+
.item-header {
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
align-items: flex-start;
|
|
105
|
+
margin-bottom: 8px;
|
|
106
|
+
gap: 12px;
|
|
107
|
+
|
|
108
|
+
.item-title {
|
|
109
|
+
margin: 0;
|
|
110
|
+
color: #262626;
|
|
111
|
+
font-weight: 500;
|
|
112
|
+
line-height: 1.4;
|
|
113
|
+
flex: 1;
|
|
114
|
+
font-size: 16px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.item-status {
|
|
118
|
+
padding: 2px 6px;
|
|
119
|
+
border-radius: 4px;
|
|
120
|
+
font-size: 11px;
|
|
121
|
+
line-height: 1.2;
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
|
|
124
|
+
&.status-green {
|
|
125
|
+
background-color: #f6ffed;
|
|
126
|
+
color: #52c41a;
|
|
127
|
+
border: 1px solid #b7eb8f;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.status-orange {
|
|
131
|
+
background-color: #fff7e6;
|
|
132
|
+
color: #fa8c16;
|
|
133
|
+
border: 1px solid #ffd591;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.status-gray {
|
|
137
|
+
background-color: #f5f5f5;
|
|
138
|
+
color: #8c8c8c;
|
|
139
|
+
border: 1px solid #d9d9d9;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.item-description {
|
|
145
|
+
margin-bottom: 12px;
|
|
146
|
+
line-height: 1.6;
|
|
147
|
+
color: #595959;
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
display: box;
|
|
150
|
+
-webkit-line-clamp: 2;
|
|
151
|
+
line-clamp: 2;
|
|
152
|
+
-webkit-box-orient: vertical;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
text-overflow: ellipsis;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.item-meta {
|
|
158
|
+
display: flex;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
align-items: center;
|
|
161
|
+
flex-wrap: wrap;
|
|
162
|
+
gap: 8px;
|
|
163
|
+
|
|
164
|
+
.item-meta-info {
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
gap: 8px;
|
|
168
|
+
|
|
169
|
+
.meta-item {
|
|
170
|
+
color: #8c8c8c;
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.meta-separator {
|
|
175
|
+
color: #8c8c8c;
|
|
176
|
+
font-size: 12px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.item-tags {
|
|
181
|
+
display: flex;
|
|
182
|
+
gap: 6px;
|
|
183
|
+
flex-wrap: wrap;
|
|
184
|
+
|
|
185
|
+
.tag {
|
|
186
|
+
padding: 2px 6px;
|
|
187
|
+
background-color: #e6f7ff;
|
|
188
|
+
color: #1890ff;
|
|
189
|
+
border: 1px solid #91d5ff;
|
|
190
|
+
border-radius: 4px;
|
|
191
|
+
font-size: 11px;
|
|
192
|
+
line-height: 1.2;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// 卡片样式
|
|
200
|
+
&.list-card {
|
|
201
|
+
.list-item {
|
|
202
|
+
margin-bottom: 12px;
|
|
203
|
+
padding: 16px;
|
|
204
|
+
background: #fff;
|
|
205
|
+
border: 1px solid #f0f0f0;
|
|
206
|
+
border-radius: var(--list-border-radius);
|
|
207
|
+
box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
|
|
208
|
+
|
|
209
|
+
&:hover {
|
|
210
|
+
box-shadow: var(--list-hover-shadow);
|
|
211
|
+
border-color: #d9d9d9;
|
|
212
|
+
transform: translateY(-2px);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:last-child {
|
|
216
|
+
margin-bottom: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.item-image {
|
|
220
|
+
height: 180px;
|
|
221
|
+
margin-bottom: 12px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// 简洁样式
|
|
227
|
+
&.list-simple {
|
|
228
|
+
.list-item {
|
|
229
|
+
padding: 12px 0;
|
|
230
|
+
border-bottom: 1px solid #f0f0f0;
|
|
231
|
+
|
|
232
|
+
&:hover {
|
|
233
|
+
background-color: transparent;
|
|
234
|
+
box-shadow: none;
|
|
235
|
+
margin: 0;
|
|
236
|
+
padding: 12px 6px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.item-image {
|
|
240
|
+
height: 120px;
|
|
241
|
+
margin-bottom: 8px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.item-content {
|
|
245
|
+
.item-header {
|
|
246
|
+
margin-bottom: 4px;
|
|
247
|
+
|
|
248
|
+
.item-title {
|
|
249
|
+
font-size: 14px;
|
|
250
|
+
font-weight: 400;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.item-description {
|
|
255
|
+
font-size: 12px;
|
|
256
|
+
color: #8c8c8c;
|
|
257
|
+
margin-bottom: 8px;
|
|
258
|
+
-webkit-line-clamp: 1;
|
|
259
|
+
line-clamp: 1;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.item-meta {
|
|
263
|
+
.item-tags {
|
|
264
|
+
.tag {
|
|
265
|
+
font-size: 10px;
|
|
266
|
+
padding: 1px 4px;
|
|
267
|
+
line-height: 1.1;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// 响应式设计
|
|
278
|
+
@media (max-width: 768px) {
|
|
279
|
+
.list-widget-container {
|
|
280
|
+
margin: 8px;
|
|
281
|
+
padding: 12px;
|
|
282
|
+
|
|
283
|
+
.list-content {
|
|
284
|
+
.list-item {
|
|
285
|
+
.item-content {
|
|
286
|
+
.item-header {
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
align-items: flex-start;
|
|
289
|
+
gap: 8px;
|
|
290
|
+
|
|
291
|
+
.item-title {
|
|
292
|
+
margin-right: 0;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.item-meta {
|
|
297
|
+
flex-direction: column;
|
|
298
|
+
align-items: flex-start;
|
|
299
|
+
gap: 8px;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// 暗色主题支持
|
|
308
|
+
@media (prefers-color-scheme: dark) {
|
|
309
|
+
.list-widget-container {
|
|
310
|
+
background-color: #1f1f1f;
|
|
311
|
+
color: #fff;
|
|
312
|
+
|
|
313
|
+
.list-header {
|
|
314
|
+
border-bottom-color: #303030;
|
|
315
|
+
|
|
316
|
+
.list-title {
|
|
317
|
+
color: #fff;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.list-content {
|
|
322
|
+
.list-item {
|
|
323
|
+
border-bottom-color: #303030;
|
|
324
|
+
|
|
325
|
+
&:hover {
|
|
326
|
+
background-color: #2a2a2a;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.item-content {
|
|
330
|
+
.item-header {
|
|
331
|
+
.item-title {
|
|
332
|
+
color: #fff;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.item-description {
|
|
337
|
+
color: #ccc;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&.list-card {
|
|
343
|
+
.list-item {
|
|
344
|
+
background: #1f1f1f;
|
|
345
|
+
border-color: #303030;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"experimentalDecorators": true,
|
|
4
|
+
/* Basic Options */
|
|
5
|
+
"target": "esnext",
|
|
6
|
+
/* 指定编译之后的版本: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
|
7
|
+
"module": "esnext" /* 指定要使用的模板标准: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
|
8
|
+
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
9
|
+
"allowJs": false /* 指定是否允许编译JS文件,默认false,即不编译JS文件. */,
|
|
10
|
+
// "checkJs": true, /* 指定是否检查和报告JS文件中的错误,默认false */
|
|
11
|
+
"jsx": "react" /* 指定jsx代码用于的开发环境:'preserve','react-native', or 'react'. */,
|
|
12
|
+
"declaration": false /* 指定是否在编译的时候生成相的d.ts声明文件 */,
|
|
13
|
+
// "declarationMap": true, /* 指定编译时是否生成.map文件 */
|
|
14
|
+
// "sourceMap": true, /* 指定编译时是否生成.map文件 */
|
|
15
|
+
// "outFile": "./", /* 指定输出文件合并为一个文件 */
|
|
16
|
+
// "outDir": "dist", /* 指定输出文件夹,值为一个文件夹路径字符串,输出的文件都将放置在这个文件夹*/
|
|
17
|
+
// "rootDir": "src", /* 指定编译文件的根目录,编译器会在根目录查找入口文件 */
|
|
18
|
+
// "composite": true, /* 是否编译构建引用项目 */
|
|
19
|
+
// "removeComments": true, /* 指定是否将编译后的文件注释删掉,设为true的话即删除注释,默认为false */
|
|
20
|
+
"noEmit": false /* 不生成编译文件 */,
|
|
21
|
+
"importHelpers": true /* 指定是否引入tslib里的复制工具函数,默认为false */,
|
|
22
|
+
// "downlevelIteration": true, /* 当target为"ES5"或"ES3"时,为"for-of" "spread"和"destructuring"中的迭代器提供完全支持 */
|
|
23
|
+
"isolatedModules": false /* 指定是否将每个文件作为单独的模块,默认为true */,
|
|
24
|
+
|
|
25
|
+
/* Strict Type-Checking Options */
|
|
26
|
+
"strict": false /* 指定是否启动所有类型检查 */,
|
|
27
|
+
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
|
28
|
+
"strictNullChecks": true /* Enable strict null checks. */,
|
|
29
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
30
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
31
|
+
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
|
|
32
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
33
|
+
|
|
34
|
+
/* Additional Checks */
|
|
35
|
+
"noUnusedLocals": false /* Report errors on unused locals. */,
|
|
36
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
37
|
+
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
|
38
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
39
|
+
|
|
40
|
+
/* Module Resolution Options */
|
|
41
|
+
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
42
|
+
"baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
|
|
43
|
+
"paths": {
|
|
44
|
+
"@": ["./src"]
|
|
45
|
+
} /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
|
|
46
|
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
47
|
+
/* 指定声明文件或文件夹的路径列表,如果指定了此项,则只有在这里列出的声明文件才会被加载 */
|
|
48
|
+
"typeRoots": ["./@types", "./node_modules/@types"],
|
|
49
|
+
// "types": [], /* 指定需要包含的模块,只有在这里列出的模块的声明文件才会被加载 */
|
|
50
|
+
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
|
|
51
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
52
|
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
53
|
+
|
|
54
|
+
/* Source Map Options */
|
|
55
|
+
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
56
|
+
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
57
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
58
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
59
|
+
|
|
60
|
+
/* Experimental Options */
|
|
61
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
62
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
63
|
+
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
64
|
+
// "suppressImplicitAnyIndexErrors": true /* Suppress --noImplicitAny errors for indexing objects lacking index signatures. See issue #1232 for more details. */
|
|
65
|
+
},
|
|
66
|
+
"include": ["src", "test"],
|
|
67
|
+
"exclude": ["node_modules"]
|
|
68
|
+
}
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"url": "https://github.com/wibetter/react-custom-cmp-template/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"neo-register": "^1.0.
|
|
40
|
+
"neo-register": "^1.0.2",
|
|
41
41
|
"react": "^16.9.0",
|
|
42
42
|
"react-dom": "^16.9.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@commitlint/cli": "^8.3.5",
|
|
46
46
|
"@commitlint/config-conventional": "^9.1.1",
|
|
47
|
-
"neo-cmp-cli": "^1.1.
|
|
47
|
+
"neo-cmp-cli": "^1.1.8",
|
|
48
48
|
"husky": "^4.2.5",
|
|
49
49
|
"lint-staged": "^10.2.9",
|
|
50
50
|
"prettier": "^2.0.5"
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
"url": "https://github.com/wibetter/react-ts-custom-cmp-template/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"neo-register": "^1.0.
|
|
41
|
-
"antd": "4.9.4",
|
|
40
|
+
"neo-register": "^1.0.2",
|
|
42
41
|
"react": "^16.9.0",
|
|
43
42
|
"react-dom": "^16.9.0"
|
|
44
43
|
},
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
"@commitlint/config-conventional": "^9.1.1",
|
|
48
47
|
"@types/react": "^16.9.11",
|
|
49
48
|
"@types/react-dom": "^16.9.15",
|
|
50
|
-
"neo-cmp-cli": "^1.1.
|
|
49
|
+
"neo-cmp-cli": "^1.1.8",
|
|
51
50
|
"husky": "^4.2.5",
|
|
52
51
|
"lint-staged": "^10.2.9",
|
|
53
52
|
"prettier": "^2.0.5"
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Avatar } from 'antd';
|
|
3
|
-
import { UserOutlined } from '@ant-design/icons';
|
|
4
2
|
import './style.scss'; // 组件内容样式
|
|
5
3
|
|
|
6
4
|
interface InfoCardProps {
|
|
@@ -43,7 +41,6 @@ export default class InfoCard extends React.PureComponent<InfoCardProps> {
|
|
|
43
41
|
{title ||
|
|
44
42
|
'营销服全场景智能CRM,帮助企业搭建数字化客户经营平台,实现业绩高质量增长。'}
|
|
45
43
|
{systemInfo.tenantName ? `【${systemInfo.tenantName}】` : ''}
|
|
46
|
-
<Avatar size={64} icon={<UserOutlined />} />
|
|
47
44
|
</div>
|
|
48
45
|
<div className="item-imgbox">
|
|
49
46
|
{userInfo && userInfo.icon && (
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"url": "https://github.com/wibetter/vue2-custom-cmp-template/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"neo-register": "^1.0.
|
|
40
|
+
"neo-register": "^1.0.2",
|
|
41
41
|
"vue": "^2.6.14",
|
|
42
42
|
"element-ui": "^2.15.12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@commitlint/cli": "^8.3.5",
|
|
46
46
|
"@commitlint/config-conventional": "^9.1.1",
|
|
47
|
-
"neo-cmp-cli": "^1.1.
|
|
47
|
+
"neo-cmp-cli": "^1.1.8",
|
|
48
48
|
"husky": "^4.2.5",
|
|
49
49
|
"lint-staged": "^10.2.9",
|
|
50
50
|
"prettier": "^2.0.5",
|