<template>
  <CusDialog
      title="内容滚动方式"
      :show="show"
      @close="$emit('update:show', false)"
      @submit="$emit('update:show', false)"
      :full="full"
  >
    <template #head>
      <CusFormColumn
          :span="24"
          link="switch"
          label="包含底部"
          v-model:param="full"
      />
    </template>
    <div>
      <template v-for="i in 100">
        full控制滚动是否包含底部<br/>
      </template>
    </div>
  </CusDialog>
</template>

<script lang="ts">
import {
  defineComponent,
  computed,
  onMounted,
  ref,
  reactive,
  watch,
  getCurrentInstance,
  ComponentInternalInstance,
  toRefs,
  nextTick
} from 'vue'
import {useStore} from 'vuex'
import {useRouter, useRoute} from 'vue-router'

export default defineComponent({
  name: '',
  components: {},
  props: {
    show: {}
  },
  setup(props, {emit}) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
    const state = reactive({
      full: false
    })
    return {
      ...toRefs(state)
    }
  },
})
</script>

<style scoped lang="scss">
</style>
