diff --git a/src/admin/common/Form/Upload/UploadState.ts b/src/admin/common/Form/Upload/UploadState.ts index 59c25d25..7740b075 100644 --- a/src/admin/common/Form/Upload/UploadState.ts +++ b/src/admin/common/Form/Upload/UploadState.ts @@ -51,4 +51,6 @@ export default interface UploadState extends BaseState { maxImgSize: number; // 限制图片最大宽度和高度 2000 0-max enlarge: number; // 图片根据截图框输出比例倍数 1 0-max(建议不要太大不然会卡死的呢) mode: string; // 图片默认渲染方式 contain contain , cover, 100px, 100% auto + + file: any // 接受文件内容 } diff --git a/src/admin/common/Form/Upload/index.vue b/src/admin/common/Form/Upload/index.vue index 464d6e4e..e6c0c3b6 100644 --- a/src/admin/common/Form/Upload/index.vue +++ b/src/admin/common/Form/Upload/index.vue @@ -5,7 +5,11 @@
- + {{ state.value }}
@@ -19,17 +23,25 @@
- +
- + {{ state.value }}
- - - + + + +
+ + + + + + + +
+ {{ item }} +
+ {{ itemBodyItem }} +
+ +
+ +
+ {{ fileUrl }} +
diff --git a/src/admin/common/data/Table/index.vue b/src/admin/common/data/Table/index.vue index 54747d5d..ec3bebb8 100644 --- a/src/admin/common/data/Table/index.vue +++ b/src/admin/common/data/Table/index.vue @@ -81,13 +81,24 @@ export default class extends Mixins(BaseVue) { } handleSelectionChange(val: any, row: any) { + this.assignValuesToSelections(val) this.executeSelectionAction(row, true) } handleAllSelectionChange(val) { + this.assignValuesToSelections(val) this.executeSelectionAction(val, false) } + assignValuesToSelections(val) { + if (this.state.selection) { + if (!this.state.selection.values) { + this.state.selection.values = [] + } + this.state.selection.values = val + } + } + handleRowClick(val) { this.executeSelectionAction(val, true) if (this.state.selection?.exist) { diff --git a/src/admin/index.ts b/src/admin/index.ts index 7ce4636a..b8758d7e 100644 --- a/src/admin/index.ts +++ b/src/admin/index.ts @@ -1,6 +1,5 @@ import Vue from 'vue' - import Button from '@/admin/common/Button/index.vue' import ButtonArray from '@/admin/common/Button/ButtonArray/index.vue' import Link from '@/admin/common/Link/index.vue' @@ -55,7 +54,6 @@ import TablePage from '@/admin/TablePage/index.vue' Vue.component('FormPage', FormPage) Vue.component('FormItem', FormItem) - Vue.component('Button', Button) Vue.component('ButtonArray', ButtonArray) Vue.component('Link', Link) diff --git a/src/admin/main/index.vue b/src/admin/main/index.vue index 7a819545..8e33ae35 100644 --- a/src/admin/main/index.vue +++ b/src/admin/main/index.vue @@ -1,7 +1,7 @@