neo-cmp-cli 1.1.11 → 1.1.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -76,11 +76,13 @@ yargs
76
76
  value: 'echarts',
77
77
  short: 'echarts'
78
78
  },
79
+ /*
79
80
  {
80
81
  name: 'Neo 自定义组件',
81
82
  value: 'neo',
82
83
  short: 'neo'
83
84
  },
85
+ */
84
86
  {
85
87
  name: 'react 自定义组件',
86
88
  value: 'react',
@@ -40,7 +40,7 @@ module.exports = {
40
40
  },
41
41
  // Neo 共享依赖模块
42
42
  neoCommonModule: {
43
- // neoExports: ['echarts'], // 自定义组件 共享出来的模块,支持数组和对象
43
+ // neoExports: ['echarts'], // 自定义组件 共享出来的模块,支持数组和对象形式
44
44
  // neoExports: {}, // 对象写法
45
45
  // neoExternals: ['neo-register', 'chart-widget'], // 自定义组件 需要剔除的模块,仅支持数组写法
46
46
  },
@@ -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.1.11",
50
+ "neo-cmp-cli": "^1.1.12",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5"
@@ -9,7 +9,7 @@ export class InfoCardModel {
9
9
  // cmpType: string = 'info-card';
10
10
 
11
11
  // 组件名称,用于设置在编辑器左侧组件面板中展示的名称
12
- label: string = '信息卡片2';
12
+ label: string = '信息卡片';
13
13
 
14
14
  // 组件描述,用于设置在编辑器左侧组件面板中展示的描述
15
15
  description: string = '信息展示卡片';
@@ -38,14 +38,17 @@ module.exports = {
38
38
  // plugins: [],
39
39
  // babelPlugins: [],
40
40
  },
41
+ // Neo 共享依赖模块
42
+ /*
41
43
  neoCommonModule: {
42
- // neoExports: [], // 自定义组件 共享出来的模块,支持数组和对象
44
+ // neoExports: [], // 自定义组件 共享出来的模块,支持数组和对象形式
43
45
  neoExports: {
44
46
  'chart-widget': path.resolve('./src/components/chart-widget'), // 导出图表自定义组件
45
47
  'neo-register': 'neo-register', // 导出 Neo 注册模块
46
48
  },
47
49
  // neoExternals: [], // 自定义组件 需要剔除的模块,仅支持数组写法
48
50
  },
51
+ */
49
52
  preview: {
50
53
  // 用于开启本地预览模式的相关配置信息
51
54
  /*
@@ -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.1.11",
50
+ "neo-cmp-cli": "^1.1.12",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5",
@@ -48,7 +48,7 @@
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
50
  "@types/axios": "^0.14.0",
51
- "neo-cmp-cli": "^1.1.11",
51
+ "neo-cmp-cli": "^1.1.12",
52
52
  "husky": "^4.2.5",
53
53
  "lint-staged": "^10.2.9",
54
54
  "prettier": "^2.0.5"
@@ -35,16 +35,9 @@ import NeoEntityGrid from './components/neo-entity-grid';
35
35
  | objectApiKey | string | 'account' | 实体API Key |
36
36
  | tableType | string | 'lookup' | 表格类型 (lookup/list/related) |
37
37
  | selectionMode | string | 'multiple' | 选择模式 (single/multiple/none) |
38
- | showFooter | boolean | true | 是否显示底部 (分页、操作按钮等) |
39
38
  | showHeader | boolean | true | 是否显示头部 (工具栏、筛选等) |
40
39
  | data | any | - | 组件数据 |
41
40
 
42
- ### 表格类型说明
43
-
44
- - **lookup**: 查找模式,用于选择数据
45
- - **list**: 列表模式,用于展示数据列表
46
- - **related**: 关联模式,用于展示关联数据
47
-
48
41
  ### 选择模式说明
49
42
 
50
43
  - **single**: 单选模式
@@ -52,8 +45,6 @@ import NeoEntityGrid from './components/neo-entity-grid';
52
45
  - **none**: 无选择模式
53
46
 
54
47
  ### 显示控制说明
55
-
56
- - **showFooter**: 控制是否显示表格底部,包括分页信息、操作按钮等
57
48
  - **showHeader**: 控制是否显示表格头部,包括工具栏、筛选条件等
58
49
 
59
50
  ### 使用示例
@@ -65,7 +56,6 @@ import NeoEntityGrid from './components/neo-entity-grid';
65
56
  objectApiKey="account"
66
57
  tableType="lookup"
67
58
  selectionMode="multiple"
68
- showFooter={true}
69
59
  showHeader={true}
70
60
  />
71
61
  ```
@@ -77,7 +67,6 @@ import NeoEntityGrid from './components/neo-entity-grid';
77
67
  objectApiKey="account"
78
68
  tableType="list"
79
69
  selectionMode="none"
80
- showFooter={false}
81
70
  showHeader={true}
82
71
  />
83
72
  ```
@@ -89,7 +78,6 @@ import NeoEntityGrid from './components/neo-entity-grid';
89
78
  objectApiKey="account"
90
79
  tableType="list"
91
80
  selectionMode="none"
92
- showFooter={false}
93
81
  showHeader={false}
94
82
  />
95
83
  ```
@@ -124,5 +112,4 @@ const entityGridStore = EntityGridStore.create({
124
112
 
125
113
  ## 注意事项
126
114
  1. 组件需要在 Neo 环境中使用,需要相应的上下文支持
127
- 2. EntityGrid 组件需要 render 函数来渲染 amis 组件
128
115
  3. 确保有相应的权限配置
@@ -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.1.11",
47
+ "neo-cmp-cli": "^1.1.12",
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.1.11",
49
+ "neo-cmp-cli": "^1.1.12",
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.1.11",
47
+ "neo-cmp-cli": "^1.1.12",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5",