Skip to content

Commit ad849e9

Browse files
feat(popconfirm): [popconfirm] Adapting to the SMB theme (#2085)
* feat(popconfirm): [popconfirm] Adapting to the SMB theme * feat(popconfirm): [popconfirm] Adapting to the SMB theme * feat(popconfirm): [popconfirm] Adapting to the SMB theme * feat(popconfirm): [popconfirm] Adapting to the SMB theme * Update pc.vue
1 parent 965232b commit ad849e9

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { iconWarningTriangle, iconPromptExclamation } from '@opentiny/vue-icon'
1+
import { iconWarningTriangle, iconHelp } from '@opentiny/vue-icon'
22

33
export default {
44
icons: {
55
warning: iconWarningTriangle(),
6-
info: iconPromptExclamation()
6+
info: iconHelp()
77
}
88
}

packages/theme/src/popconfirm/index.less

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
height: var(--ti-popconfirm-popover-icon-width);
5353
width: var(--ti-popconfirm-popover-icon-width);
5454
margin-right: var(--ti-popconfirm-popover-icon-margin-right);
55+
margin-bottom: var(--ti-popconfirm-popover-icon-margin-bottom);
5556
}
5657

5758
&__title {
@@ -80,18 +81,18 @@
8081
}
8182

8283
&--info {
83-
fill: #5cacff;
84+
fill: #1476FF;
8485
}
8586

8687
&--error {
87-
fill: #eb171f;
88+
fill: #F23030;
8889
}
8990

9091
&--warning {
91-
fill: #fdc000;
92+
fill: #FF8800;
9293
}
9394

9495
&--success {
95-
fill: #00a874;
96+
fill: #5CB300;
9697
}
9798
}

packages/theme/src/popconfirm/smb-theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ export const tinyPopconfirmSmbTheme = {
99
'ti-popconfirm-popover-icon-margin-right': 'var(--ti-common-space-base)',
1010
'ti-popconfirm-popover-margin-bottom': '8px',
1111
'ti-popconfirm-popover-text-color': '#191919',
12-
'ti-popconfirm-popover-line-height': '1.5'
12+
'ti-popconfirm-popover-line-height': '1.5',
13+
'ti-popconfirm-popover-icon-margin-bottom': '2px'
1314
}

packages/theme/src/popconfirm/vars.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
// 提示弹窗容器垂直内边距
2323
--ti-popconfirm-popover-container-padding-vertical: var(--ti-common-space-base, 4px);
2424
// 提示弹窗图标大小
25-
--ti-popconfirm-popover-icon-width: var(--ti-common-size-6x, 24px);
25+
--ti-popconfirm-popover-icon-width: calc(var(--ti-common-size-3x) + 2px);
26+
--ti-popconfirm-popover-icon-margin-bottom: unset;
2627
// 提示弹窗图标上侧外边距
2728
--ti-popconfirm-popover-icon-margin-right: var(--ti-common-space-2x, 8px);
2829
// 提示弹窗底部按钮容器上侧外边距

packages/vue/src/popconfirm/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const $constants = {
2222
ICON_MAP: {
2323
success: 'icon-success',
2424
error: 'icon-error',
25-
info: 'icon-info-solid',
25+
info: 'icon-help',
2626
warning: 'icon-warning'
2727
}
2828
}

packages/vue/src/popconfirm/src/pc.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import { setup, $prefix, defineComponent } from '@opentiny/vue-common'
5555
import { renderless, api } from '@opentiny/vue-renderless/popconfirm/vue'
5656
import Popover from '@opentiny/vue-popover'
5757
import Button from '@opentiny/vue-button'
58-
import { iconError, iconInfoSolid, iconWarning, iconSuccess } from '@opentiny/vue-icon'
58+
import { iconError, iconHelp, iconWarning, iconSuccess } from '@opentiny/vue-icon'
5959
import '@opentiny/vue-theme/popconfirm/index.less'
6060
6161
export default defineComponent({
@@ -64,7 +64,7 @@ export default defineComponent({
6464
TinyPopover: Popover,
6565
TinyButton: Button,
6666
IconSuccess: iconSuccess(),
67-
IconInfoSolid: iconInfoSolid(),
67+
IconHelp: iconHelp(),
6868
IconWarning: iconWarning(),
6969
IconError: iconError()
7070
},

0 commit comments

Comments
 (0)