hn-workflow-components 1.0.9 → 1.1.1

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 (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -60,6 +60,22 @@ function App() {
60
60
  customHeaders={{
61
61
  Authorization: 'Bearer xxx',
62
62
  }}
63
+ onSave={(data) => {
64
+ console.log('自定义保存', data)
65
+ }}
66
+ onPublish={(data) => {
67
+ console.log('自定义发布回调', data)
68
+ }}
69
+ onSelectMembers={async (data) => {
70
+ console.log('自定义成员选择数据')
71
+ await new Promise(resolve => setTimeout(resolve, 1000))
72
+ return [{ label: 'lu', value: 'lu' }, { label: 'lu2', value: 'lu2' }]
73
+ }}
74
+ onSelectRoles={async () => {
75
+ console.log('自定义角色选择数据')
76
+ await new Promise(resolve => setTimeout(resolve, 1000))
77
+ return [{ label: 'roleu', value: 'roleu' }, { label: 'roleu', value: 'roleu22' }]
78
+ }}
63
79
  />
64
80
  )
65
81
  }
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "hn-workflow-components",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "main": "dist/workflow-components.umd.js",
5
5
  "module": "dist/workflow-components.es.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
+ "README.md",
8
9
  "dist"
9
10
  ],
10
11
  "scripts": {