cloud-business 0.1.143 → 0.1.144
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/{dist/cloud-business.js → cloud-business.js} +1 -1
- package/cloud-business.min.js +1 -0
- package/package.json +1 -134
- package/.babelrc +0 -22
- package/.idea/cloud-business-react.iml +0 -12
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/LICENSE +0 -21
- package/README.md +0 -127
- package/assets.json +0 -132
- package/dist/cloud-business.min.js +0 -1
- package/dist/package.json +0 -134
- package/jsconfig.json +0 -13
- package/typings.d.ts +0 -2
- /package/{dist/cloud-business.css → cloud-business.css} +0 -0
- /package/{dist/cloud-business.min.css → cloud-business.min.css} +0 -0
package/package.json
CHANGED
|
@@ -1,134 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cloud-business",
|
|
3
|
-
"version": "0.1.143",
|
|
4
|
-
"description": "数据赢家 react 版本业务组件",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"gen:index": "node ./scripts/generate-index.js",
|
|
7
|
-
"gen:index:dev": "node ./scripts/generate-index.js --dev",
|
|
8
|
-
"gen:doc": "node ./scripts/generate-doc.js",
|
|
9
|
-
"start": "rimraf dist/* && npm run gen:index:dev && father-build --dev && dumi dev",
|
|
10
|
-
"site": "npm run gen:index:dev && dumi build",
|
|
11
|
-
"docs:build": "dumi build",
|
|
12
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
13
|
-
"build": "npm run gen:index && rimraf dist/* && father-build",
|
|
14
|
-
"watch": "father-build --watch",
|
|
15
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
16
|
-
"release": "npm run build && npm publish",
|
|
17
|
-
"test": "umi-test",
|
|
18
|
-
"test:coverage": "umi-test --coverage",
|
|
19
|
-
"postversion": "dumi assets",
|
|
20
|
-
"cli-version": "node ./scripts/generate-version.js",
|
|
21
|
-
"version": "npm run build && npm publish dist",
|
|
22
|
-
"lint": "eslint . --ext .js,.jsx",
|
|
23
|
-
"lint:fix": "eslint --ext .js,.jsx --fix .",
|
|
24
|
-
"format": "npm run lint:fix"
|
|
25
|
-
},
|
|
26
|
-
"dumiAssets": "assets.json",
|
|
27
|
-
"main": "cloud-business.js",
|
|
28
|
-
"module": "dist/index.esm.js",
|
|
29
|
-
"typings": "dist/index.d.ts",
|
|
30
|
-
"source": "src/index.js",
|
|
31
|
-
"gitHooks": {
|
|
32
|
-
"pre-commit": "lint-staged"
|
|
33
|
-
},
|
|
34
|
-
"jest": {
|
|
35
|
-
"moduleNameMapper": {
|
|
36
|
-
"^@utils(.*)$": "<rootDir>/src/utils$1",
|
|
37
|
-
"^@contexts(.*)$": "<rootDir>/src/contexts$1",
|
|
38
|
-
"^@src(.*)$": "<rootDir>/src/$1"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"lint-staged": {
|
|
42
|
-
"*.{js,jsx,less,md,json}": [
|
|
43
|
-
"prettier --write"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"repository": "https://github.com/ShuyunFF2E/cloud-business.git",
|
|
47
|
-
"author": "shuyunfe <shuyunfe@shuyun.com>",
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@babel/cli": "^7.14.8",
|
|
50
|
-
"@babel/core": "^7.15.0",
|
|
51
|
-
"@babel/eslint-parser": "^7.28.0",
|
|
52
|
-
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
53
|
-
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
54
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.14.5",
|
|
55
|
-
"@babel/plugin-proposal-function-sent": "^7.14.5",
|
|
56
|
-
"@babel/plugin-proposal-numeric-separator": "^7.14.5",
|
|
57
|
-
"@babel/plugin-proposal-throw-expressions": "^7.14.5",
|
|
58
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
59
|
-
"@babel/plugin-transform-runtime": "^7.15.0",
|
|
60
|
-
"@babel/preset-env": "^7.15.0",
|
|
61
|
-
"@babel/preset-react": "^7.14.5",
|
|
62
|
-
"@babel/runtime": "^7.15.3",
|
|
63
|
-
"@rollup/plugin-alias": "^3.1.5",
|
|
64
|
-
"@rollup/plugin-url": "^6.1.0",
|
|
65
|
-
"@types/react-is": "^17.0.3",
|
|
66
|
-
"@umijs/test": "^3.0.5",
|
|
67
|
-
"babel-eslint": "^10.1.0",
|
|
68
|
-
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
69
|
-
"cross-env": "^7.0.3",
|
|
70
|
-
"dumi": "^1.0.14",
|
|
71
|
-
"enzyme": "^3.11.0",
|
|
72
|
-
"enzyme-adapter-react-16": "^1.15.2",
|
|
73
|
-
"enzyme-to-json": "^3.5.0",
|
|
74
|
-
"eslint": "^7.32.0",
|
|
75
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
76
|
-
"eslint-config-prettier": "^8.3.0",
|
|
77
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
|
78
|
-
"eslint-plugin-import": "^2.24.2",
|
|
79
|
-
"eslint-plugin-jest": "^24.4.0",
|
|
80
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
81
|
-
"eslint-plugin-prettier": "^3.4.1",
|
|
82
|
-
"eslint-plugin-react": "^7.24.0",
|
|
83
|
-
"eslint-webpack-plugin": "^3.0.1",
|
|
84
|
-
"father-build": "1.22.1",
|
|
85
|
-
"gh-pages": "^3.0.0",
|
|
86
|
-
"glob": "^7.1.7",
|
|
87
|
-
"identity-obj-proxy": "^3.0.0",
|
|
88
|
-
"jest": "^27.0.6",
|
|
89
|
-
"jest-environment-jsdom": "^27.0.6",
|
|
90
|
-
"jest-transform-css": "2.0.0",
|
|
91
|
-
"lint-staged": "^10.0.7",
|
|
92
|
-
"markdown-it": "^12.2.0",
|
|
93
|
-
"postcss-font-base64": "^1.0.5",
|
|
94
|
-
"prettier": "^2.2.1",
|
|
95
|
-
"rimraf": "^3.0.2",
|
|
96
|
-
"rollup-plugin-postcss": "^4.0.1",
|
|
97
|
-
"rollup-plugin-visualizer": "^4.2.2",
|
|
98
|
-
"umi-lint": "^2.0.2",
|
|
99
|
-
"yargs": "^17.1.1"
|
|
100
|
-
},
|
|
101
|
-
"dependencies": {
|
|
102
|
-
"axios": "^0.19.1",
|
|
103
|
-
"classnames": "^2.2.6",
|
|
104
|
-
"cloud-react": "0.1.19",
|
|
105
|
-
"cloud-react-v2": "npm:cloud-react@2.0.14-4",
|
|
106
|
-
"emoji-mart": "^5.2.0",
|
|
107
|
-
"gray-matter": "^4.0.3",
|
|
108
|
-
"moment": "^2.29.4",
|
|
109
|
-
"postcss-url": "8.0.0",
|
|
110
|
-
"prop-types": "^15.7.2",
|
|
111
|
-
"rc-picker": "^3.1.4",
|
|
112
|
-
"rc-overflow": "^1.2.8",
|
|
113
|
-
"react": "^16.8.6",
|
|
114
|
-
"react-dom": "^16.8.6",
|
|
115
|
-
"react-router-dom": "^5.0.0",
|
|
116
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
117
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
118
|
-
"rollup-plugin-eslint": "^7.0.0",
|
|
119
|
-
"rollup-plugin-img": "^1.1.0",
|
|
120
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
121
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
122
|
-
"shuyun-utils": "0.0.3",
|
|
123
|
-
"react-beautiful-dnd": "^13.1.0",
|
|
124
|
-
"@emoji-mart/data": "^1.0.2",
|
|
125
|
-
"core-js": "^3.30.0"
|
|
126
|
-
},
|
|
127
|
-
"bugs": {
|
|
128
|
-
"url": "https://github.com/ShuyunFF2E/ccms-components-react/issues"
|
|
129
|
-
},
|
|
130
|
-
"homepage": "https://github.com/ShuyunFF2E/ccms-components-react#readme",
|
|
131
|
-
"volta": {
|
|
132
|
-
"node": "14.21.3"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
1
|
+
{"name":"cloud-business","version":"0.1.144","description":"数据赢家 react 版本业务组件","scripts":{"gen:index":"node ./scripts/generate-index.js","gen:index:dev":"node ./scripts/generate-index.js --dev","gen:doc":"node ./scripts/generate-doc.js","start":"rimraf dist/* && npm run gen:index:dev && father-build --dev && dumi dev","site":"npm run gen:index:dev && dumi build","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","build":"npm run gen:index && rimraf dist/* && father-build","watch":"father-build --watch","deploy":"npm run docs:build && npm run docs:deploy","release":"npm run build && npm publish","test":"umi-test","test:coverage":"umi-test --coverage","postversion":"dumi assets","cli-version":"node ./scripts/generate-version.js","version":"npm run build && npm publish dist","lint":"eslint . --ext .js,.jsx","lint:fix":"eslint --ext .js,.jsx --fix .","format":"npm run lint:fix"},"dumiAssets":"assets.json","main":"cloud-business.js","module":"dist/index.esm.js","typings":"dist/index.d.ts","source":"src/index.js","gitHooks":{"pre-commit":"lint-staged"},"jest":{"moduleNameMapper":{"^@utils(.*)$":"<rootDir>/src/utils$1","^@contexts(.*)$":"<rootDir>/src/contexts$1","^@src(.*)$":"<rootDir>/src/$1"}},"lint-staged":{"*.{js,jsx,less,md,json}":["prettier --write"]},"repository":"https://github.com/ShuyunFF2E/cloud-business.git","author":"shuyunfe <shuyunfe@shuyun.com>","devDependencies":{"@babel/cli":"^7.14.8","@babel/core":"^7.15.0","@babel/eslint-parser":"^7.28.0","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-proposal-decorators":"^7.14.5","@babel/plugin-proposal-export-namespace-from":"^7.14.5","@babel/plugin-proposal-function-sent":"^7.14.5","@babel/plugin-proposal-numeric-separator":"^7.14.5","@babel/plugin-proposal-throw-expressions":"^7.14.5","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-runtime":"^7.15.0","@babel/preset-env":"^7.15.0","@babel/preset-react":"^7.14.5","@babel/runtime":"^7.15.3","@rollup/plugin-alias":"^3.1.5","@rollup/plugin-url":"^6.1.0","@types/react-is":"^17.0.3","@umijs/test":"^3.0.5","babel-eslint":"^10.1.0","babel-plugin-transform-react-remove-prop-types":"^0.4.24","cross-env":"^7.0.3","dumi":"^1.0.14","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.2","enzyme-to-json":"^3.5.0","eslint":"^7.32.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^8.3.0","eslint-import-resolver-alias":"^1.1.2","eslint-plugin-import":"^2.24.2","eslint-plugin-jest":"^24.4.0","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-prettier":"^3.4.1","eslint-plugin-react":"^7.24.0","eslint-webpack-plugin":"^3.0.1","father-build":"1.22.1","gh-pages":"^3.0.0","glob":"^7.1.7","identity-obj-proxy":"^3.0.0","jest":"^27.0.6","jest-environment-jsdom":"^27.0.6","jest-transform-css":"2.0.0","lint-staged":"^10.0.7","markdown-it":"^12.2.0","postcss-font-base64":"^1.0.5","prettier":"^2.2.1","rimraf":"^3.0.2","rollup-plugin-postcss":"^4.0.1","rollup-plugin-visualizer":"^4.2.2","umi-lint":"^2.0.2","yargs":"^17.1.1"},"dependencies":{"@emoji-mart/data":"^1.0.2","axios":"^0.19.1","classnames":"^2.2.6","cloud-react":"0.1.19","cloud-react-v2":"npm:cloud-react@2.0.14-4","core-js":"^3.30.0","emoji-mart":"^5.2.0","gray-matter":"^4.0.3","moment":"^2.29.4","postcss-url":"8.0.0","prop-types":"^15.7.2","rc-overflow":"^1.2.8","rc-picker":"^3.1.4","react":"^16.8.6","react-beautiful-dnd":"^13.1.0","react-dom":"^16.8.6","react-router-dom":"^5.0.0","rollup-plugin-babel":"^4.4.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-eslint":"^7.0.0","rollup-plugin-img":"^1.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-uglify":"^6.0.4","shuyun-utils":"0.0.3"},"bugs":{"url":"https://github.com/ShuyunFF2E/ccms-components-react/issues"},"homepage":"https://github.com/ShuyunFF2E/ccms-components-react#readme"}
|
package/.babelrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
"@babel/preset-env",
|
|
4
|
-
"@babel/preset-react"
|
|
5
|
-
],
|
|
6
|
-
"plugins": [
|
|
7
|
-
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
|
8
|
-
"@babel/plugin-proposal-function-sent",
|
|
9
|
-
"@babel/plugin-proposal-export-namespace-from",
|
|
10
|
-
"@babel/plugin-proposal-numeric-separator",
|
|
11
|
-
"@babel/plugin-proposal-throw-expressions",
|
|
12
|
-
"@babel/plugin-syntax-dynamic-import",
|
|
13
|
-
["@babel/plugin-proposal-class-properties", { "loose": true }],
|
|
14
|
-
[
|
|
15
|
-
"@babel/plugin-transform-runtime",
|
|
16
|
-
{
|
|
17
|
-
"helpers": true,
|
|
18
|
-
"regenerator": true
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
]
|
|
22
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/cloud-business-react.iml" filepath="$PROJECT_DIR$/.idea/cloud-business-react.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Shuyun FF2E
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
# cloud-business
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/cloud-business)
|
|
4
|
-
[](https://github.com/ShuyunFF2E/cloud-business/blob/master/LICENSE)
|
|
5
|
-
|
|
6
|
-
数云 React 业务组件库,提供丰富的企业级业务组件,助力快速构建数据赢家相关应用。
|
|
7
|
-
|
|
8
|
-
## 📦 安装
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm install cloud-business
|
|
12
|
-
# 或
|
|
13
|
-
yarn add cloud-business
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## 🚀 快速开始
|
|
17
|
-
|
|
18
|
-
```jsx
|
|
19
|
-
import React from 'react';
|
|
20
|
-
import { AreaSelector, CustomerView, ShopSelector } from 'cloud-business';
|
|
21
|
-
import 'cloud-business/dist/index.css';
|
|
22
|
-
|
|
23
|
-
function App() {
|
|
24
|
-
return (
|
|
25
|
-
<div>
|
|
26
|
-
<AreaSelector />
|
|
27
|
-
<CustomerView />
|
|
28
|
-
<ShopSelector />
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## 📋 组件列表
|
|
35
|
-
|
|
36
|
-
### 基础组件
|
|
37
|
-
- **AreaSelector** - 地区选择器
|
|
38
|
-
- **AreaSelectorNew** - 新版地区选择器
|
|
39
|
-
- **ShopSelector** - 店铺选择器
|
|
40
|
-
- **ShopSelectorNew** - 新版店铺选择器
|
|
41
|
-
- **ShopSelectorPro** - 专业版店铺选择器
|
|
42
|
-
|
|
43
|
-
### 客户管理
|
|
44
|
-
- **CustomerView** - 客户视图
|
|
45
|
-
- **CustomerViewNew** - 新版客户视图
|
|
46
|
-
- **BlackList** - 黑名单管理
|
|
47
|
-
- **BlackListNew** - 新版黑名单管理
|
|
48
|
-
|
|
49
|
-
### 商品管理
|
|
50
|
-
- **GoodsSelectorPro** - 商品选择器
|
|
51
|
-
- **GoodsSelectorProNew** - 新版专业商品选择器
|
|
52
|
-
|
|
53
|
-
### 营销工具
|
|
54
|
-
- **DySms** - 抖音短信组件
|
|
55
|
-
- **SmsEditor** - 短信编辑器
|
|
56
|
-
- **SuperSmsSelector** - 超级短信选择器
|
|
57
|
-
- **EnterpriseChatChannel** - 企业聊天渠道
|
|
58
|
-
|
|
59
|
-
### 其他工具
|
|
60
|
-
- **Editor** - 富文本编辑器
|
|
61
|
-
- **SatisfactionSurvey** - 满意度调查
|
|
62
|
-
- **WelcomesPreview** - 欢迎预览
|
|
63
|
-
- **CcMenu** - 菜单组件
|
|
64
|
-
- **Keyword** - 关键词组件
|
|
65
|
-
|
|
66
|
-
## 🛠️ 开发
|
|
67
|
-
|
|
68
|
-
### 环境要求
|
|
69
|
-
- Node.js 14
|
|
70
|
-
|
|
71
|
-
### 安装依赖
|
|
72
|
-
```bash
|
|
73
|
-
npm install
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### 开发命令
|
|
77
|
-
```bash
|
|
78
|
-
# 启动开发服务器
|
|
79
|
-
npm start
|
|
80
|
-
|
|
81
|
-
# 构建项目
|
|
82
|
-
npm run build
|
|
83
|
-
|
|
84
|
-
# 代码检查
|
|
85
|
-
npm run lint
|
|
86
|
-
|
|
87
|
-
# 自动修复代码风格
|
|
88
|
-
npm run lint:fix
|
|
89
|
-
|
|
90
|
-
# 生成文档
|
|
91
|
-
npm run gen:doc
|
|
92
|
-
|
|
93
|
-
# 构建文档站点
|
|
94
|
-
npm run docs:build
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### 项目结构
|
|
98
|
-
```
|
|
99
|
-
src/
|
|
100
|
-
├── area-selector/ # 地区选择器
|
|
101
|
-
├── area-selector-new/ # 新版地区选择器
|
|
102
|
-
├── black-list/ # 黑名单管理
|
|
103
|
-
├── black-list-new/ # 新版黑名单管理
|
|
104
|
-
├── cc-menu/ # 菜单组件
|
|
105
|
-
├── customer-view/ # 客户视图
|
|
106
|
-
├── customer-view-new/ # 新版客户视图
|
|
107
|
-
├── dy-sms/ # 抖音短信组件
|
|
108
|
-
├── editor/ # 富文本编辑器
|
|
109
|
-
├── enterprise-chat-channel/ # 企业聊天渠道
|
|
110
|
-
├── goods-selector-pro/ # 专业版商品选择器
|
|
111
|
-
├── goods-selector-pro-new/ # 新版专业商品选择器
|
|
112
|
-
├── keyword/ # 关键词组件
|
|
113
|
-
├── satisfaction-survey/ # 满意度调查
|
|
114
|
-
├── shop-selector/ # 店铺选择器
|
|
115
|
-
├── shop-selector-new/ # 新版店铺选择器
|
|
116
|
-
├── shop-selector-pro/ # 专业版店铺选择器
|
|
117
|
-
├── sms-editor/ # 短信编辑器
|
|
118
|
-
├── super-sms-selector/ # 超级短信选择器
|
|
119
|
-
├── WelcomesPreview/ # 欢迎预览
|
|
120
|
-
├── style/ # 样式文件
|
|
121
|
-
├── utils/ # 工具函数
|
|
122
|
-
└── index.js # 主入口文件
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
## 📖 文档
|
|
126
|
-
|
|
127
|
-
详细的组件文档和示例请访问:[文档站点](https://cloud-business-react.shuyun.com/)
|
package/assets.json
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": " ",
|
|
3
|
-
"package": "cloud-react",
|
|
4
|
-
"logo": "https://brand-guide.shuyun.com/IAM/77c28a6547cd.png",
|
|
5
|
-
"assets": {
|
|
6
|
-
"atoms": [],
|
|
7
|
-
"examples": [
|
|
8
|
-
{
|
|
9
|
-
"type": "BLOCK",
|
|
10
|
-
"identifier": "basic-demo",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"react": {
|
|
13
|
-
"type": "NPM",
|
|
14
|
-
"value": "16.14.0"
|
|
15
|
-
},
|
|
16
|
-
"cloud-react": {
|
|
17
|
-
"type": "NPM",
|
|
18
|
-
"value": "0.0.98"
|
|
19
|
-
},
|
|
20
|
-
"index.jsx": {
|
|
21
|
-
"type": "FILE",
|
|
22
|
-
"value": "/**\n+ * title: cloud-bread-crumbs\n+ */\n\n\n\nimport React from 'react';\nimport { BreadCrumbs, Button } from 'cloud-react';\n\nexport default class BreadCrumbsDemo extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n size: 'default'\n };\n }\n\n onChangeSize = size => {\n this.setState({ size });\n }\n\n onClickBreadCrumbs = item => {\n console.log(item);\n };\n\n getButtonType = size => {\n return this.state.size === size ? 'primary' : 'normal';\n }\n render() {\n const { size } = this.state;\n const { onChangeSize, onClickBreadCrumbs, getButtonType } = this;\n const list = [\n {\n key: 'home',\n title: '首页'\n },\n {\n key: 'bread-crumbs',\n title: '面包屑'\n },\n {\n key: 'a3',\n title: '查看详情'\n }\n ];\n\n\t\treturn (\n\t\t\t<>\n <div className=\"basic-action\">\n <Button type={getButtonType('large')} onClick={() => {onChangeSize('large')}}>large</Button>\n <Button type={getButtonType('default')} onClick={() => {onChangeSize('default')}}>default</Button>\n <Button type={getButtonType('small')} onClick={() => {onChangeSize('small')}}>small</Button>\n <Button type=\"link\" disabled>\n current: {size}\n </Button>\n </div>\n <div>\n <BreadCrumbs list={list} size={size} onClick={onClickBreadCrumbs.bind(this)}/>\n </div>\n </>\n\t\t);\n\t}\n}"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": "BLOCK",
|
|
28
|
-
"identifier": "basic-demo",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"react": {
|
|
31
|
-
"type": "NPM",
|
|
32
|
-
"value": "16.14.0"
|
|
33
|
-
},
|
|
34
|
-
"cloud-react": {
|
|
35
|
-
"type": "NPM",
|
|
36
|
-
"value": "0.0.98"
|
|
37
|
-
},
|
|
38
|
-
"index.jsx": {
|
|
39
|
-
"type": "FILE",
|
|
40
|
-
"value": "/**\n+ * title: cloud-bread-crumbs\n+ */\n\n\n\nimport React from 'react';\nimport { BreadCrumbs, Button } from 'cloud-react';\n\nexport default class BreadCrumbsDemo extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n size: 'default'\n };\n }\n\n onChangeSize = size => {\n this.setState({ size });\n }\n\n onClickBreadCrumbs = item => {\n console.log(item);\n };\n\n getButtonType = size => {\n return this.state.size === size ? 'primary' : 'normal';\n }\n render() {\n const { size } = this.state;\n const { onChangeSize, onClickBreadCrumbs, getButtonType } = this;\n const list = [\n {\n key: 'home',\n title: '首页'\n },\n {\n key: 'bread-crumbs',\n title: '面包屑'\n },\n {\n key: 'a3',\n title: '查看详情'\n }\n ];\n\n\t\treturn (\n\t\t\t<>\n <div className=\"basic-action\">\n <Button type={getButtonType('large')} onClick={() => {onChangeSize('large')}}>large</Button>\n <Button type={getButtonType('default')} onClick={() => {onChangeSize('default')}}>default</Button>\n <Button type={getButtonType('small')} onClick={() => {onChangeSize('small')}}>small</Button>\n <Button type=\"link\" disabled>\n current: {size}\n </Button>\n </div>\n <div>\n <BreadCrumbs list={list} size={size} onClick={onClickBreadCrumbs.bind(this)}/>\n </div>\n </>\n\t\t);\n\t}\n}"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "BLOCK",
|
|
46
|
-
"identifier": "basic-demo",
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"react": {
|
|
49
|
-
"type": "NPM",
|
|
50
|
-
"value": "16.14.0"
|
|
51
|
-
},
|
|
52
|
-
"cloud-react": {
|
|
53
|
-
"type": "NPM",
|
|
54
|
-
"value": "0.0.98"
|
|
55
|
-
},
|
|
56
|
-
"index.jsx": {
|
|
57
|
-
"type": "FILE",
|
|
58
|
-
"value": "import React from 'react';\nimport { Button, InputNumber } from 'cloud-react';\n\nconst blank = '\\u00A0';\n\nexport default class ButtonDemo extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div>\n\t\t\t\t\t<Button type=\"primary\">primary</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button type=\"normal\">normal</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button type=\"dashed\">dashed</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button type=\"link\">link</Button>\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n}"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "BLOCK",
|
|
64
|
-
"identifier": "block-demo",
|
|
65
|
-
"dependencies": {
|
|
66
|
-
"react": {
|
|
67
|
-
"type": "NPM",
|
|
68
|
-
"value": "16.14.0"
|
|
69
|
-
},
|
|
70
|
-
"cloud-react": {
|
|
71
|
-
"type": "NPM",
|
|
72
|
-
"value": "0.0.98"
|
|
73
|
-
},
|
|
74
|
-
"index.jsx": {
|
|
75
|
-
"type": "FILE",
|
|
76
|
-
"value": "import React from 'react';\nimport { Button } from 'cloud-react';\n\nconst blank = '\\u00A0';\n\nexport default class ButtonDemo extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div>\n\t\t\t\t\t<Button block type=\"primary\">\n\t\t\t\t\t\tprimary\n\t\t\t\t\t</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button block type=\"normal\">\n\t\t\t\t\t\tnormal\n\t\t\t\t\t</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button block type=\"dashed\">\n\t\t\t\t\t\tdashed\n\t\t\t\t\t</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button block type=\"link\">\n\t\t\t\t\t\tlink\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n}"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "BLOCK",
|
|
82
|
-
"identifier": "basic-demo",
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"react": {
|
|
85
|
-
"type": "NPM",
|
|
86
|
-
"value": "16.14.0"
|
|
87
|
-
},
|
|
88
|
-
"cloud-react": {
|
|
89
|
-
"type": "NPM",
|
|
90
|
-
"value": "0.0.98"
|
|
91
|
-
},
|
|
92
|
-
"index.jsx": {
|
|
93
|
-
"type": "FILE",
|
|
94
|
-
"value": "import React from 'react';\nimport { Button, InputNumber } from 'cloud-react';\n\nconst blank = '\\u00A0';\n\nexport default class ButtonDemo extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div>\n\t\t\t\t\t<Button type=\"primary\">primary</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button type=\"normal\">normal</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button type=\"dashed\">dashed</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button type=\"link\">link</Button>\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n}"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"type": "BLOCK",
|
|
100
|
-
"identifier": "block-demo",
|
|
101
|
-
"dependencies": {
|
|
102
|
-
"react": {
|
|
103
|
-
"type": "NPM",
|
|
104
|
-
"value": "16.14.0"
|
|
105
|
-
},
|
|
106
|
-
"cloud-react": {
|
|
107
|
-
"type": "NPM",
|
|
108
|
-
"value": "0.0.98"
|
|
109
|
-
},
|
|
110
|
-
"index.jsx": {
|
|
111
|
-
"type": "FILE",
|
|
112
|
-
"value": "import React from 'react';\nimport { Button } from 'cloud-react';\n\nconst blank = '\\u00A0';\n\nexport default class ButtonDemo extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div>\n\t\t\t\t\t<Button block type=\"primary\">\n\t\t\t\t\t\tprimary\n\t\t\t\t\t</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button block type=\"normal\">\n\t\t\t\t\t\tnormal\n\t\t\t\t\t</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button block type=\"dashed\">\n\t\t\t\t\t\tdashed\n\t\t\t\t\t</Button>\n\t\t\t\t\t{blank}\n\t\t\t\t\t<Button block type=\"link\">\n\t\t\t\t\t\tlink\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n}"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"type": "BLOCK",
|
|
118
|
-
"identifier": "form-demo",
|
|
119
|
-
"dependencies": {
|
|
120
|
-
"cloud-react": {
|
|
121
|
-
"type": "NPM",
|
|
122
|
-
"value": "0.0.98"
|
|
123
|
-
},
|
|
124
|
-
"index.jsx": {
|
|
125
|
-
"type": "FILE",
|
|
126
|
-
"value": "import { Form, Field, Input } from 'cloud-react';\n\n// 简单场景\nfunction FormA() {\n\tconst field = Field.useField();\n\n\treturn (\n\t\t<Form field={field}>\n\t\t\t<Form.Item>\n\t\t\t\t<Input\n\t\t\t\t\t{...field.init('name', {\n\t\t\t\t\t\trules: [{ required: true, message: '用户名必须填写' }]\n\t\t\t\t\t})}\n\t\t\t\t/>\n\t\t\t</Form.Item>\n\t\t</Form>\n\t);\n}\n\n// 复杂场景,需要使用Nexus组件\nfunction FormB() {\n\tB;\n\tconst field = Field.useField();\n\n\treturn (\n\t\t<Form field={field}>\n\t\t\t<Form.Item>\n\t\t\t\t<UseNexus field={field} />\n\t\t\t</Form.Item>\n\t\t</Form>\n\t);\n}\n\nfunction UseNexus() {\n\treturn (\n\t\t<Form.Nexus>\n\t\t\t<Input\n\t\t\t\t{...field.init('firstName', {\n\t\t\t\t\trules: [{ required: true, message: '名字必须填写' }]\n\t\t\t\t})}\n\t\t\t/>\n\n\t\t\t<Input\n\t\t\t\t{...field.init('lastName', {\n\t\t\t\t\trules: [{ required: true, message: '姓氏必须填写' }]\n\t\t\t\t})}\n\t\t\t/>\n\t\t</Form.Nexus>\n\t);\n}"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
}
|