全局dialog变宽变高
This commit is contained in:
1
src/components/WangEidtor/readme.md
Normal file
1
src/components/WangEidtor/readme.md
Normal file
@ -0,0 +1 @@
|
||||
如果引用时在 modal 中 , 渲染报错需要再 modal 组件中添加 forceRender destroyOnClose 属性
|
@ -5,6 +5,7 @@ import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, EditOutlined }
|
||||
import { getCategoryList, getAllCategories, addCategory, updateCategory, deleteCategory,getCategoryDetail } from '@/servers/api/friendLink';
|
||||
import { useFriendLinkDict } from '@/dicts/friendLinkDict';
|
||||
import styles from './friendLinkManage.less';
|
||||
import uiconfig from '@/uiconfig';
|
||||
|
||||
const { Option } = Select;
|
||||
const { TextArea } = Input;
|
||||
@ -241,6 +242,7 @@ const FriendLinkCategory: React.FC = () => {
|
||||
: intl.formatMessage({ id: 'friendLink.category.form.title.add' })
|
||||
}
|
||||
open={modalVisible}
|
||||
width={uiconfig.Modal.width}
|
||||
onOk={handleModalSubmit}
|
||||
onCancel={() => setModalVisible(false)}
|
||||
destroyOnClose
|
||||
|
@ -19,6 +19,7 @@ import {
|
||||
} from '@/servers/api/friendLink';
|
||||
import { LinkStatusMap } from '@/dicts/friendLinkDict';
|
||||
import FileUpload from '@/components/FileUpload';
|
||||
import uiconfig from '@/uiconfig';
|
||||
import styles from './friendLinkManage.less';
|
||||
// 搜索参数类型
|
||||
interface SearchParams {
|
||||
@ -469,6 +470,7 @@ const FriendLinkManage: React.FC = () => {
|
||||
}
|
||||
open={modalVisible}
|
||||
onOk={handleModalSubmit}
|
||||
width={uiconfig.Modal.width}
|
||||
onCancel={() => setModalVisible(false)}
|
||||
destroyOnClose
|
||||
>
|
||||
|
@ -7,6 +7,7 @@ import {
|
||||
ExclamationCircleOutlined,
|
||||
SearchOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import uiconfig from '@/uiconfig';
|
||||
import styles from './helpManage.less';
|
||||
// 引入API
|
||||
import {
|
||||
@ -525,7 +526,7 @@ const HelpManage: React.FC = () => {
|
||||
open={modalVisible}
|
||||
onCancel={handleModalCancel}
|
||||
footer={null}
|
||||
width={800}
|
||||
width={uiconfig.Modal.width}
|
||||
destroyOnClose
|
||||
maskClosable={false}
|
||||
>
|
||||
|
@ -17,6 +17,7 @@ import {
|
||||
TopStatusColor
|
||||
} from '@/dicts/userQuestionDict';
|
||||
import type { DictItem } from '@/servers/api/dicts';
|
||||
import uiconfig from '@/uiconfig';
|
||||
|
||||
const { TextArea } = Input;
|
||||
|
||||
@ -362,7 +363,7 @@ const QuestionModal: React.FC<QuestionModalProps> = ({
|
||||
title={getModalTitle()}
|
||||
open={open}
|
||||
onCancel={onCancel}
|
||||
width={800}
|
||||
width={uiconfig.Modal.width}
|
||||
footer={renderFooter()}
|
||||
maskClosable={false}
|
||||
destroyOnClose
|
||||
|
Reference in New Issue
Block a user