@cclr/react-model 0.1.6 → 0.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/lib/cjs/index.js +6 -0
- package/lib/esm/index.js +6 -0
- package/package.json +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -92,6 +92,12 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* 获取指定模型的状态和操作
|
|
97
|
+
* @param modelName
|
|
98
|
+
* @param model
|
|
99
|
+
* @returns
|
|
100
|
+
*/
|
|
95
101
|
var useStore = function useStore(modelName, model) {
|
|
96
102
|
var _useState = react.useState({}),
|
|
97
103
|
_useState2 = _slicedToArray(_useState, 2),
|
package/lib/esm/index.js
CHANGED
|
@@ -90,6 +90,12 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* 获取指定模型的状态和操作
|
|
95
|
+
* @param modelName
|
|
96
|
+
* @param model
|
|
97
|
+
* @returns
|
|
98
|
+
*/
|
|
93
99
|
var useStore = function useStore(modelName, model) {
|
|
94
100
|
var _useState = useState({}),
|
|
95
101
|
_useState2 = _slicedToArray(_useState, 2),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cclr/react-model",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "前端开发状态管理",
|
|
5
5
|
"author": "cclr <18843152354@163.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"g:test": "vitest run",
|
|
28
28
|
"g:build": "ccm lib"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "4b351c5bc046c8917bb93717c045a23e5a27c619",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cclr/lang": "
|
|
33
|
-
"@cclr/model": "
|
|
34
|
-
"@cclr/utils": "
|
|
32
|
+
"@cclr/lang": "^0.1.8",
|
|
33
|
+
"@cclr/model": "^0.1.8",
|
|
34
|
+
"@cclr/utils": "^0.1.8",
|
|
35
35
|
"@testing-library/react-hooks": "^8.0.1",
|
|
36
36
|
"@types/react": "^18.3.12",
|
|
37
37
|
"immer": "^10.1.1",
|