<template>
  <div>
    <div class="q-pa-sm">
      <q-btn dense @click="showonly=!showonly" label="只读" :outline="!showonly" color="primary" />
      <q-btn
        class="on-right"
        dense
        @click="canDel=!canDel"
        label="可删除"
        :outline="!canDel"
        color="primary"
      />
    </div>
    <q-separator />单选（直连表）：
    <kyb-list-show
      entity="/common/Page"
      :can-del="false"
      v-model="selectPage"
      :showonly="showonly"
    />多选（直连表）：
    <kyb-list-show
      entity="/common/Page"
      :can-del="false"
      v-model="selectPages"
      selectType="more"
      :showonly="showonly"
    />关联表选择：
    <!-- <kyb-list-show
      entity="/common/Page"
      link-more-entity="/common/LinkPageResource"
      other-entity="/common/Resource"
      link-more-my-id="163c26cb-fd80-3a78-8013-6ca2b79091dc"
      :showonly="showonly"
      :canDel="canDel"
      v-model="selectResource"
    />-->
  </div>
</template>
<script>
export default {
  props: {},
  data() {
    return {
      showonly: false,
      canDel: false,
      selectPage: ['0b77b80d-7056-0b96-081e-033203bef48d'],
      selectPages: ['0b77b80d-7056-0b96-081e-033203bef48d'],
      selectResource: undefined
    }
  }
}
</script>
