mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
refactor: change all round button to rect button
This commit is contained in:
parent
8cd5abe766
commit
c1c228ec75
@ -41,7 +41,6 @@
|
||||
<div class="n-data-table-filter-menu__action">
|
||||
<n-button
|
||||
size="tiny"
|
||||
round
|
||||
:theme="theme"
|
||||
@click="handleCancelClick"
|
||||
>
|
||||
@ -51,7 +50,6 @@
|
||||
:theme="theme"
|
||||
type="primary"
|
||||
size="tiny"
|
||||
round
|
||||
@click="handleConfirmClick"
|
||||
>
|
||||
{{ NDataTable.localeNamespace.confirm }}
|
||||
|
@ -79,7 +79,6 @@
|
||||
v-if="actions.includes('clear')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
@click="clearValue"
|
||||
>
|
||||
{{ localeNamespace.clear }}
|
||||
@ -88,7 +87,6 @@
|
||||
v-if="actions.includes('now')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
@click="setSelectedDateTimeToNow"
|
||||
>
|
||||
{{ localeNamespace.now }}
|
||||
@ -97,7 +95,6 @@
|
||||
v-if="actions.includes('confirm')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
type="primary"
|
||||
:disabled="isDateInvalid"
|
||||
@click="handleConfirmClick"
|
||||
|
@ -155,7 +155,6 @@
|
||||
v-if="actions.includes('clear')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
@click="clearValue"
|
||||
>
|
||||
{{ localeNamespace.clear }}
|
||||
@ -164,7 +163,6 @@
|
||||
v-if="actions.includes('confirm')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
type="primary"
|
||||
:disabled="isRangeInvalid"
|
||||
@click="handleConfirmClick"
|
||||
|
@ -110,7 +110,6 @@
|
||||
v-if="actions.includes('clear')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
@click="clearValue"
|
||||
>
|
||||
{{ localeNamespace.clear }}
|
||||
@ -119,7 +118,6 @@
|
||||
v-if="actions.includes('now')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
@click="setSelectedDateTimeToNow"
|
||||
>
|
||||
{{ localeNamespace.now }}
|
||||
@ -128,7 +126,6 @@
|
||||
v-if="actions.includes('confirm')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
type="primary"
|
||||
:disabled="isDateTimeInvalid"
|
||||
@click="handleConfirmClick"
|
||||
|
@ -235,7 +235,6 @@
|
||||
v-if="actions.includes('clear')"
|
||||
:theme="theme"
|
||||
size="tiny"
|
||||
round
|
||||
@click="clearValue"
|
||||
>
|
||||
{{ localeNamespace.clear }}
|
||||
@ -245,7 +244,6 @@
|
||||
:theme="theme"
|
||||
:disabled="isRangeInvalid"
|
||||
size="tiny"
|
||||
round
|
||||
type="primary"
|
||||
@click="handleConfirmClick"
|
||||
>
|
||||
|
@ -23,13 +23,11 @@
|
||||
<slot name="action">
|
||||
<n-button
|
||||
size="tiny"
|
||||
round
|
||||
@click="handleNegativeClick"
|
||||
>
|
||||
{{ localizedNegativeText }}
|
||||
</n-button>
|
||||
<n-button
|
||||
round
|
||||
size="tiny"
|
||||
type="primary"
|
||||
@click="handlePositiveClick"
|
||||
|
@ -136,7 +136,6 @@
|
||||
<div class="n-time-picker-selector-actions">
|
||||
<n-button
|
||||
size="tiny"
|
||||
round
|
||||
:theme="syntheticTheme"
|
||||
@click="handleNowClick"
|
||||
>
|
||||
@ -144,7 +143,6 @@
|
||||
</n-button>
|
||||
<n-button
|
||||
size="tiny"
|
||||
round
|
||||
type="primary"
|
||||
class="n-time-picker-selector-actions__confirm"
|
||||
:theme="syntheticTheme"
|
||||
|
@ -265,7 +265,7 @@
|
||||
justify-content: flex-end;
|
||||
@include b(button) {
|
||||
margin-bottom: 0;
|
||||
margin-right: 12px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
border-top: 1px solid $--date-picker-divider-color;
|
||||
|
@ -24,7 +24,7 @@
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
@include b(button) {
|
||||
margin-right: 12px;
|
||||
margin-right: 8px;
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user