Commit 16117a9ef917bd5a6488645fa0d60faba38c60dd
1 parent
8882d4e7
chore: remove /deep/
Showing
4 changed files
with
12 additions
and
14 deletions
src/views/demo/comp/scroll/VirtualScroll.vue
src/views/demo/page/account/center/Application.vue
src/views/demo/page/account/center/Project.vue
src/views/demo/page/account/setting/index.vue
1 | 1 | <template> |
2 | 2 | <ScrollContainer> |
3 | - <div ref="wrapperRef" class="m-4 account"> | |
3 | + <div ref="wrapperRef" :class="prefixCls"> | |
4 | 4 | <Tabs tab-position="left" :tabBarStyle="tabBarStyle"> |
5 | 5 | <template v-for="item in settingList" :key="item.key"> |
6 | 6 | <TabPane :tab="item.name"> |
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | }, |
37 | 37 | setup() { |
38 | 38 | return { |
39 | + prefixCls: 'account-setting', | |
39 | 40 | settingList, |
40 | 41 | tabBarStyle: { |
41 | 42 | width: '220px', |
... | ... | @@ -44,19 +45,16 @@ |
44 | 45 | }, |
45 | 46 | }); |
46 | 47 | </script> |
47 | -<style lang="less" scoped> | |
48 | - .account { | |
48 | +<style lang="less"> | |
49 | + .account-setting { | |
50 | + margin: 12px; | |
49 | 51 | background: #fff; |
50 | 52 | |
51 | - /deep/ .base-title { | |
53 | + .base-title { | |
52 | 54 | padding-left: 0; |
53 | 55 | } |
54 | 56 | |
55 | - /deep/ .ant-tabs { | |
56 | - padding: 16px 0; | |
57 | - } | |
58 | - | |
59 | - /deep/ .ant-tabs-tab-active { | |
57 | + .ant-tabs-tab-active { | |
60 | 58 | background-color: #e6f7ff; |
61 | 59 | } |
62 | 60 | } | ... | ... |