이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
public
/
postgrest-mithril
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
add util/with_layout.js
master
Bing Sun
5 년 전
부모
14b9b374c2
커밋
175bcf5c3a
로그인 계정:
sunb
GPG 키 ID:
F7795F8C590626AB
1개의 변경된 파일
과
15개의 추가작업
그리고
0개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+15
-0
src/util/with_layout.js
+ 15
- 0
src/util/with_layout.js
파일 보기
@@ -0,0 +1,15 @@
export default config => {
if (typeof config == 'undefined')
config = {}
if (!config.hasOwnProperty('content'))
config = {'content': config}
return {
view: vnode => [
config.prologue,
m('main', config.content),
config.epilogue
]
}
}
쓰기
미리보기
불러오는 중...
취소
저장