Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
Overview
Overview
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
fukai
swifteditor
Commits
2883e784
Commit
2883e784
authored
5 years ago
by
snail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
16R
parent
77943386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
T16R.js
src/swift/Tags/T16R.js
+52
-0
No files found.
src/swift/Tags/T16R.js
0 → 100644
View file @
2883e784
import
React
,
{
Component
}
from
'react'
import
{
Form
,
Input
,
DatePicker
,
Row
,
Col
,
Button
,
Icon
,
Select
}
from
'antd'
;
import
{
InputSize
,
Currency
}
from
"./Utils"
import
YBIC
from
'./YBIC'
const
FormItem
=
Form
.
Item
;
const
Option
=
Select
.
Option
export
default
class
T16R
extends
Component
{
name
=
'16R'
desp
=
"Indicator"
pattern
=
"1!a"
tno
=
-
1
onChange
=
(
index
,
val
)
=>
{
this
.
props
.
onValue
([{
s1
:
val
},
val
])
}
render
()
{
let
value
=
this
.
props
.
value
let
mval
=
value
&&
value
.
length
?
value
[
1
]
:
''
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]
:
{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
return
(
<
div
>
<
Row
>
<
Col
style
=
{{
"minWidth"
:
'150px'
}}
span
=
{
3
}
>
<
FormItem
label
=
"Number"
required
=
{
this
.
props
.
status
==
'M'
||
mval
?
'required'
:
null
}
help
=
{
errmsg
.
s1
}
validateStatus
=
{
errmsg
.
s1
?
'error'
:
null
}
>
<
Input
readonly
=
'true'
value
=
{
value
.
s1
}
onChange
=
{
e
=>
this
.
onChange
(
1
,
e
.
target
.
value
)}
maxLength
=
{
5
}
style
=
{{
imeMode
:
'disabled'
}}
placeholder
=
"Number"
/>
<
/FormItem
>
<
/Col
>
<
/Row
>
<
/div
>
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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