no message
Former-commit-id: fa02b476a5cc01e0e21a3611345188ae533d5f6e [formerly 328213cafed8350628647033b857a75065c95536] [formerly fa02b476a5cc01e0e21a3611345188ae533d5f6e [formerly 328213cafed8350628647033b857a75065c95536] [formerly fa02b476a5cc01e0e21a3611345188ae533d5f6e [formerly 328213cafed8350628647033b857a75065c95536] [formerly 328213cafed8350628647033b857a75065c95536 [formerly 4b8e232a92043e08834fa83c3360af5c685e12c0 [formerly 30f6f01f92691e0bc24bd5ef4adee76ff35de4a2]]]]] Former-commit-id: d83801002c127df474087fdee19efbb093780945 Former-commit-id: 316482718c9b973196deac2dfd54c6701de7a1e2 Former-commit-id: f282101ca7b4096a95d5e2ae9e068ae112f77846 [formerly f4bd4592f01b18a2b7b47f068770529b4fecbcb7] Former-commit-id: 821f1203e81d71e697f0aa1a52bc11d30480f141 Former-commit-id: 90b5716839458871d9e3fbb57a918e845e041806 Former-commit-id: 19a4383bf1bfc77a1dac1ad237132c4aff643937 Former-commit-id: d2d5dacab8f5c753cad9850d9ca31e379d073ada Former-commit-id: 7d8f4d81e84f71e5a484159dc287472fed6535b4
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container-component" :class="{responsive}">
|
<div class="container-component" :class="{responsive}" ref="container">
|
||||||
<!-- [card] 卡片容器 -->
|
<!-- [card] 卡片容器 -->
|
||||||
<el-card v-if="type === 'card'" shadow="never" class="d2-container-card d2-mr d2-mb">
|
<el-card v-if="type === 'card'" shadow="never" class="d2-container-card d2-mr d2-mb">
|
||||||
<slot v-if="$slots.header" name="header" slot="header"/>
|
<slot v-if="$slots.header" name="header" slot="header"/>
|
||||||
@@ -26,6 +26,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// 插件
|
||||||
|
import BScroll from 'better-scroll'
|
||||||
|
// 组件
|
||||||
import d2ContainerFull from './components/d2-container-full.vue'
|
import d2ContainerFull from './components/d2-container-full.vue'
|
||||||
import d2ContainerFullBs from './components/d2-container-full-bs.vue'
|
import d2ContainerFullBs from './components/d2-container-full-bs.vue'
|
||||||
export default {
|
export default {
|
||||||
@@ -53,6 +56,20 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
'd2-container-full': d2ContainerFull,
|
'd2-container-full': d2ContainerFull,
|
||||||
'd2-container-full-bs': d2ContainerFullBs
|
'd2-container-full-bs': d2ContainerFullBs
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
BS: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.BS = new BScroll(this.$refs.container, {
|
||||||
|
mouseWheel: true,
|
||||||
|
scrollbar: {
|
||||||
|
fade: true,
|
||||||
|
interactive: false
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -65,7 +82,7 @@ export default {
|
|||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
// 根据你的需要在这里添加样式
|
// 根据你的需要在这里添加样式
|
||||||
|
|||||||
Reference in New Issue
Block a user