sh-view 2.9.1 → 2.9.2

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": "sh-view",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "description": "基于vxe-table二次封装,更包含Alert,Badge,Card,CodeEditor,Col,Corner,CountTo,Drawer,Empty,Form,Header,Icon,List,Loading,Modal,Noticebar,Poptip,Progress,PullRefresh,Query,Result,Row,Split,Grid,Table,Tabs,Tag,Toolbar,Tree,Upload,WaterFall,WaterMark等丰富组件库",
5
5
  "main": "packages/index.js",
6
6
  "typings": "types/index.d.ts",
@@ -568,7 +568,7 @@ export default function (props, context, proxy, isGrid) {
568
568
  }
569
569
  // 新增行按钮
570
570
  const handleTableAddRow = async (rows, index = -1, isTool = false) => {
571
- let addRows = rows ? $vUtils.clone(rows, true) : props.insertDefault
571
+ let addRows = rows ? $vUtils.clone(rows, true) : props.insertDefault || {}
572
572
  if (typeof props.onToolbarBtnAddBefore === 'function') {
573
573
  addRows = await props.onToolbarBtnAddBefore(addRows)
574
574
  }