@hzab/list-render 1.10.15 → 1.10.16

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/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ # @hzab/list-render@1.10.16
2
+
3
+ fix: model?.patchMap 类型判断修复
4
+
1
5
  # @hzab/list-render@1.10.15
2
6
 
3
- fix: getList函数分页控制异常修复
7
+ fix: getList 函数分页控制异常修复
4
8
 
5
9
  # @hzab/list-render@1.10.14
6
10
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
7
7
  "dev": "webpack serve -c ./config/webpack.config.js --env local",
8
8
  "build": "webpack -c ./config/webpack.config.js --env production",
9
- "publish-beta": "npm publish --beta",
9
+ "release:alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
10
+ "release:beta": "npm version prerelease --preid=beta && npm publish --tag beta",
10
11
  "publish-patch": "npm version patch && npm publish --access public",
11
12
  "publish-minor": "npm version minor && npm publish --access public",
12
13
  "publish-major": "npm version major && npm publish --access public"
@@ -384,7 +384,7 @@ const ListRender = forwardRef(function (props, parentRef) {
384
384
  async function onEditSubmit(data, opt) {
385
385
  let _data = data;
386
386
  if (isPatchUpdate) {
387
- if (model?.patchMap === "function") {
387
+ if (typeof model?.patchMap === "function") {
388
388
  _data = model.patchMap(data, opt);
389
389
  }
390
390
  } else if (typeof model?.updateMap === "function") {