diff --git a/components/select/select.vue b/components/select/select.vue index dfb4fcba..826b3e1a 100644 --- a/components/select/select.vue +++ b/components/select/select.vue @@ -37,6 +37,13 @@ /> @@ -440,6 +455,11 @@ export default defineComponent({ } }; + const warnDeprecatedSlot = () => + console.warn( + '[FSelect]: addon 插槽即将废弃,请使用 footer 插槽代替', + ); + return { prefixCls, isOpenedRef, @@ -465,6 +485,7 @@ export default defineComponent({ hoverOptionValue, onHover, onKeyDown, + warnDeprecatedSlot, }; }, }); diff --git a/components/select/style/index.less b/components/select/style/index.less index 1961f918..557c7ca1 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -35,8 +35,15 @@ &-addon { .text(); padding: @padding-xs; - border-top: var(--f-border-width-base) var(--f-border-style-base) + + @border-line:var(--f-border-width-base) var(--f-border-style-base) var(--f-border-color-split); + &.@{select-prefix-cls}-option-header { + border-bottom: @border-line; + } + &.@{select-prefix-cls}-option-footer { + border-top: @border-line; + } } &-null { text-align: center; diff --git a/docs/.vitepress/components/select/addon.vue b/docs/.vitepress/components/select/addon.vue index 9745309a..e96fb1f8 100644 --- a/docs/.vitepress/components/select/addon.vue +++ b/docs/.vitepress/components/select/addon.vue @@ -1,44 +1,21 @@