Commit 69e4caa0 by zhaochengxiang

搜索框宽度调整

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