【issues/803】JIput updateSchema不生效

pull/824/head^2
zhangdaiscott 2023-10-29 17:03:58 +08:00
parent afecda73a7
commit 7741ad0de2
1 changed files with 7 additions and 2 deletions

View File

@ -3,10 +3,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType, ref, watchEffect, unref, watch } from 'vue'; import { defineComponent, PropType, ref, watchEffect, unref, watch, computed } from 'vue';
import { useAttrs } from '/@/hooks/core/useAttrs'; import { useAttrs } from '/@/hooks/core/useAttrs';
import { propTypes } from '/@/utils/propTypes'; import { propTypes } from '/@/utils/propTypes';
import { JInputTypeEnum } from '/@/enums/jeecgEnum.ts'; import { JInputTypeEnum } from '/@/enums/jeecgEnum.ts';
import { omit } from 'lodash-es';
export default defineComponent({ export default defineComponent({
name: 'JInput', name: 'JInput',
@ -22,8 +23,12 @@
const attrs = useAttrs(); const attrs = useAttrs();
// //
const showText = ref(''); const showText = ref('');
// update-begin--author:liaozhiyang---date:20231026---forissues/803JIput updateSchema
// //
const getBindValue = Object.assign({}, unref(props), unref(attrs)); const getBindValue = computed(() => {
return omit(Object.assign({}, unref(props), unref(attrs)), ['value']);
});
// update-end--author:liaozhiyang---date:20231026---forissues/803JIput updateSchema
// //
watch( watch(
() => props.type, () => props.type,