Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
Work
Project
Project
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
陈俊泳
Work
Commits
6290a367
Commit
6290a367
authored
Apr 06, 2023
by
陈俊泳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(更新):更新
parent
6b09772c
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
315 additions
and
1 deletion
+315
-1
.DS_Store
.DS_Store
+0
-0
.DS_Store
Template/.DS_Store
+0
-0
.DS_Store
Template/SLMVVM.xctemplate/.DS_Store
+0
-0
TemplateIcon-1016.png
Template/SLMVVM.xctemplate/TemplateIcon-1016.png
+0
-0
TemplateIcon-1016@2x.png
Template/SLMVVM.xctemplate/TemplateIcon-1016@2x.png
+0
-0
TemplateInfo.plist
Template/SLMVVM.xctemplate/TemplateInfo.plist
+37
-0
___FILEBASENAME___Cell.h
Template/SLMVVM.xctemplate/___FILEBASENAME___Cell.h
+9
-0
___FILEBASENAME___Cell.m
Template/SLMVVM.xctemplate/___FILEBASENAME___Cell.m
+12
-0
___FILEBASENAME___Interface.h
Template/SLMVVM.xctemplate/___FILEBASENAME___Interface.h
+15
-0
___FILEBASENAME___VC.h
Template/SLMVVM.xctemplate/___FILEBASENAME___VC.h
+8
-0
___FILEBASENAME___VC.m
Template/SLMVVM.xctemplate/___FILEBASENAME___VC.m
+55
-0
___FILEBASENAME___VM.h
Template/SLMVVM.xctemplate/___FILEBASENAME___VM.h
+10
-0
___FILEBASENAME___VM.m
Template/SLMVVM.xctemplate/___FILEBASENAME___VM.m
+34
-0
___FILEBASENAME___View.h
Template/SLMVVM.xctemplate/___FILEBASENAME___View.h
+12
-0
___FILEBASENAME___View.m
Template/SLMVVM.xctemplate/___FILEBASENAME___View.m
+109
-0
文件模板.md
Template/文件模板.md
+8
-0
交接事项.md
交接事项.md
+6
-1
No files found.
.DS_Store
View file @
6290a367
No preview for this file type
Template/.DS_Store
0 → 100644
View file @
6290a367
File added
Template/SLMVVM.xctemplate/.DS_Store
0 → 100644
View file @
6290a367
File added
Template/SLMVVM.xctemplate/TemplateIcon-1016.png
0 → 100644
View file @
6290a367
2.06 KB
Template/SLMVVM.xctemplate/TemplateIcon-1016@2x.png
0 → 100644
View file @
6290a367
4.67 KB
Template/SLMVVM.xctemplate/TemplateInfo.plist
0 → 100644
View file @
6290a367
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
SupportsSwiftPackage
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
Kind
<
/k
e
y
>
<
string
>
Xcode.IDEFoundation.TextSubstitutionFileTemplateKind
<
/string
>
<
k
e
y
>
Description
<
/k
e
y
>
<
string
>
A
Cocoa
Touch
class.
<
/string
>
<
k
e
y
>
Summary
<
/k
e
y
>
<
string
>
A
Cocoa
Touch
class
<
/string
>
<
k
e
y
>
SortOrder
<
/k
e
y
>
<
string
>
1
<
/string
>
<
k
e
y
>
Platforms
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
com.apple.platform.iphoneos
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
Options
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
Identifier
<
/k
e
y
>
<
string
>
productName
<
/string
>
<
k
e
y
>
Required
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
Name
<
/k
e
y
>
<
string
>
Class
:
<
/string
>
<
k
e
y
>
Description
<
/k
e
y
>
<
string
>
The
name
of
the
class
to
create
<
/string
>
<
k
e
y
>
Type
<
/k
e
y
>
<
string
>
text
<
/string
>
<
k
e
y
>
NotPersisted
<
/k
e
y
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
Template/SLMVVM.xctemplate/___FILEBASENAME___Cell.h
0 → 100644
View file @
6290a367
//___FILEHEADER___
NS_ASSUME_NONNULL_BEGIN
@interface
___FILEBASENAMEASIDENTIFIER___Cell
:
SLBaseTableViewCell
@end
NS_ASSUME_NONNULL_END
Template/SLMVVM.xctemplate/___FILEBASENAME___Cell.m
0 → 100644
View file @
6290a367
//___FILEHEADER___
#import "___FILEBASENAMEASIDENTIFIER___Cell.h"
@implementation
___FILEBASENAMEASIDENTIFIER___Cell
-
(
void
)
setUI
{
}
@end
Template/SLMVVM.xctemplate/___FILEBASENAME___Interface.h
0 → 100644
View file @
6290a367
//___FILEHEADER___
#import <UIKit/UIKit.h>
@protocol
___FILEBASENAMEASIDENTIFIER___ViewOperation
<
NSObject
>
@optional
@end
Template/SLMVVM.xctemplate/___FILEBASENAME___VC.h
0 → 100644
View file @
6290a367
//___FILEHEADER___
NS_ASSUME_NONNULL_BEGIN
@interface
___FILEBASENAMEASIDENTIFIER___VC
:
SLBaseVC
@end
NS_ASSUME_NONNULL_END
Template/SLMVVM.xctemplate/___FILEBASENAME___VC.m
0 → 100644
View file @
6290a367
//___FILEHEADER___
#import "___FILEBASENAMEASIDENTIFIER___VC.h"
#import "___FILEBASENAMEASIDENTIFIER___View.h"
@interface
___FILEBASENAMEASIDENTIFIER___VC
()
<
___FILEBASENAMEASIDENTIFIER___ViewOperation
>
@property
(
nonatomic
,
strong
)
___FILEBASENAMEASIDENTIFIER___View
*
contentView
;
@end
@implementation
___FILEBASENAMEASIDENTIFIER___VC
// MARK: - LifeCycle
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
setupInit
];
}
-
(
void
)
viewWillLayoutSubviews
{
[
super
viewWillLayoutSubviews
];
_contentView
.
frame
=
self
.
view
.
bounds
;
}
// MARK: - Setup
-
(
void
)
setupInit
{
[
self
setupView
];
}
-
(
void
)
setupView
{
[
self
.
view
addSubview
:
self
.
contentView
];
[
self
.
contentView
reloadData
];
}
// MARK: - ___FILEBASENAMEASIDENTIFIER___Operation
// MARK: - Getter And Setter
-
(
___FILEBASENAMEASIDENTIFIER___View
*
)
contentView
{
if
(
!
_contentView
)
{
_contentView
=
[[
___FILEBASENAMEASIDENTIFIER___View
alloc
]
init
];
_contentView
.
operation
=
self
;
}
return
_contentView
;
}
@end
Template/SLMVVM.xctemplate/___FILEBASENAME___VM.h
0 → 100644
View file @
6290a367
//___FILEHEADER___
NS_ASSUME_NONNULL_BEGIN
@interface
___FILEBASENAMEASIDENTIFIER___VM
:
SLViewModel
@end
NS_ASSUME_NONNULL_END
Template/SLMVVM.xctemplate/___FILEBASENAME___VM.m
0 → 100644
View file @
6290a367
//___FILEHEADER___
#import "___FILEBASENAMEASIDENTIFIER___VM.h"
@interface
___FILEBASENAMEASIDENTIFIER___VM
()
@end
@implementation
___FILEBASENAMEASIDENTIFIER___VM
//MARK: - Init
-
(
instancetype
)
initWithDelegate
:(
id
<
STCViewModelProtocol
>
)
delegate
{
self
=
[
super
initWithDelegate
:
delegate
];
if
(
self
){
}
return
self
;
}
//MARK: - Cmd Target
//MARK: - Private Methods
//MARK: - Getter And Setter
@end
Template/SLMVVM.xctemplate/___FILEBASENAME___View.h
0 → 100644
View file @
6290a367
//___FILEHEADER___
#import <UIKit/UIKit.h>
#import "___FILEBASENAMEASIDENTIFIER___Interface.h"
#import "___FILEBASENAMEASIDENTIFIER___VM.h"
@interface
___FILEBASENAMEASIDENTIFIER___View
:
SLBaseView
@property
(
nonatomic
,
weak
)
id
<
___FILEBASENAMEASIDENTIFIER___ViewOperation
>
operation
;
@property
(
nonatomic
,
strong
)
___FILEBASENAMEASIDENTIFIER___VM
*
viewModel
;
-
(
void
)
reloadData
;
@end
Template/SLMVVM.xctemplate/___FILEBASENAME___View.m
0 → 100644
View file @
6290a367
//___FILEHEADER___
#import "___FILEBASENAMEASIDENTIFIER___View.h"
#import "___FILEBASENAMEASIDENTIFIER___Cell"
@interface
___FILEBASENAMEASIDENTIFIER___View
()
<
UITableViewDataSource
,
UITableViewDelegate
,
STCViewModelProtocol
>
@property
(
nonatomic
,
strong
)
SLBaseTableView
*
tableView
;
@end
@implementation
___FILEBASENAMEASIDENTIFIER___View
//MARK: - LifeCycle
-
(
void
)
dealloc
{
SLDebugLog
(
@"%@ - execute %s"
,
NSStringFromClass
([
self
class
]),
__func__
);
}
-
(
instancetype
)
initWithFrame
:
(
CGRect
)
frame
{
self
=
[
super
initWithFrame
:
frame
];
if
(
self
)
{
[
self
setupUI
];
}
return
self
;
}
-
(
instancetype
)
initWithCoder
:
(
NSCoder
*
)
coder
{
self
=
[
super
initWithCoder
:
coder
];
if
(
self
)
{
[
self
setupUI
];
}
return
self
;
}
//MARK: - Setup
-
(
void
)
setupUI
{
[
self
addSubview
:
self
.
tableView
];
[
self
.
tableView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
top
.
bottom
.
equalTo
(
@0
);
}];
}
-
(
void
)
reloadData
{
}
//MARK: - STCViewModelProtocol
-
(
void
)
reactActionWithViewModel
:
(
id
)
viewModel
target
:
(
id
)
target
{
}
-
(
void
)
updateValue
:
(
id
)
value
withViewModel
:
(
id
)
viewModel
target
:
(
id
)
target
{
}
//MARK: - TableView DataSource
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
1
;
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
___FILEBASENAMEASIDENTIFIER___Cell
*
cell
=
[
___FILEBASENAMEASIDENTIFIER___Cell
cellClassWithTableView
:
tableView
forIndexPath
:
indexPath
];
return
cell
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
[
___FILEBASENAMEASIDENTIFIER___Cell
cellHeight
];
}
//MARK: - TableView Delegate
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
[
tableView
deselectRowAtIndexPath
:
indexPath
animated
:
YES
];
}
//MARK: - Getter And Setter
-
(
___FILEBASENAMEASIDENTIFIER___VM
*
)
viewModel
{
if
(
!
_viewModel
)
{
_viewModel
=
[[
___FILEBASENAMEASIDENTIFIER___VM
alloc
]
initWithDelegate
:
self
];
}
return
_viewModel
;
}
-
(
SLBaseTableView
*
)
tableView
{
if
(
!
_tableView
)
{
_tableView
=
[
SLBaseTableView
new
];
[
___FILEBASENAMEASIDENTIFIER___Cell
registerClassWithTableView
:
_cusTableView
];
_tableView
.
dataSource
=
self
;
_tableView
.
delegate
=
self
;
}
return
_tableView
;
}
@end
Template/文件模板.md
0 → 100644
View file @
6290a367
## 文件模板
新建 /Library/Developer/Xcode/Templates/File Template/SYC文件夹
导入SLMVVM.xctemplate模板
可新建自己的模板放到项目根目录的Template文件做维护
交接事项.md
View file @
6290a367
...
...
@@ -14,6 +14,11 @@
-
junyong.chen@shengyc.com
-
Kangaroo
-
gitlab
-
[
junyong.chen@shengyc.com
](
mailto:junyong.chen@shengyc.com
)
-
syc123456
5566324415272839 02/23 084
...
...
@@ -25,7 +30,7 @@
-
张总:用于CMS
绑定手机号-17701929135「施婷」
appid账号: saas@shengyc.com
appid密码:Shengyc_
1212
appid密码:Shengyc_
2023
网易邮箱密码:syc888168
-
测试appid:
...
...
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