neo-cmp-cli 1.5.3 → 1.5.5

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/README.md CHANGED
@@ -34,6 +34,12 @@ neo init -t=react-ts
34
34
  ```
35
35
  ##### 3) 进入自定义组件项目根目录,安装依赖并运行
36
36
  ```bash
37
+ # 创建自定义组件项目
38
+ neo createProject
39
+
40
+ # 在当前项目中创建一个自定义组件
41
+ neo createCmp
42
+
37
43
  # 预览自定义组件内容
38
44
  neo preview
39
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -123,7 +123,7 @@ class NeoService {
123
123
  const { access_token, expires_in } = response.data || {};
124
124
 
125
125
  if (!access_token) {
126
- console.error('\n获取 token 失败:响应中未包含 access_token', response.data);
126
+ console.error('\n获取 token 失败(授权配置错误):响应中未包含 access_token', response.data);
127
127
  process.exit(1);
128
128
  }
129
129
 
@@ -22,7 +22,7 @@ module.exports = function (projectName, type = 'react-ts') {
22
22
  const finalProjectPath = path.resolve(process.cwd(), projectName);
23
23
 
24
24
  if (hasNeoProject()) {
25
- console.error(`${consoleTag}创建自定义组件项目失败,当前目录(${process.cwd()})已经是一个 自定义组件项目,请勿重复创建。`);
25
+ console.error(`${consoleTag}创建自定义组件项目失败,当前目录(${process.cwd()})已经是一个自定义组件项目,请勿重复创建。`);
26
26
  process.exit(1);
27
27
  }
28
28
 
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.5.3",
50
+ "neo-cmp-cli": "^1.5.5",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5"
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.5.3",
50
+ "neo-cmp-cli": "^1.5.5",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5",
@@ -37,6 +37,13 @@ export default class CustomCmp extends React.PureComponent<CustomCmpProps> {
37
37
  {title ||
38
38
  '营销服全场景智能CRM,帮助企业搭建数字化客户经营平台,实现业绩高质量增长。'}
39
39
  </div>
40
+ <div className="item-imgbox">
41
+ <div
42
+ className="news-img"
43
+ style={{ backgroundImage: `url(${curBackgroundImage})` }}
44
+ ></div>
45
+ {imgCount > 0 && <div className="img-count">{imgCount}</div>}
46
+ </div>
40
47
  <div className="news-info">
41
48
  <div className="left media-mark">NeoCRM · 低代码平台</div>
42
49
  {commentCount && commentCount > 0 && (
@@ -45,7 +45,7 @@
45
45
  "@commitlint/config-conventional": "^9.1.1",
46
46
  "@types/react": "^16.9.11",
47
47
  "@types/react-dom": "^16.9.15",
48
- "neo-cmp-cli": "^1.5.3",
48
+ "neo-cmp-cli": "^1.5.5",
49
49
  "husky": "^4.2.5",
50
50
  "lint-staged": "^10.2.9",
51
51
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.5.3",
47
+ "neo-cmp-cli": "^1.5.5",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5"
@@ -46,7 +46,7 @@
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
47
  "@types/react": "^16.9.11",
48
48
  "@types/react-dom": "^16.9.15",
49
- "neo-cmp-cli": "^1.5.3",
49
+ "neo-cmp-cli": "^1.5.5",
50
50
  "husky": "^4.2.5",
51
51
  "lint-staged": "^10.2.9",
52
52
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.5.3",
47
+ "neo-cmp-cli": "^1.5.5",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5",