Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
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
easyUI
hls-easy-ui
Commits
eb2927a1
Commit
eb2927a1
authored
Apr 22, 2021
by
nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
placeholder 处理
parent
265ad042
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
6 deletions
+29
-6
hField.less
packages/common/styles/hField.less
+7
-2
index.vue
packages/components/DateField/index.vue
+7
-1
index.vue
packages/components/Field/index.vue
+1
-1
SelectField.vue
packages/components/Select/SelectField.vue
+7
-1
index.vue
packages/components/Select/index.vue
+7
-1
No files found.
packages/common/styles/hField.less
View file @
eb2927a1
...
...
@@ -76,6 +76,11 @@
background-color: transparent;
border: 0;
resize: none;
&,
&::placeholder {
color: #666;
-webkit-text-fill-color: currentColor;
}
&-left {
text-align: left;
...
...
@@ -112,13 +117,13 @@
&-disabled {
.field-label {
color: #
666
;
color: #
999
;
}
.field-value {
.field-body {
.field-control {
color: #
666
;
color: #
999
;
}
}
}
...
...
packages/components/DateField/index.vue
View file @
eb2927a1
...
...
@@ -104,6 +104,10 @@ export default {
type
:
Boolean
,
default
:
false
,
},
showPlaceholder
:
{
type
:
Boolean
,
default
:
true
,
},
},
data
()
{
return
{
...
...
@@ -125,7 +129,9 @@ export default {
return
!!
(
this
.
leftIcon
||
this
.
$slots
[
'left-icon'
])
},
dataPlaceholder
()
{
if
(
this
.
showPlaceholder
&&
!
this
.
disabled
)
{
return
this
.
placeholder
?
this
.
placeholder
:
this
.
label
?
'请输入'
+
this
.
label
:
''
}
},
showClean
()
{
let
vm
=
this
...
...
packages/components/Field/index.vue
View file @
eb2927a1
...
...
@@ -174,7 +174,7 @@ export default {
return
!!
(
this
.
rightIcon
||
this
.
$slots
[
'right-icon'
])
},
placehold
()
{
if
(
this
.
showPlaceholder
)
{
if
(
this
.
showPlaceholder
&&
!
this
.
readonly
&&
!
this
.
disabled
)
{
return
this
.
placeholder
?
this
.
placeholder
:
this
.
label
?
'请输入'
+
this
.
label
:
''
}
},
...
...
packages/components/Select/SelectField.vue
View file @
eb2927a1
...
...
@@ -115,6 +115,10 @@ export default {
type
:
Boolean
,
default
:
false
,
},
showPlaceholder
:
{
type
:
Boolean
,
default
:
true
,
},
},
data
()
{
return
{
...
...
@@ -173,7 +177,9 @@ export default {
}
},
selectPlaceholder
()
{
if
(
this
.
showPlaceholder
&&
!
this
.
disabled
)
{
return
this
.
placeholder
?
this
.
placeholder
:
this
.
label
?
'请输入'
+
this
.
label
:
''
}
},
},
methods
:
{
...
...
packages/components/Select/index.vue
View file @
eb2927a1
...
...
@@ -124,6 +124,10 @@ export default {
type
:
Boolean
,
default
:
false
,
},
showPlaceholder
:
{
type
:
Boolean
,
default
:
true
,
},
},
data
()
{
return
{
...
...
@@ -158,7 +162,9 @@ export default {
}
},
selectPlaceholder
()
{
if
(
this
.
showPlaceholder
&&
!
this
.
disabled
)
{
return
this
.
placeholder
?
this
.
placeholder
:
this
.
label
?
'请输入'
+
this
.
label
:
''
}
},
},
watch
:
{
...
...
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