dev
lijingjia 4 weeks ago
parent 8e31a85390
commit a05c04f23c

@ -66,8 +66,13 @@
}, },
// //
code: { code: {
type: String, type: [String, Number],
default: null default: null
},
// (vxehandsontable)
type: {
type: String,
defalult: 'excel'
} }
}) })
const emits = defineEmits(['updateCol']) const emits = defineEmits(['updateCol'])

@ -14,10 +14,13 @@
<span class="iconfont icon-refresh-1-copy"></span> <span class="iconfont icon-refresh-1-copy"></span>
刷新 刷新
</a-button> </a-button>
<a-button type="link" @click="initColSet"> <!-- 列设置 -->
<span class="iconfont icon-shuliebiao"></span> <HColSet
列设置 :ref="`dsTb${getBindValues.id}`"
</a-button> :code="getBindValues.id"
:columns="getBindValues.columns"
type="normal"
/>
</div> </div>
</div> </div>
<div class="table-wrapper" > <div class="table-wrapper" >
@ -88,7 +91,6 @@
<slot name="right" class="right" ></slot> <slot name="right" class="right" ></slot>
</div> </div>
<Pagination v-if="getBindValues.tableComponent === 'vxe'" v-bind="getBindValues.pagination" @change="pageChange" /> <Pagination v-if="getBindValues.tableComponent === 'vxe'" v-bind="getBindValues.pagination" @change="pageChange" />
<DsTableSet />
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -98,7 +100,7 @@ import { Table, Pagination } from 'ant-design-vue'
import { BasicForm, useForm } from '/@/components/Form/index' import { BasicForm, useForm } from '/@/components/Form/index'
import { PageWrapperFixedHeightKey } from '/@/components/Page' import { PageWrapperFixedHeightKey } from '/@/components/Page'
import HeaderCell from './components/HeaderCell.vue' import HeaderCell from './components/HeaderCell.vue'
import DsTableSet from './components/settings/DsTableSet.vue' import HColSet from '/@/components/HColSet/index.vue'
import { InnerHandlers } from './types/table' import { InnerHandlers } from './types/table'
import { usePagination } from './hooks/usePagination' import { usePagination } from './hooks/usePagination'
@ -129,7 +131,7 @@ export default defineComponent({
BasicForm, BasicForm,
HeaderCell, HeaderCell,
Pagination, Pagination,
DsTableSet HColSet
}, },
props: basicProps, props: basicProps,
emits: [ emits: [

Loading…
Cancel
Save