diff --git a/packages/crud-table/src/CrudTable.vue b/packages/crud-table/src/CrudTable.vue index 254919b..0369bea 100644 --- a/packages/crud-table/src/CrudTable.vue +++ b/packages/crud-table/src/CrudTable.vue @@ -242,6 +242,7 @@ import { confirm } from '@/utils/confirm'; import SvgIcon from '@/icons/SvgIcon.vue'; import GenerateFormDialog from './GenerateFormDialog.vue'; import SearchForm from './SearchForm.vue'; +import _cloneDeep from 'lodash/cloneDeep' const STATUS = { CREATE: 0, @@ -624,7 +625,7 @@ export default class CrudTable extends Vue { // 操作列-添加 actionColumnAdd(row) { // 添加成功后需要刷新当前结点的子节点,此处特殊处理 - this.currentRow.parentid = this.lodash.cloneDeep(row).id; + this.currentRow.parentid = _cloneDeep(row).id; if (this.btnRowAddOnClick) { this.btnRowAddOnClick(row); } else if (this.prefill) { diff --git a/packages/shims-vue-expand.d.ts b/packages/shims-vue-expand.d.ts index 88124fd..98a2da1 100644 --- a/packages/shims-vue-expand.d.ts +++ b/packages/shims-vue-expand.d.ts @@ -8,7 +8,6 @@ declare module 'vue/types/vue' { interface Vue { $store: any; - lodash: any; axios: any; dayjs: any; $pinyinmatch: any; diff --git a/packages/table-designer/src/MenuBar.vue b/packages/table-designer/src/MenuBar.vue index d5350dc..8c5f9d1 100644 --- a/packages/table-designer/src/MenuBar.vue +++ b/packages/table-designer/src/MenuBar.vue @@ -53,6 +53,8 @@