Commit 2a825f89 by linjinhong

fix:修复打包错误

parent dcb5cae7
......@@ -51,12 +51,17 @@ export default defineComponent({
type: Boolean,
default: true,
},
otherAttrs: {
type: Object,
default: () => ({}),
},
},
emits: ['update:modelValue', 'checkbox-change', 'getCheckboxRecords'],
setup(props, { emit, attrs }) {
const tableRef = ref<VxeTableInstance | null>(null)
const tableData = ref<Record<string, unknown>[]>([])
const tableColumns = ref<TableColumn[]>([])
const editConfig = computed(() => {
return {
trigger: 'dblclick',
......@@ -139,10 +144,21 @@ export default defineComponent({
{...this.attrs}
>
{this.isShowCheckBox && (
<vxe-column type="checkbox" width="50" align="center"></vxe-column>
<vxe-column
type="checkbox"
width="50"
align="center"
{...this.otherAttrs}
></vxe-column>
)}
<vxe-column align="center" type="seq" width="50" title="序号" />
<vxe-column
align="center"
type="seq"
width="50"
title="序号"
{...this.otherAttrs}
/>
{this.tableColumns.map((item: TableColumn, index: number) => (
<vxe-column
key={index}
......
......@@ -85,8 +85,8 @@ export interface ProductList {
templatePrice?: number
variantImage?: string
craftPrice?: number
craftCode: string
platform: string
craftCode?: string
platform?: string
imageAry?: string
designImages?: string
categoryId?: number
......
......@@ -43,6 +43,9 @@
align="center"
border="full"
@getCheckboxRecords="handleCheckboxRecords"
:otherAttrs="{
fixed: 'left',
}"
></CustomizeTable>
</div>
</div>
......@@ -232,6 +235,7 @@ async function getList(data?: {
{
prop: 'zoneName',
label: '分区',
attrs: { 'min-width': '100px', fixed: 'left' },
},
]
const newConfig = []
......@@ -243,6 +247,7 @@ async function getList(data?: {
label: key,
attrs: {
'edit-render': {},
'min-width': '300px',
},
render: {
edit: ({
......
......@@ -1159,7 +1159,7 @@
>
<template
#top_right
v-if="['ZPZY', 'CXZY', 'THZY'].includes(cardItem.craftCode)"
v-if="['ZPZY', 'CXZY', 'THZY'].includes(cardItem.craftCode as string)"
>
<img
:src="`/images/pic/${cardItem.craftCode}.png`"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment