mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(base-selection): tag text overflow ellipsis not wokring
This commit is contained in:
parent
8772979fb1
commit
4622125db2
@ -102,10 +102,14 @@ export default c([
|
||||
margin-bottom: 3px;
|
||||
font-size: 14px;
|
||||
max-width: 100%;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
`
|
||||
}, [
|
||||
cE('content', {
|
||||
raw: `
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;`
|
||||
})
|
||||
])
|
||||
]),
|
||||
cB('base-selection-label', {
|
||||
raw: `
|
||||
|
@ -14,7 +14,7 @@
|
||||
:style="mergedStyle"
|
||||
@click="handleClick"
|
||||
>
|
||||
<slot />
|
||||
<span class="n-tag__content"><slot /></span>
|
||||
<n-icon
|
||||
v-if="!checkable && closable"
|
||||
class="n-tag__close"
|
||||
|
@ -40,6 +40,9 @@ export default c([
|
||||
opacity .3s ${cubicBezierEaseInOut}
|
||||
`
|
||||
}, [
|
||||
cE('content', {
|
||||
display: 'inline-block'
|
||||
}),
|
||||
cE('close', {
|
||||
margin: closeMargin,
|
||||
cursor: 'pointer'
|
||||
|
Loading…
Reference in New Issue
Block a user