【issues/803】JIput updateSchema不生效
parent
afecda73a7
commit
7741ad0de2
|
@ -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---for:【issues/803】JIput 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---for:【issues/803】JIput updateSchema不生效
|
||||||
//监听类型变化
|
//监听类型变化
|
||||||
watch(
|
watch(
|
||||||
() => props.type,
|
() => props.type,
|
||||||
|
|
Loading…
Reference in New Issue