Skip to content

Commit

Permalink
fix(transfer): [transfer] update smb design (#2249)
Browse files Browse the repository at this point in the history
* fix(cascader): update cascader's x design

* test(cascader): fix e2e

* fix(transfer): update checkbox's classname and adjust button text to center
  • Loading branch information
shenjunjian authored Oct 14, 2024
1 parent b1240c9 commit 47371e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const treeData = ref([
}
])
const treeConfig = ref({
showLine: true,
showCheckbox: true,
nodeKey: 'id',
checkStrictly: true,
Expand Down
1 change: 1 addition & 0 deletions examples/sites/demos/pc/app/transfer/nested-tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default {
}
],
treeConfig: {
showLine: true,
showCheckbox: true,
nodeKey: 'id',
checkStrictly: true,
Expand Down
2 changes: 2 additions & 0 deletions packages/theme/src/transfer/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
i,
span {
font-size: var(--ti-transfer-font-size);
transform: translateY(-3px); // 适配 xdesign, 让span居中
display: inline-block;
}

[class*='tiny-icon'] + span {
Expand Down
11 changes: 6 additions & 5 deletions packages/vue/src/transfer-panel/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@
<span class="tiny-checkbox__inner">
<icon-check
v-if="!(state.checked.length > 0 && state.checked.indexOf(item[state.keyProp]) > -1)"
class="tiny-svg-size"
class="tiny-svg-size icon-no-checked"
style="fill: transparent"
/>
<icon-checked-sur v-else class="tiny-svg-size" />
<icon-checked-sur v-else class="tiny-svg-size icon-checked-sur" />
</span>
<input
type="checkbox"
Expand Down Expand Up @@ -129,7 +130,7 @@ import { renderless, api } from '@opentiny/vue-renderless/transfer-panel/vue'
import Checkbox from '@opentiny/vue-checkbox'
import Input from '@opentiny/vue-input'
import Pager from '@opentiny/vue-pager'
import { iconArrowUp, iconArrowDown, iconCheckedSur, iconCheck, iconSearch } from '@opentiny/vue-icon'
import { iconArrowUp, iconArrowDown, iconYes, iconSearch } from '@opentiny/vue-icon'

export const transferPanelProps = {
columns: Array,
Expand Down Expand Up @@ -172,8 +173,8 @@ export default defineComponent({
TinyPager: Pager,
IconArrowDown: iconArrowDown(),
IconArrowUp: iconArrowUp(),
IconCheckedSur: iconCheckedSur(),
IconCheck: iconCheck(),
IconCheckedSur: iconYes(),
IconCheck: iconYes(),
IconSearch: iconSearch(),
OptionContent: {
props: {
Expand Down

0 comments on commit 47371e5

Please sign in to comment.