Browse Source

📦 feature(drawer-wrapper): 表单新增scroll

晓晓晓晓丶vv 4 năm trước cách đây
mục cha
commit
9f3109b905

+ 2 - 0
src/components/drawer-wrapper/index.vue

@@ -9,6 +9,7 @@
              :columns="columns"
              :columns="columns"
              :data-source="source"
              :data-source="source"
              :pagination="tablePageOptions"
              :pagination="tablePageOptions"
+             :scroll="scroll"
              @change="onPageChange">
              @change="onPageChange">
       <template #operator="{ record }">
       <template #operator="{ record }">
         <slot :data="record"></slot>
         <slot :data="record"></slot>
@@ -53,6 +54,7 @@ const DrawerWrapper = defineComponent({
       type: Object as PropType<Partial<IMeta>>,
       type: Object as PropType<Partial<IMeta>>,
       default: {},
       default: {},
     },
     },
+    scroll: Object,
   },
   },
   emits: ["update:show", "pageChange"],
   emits: ["update:show", "pageChange"],
   setup(props, { emit }) {
   setup(props, { emit }) {