Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
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
mobile-group
galaxy-iOS
Commits
4ca56348
Commit
4ca56348
authored
Aug 22, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
8c3210af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
YHRangeDatePickerSheetView.swift
...es/Tools/RangeDatePicker/YHRangeDatePickerSheetView.swift
+2
-2
YHRangeDatePickerView.swift
...Classes/Tools/RangeDatePicker/YHRangeDatePickerView.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Tools/RangeDatePicker/YHRangeDatePickerSheetView.swift
View file @
4ca56348
...
...
@@ -9,7 +9,7 @@
import
UIKit
class
YHRangeDatePickerSheetView
:
UIView
{
static
let
contentViewH
:
CGFloat
=
(
16
+
24
)
+
(
12
+
1
)
+
(
12
+
32
)
+
YHRangeDatePickerView
.
viewH
+
98
+
20
static
let
contentViewH
:
CGFloat
=
(
16
+
24
)
+
(
12
+
1
)
+
(
12
+
32
)
+
YHRangeDatePickerView
.
viewH
+
98
typealias
Block
=
(
Date
,
Date
)
->
()
var
block
:
Block
?
...
...
@@ -214,7 +214,7 @@ private extension YHRangeDatePickerSheetView {
whiteContentView
.
addSubview
(
datePickView
)
datePickView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
warnImageV
.
snp
.
bottom
)
.
offset
(
12
)
make
.
top
.
equalTo
(
warnImageV
.
snp
.
bottom
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
YHRangeDatePickerView
.
viewH
)
}
...
...
galaxy/galaxy/Classes/Tools/RangeDatePicker/YHRangeDatePickerView.swift
View file @
4ca56348
...
...
@@ -126,7 +126,7 @@ extension YHRangeDatePickerView {
}
func
minimumDate
(
for
calendar
:
FSCalendar
)
->
Date
{
return
self
.
gregorian
.
date
(
byAdding
:
.
day
,
value
:
-
30
,
to
:
Date
())
!
return
self
.
gregorian
.
date
(
byAdding
:
.
day
,
value
:
1
,
to
:
Date
())
!
}
func
maximumDate
(
for
calendar
:
FSCalendar
)
->
Date
{
...
...
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