Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
554857af
Commit
554857af
authored
Nov 25, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: limit input
parent
caa613c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tag-config-options.vue
src/components/tag/tag-config-options.vue
+9
-0
No files found.
src/components/tag/tag-config-options.vue
View file @
554857af
...
...
@@ -2041,6 +2041,15 @@ export default {
v
=
0
}
}
// 部分标签只允许输入整数
const
tags
=
[
'次数'
,
'天数'
,
'时长'
];
if
(
tags
.
some
((
el
)
=>
this
.
tagData
.
tagName
.
indexOf
(
el
)
!==
-
1
))
{
v
=
Math
.
floor
(
v
);
if
(
v
<
0
)
{
v
=
0
}
}
return
v
;
},
onChangeTime
(
val
)
{
...
...
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