@xuekl/cli-components 1.3.8 → 1.3.9
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/XklForm.vue +2 -2
- package/package.json +1 -1
package/XklForm.vue
CHANGED
|
@@ -71,7 +71,7 @@ export default {
|
|
|
71
71
|
<script setup lang="ts">
|
|
72
72
|
import { setUpperFirst } from '@xuekl/cli-utils'
|
|
73
73
|
import { FormItem } from '@xuekl/cli-base/type.d'
|
|
74
|
-
import { ref, watch, onMounted } from 'vue'
|
|
74
|
+
import { ref, watch, onMounted, Ref } from 'vue'
|
|
75
75
|
import XklSelect from './XklSelect.vue'
|
|
76
76
|
import XklTreeSelect from './XklTreeSelect.vue'
|
|
77
77
|
import XklDict from './XklDict.vue'
|
|
@@ -82,7 +82,7 @@ const props = defineProps(['form'])
|
|
|
82
82
|
const XklFormRef = ref(null)
|
|
83
83
|
const { form } = props
|
|
84
84
|
const sourceFormList: FormItem[] = []
|
|
85
|
-
const formList: FormItem[] = ref([])
|
|
85
|
+
const formList: Ref<FormItem[]> = ref([])
|
|
86
86
|
const opts = form._opts || {}
|
|
87
87
|
const isCollapse = ref(true)
|
|
88
88
|
if (typeof opts.defaultCollapse !== 'undefined') {
|