mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
fix(button): line-height & wave
This commit is contained in:
parent
db888dd571
commit
6b4fa3690b
@ -6,6 +6,7 @@ export { default as NBaseFocusDetector } from './focus-detector'
|
||||
export { default as NBaseLoading } from './loading'
|
||||
export { default as NBaseSelectMenu } from './select-menu'
|
||||
export { default as NBaseWave } from './wave'
|
||||
export type { BaseWaveRef } from './wave'
|
||||
export { default as NBaseMenuMask } from './menu-mask'
|
||||
export { default as NBaseSelection } from './selection'
|
||||
export { default as NBaseSlotMachine } from './slot-machine'
|
||||
|
@ -1 +1,2 @@
|
||||
export { default } from './src/Wave'
|
||||
export type { BaseWaveRef } from './src/Wave'
|
||||
|
@ -2,6 +2,10 @@ import { h, defineComponent, ref, onBeforeUnmount, nextTick } from 'vue'
|
||||
import { useStyle } from '../../../_mixins'
|
||||
import style from './styles/index.cssr'
|
||||
|
||||
export interface BaseWaveRef {
|
||||
play: () => void
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BaseWave',
|
||||
setup () {
|
||||
|
@ -35,6 +35,7 @@ import iconSwitchTransition from '../../../_styles/transitions/icon-switch'
|
||||
// --border-color-xxx, used for custom color
|
||||
export default c([
|
||||
cB('button', `
|
||||
line-height: 1;
|
||||
font-family: inherit;
|
||||
padding: var(--padding);
|
||||
height: var(--height);
|
||||
@ -188,7 +189,7 @@ export default c([
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: block;
|
||||
display: flex;
|
||||
`, [
|
||||
iconSwitchTransition({
|
||||
top: '50%',
|
||||
|
Loading…
Reference in New Issue
Block a user