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
dd4dde99
Commit
dd4dde99
authored
Nov 21, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
curreny
parent
4bf2825e
Pipeline
#3629
failed with stages
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
index.vue
packages/components/CurrencyInput/index.vue
+3
-0
fileTest.vue
src/pages/fileTest.vue
+2
-2
No files found.
packages/components/CurrencyInput/index.vue
View file @
dd4dde99
...
...
@@ -46,11 +46,13 @@ export default {
},
methods
:
{
onInput
:
function
(
value
)
{
if
(
this
.
disable
)
return
let
uncurrency
=
this
.
$options
.
filter
[
'uncurrency'
]
this
.
currencyValue
=
uncurrency
(
value
)
this
.
$emit
(
'input'
,
this
.
currencyValue
)
},
onFocus
(
event
)
{
if
(
this
.
disable
)
return
this
.
focused
=
true
setTimeout
(
function
()
{
event
.
target
.
type
=
'number'
...
...
@@ -58,6 +60,7 @@ export default {
},
0
)
},
onBlur
(
event
)
{
if
(
this
.
disable
)
return
event
.
target
.
type
=
'text'
this
.
focused
=
false
},
...
...
src/pages/fileTest.vue
View file @
dd4dde99
...
...
@@ -28,7 +28,7 @@
<list-item>
<item>
<div
slot=
"name"
>
融资额
</div>
<currency-input
slot=
"content"
v-model=
"money"
/>
<currency-input
slot=
"content"
v-model=
"money"
:disable=
"true"
/>
<div
slot=
"right-icon"
>
¥
</div>
</item>
</list-item>
...
...
@@ -60,7 +60,7 @@ export default {
},
uploadSuccess
:
this
.
fileSuccess
,
// 上传成功后的回调函数 用于给文件添加服务端唯一标示或其他
},
money
:
null
,
money
:
2100.98
,
}
},
methods
:
{
...
...
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