Showing
1 changed file
with
17 additions
and
15 deletions
... | ... | @@ -257,18 +257,18 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
257 | 257 | </> : <> |
258 | 258 | <div key={record.id}> |
259 | 259 | <span>{record.type == 'TIME' ? moment(text?.min).format( |
260 | - formatEnum[text?.format] || 'YYYY-MM-DD',) : text?.min} | |
260 | + formatEnum[text?.format] || 'YYYY-MM-DD') : text?.min} | |
261 | 261 | </span> |
262 | 262 | {text?.min && ( |
263 | - <Space style={{marginLeft: 5, marginRight: 5}}>-</Space> | |
263 | + <Space style={{ marginLeft: 5, marginRight: 5 }}>-</Space> | |
264 | 264 | )} |
265 | 265 | <span>{record.type == 'TIME' ? moment(text?.max).format( |
266 | - formatEnum[text?.format] || 'YYYY-MM-DD',) : text?.max} | |
266 | + formatEnum[text?.format] || 'YYYY-MM-DD') : text?.max} | |
267 | 267 | </span> |
268 | 268 | </div> |
269 | 269 | </>} |
270 | 270 | </> |
271 | - ) | |
271 | + ) | |
272 | 272 | }, |
273 | 273 | }, |
274 | 274 | { |
... | ... | @@ -343,7 +343,7 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
343 | 343 | size={'small'} |
344 | 344 | type="link" |
345 | 345 | disabled={record.disabled} |
346 | - icon={<QxBaseIcon style={{fontSize: 16}} type={'qx-icon-plus'} />} | |
346 | + icon={<QxBaseIcon style={{ fontSize: 16 }} type={'qx-icon-plus'} />} | |
347 | 347 | onClick={() => handleAdd(record.pid)} |
348 | 348 | /> |
349 | 349 | )} |
... | ... | @@ -353,7 +353,7 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
353 | 353 | size={'small'} |
354 | 354 | type="link" |
355 | 355 | disabled={record.disabled} |
356 | - icon={<Icon style={{fontSize: 16}} component={SubNodeIcon} />} | |
356 | + icon={<Icon style={{ fontSize: 16 }} component={SubNodeIcon} />} | |
357 | 357 | onClick={() => handleAddTree(record.id)} |
358 | 358 | /> |
359 | 359 | )} |
... | ... | @@ -362,7 +362,7 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
362 | 362 | type="link" |
363 | 363 | className="btn-high-del" |
364 | 364 | disabled={record.disabled} |
365 | - icon={<QxBaseIcon style={{fontSize: 16}} className={'title-btn-del-btn'} type={'qx-icon-delete'} />} | |
365 | + icon={<QxBaseIcon style={{ fontSize: 16 }} className={'title-btn-del-btn'} type={'qx-icon-delete'} />} | |
366 | 366 | onClick={() => handleDelete(record)} |
367 | 367 | /> |
368 | 368 | </Space> |
... | ... | @@ -434,6 +434,7 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
434 | 434 | const toggleEdit1 = (e) => { |
435 | 435 | const values = form.getFieldsValue(); |
436 | 436 | e.persist(); |
437 | + // console.log('vae.target.tagNamelues', e.target.tagName) | |
437 | 438 | if (e.target.tagName == 'DIV') { |
438 | 439 | setCurrentNode(e.target) |
439 | 440 | // console.log('values', values) |
... | ... | @@ -452,11 +453,11 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
452 | 453 | // form.setFieldsValue({ [dataIndex]: record[dataIndex] }); |
453 | 454 | }; |
454 | 455 | |
455 | - // const onQxpropsChangen = (value) => { | |
456 | + // const test = (value) => { | |
456 | 457 | // console.log('value', value) |
457 | - // form.setFieldsValue({ | |
458 | - // ['qxProps']: { value: value } | |
459 | - // }) | |
458 | + // // form.setFieldsValue({ | |
459 | + // // ['qxProps']: { value: value } | |
460 | + // // }) | |
460 | 461 | // } |
461 | 462 | // const toggleEdit2 = (e) => { |
462 | 463 | // e.persist(); |
... | ... | @@ -654,9 +655,10 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
654 | 655 | key={record.id} |
655 | 656 | ref={inputRef} |
656 | 657 | className="editable-around-cell" |
657 | - onBlur={(e) => toggleEdit1(e)} tabIndex={ | |
658 | - 0 | |
659 | - } | |
658 | + // onBlur={(e) => toggleEdit1(e)} | |
659 | + tabIndex={ | |
660 | + 0 | |
661 | + } | |
660 | 662 | > |
661 | 663 | <QxFormSelect |
662 | 664 | value={qxProps} |
... | ... | @@ -1063,7 +1065,7 @@ const ParameterModal: React.FC<ParameterSettingProps> = (props) => { |
1063 | 1065 | ) : ( |
1064 | 1066 | <Row> |
1065 | 1067 | <Col span={12}> |
1066 | - <Button type="link" icon={<QxBaseIcon style={{fontSize: 16}} type={'qx-icon-flow-code'} />} onClick={() => onOpen()}> | |
1068 | + <Button type="link" icon={<QxBaseIcon style={{ fontSize: 16 }} type={'qx-icon-flow-code'} />} onClick={() => onOpen()}> | |
1067 | 1069 | JSON参数设置 |
1068 | 1070 | </Button> |
1069 | 1071 | </Col> | ... | ... |