Commit c82f7fb6 by linjinhong

修改bug

parent 3d2cca41
**Table 属性 (Props)**
| 参数 | 说明 | 类型 | 默认值 |
| :-------------: | :------------: | :-----------: | :----: |
| config | 表格列配置 | TableColumn[] | [] |
| tableEditConfig | 表格编辑配置 | Object | {} |
| modelValue | 表格数据 | Object[] | [] |
| getTablelist | 数据加载方法 | Function | null |
| isShowCheckBox | 是否显示复选框 | Boolean | true |
| 参数 | 说明 | 类型 | 默认值 |
| :-------------: | :----------------------------: | :-----------: | :----: |
| config | 表格列配置 | TableColumn[] | [] |
| tableEditConfig | 表格编辑配置 | Object | {} |
| modelValue | 表格数据 | Object[] | [] |
| getTablelist | 数据加载方法 | Function | null |
| isShowCheckBox | 是否显示复选框 | Boolean | true |
| ... | 其余属性与 vxetable 文档中相同 | ... | ... |
**TableColumn 结构**
......@@ -17,7 +18,7 @@
| attrs | 额外属性 | ColumnAttrs |
| render | 自定义渲染函数 | RenderFunctions(默认使用 default,如要开启单元格编辑 edit 需在 Table 中传入 tableEditConfig.enabled=true) |
_ColumnAttrs_
## ColumnAttrs
```ts
interface ColumnAttrs {
......@@ -48,7 +49,13 @@ const columns = [
{
prop: 'name',
label: '姓名',
attrs: { width: 180, fixed: 'left' },
attrs: {
width: 200,
fixed: 'left',
align: 'center',
sortable: true,
className: 'name-column',
},
},
{
prop: 'status',
......
......@@ -126,6 +126,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
label: '规则名称',
attrs: {
clearable: true,
placeholder: '请输入规则名称',
},
},
......
......@@ -59,6 +59,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
label: '邮编',
attrs: {
clearable: true,
placeholder: '请输入邮编',
},
},
......@@ -67,6 +68,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
type: 'amountInput',
label: '重量',
attrs: {
clearable: true,
placeholder: '请输入重量',
hasUnit: true,
suffix: 'g',
......
......@@ -136,6 +136,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
label: '物流方式',
attrs: {
clearable: true,
placeholder: '请输入物流方式',
},
},
......@@ -144,6 +145,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
type: 'select',
label: '启用状态',
attrs: {
clearable: true,
placeholder: '请选择启用状态',
options: [
{ label: '启用', value: 1 },
......@@ -156,6 +158,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
type: 'input',
label: '物流编码',
attrs: {
clearable: true,
placeholder: '请输入物流编码',
},
},
......@@ -395,7 +398,7 @@ const tableConfig = ref<TableColumn[]>([
},
{
prop: 'status1',
label: '平台状态',
label: '平台物流名称',
attrs: { width: '400px', align: 'center' },
render: {
......
......@@ -102,6 +102,7 @@ const searchConfig = ref<ISeachFormConfig[]>([
type: 'input',
label: '邮编编码',
attrs: {
clearable: true,
placeholder: '请输入邮编编码',
},
},
......
......@@ -79,7 +79,6 @@
@close="cancelFn"
>
<CustomizeForm
v-if="formVisible"
ref="editFormRef"
v-model="editForm"
:config="formConfig"
......@@ -550,8 +549,10 @@ const save = debounce(async () => {
*/
async function addDialog() {
// await getAllList()
dialogVisible.value = true
formVisible.value = true
dialogVisible.value = true
console.log(502, editForm.value)
}
......
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