element-plus改为按需引入
This commit is contained in:
@@ -72,13 +72,13 @@ import { Options, Vue } from 'vue-class-component'
|
||||
import BaseList from '../../model/baselist'
|
||||
import { Page } from '../../model/common.dto'
|
||||
import HitokotoModel from '../../model/api/hitokoto'
|
||||
import { ElButton, ElForm, ElFormItem, ElInput, ElTable, ElTableColumn, ElPagination, ElDialog, ElSelect, ElOption, ElDatePicker, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { VForm } from '../../types'
|
||||
|
||||
let selectedData: string[] = []
|
||||
@Options({
|
||||
name: 'Hitokoto',
|
||||
components: { ElButton, ElForm, ElFormItem, ElInput, ElTable, ElTableColumn, ElPagination, ElDialog, ElSelect, ElOption, ElDatePicker, HitokotoAdd }
|
||||
components: { HitokotoAdd }
|
||||
})
|
||||
export default class Hitokoto extends BaseList<HitokotoPage> {
|
||||
search = new HitokotoPage()
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { Options, Vue } from 'vue-class-component'
|
||||
import { ElForm, ElFormItem, ElInput, ElSelect, ElOption } from 'element-plus'
|
||||
|
||||
@Options({
|
||||
name: 'SystemConfigAdd',
|
||||
components: { ElForm, ElFormItem, ElInput, ElSelect, ElOption },
|
||||
props: {
|
||||
typeList: Array,
|
||||
formData: Object
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
import { Options } from 'vue-class-component'
|
||||
import BaseList from '../../model/baselist'
|
||||
import { MsgResult, Page } from '../../model/common.dto'
|
||||
import { ElButton, ElForm, ElFormItem, ElInput, ElTable, ElTableColumn, ElPagination, ElDialog, ElSelect, ElOption, ElRadioGroup, ElRadio, ElDrawer, ElUpload, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElUpload, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { MusicModel, MusicLibModel, MusicLyricModel, MusicPlayerItem } from '../../model/api/music'
|
||||
import APlayer from './aplayer/vue-aplayer.vue'
|
||||
import prettyBytes from 'pretty-bytes'
|
||||
@@ -160,7 +160,7 @@ import { VForm } from '../../types'
|
||||
let selectedIds: string[] = []
|
||||
@Options({
|
||||
name: 'Music',
|
||||
components: { ElButton, ElForm, ElFormItem, ElInput, ElTable, ElTableColumn, ElPagination, ElDialog, ElSelect, ElOption, ElRadioGroup, ElRadio, ElDrawer, ElUpload, APlayer }
|
||||
components: { ElUpload, APlayer }
|
||||
})
|
||||
export default class Music extends BaseList<MusicPage> {
|
||||
search = new MusicPage()
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { Options } from 'vue-class-component'
|
||||
import { ElButton, ElForm, ElFormItem, ElInput, ElTable, ElTableColumn, ElPagination, ElAlert, ElUpload, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { MsgResult, Page } from '../../model/common.dto'
|
||||
import BaseList from '../../model/baselist'
|
||||
import PhotoWallModel from '../../model/api/photowall'
|
||||
@@ -87,8 +87,7 @@ import { h } from 'vue'
|
||||
|
||||
let selectedData: string[] = []
|
||||
@Options({
|
||||
name: 'PhotoWall',
|
||||
components: { ElButton, ElForm, ElFormItem, ElInput, ElTable, ElTableColumn, ElPagination, ElAlert, ElUpload }
|
||||
name: 'PhotoWall'
|
||||
})
|
||||
export default class PhotoWall extends BaseList<PhotoWallPage> {
|
||||
search = new PhotoWallPage()
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { Options } from 'vue-class-component'
|
||||
import { ElButton, ElTable, ElTableColumn, ElPagination, ElAlert, ElUpload, ElTag, ElTransfer, ElDialog, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import prettyBytes from 'pretty-bytes'
|
||||
import { MsgResult, Page } from '../../model/common.dto'
|
||||
import BaseList from '../../model/baselist'
|
||||
@@ -86,7 +86,6 @@ import { h } from 'vue'
|
||||
let selectedData: string[] = []
|
||||
@Options({
|
||||
name: 'SourceImage',
|
||||
components: { ElButton, ElTable, ElTableColumn, ElPagination, ElAlert, ElUpload, ElTag, ElTransfer, ElDialog }
|
||||
})
|
||||
export default class SourceImage extends BaseList<Page> {
|
||||
prettyBytes = prettyBytes
|
||||
|
||||
Reference in New Issue
Block a user