fix: adjust the view mode(temporary)
This commit is contained in:
parent
65c7ec9060
commit
63033d57c4
@ -112,9 +112,12 @@ export const DrawerForm = forwardRef((props: any, ref) => {
|
|||||||
text(...args: any[]) {
|
text(...args: any[]) {
|
||||||
return React.createElement('span', {}, ...args)
|
return React.createElement('span', {}, ...args)
|
||||||
},
|
},
|
||||||
|
html(html: string) {
|
||||||
|
return <div dangerouslySetInnerHTML={{__html: html}}></div>
|
||||||
|
},
|
||||||
tooltip(title: string, offset = 3) {
|
tooltip(title: string, offset = 3) {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={title}>
|
<Tooltip title={<div dangerouslySetInnerHTML={{__html: title}}></div>}>
|
||||||
<QuestionCircleOutlined
|
<QuestionCircleOutlined
|
||||||
style={{ margin: '0 3px', cursor: 'default', marginLeft: offset }}
|
style={{ margin: '0 3px', cursor: 'default', marginLeft: offset }}
|
||||||
/>
|
/>
|
||||||
|
@ -199,19 +199,20 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
interface: 'select',
|
interface: 'radio',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
name: 'template',
|
name: 'template',
|
||||||
title: '模板',
|
title: '查看和编辑模式',
|
||||||
required: true,
|
required: true,
|
||||||
dataSource: [
|
dataSource: [
|
||||||
// { label: '表单', value: 'DrawerForm' },
|
// { label: '表单', value: 'DrawerForm' },
|
||||||
{ label: '常规表格', value: 'Table' },
|
{ label: '常规模式', value: 'Table' },
|
||||||
{ label: '简易表格', value: 'SimpleTable' },
|
{ label: '快捷模式', value: 'SimpleTable' },
|
||||||
// { label: '日历模板', value: 'Calendar' },
|
// { label: '日历模板', value: 'Calendar' },
|
||||||
],
|
],
|
||||||
component: {
|
component: {
|
||||||
type: 'string',
|
tooltip: "{{ html('常规模式:点击数据进入查看界面,再次点击进入编辑界面<br/>快捷模式:点击数据直接打开编辑界面') }}",
|
||||||
|
type: 'radio',
|
||||||
default: 'Table',
|
default: 'Table',
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
showInDetail: true,
|
showInDetail: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user