diff --git a/package/component/src/component/input/index.vue b/package/component/src/component/input/index.vue index 506fb654..553ba6de 100644 --- a/package/component/src/component/input/index.vue +++ b/package/component/src/component/input/index.vue @@ -114,12 +114,12 @@ const onBlur = (event: Event) => { const onCompositionstart = () => { composing.value = true; -} +}; const onCompositionend = (event: Event) => { composing.value = false; - onInput(event) -} + onInput(event); +}; const classes = computed(() => { return { "layui-disabled": props.disabled }; diff --git a/package/component/src/component/transfer/index.vue b/package/component/src/component/transfer/index.vue index d39e7fa4..f781fd74 100644 --- a/package/component/src/component/transfer/index.vue +++ b/package/component/src/component/transfer/index.vue @@ -46,10 +46,12 @@ const allRightChecked = ref(false); const hasLeftChecked = ref(false); const hasRightChecked = ref(false); -const allLeftChange = (checked: any) => { - if (checked) { +const allLeftChange = (isChecked: boolean) => { + if (isChecked) { const ids = leftDataSource.value.map((item: any) => { - return item[props.id]; + if(!item.disabled) { + return item[props.id]; + } }); leftSelectedKeys.value = ids; } else { @@ -80,7 +82,9 @@ watch( const allRightChange = (checked: any) => { if (checked) { const ids = rightDataSource.value.map((item: any) => { - return item[props.id]; + if(!item.disabled) { + return item[props.id]; + } }); rightSelectedKeys.value = ids; } else { @@ -214,6 +218,7 @@ const boxStyle = computed(() => { @@ -263,8 +268,9 @@ const boxStyle = computed(() => {