Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web_component
submodule
Commits
88ed98c5
Commit
88ed98c5
authored
May 26, 2020
by
满振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面样式
parent
49098b31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
index.tsx
components/braftEditor/index.tsx
+2
-0
preview.tsx
components/braftEditor/preview.tsx
+2
-2
index.tsx
...ew-V2/_components/searchView/baseComponent/date/index.tsx
+3
-1
No files found.
components/braftEditor/index.tsx
View file @
88ed98c5
...
...
@@ -31,6 +31,7 @@ interface IProps {
cRef
?:
any
;
excludeControls
?:
string
[];
// 不需要显示的控件
onChange
?:
Function
extendControls
?:
any
[];
}
const
EditorDemo
:
React
.
FC
<
IProps
>
=
({
...
...
@@ -103,6 +104,7 @@ const EditorDemo: React.FC<IProps> = ({
<
UploadQIniu
percentCbk=
{
percentCbk
}
successCbk=
{
successCbk
}
language=
{
language
}
/>
),
},
...(
others
.
extendControls
||
[])
];
const
insertText
=
(
text
:
string
)
=>
{
setEditorState
(
ContentUtils
.
insertText
(
editorState
,
text
));
...
...
components/braftEditor/preview.tsx
View file @
88ed98c5
...
...
@@ -6,7 +6,7 @@ interface IProps {
cRef
?:
any
;
language
?:
'zh'
|
'en'
;
}
const
Preview
:
React
.
FC
<
IProps
>
=
({
htmlStr
,
cRef
,
language
=
'zh'
})
=>
{
const
Preview
:
React
.
FC
<
IProps
>
=
({
htmlStr
,
cRef
,
language
=
'zh'
})
=>
{
const
[
visible
,
setVisible
]
=
useState
(
false
);
useImperativeHandle
(
cRef
,
()
=>
{
...
...
@@ -32,7 +32,7 @@ const Preview:React.FC<IProps> = ({ htmlStr, cRef, language = 'zh' }) => {
footer=
{
null
}
width=
{
800
}
>
<
div
dangerouslySetInnerHTML=
{
{
__html
:
htmlStr
}
}
/>
<
div
dangerouslySetInnerHTML=
{
{
__html
:
htmlStr
}
}
style=
{
{
minHeight
:
'80vh'
,
overflow
:
'auto'
}
}
/>
</
Modal
>
);
};
...
...
components/dataView-V2/_components/searchView/baseComponent/date/index.tsx
View file @
88ed98c5
...
...
@@ -14,6 +14,8 @@ const CustomInput = (props: InputProps) => {
return
props
.
onChange
(
newVal
)
}
}
return
<
DatePicker
{
...
props
}
value=
{
value
}
onChange=
{
onChange
}
/>
return
<
DatePicker
{
...
props
}
value=
{
value
}
onChange=
{
onChange
}
/>
}
export
default
CustomInput
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment