el-plus-crud 0.1.11 → 0.1.13

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.
@@ -45,7 +45,7 @@ export default {
45
45
  }
46
46
  </script>
47
47
  <script lang="ts" setup>
48
- import { ref, computed, useAttrs, nextTick, onMounted, watch, inject, Ref } from 'vue'
48
+ import { ref, computed, useAttrs, nextTick, onMounted, watch, inject, Ref, useSlots } from 'vue'
49
49
  import { castArray, isMobile, time, isPromiseLike } from '../../util'
50
50
  import { cloneDeep, debounce } from 'lodash'
51
51
  import * as validates from './util/validate'
@@ -188,6 +188,8 @@ const innerIsLoading = ref(false)
188
188
 
189
189
  let oldFormData = null as any
190
190
 
191
+ const indexList = ref([] as number[])
192
+
191
193
  const size = computed(() => props.size || defaultConf.size)
192
194
  // 组件名称列表
193
195
  const compTypeList = [...typeList, ...(defaultConf.form?.comList || [])]
@@ -817,14 +819,15 @@ watch(
817
819
  watch(
818
820
  () => props.modelValue,
819
821
  (data) => {
820
- if (!oldFormData || (isOpenListen.value && data && JSON.stringify(data) !== JSON.stringify(oldFormData))) {
822
+ // && JSON.stringify(data) !== JSON.stringify(oldFormData)
823
+ if (!oldFormData || (isOpenListen.value && data)) {
821
824
  // 检查联动
822
- if (JSON.stringify(data) !== JSON.stringify(oldFormData)) {
823
- if (!oldFormData) {
824
- oldFormData = cloneDeep(data)
825
- }
826
- initFormAttrs()
825
+ // if (JSON.stringify(data) !== JSON.stringify(oldFormData)) {
826
+ if (!oldFormData) {
827
+ oldFormData = cloneDeep(data)
827
828
  }
829
+ initFormAttrs()
830
+ // }
828
831
  }
829
832
  },
830
833
  { deep: true }
@@ -230,7 +230,7 @@ onMounted(async () => {})
230
230
  .panel-left {
231
231
  // flex: 1;
232
232
  min-width: 60%;
233
- height: 500px;
233
+ // height: 500px;
234
234
  display: flex;
235
235
  flex-direction: column;
236
236
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "el-plus-crud",
3
3
  "description": "采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件",
4
4
  "author": "K.D.Jack",
5
- "version": "0.1.11",
5
+ "version": "0.1.13",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.mjs",