Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
common
Commits
c34b92b3
Commit
c34b92b3
authored
Oct 15, 2018
by
Vladislav Lagunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавлен тултип с ошибкой
parent
a9f9f464
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
4 deletions
+16
-4
AutoComplete.tsx
+1
-1
BooleanField.tsx
+2
-0
MomentField.tsx
+1
-2
TextField.tsx
+2
-0
context.tsx
+1
-1
i18n/index.ts
+9
-0
No files found.
AutoComplete.tsx
View file @
c34b92b3
...
...
@@ -173,7 +173,7 @@ export default class AutoComplete<A=string> extends React.Component<Props<A>, St
const
{
nonNull
,
disabled
}
=
this
.
props
;
return
{
...
pick
(
this
.
props
,
'disabled'
,
'error'
,
'fullWidth'
,
'placeholder'
),
...
pick
(
this
.
props
,
'disabled'
,
'error'
,
'fullWidth'
,
'placeholder'
,
'ctx'
),
value
:
this
.
getValue
(),
onValueChange
:
disabled
?
undefined
:
this
.
handleValueChange
,
onChange
:
disabled
?
undefined
:
this
.
handleChange
,
...
...
BooleanField.tsx
View file @
c34b92b3
...
...
@@ -32,6 +32,8 @@ class BooleanField extends React.Component<Props> {
checked=
{
value
}
onChange=
{
this
.
handleChange
}
disabled=
{
disabled
}
data
-
rh
-
at=
"right"
data
-
rh=
{
typeof
(
error
)
===
'string'
||
typeof
(
error
)
===
'function'
?
typeof
(
error
)
===
'string'
?
error
:
error
(
ctx
)
:
undefined
}
/>
</
div
>;
}
...
...
MomentField.tsx
View file @
c34b92b3
...
...
@@ -148,12 +148,11 @@ class MomentField extends React.Component<Props, State> {
}
render
()
{
const
{
classes
,
/*dirty, */
error
,
InputProps
,
onBlur
,
onChange
,
onFocus
,
value
,
format
:
formapProps
,
disabled
,
...
rest
}
=
this
.
props
;
const
{
classes
,
ctx
,
error
,
InputProps
,
onBlur
,
onChange
,
onFocus
,
value
,
format
:
formapProps
,
disabled
,
...
rest
}
=
this
.
props
;
const
{
rootEl
}
=
this
;
const
{
open
}
=
this
.
state
;
const
rootClass
=
classes
.
root
;
return
<
F
.
Modifier
proj=
{
this
.
projectContext
}
>
<
div
{
...
rest
}
className=
{
rootClass
}
ref=
{
this
.
handleRootRef
}
>
<
TextField
...
...
TextField.tsx
View file @
c34b92b3
...
...
@@ -104,6 +104,8 @@ export class TextField extends React.Component<Props, State> {
onFocus=
{
onFocus
}
onBlur=
{
onBlur
}
onKeyDown=
{
onKeyDown
}
data
-
rh
-
at=
"right"
data
-
rh=
{
typeof
(
error
)
===
'string'
||
typeof
(
error
)
===
'function'
?
typeof
(
error
)
===
'string'
?
error
:
error
(
ctx
)
:
undefined
}
/>
{
endAdornment
}
</
div
>;
...
...
context.tsx
View file @
c34b92b3
...
...
@@ -34,7 +34,7 @@ export function withFieldContext<P extends FieldProps<any>, C extends React.Comp
renderer
=
(
context
:
FieldProps
)
=>
{
// @ts-ignore
return
React
.
createElement
(
Component
,
Object
.
assign
({},
this
.
props
,
context
)
);
return
React
.
createElement
(
Component
,
{
...
this
.
props
,
...
context
}
);
};
}
...
...
i18n/index.ts
0 → 100644
View file @
c34b92b3
export
default
{
"ru-RU"
:
{
"Fill out this field"
:
"Заполните это поле"
,
},
"lt-LT"
:
{
},
"de-DE"
:
{
},
};
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