Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Form/src/Form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="tsx">
import { PropType, defineComponent, ref, computed, unref, watch, onMounted } from 'vue'
import { PropType, defineComponent, ref, computed, reactive, unref, watch, onMounted } from 'vue'
import {
ElForm,
ElFormItem,
Expand Down Expand Up @@ -98,7 +98,7 @@ export default defineComponent({
const getProps = computed(() => {
const propsObj = { ...props }
Object.assign(propsObj, unref(mergeProps))
return propsObj
return reactive(propsObj)
})

// 存储表单实例
Expand Down
4 changes: 2 additions & 2 deletions src/components/Search/src/Search.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="tsx">
import { Form, FormSchema, FormSetProps } from '@/components/Form'
import { PropType, computed, unref, ref, watch, onMounted } from 'vue'
import { PropType, computed, reactive, unref, ref, watch, onMounted } from 'vue'
import { propTypes } from '@/utils/propTypes'
import { useForm } from '@/hooks/web/useForm'
import { findIndex } from '@/utils'
Expand Down Expand Up @@ -108,7 +108,7 @@ const mergeProps = ref<SearchProps>({})
const getProps = computed(() => {
const propsObj = { ...props }
Object.assign(propsObj, unref(mergeProps))
return propsObj
return reactive(propsObj)
})

const setProps = (props: SearchProps = {}) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Table/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ElTooltipProps,
ElImage
} from 'element-plus'
import { defineComponent, PropType, ref, computed, unref, watch, onMounted } from 'vue'
import { defineComponent, PropType, ref, computed, reactive, unref, watch, onMounted } from 'vue'
import { propTypes } from '@/utils/propTypes'
import { setIndex } from './helper'
import type { TableProps, TableColumn, Pagination, TableSetProps } from './types'
Expand Down Expand Up @@ -205,7 +205,7 @@ export default defineComponent({
const getProps = computed(() => {
const propsObj = { ...props }
Object.assign(propsObj, unref(mergeProps))
return propsObj
return reactive(propsObj)
})

const setProps = (props: TableProps = {}) => {
Expand Down