Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
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
Administrator
bkunyun
Commits
9c8fe2c6
Commit
9c8fe2c6
authored
Jul 21, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: MyInput组件开发
parent
d0c51ac4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
Input.tsx
src/components/mui/Input.tsx
+0
-0
MyInput.tsx
src/components/mui/MyInput.tsx
+16
-1
input.tsx
src/views/mui_demo/input.tsx
+5
-23
No files found.
src/components/mui/Input.tsx
deleted
100644 → 0
View file @
d0c51ac4
This diff is collapsed.
Click to expand it.
src/components/mui/MyInput.tsx
View file @
9c8fe2c6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-05 14:00:37
* @Date: 2022-07-05 14:00:37
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-2
0 20:33:0
9
* @LastEditTime: 2022-07-2
1 17:33:5
9
* @FilePath: /bkunyun/src/components/mui/MyInput.tsx
* @FilePath: /bkunyun/src/components/mui/MyInput.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -40,11 +40,26 @@ const MyInput = (props: MyInputProps) => {
...
@@ -40,11 +40,26 @@ const MyInput = (props: MyInputProps) => {
},
},
},
},
},
},
MuiInputLabel
:
{
styleOverrides
:
{
root
:
{
top
:
label
?
"-5px"
:
"-10px"
,
},
},
},
MuiOutlinedInput
:
{
MuiOutlinedInput
:
{
styleOverrides
:
{
styleOverrides
:
{
root
:
{
root
:
{
height
:
"36px"
,
height
:
"36px"
,
lineHeight
:
"36px"
,
lineHeight
:
"36px"
,
":hover"
:
{
"& .MuiOutlinedInput-notchedOutline"
:
error
?
{}
:
{
borderColor
:
"#1370ff"
,
},
},
},
},
input
:
{
input
:
{
padding
:
"6.5px 14px"
,
padding
:
"6.5px 14px"
,
...
...
src/views/mui_demo/input.tsx
View file @
9c8fe2c6
import
{
memo
}
from
"react"
;
import
{
memo
}
from
"react"
;
import
{
InputAdornment
}
from
"@mui/material"
;
import
{
InputAdornment
}
from
"@mui/material"
;
import
InputComponent
from
"@/components/mui/Input"
;
import
InputComponent
from
"@/components/mui/
My
Input"
;
const
ProjectMembers
=
()
=>
{
const
ProjectMembers
=
()
=>
{
return
(
return
(
...
@@ -9,7 +9,6 @@ const ProjectMembers = () => {
...
@@ -9,7 +9,6 @@ const ProjectMembers = () => {
fullWidth=
{
false
}
fullWidth=
{
false
}
label=
{
"test"
}
label=
{
"test"
}
defaultValue=
{
"sssssssss"
}
defaultValue=
{
"sssssssss"
}
size=
{
"large"
}
/>
/>
<
InputComponent
<
InputComponent
...
@@ -26,34 +25,17 @@ const ProjectMembers = () => {
...
@@ -26,34 +25,17 @@ const ProjectMembers = () => {
disabled
disabled
/>
/>
<
InputComponent
fullWidth=
{
false
}
label=
{
"xsmall"
}
size=
{
"xsmall"
}
/>
<
InputComponent
fullWidth=
{
false
}
label=
{
"xsmall"
}
/>
<
InputComponent
<
InputComponent
fullWidth=
{
false
}
placeholder=
{
"测试机哦"
}
/>
fullWidth=
{
false
}
placeholder=
{
"测试机哦"
}
endAdornment=
{
<
InputAdornment
position=
"end"
>
11
</
InputAdornment
>
}
/>
<
InputComponent
<
InputComponent
fullWidth=
{
false
}
fullWidth=
{
false
}
size=
{
"small"
}
size=
{
"small"
}
placeholder=
{
"xxxxxx"
}
placeholder=
{
"nishuoshenm"
}
endAdornment=
{
<
InputAdornment
position=
"end"
>
11
</
InputAdornment
>
}
/>
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
InputComponent
<
InputComponent
fullWidth=
{
true
}
/>
fullWidth=
{
true
}
select=
{
{
json
:
[
{
value
:
"1"
,
label
:
"2"
},
{
value
:
"3"
,
label
:
"4"
},
],
}
}
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
{
/* <SelectComponent
{
/* <SelectComponent
...
...
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