Commit 69e4caa0 by zhaochengxiang

搜索框宽度调整

parent ffe61fe4
...@@ -8,6 +8,8 @@ import { set_sess_state } from "../model/reducer"; ...@@ -8,6 +8,8 @@ import { set_sess_state } from "../model/reducer";
//元曜公网环境 isSzseEnv false //元曜公网环境 isSzseEnv false
export const isSzseEnv = false; export const isSzseEnv = false;
export const inputWidth = isSzseEnv?360:240;
export const ContextPath = '/data-govern'; export const ContextPath = '/data-govern';
const routeMap = {}; const routeMap = {};
......
...@@ -15,7 +15,7 @@ import AssetEdit from './AssetEdit'; ...@@ -15,7 +15,7 @@ import AssetEdit from './AssetEdit';
import AssetDetail from "./AssetDetail"; import AssetDetail from "./AssetDetail";
import AssetItem from './AssetItem'; import AssetItem from './AssetItem';
import { dispatch, dispatchLatestHomepage } from '../../../../model'; import { dispatch, dispatchLatestHomepage } from '../../../../model';
import { showMessage, showNotifaction, getQueryParam } from '../../../../util'; import { showMessage, showNotifaction, getQueryParam, inputWidth } from '../../../../util';
import { AnchorId, AnchorTimestamp } from '../../../../util/constant'; import { AnchorId, AnchorTimestamp } from '../../../../util/constant';
import "./AssetTable.less"; import "./AssetTable.less";
...@@ -381,7 +381,7 @@ const AssetTable = (props) => { ...@@ -381,7 +381,7 @@ const AssetTable = (props) => {
allowClear allowClear
value={keyword} value={keyword}
onChange={onSearchInputChange} onChange={onSearchInputChange}
style={{ width: 240, marginLeft: 'auto' }} style={{ width: inputWidth, marginLeft: 'auto' }}
/> />
</Space> </Space>
</div> </div>
......
...@@ -6,7 +6,7 @@ import { HTML5Backend } from 'react-dnd-html5-backend'; ...@@ -6,7 +6,7 @@ import { HTML5Backend } from 'react-dnd-html5-backend';
import update from 'immutability-helper'; import update from 'immutability-helper';
import { addEventListenerForSidebar, removeEventListenerForSidebar } from './Help'; import { addEventListenerForSidebar, removeEventListenerForSidebar } from './Help';
import { showMessage, highlightSearchContentByTerms } from '../../../../util'; import { showMessage, highlightSearchContentByTerms, inputWidth } from '../../../../util';
const { Option } = Select; const { Option } = Select;
...@@ -651,7 +651,7 @@ const ImportActionIndex = (props) => { ...@@ -651,7 +651,7 @@ const ImportActionIndex = (props) => {
allowClear allowClear
value={keyword} value={keyword}
onChange={onSearchInputChange} onChange={onSearchInputChange}
style={{ width: 230 }} style={{ width: inputWidth }}
/> />
</div> </div>
</div> </div>
......
...@@ -5,7 +5,7 @@ import { DndProvider, useDrag, useDrop } from 'react-dnd'; ...@@ -5,7 +5,7 @@ import { DndProvider, useDrag, useDrop } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend'; import { HTML5Backend } from 'react-dnd-html5-backend';
import update from 'immutability-helper'; import update from 'immutability-helper';
import { generateUUID, highlightSearchContentByTerms, showMessage } from '../../../../util'; import { generateUUID, highlightSearchContentByTerms, showMessage, inputWidth } from '../../../../util';
import { dispatch, dispatchLatest } from '../../../../model'; import { dispatch, dispatchLatest } from '../../../../model';
import { addEventListenerForSidebar, removeEventListenerForSidebar } from './Help'; import { addEventListenerForSidebar, removeEventListenerForSidebar } from './Help';
import { AppContext } from '../../../../App'; import { AppContext } from '../../../../App';
...@@ -949,7 +949,7 @@ const ImportActionTable = (props) => { ...@@ -949,7 +949,7 @@ const ImportActionTable = (props) => {
allowClear allowClear
value={keyword} value={keyword}
onChange={onSearchInputChange} onChange={onSearchInputChange}
style={{ width: 230 }} style={{ width: inputWidth }}
/> />
</div> </div>
</div> </div>
......
...@@ -13,7 +13,7 @@ import ExportOtherModal from './Component/ExportOtherModal'; ...@@ -13,7 +13,7 @@ import ExportOtherModal from './Component/ExportOtherModal';
import RecatalogModal from './Component/RecatalogModal'; import RecatalogModal from './Component/RecatalogModal';
import HistoryAndVersionDrawer from './Component/HistoryAndVersionDrawer'; import HistoryAndVersionDrawer from './Component/HistoryAndVersionDrawer';
import StartFlowModal from './Component/StartFlowModal'; import StartFlowModal from './Component/StartFlowModal';
import { showMessage, showNotifaction, isSzseEnv } from '../../../util'; import { showMessage, showNotifaction, inputWidth } from '../../../util';
import { dispatch, dispatchLatestHomepage } from '../../../model'; import { dispatch, dispatchLatestHomepage } from '../../../model';
import { Action, CatalogId, ModelerId, Hints, ModelerData, PermitCheckOut, Editable, StateId } from '../../../util/constant'; import { Action, CatalogId, ModelerId, Hints, ModelerData, PermitCheckOut, Editable, StateId } from '../../../util/constant';
import { AppContext } from '../../../App'; import { AppContext } from '../../../App';
...@@ -475,7 +475,7 @@ class Model extends React.Component { ...@@ -475,7 +475,7 @@ class Model extends React.Component {
allowClear allowClear
value={keyword} value={keyword}
onChange={(e) => { this.onSearchInputChange(e); }} onChange={(e) => { this.onSearchInputChange(e); }}
style={{ width: isSzseEnv?360:240, marginLeft: 'auto' }} style={{ width: inputWidth, marginLeft: 'auto' }}
/> />
</Space> </Space>
......
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Input, Table, Tooltip } from 'antd'; import { Input, Table, Tooltip } from 'antd';
import { inputWidth } from '../../../../util';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
const ConstraintDetail = (props) => { const ConstraintDetail = (props) => {
...@@ -105,7 +106,7 @@ const ConstraintDetail = (props) => { ...@@ -105,7 +106,7 @@ const ConstraintDetail = (props) => {
allowClear allowClear
value={keyword} value={keyword}
onChange={onSearchInputChange} onChange={onSearchInputChange}
style={{ width: 230 }} style={{ width: inputWidth }}
/> />
</div> </div>
<Table <Table
......
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