diff --git a/package/component/src/component/select/index.vue b/package/component/src/component/select/index.vue index bd8f9719..d0e5c503 100644 --- a/package/component/src/component/select/index.vue +++ b/package/component/src/component/select/index.vue @@ -31,7 +31,7 @@ export interface LaySelectProps { keyword: string; }[]; size?: "lg" | "md" | "sm" | "xs"; - allowClear: boolean; + allowClear?: boolean; } const selectRef = shallowRef(undefined); diff --git a/package/component/src/component/textarea/index.less b/package/component/src/component/textarea/index.less index 111fe9f3..0ddb864e 100644 --- a/package/component/src/component/textarea/index.less +++ b/package/component/src/component/textarea/index.less @@ -42,9 +42,10 @@ .layui-textarea::-webkit-input-placeholder { line-height: 1.3; } -.layui-texterea-show-count { +.layui-texterea-count { text-align: right; color: inherit; white-space: nowrap; pointer-events: none; + margin-top: 4px; } \ No newline at end of file diff --git a/package/component/src/component/textarea/index.vue b/package/component/src/component/textarea/index.vue index aa270fac..4a6bae90 100644 --- a/package/component/src/component/textarea/index.vue +++ b/package/component/src/component/textarea/index.vue @@ -84,7 +84,7 @@ const wordCount = computed(() => { -
+
{{ wordCount }}