diff --git a/packages/component/component/radioButton/index.less b/packages/component/component/radioButton/index.less index 12155bd7904aad1981cc77ec41fa309fa17fe3e0..52467cf7a39e652ed7bbe840a07d24e999fd1922 100644 --- a/packages/component/component/radioButton/index.less +++ b/packages/component/component/radioButton/index.less @@ -24,4 +24,8 @@ .layui-radio-group .layui-radio-button:last-child .layui-btn { border-radius: 0px var(--button-border-radius) var(--button-border-radius) 0px; +} + +.layui-radio-group .layui-radio-button:not(:last-child) .layui-btn { + border-right: 0px; } \ No newline at end of file diff --git a/packages/component/component/textarea/index.vue b/packages/component/component/textarea/index.vue index 1ab6d95d09fada0d747953fb5e08cf655c25d881..f842fa66f630fd24ff5a26fd55fbab784a3e57df 100644 --- a/packages/component/component/textarea/index.vue +++ b/packages/component/component/textarea/index.vue @@ -83,7 +83,12 @@ const styles = ref({ const onInput = function (eventParam: Event) { const inputElement = eventParam.target as HTMLInputElement; - if (composing.value) return; + if (composing.value) + return; + if (textareaRef.value) { + textareaRef.value.style.height = "auto"; // 先重置高度 + textareaRef.value.style.height = `${textareaRef.value.scrollHeight}px`; + } emit("update:modelValue", inputElement.value); nextTick(() => emit("input", inputElement.value)); };