Skip to content

Commit

Permalink
style: 调整对话框默认可拖拽,表格默认可调整列宽
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed May 30, 2024
1 parent 4372103 commit 5581d3f
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/GiTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</a-row>
<div class="gi-table__body" :class="`gi-table__body-pagination-${attrs['page-position']}`">
<div class="gi-table__container">
<a-table ref="tableRef" :stripe="stripe" :size="size" :bordered="{ cell: isBordered }"
<a-table ref="tableRef" :stripe="stripe" :size="size" column-resizable :bordered="{ cell: isBordered }"
v-bind="{ ...attrs, columns: _columns }" :scrollbar="false" :pagination="false">
<template v-for="key in Object.keys(slots)" :key="key" #[key]="scoped">
<slot :key="key" :name="key" v-bind="scoped"></slot>
Expand Down
1 change: 1 addition & 0 deletions src/views/setting/components/VerifyModel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:mask-closable="false"
:esc-to-close="false"
:width="width >= 500 ? 500 : '100%'"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
2 changes: 1 addition & 1 deletion src/views/setting/profile/BasicInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div class="footer">注册于 {{ userInfo.registrationDate }}</div>
</a-card>

<a-modal v-model:visible="visible" title="上传头像" :width="width >= 400 ? 400 : '100%'" :footer="false" @close="reset">
<a-modal v-model:visible="visible" title="上传头像" :width="width >= 400 ? 400 : '100%'" :footer="false" draggable @close="reset">
<a-row>
<a-col :span="14" style="width: 200px; height: 200px">
<VueCropper
Expand Down
1 change: 1 addition & 0 deletions src/views/setting/profile/BasicInfoUpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:mask-closable="false"
:esc-to-close="false"
:width="width >= 500 ? 500 : '100%'"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/system/dept/DeptAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:esc-to-close="false"
:modal-style="{ maxWidth: '520px' }"
width="90%"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/system/dict/DictItemAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:esc-to-close="false"
:modal-style="{ maxWidth: '520px' }"
width="90%"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/system/dict/tree/DictAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:esc-to-close="false"
:modal-style="{ maxWidth: '520px' }"
width="90%"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/system/file/main/FileMain/FileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:pagination="false"
:row-selection="isBatchMode ? rowSelection : undefined"
:selected-keys="selectedFileIds"
column-resizable
@select="select"
@row-click="handleRowClick"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/system/menu/MenuAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:modal-style="{ maxWidth: '625px' }"
:body-style="{ maxHeight: '70vh' }"
width="90%"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/system/notice/NoticeAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:mask-closable="false"
:esc-to-close="false"
:width="width >= 600 ? '80%' : '100%'"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/notice/NoticeDetailModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<a-modal v-model:visible="visible" :width="width >= 600 ? '70%' : '100%'" :footer="false" @close="reset">
<a-modal v-model:visible="visible" :width="width >= 600 ? '70%' : '100%'" :footer="false" draggable @close="reset">
<a-typography :style="{ marginTop: '-40px', textAlign: 'center' }">
<a-typography-title>
{{ dataDetail?.title }}
Expand Down
1 change: 1 addition & 0 deletions src/views/system/user/UserResetPwdModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:esc-to-close="false"
:modal-style="{ maxWidth: '520px' }"
width="90%"
draggable
@before-ok="save"
@close="reset"
>
Expand Down
1 change: 1 addition & 0 deletions src/views/tool/generator/GenPreviewModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:mask-closable="false"
:esc-to-close="false"
width="100%"
draggable
:footer="false"
>
<div class="preview-content">
Expand Down

0 comments on commit 5581d3f

Please sign in to comment.