diff --git a/examples/sites/demos/pc/app/button/loading.vue b/examples/sites/demos/pc/app/button/loading.vue
index f42c39840..7eed01706 100644
--- a/examples/sites/demos/pc/app/button/loading.vue
+++ b/examples/sites/demos/pc/app/button/loading.vue
@@ -1,7 +1,7 @@
- 加载中
加载中
+ 加载中
加载中
加载中
加载中
diff --git a/packages/theme/src/button/index.less b/packages/theme/src/button/index.less
index abe893f41..ba1b558bd 100644
--- a/packages/theme/src/button/index.less
+++ b/packages/theme/src/button/index.less
@@ -249,6 +249,15 @@
var(--ti-button-size-mini-padding)
);
}
+ &&--default.is-plain {
+ border-color: var(--ti-button-plain-border-color);
+ }
+ &&--default.is-disabled.is-plain {
+ border-color: var(--ti-button-plain-disabled-border-color);
+ }
+ &&--default.is-plain:hover {
+ border-color: var(--ti-button-plain-hover-border-color);
+ }
&&--primary {
.button-type(
diff --git a/packages/theme/src/button/smb-theme.js b/packages/theme/src/button/smb-theme.js
index 9aa42335b..2ea88e7cb 100644
--- a/packages/theme/src/button/smb-theme.js
+++ b/packages/theme/src/button/smb-theme.js
@@ -20,9 +20,6 @@ export const tinyButtonSmbTheme = {
'ti-button-size-medium-min-width': 'var(--ti-common-size-28x)',
'ti-button-size-normal-min-width': 'var(--ti-common-size-24x)',
'ti-button-size-small-min-width': 'var(--ti-common-size-18x)',
- 'ti-button-danger-plain-hover-bg-color': 'var(--ti-common-color-bg-minor-hover)',
- 'ti-button-danger-plain-hover-text-color': 'var(--ti-common-color-error-text)',
- 'ti-button-danger-plain-hover-border-color': 'var(--ti-common-color-error-border-secondary)',
'ti-button-danger-plain-disabled-border-color': 'transparent',
'ti-button-normal-hover-border-color': '#C2C2C2',
'ti-button-size-large-font-size': 'var(--ti-common-font-size-base)',
@@ -79,5 +76,122 @@ export const tinyButtonSmbTheme = {
'ti-button-ghost-disabled-text-color': '#c2c2c2',
'ti-button-ghost-disabled-border-color': '#dbdbdb',
'ti-button-ghost-hover-border-color': '#c2c2c2',
- 'ti-button-size-normal-padding': 'var(--ti-common-space-6)'
+ 'ti-button-size-normal-padding': 'var(--ti-common-space-6)',
+
+ 'ti-button-primary-text-color': 'var(--ti-common-color-text-white)',
+ 'ti-button-primary-normal-bg-color': '#191919',
+ 'ti-button-primary-normal-border-color': '#191919',
+ 'ti-button-primary-hover-bg-color': '#595959',
+ 'ti-button-primary-hover-border-color': '#595959',
+ 'ti-button-primary-active-bg-color': '#191919',
+ 'ti-button-primary-disabled-text-color': '#C2C2C2',
+ 'ti-button-primary-plain-text-color': '#191919',
+ 'ti-button-primary-plain-hover-text-color': '#191919',
+ 'ti-button-primary-plain-bg-color': 'var(--ti-common-color-bg-minor)',
+ 'ti-button-primary-plain-border-color': '#595959',
+ 'ti-button-primary-plain-hover-border-color': '#FFFFFF',
+ 'ti-button-primary-plain-hover-bg-color': 'var(--ti-common-color-bg-minor)',
+ 'ti-button-primary-plain-disabled-bg-color': '#F0F0F0',
+ 'ti-button-primary-disabled-border-color': '#F0F0F0',
+ 'ti-button-primary-ghost-text-color': '#191919',
+ 'ti-button-primary-ghost-hover-text-color': '#191919',
+ 'ti-button-primary-ghost-disabled-text-color': '#C2C2C2',
+ 'ti-button-primary-ghost-border-color': '#595959',
+ 'ti-button-primary-ghost-hover-border-color': '#C2C2C2',
+ 'ti-button-primary-ghost-disabled-border-color': '#F0F0F0',
+
+ 'ti-button-plain-border-color': '#C2C2C2',
+ 'ti-button-plain-hover-border-color': '#F5F5F5',
+ 'ti-button-plain-disabled-border-color': '#F0F0F0',
+
+ 'ti-button-success-text-color': 'var(--ti-common-color-text-white)',
+ 'ti-button-success-normal-bg-color': '#5CB300',
+ 'ti-button-success-normal-border-color': '#5CB300',
+ 'ti-button-success-hover-bg-color': '#7DCC29',
+ 'ti-button-success-hover-border-color': '#7DCC29',
+ 'ti-button-success-active-bg-color': '#5CB300',
+ 'ti-button-success-disabled-text-color': '#C2C2C2',
+ 'ti-button-success-disabled-bg-color': '#F0F0F0',
+ 'ti-button-success-plain-text-color': '#5CB300',
+ 'ti-button-success-plain-hover-text-color': '#5CB300',
+ 'ti-button-success-plain-bg-color': '#EDF7DF',
+ 'ti-button-success-plain-hover-bg-color': '#EDF7DF',
+ 'ti-button-success-plain-border-color': '#DAF2BB',
+ 'ti-button-success-plain-hover-border-color': '#EDF7DF',
+ 'ti-button-success-plain-disabled-bg-color': '#F0F0F0',
+ 'ti-button-success-disabled-border-color': '#F0F0F0',
+ 'ti-button-success-ghost-text-color': '#5CB300',
+ 'ti-button-success-ghost-hover-text-color': '#5CB300',
+ 'ti-button-success-ghost-disabled-text-color': '#C2C2C2',
+ 'ti-button-success-ghost-border-color': '#5CB300',
+ 'ti-button-success-ghost-hover-border-color': '#DAF2BB',
+ 'ti-button-success-ghost-disabled-border-color': '#F0F0F0',
+
+ 'ti-button-info-text-color': 'var(--ti-common-color-text-white)',
+ 'ti-button-info-normal-bg-color': '#1476FF',
+ 'ti-button-info-normal-border-color': '#1476FF',
+ 'ti-button-info-hover-bg-color': '#4191FA',
+ 'ti-button-info-hover-border-color': '#4191FA',
+ 'ti-button-info-active-bg-color': '#1476FF',
+ 'ti-button-info-disabled-text-color': '#C2C2C2',
+ 'ti-button-info-disabled-bg-color': '#F0F0F0',
+ 'ti-button-info-plain-text-color': '#1476FF',
+ 'ti-button-info-plain-hover-text-color': '#1476FF',
+ 'ti-button-info-plain-bg-color': '#F0F7FF',
+ 'ti-button-info-plain-border-color': '#DEECFF',
+ 'ti-button-info-plain-hover-bg-color': '#F0F7FF',
+ 'ti-button-info-plain-hover-border-color': '#F0F7FF',
+ 'ti-button-info-plain-disabled-bg-color': '#F0F0F0',
+ 'ti-button-info-ghost-text-color': '#1476FF',
+ 'ti-button-info-ghost-hover-text-color': '#1476FF',
+ 'ti-button-info-ghost-disabled-text-color': '#C2C2C2',
+ 'ti-button-info-ghost-border-color': '#1476FF',
+ 'ti-button-info-ghost-hover-border-color': '#FAFAFA',
+ 'ti-button-info-disabled-border-color': '#F0F0F0',
+ 'ti-button-info-ghost-disabled-border-color': '#F0F0F0',
+
+ 'ti-button-warning-text-color': 'var(--ti-common-color-text-white)',
+ 'ti-button-warning-normal-bg-color': '#FF8800',
+ 'ti-button-warning-normal-border-color': '#FF8800',
+ 'ti-button-warning-hover-bg-color': '#FF9A2E',
+ 'ti-button-warning-hover-border-color': '#FF9A2E',
+ 'ti-button-warning-active-bg-color': '#FF8800',
+ 'ti-button-warning-disabled-text-color': '#C2C2C2',
+ 'ti-button-warning-disabled-bg-color': '#F0F0F0',
+ 'ti-button-warning-plain-text-color': '#FF8800',
+ 'ti-button-warning-plain-hover-text-color': '#FF8800',
+ 'ti-button-warning-plain-bg-color': '#FFF4E8',
+ 'ti-button-warning-plain-hover-bg-color': '#FFF4E8',
+ 'ti-button-warning-plain-border-color': '#FFEBD1',
+ 'ti-button-warning-plain-hover-border-color': '#FFF4E8',
+ 'ti-button-warning-plain-disabled-bg-color': '#F0F0F0',
+ 'ti-button-warning-disabled-border-color': '#F0F0F0',
+ 'ti-button-warning-ghost-text-color': '#FF8800',
+ 'ti-button-warning-ghost-hover-text-color': '#FF8800',
+ 'ti-button-warning-ghost-disabled-text-color': '#C2C2C2',
+ 'ti-button-warning-ghost-border-color': '#FF8800',
+ 'ti-button-warning-ghost-hover-border-color': '#FFEBD1',
+ 'ti-button-warning-ghost-disabled-border-color': '#F0F0F0',
+
+ 'ti-button-danger-text-color': 'var(--ti-common-color-text-white)',
+ 'ti-button-danger-normal-bg-color': '#F23030',
+ 'ti-button-danger-normal-border-color': '#F23030',
+ 'ti-button-danger-hover-bg-color': '#F76360',
+ 'ti-button-danger-hover-border-color': '#F76360',
+ 'ti-button-danger-active-bg-color': '#F23030',
+ 'ti-button-danger-disabled-text-color': '#C2C2C2',
+ 'ti-button-danger-disabled-bg-color': '#F0F0F0',
+ 'ti-button-danger-plain-text-color': '#F23030',
+ 'ti-button-danger-plain-hover-text-color': '#F23030',
+ 'ti-button-danger-plain-hover-bg-color': '#FFF1F0',
+ 'ti-button-danger-plain-border-color': '#FCE2E0',
+ 'ti-button-danger-plain-hover-border-color': '#FFF1F0',
+ 'ti-button-danger-plain-disabled-bg-color': '#F0F0F0',
+ 'ti-button-danger-disabled-border-color': '#F0F0F0',
+ 'ti-button-danger-ghost-text-color': '#F23030',
+ 'ti-button-danger-ghost-hover-text-color': '#F23030',
+ 'ti-button-danger-ghost-disabled-text-color': '#C2C2C2',
+ 'ti-button-danger-ghost-border-color': '#F23030',
+ 'ti-button-danger-ghost-hover-border-color': '#FCE2E0',
+ 'ti-button-danger-ghost-disabled-border-color': '#F0F0F0'
}
diff --git a/packages/theme/src/button/vars.less b/packages/theme/src/button/vars.less
index ac9dccf65..411e87e41 100644
--- a/packages/theme/src/button/vars.less
+++ b/packages/theme/src/button/vars.less
@@ -100,6 +100,10 @@
--ti-button-normal-disabled-border-color: var(--ti-common-color-line-disabled, #dfe1e6);
// 禁用类默认按钮背景色
--ti-button-normal-disabled-bg-color: var(--ti-common-color-bg-disabled, #f5f5f6);
+ // 默认 朴素 边框色
+ --ti-button-plain-border-color: var(--ti-common-color-border, #adb0b8);
+ // 默认 朴素 禁用边框色
+ --ti-button-plain-disabled-border-color: var(--ti-common-color-line-disabled, #dfe1e6);
// 文字按钮文本色
--ti-button-text-color: var(--ti-common-color-primary-normal, #5e7ce0);
@@ -440,9 +444,9 @@
--ti-button-text-size-mini-svg-height: 1em;
// 纯图标按钮最小宽度
- --ti-button-icon-font-size: var(--ti-common-font-size-1);
+ --ti-button-icon-font-size: var(--ti-common-font-size-0, 12px);
// 纯图标/文字按钮宽度
- --ti-button-only-icon-width: var(--ti-common-size-7x);
+ --ti-button-only-icon-width: var(ti-common-size-width-minor, 30px);
--ti-button-only-icon-min-width: unset;
--ti-button-only-icon-text-width: unset;
// 纯图标按钮水平内边距