fix(components): [el-select] tag default theme (#5983)

- Fix the default theme for select tag
- Fix the input padding for inputable select
This commit is contained in:
jeremywu 2022-02-11 19:55:34 +08:00 committed by GitHub
parent 0b0ad578bd
commit 1429a4e669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -329,7 +329,8 @@ export default defineComponent({
type: [String, Object] as PropType<string | Component>,
default: ArrowUp,
},
tagType: tagProps.type,
// eslint-disable-next-line vue/require-prop-types
tagType: { ...tagProps.type, default: 'info' },
},
emits: [
UPDATE_MODEL_EVENT,

View File

@ -50,7 +50,7 @@ export function useSelectStates(props) {
menuVisibleOnFocus: false,
isOnComposition: false,
isSilentBlur: false,
prefixWidth: 0,
prefixWidth: 11,
tagInMultiLine: false,
})
}

View File

@ -148,7 +148,7 @@
.#{$namespace}-tag {
box-sizing: border-box;
border-color: transparent;
margin: 2px 0 2px 6px;
margin: 2px 6px 2px 0;
.#{$namespace}-icon-close {
background-color: var(--el-text-color-placeholder);