@actbase/react-daum-postcode
Advanced tools
Comparing version 0.9.3 to 0.9.6
@@ -49,2 +49,3 @@ "use strict"; | ||
var onSelected = _a.onSelected, | ||
onClose = _a.onClose, | ||
jsOptions = _a.jsOptions, | ||
@@ -69,5 +70,10 @@ style = _a.style; | ||
new window.daum.Postcode((0, _tslib.__assign)((0, _tslib.__assign)({}, jsOptions), { | ||
oncomplete: onSelected, | ||
onclose: function onclose() { | ||
loadData(); | ||
oncomplete: function oncomplete(data) { | ||
console.log('oncomplete'); | ||
onSelected(data); | ||
}, | ||
onclose: onClose || function () { | ||
if (layer.current) { | ||
loadData(); | ||
} | ||
} | ||
@@ -86,3 +92,4 @@ })).embed(layer.current); | ||
loadData()["catch"](console.warn); | ||
}, [loadData]); | ||
}, [loadData]); // @ts-ignore | ||
return React.createElement("div", { | ||
@@ -89,0 +96,0 @@ ref: layer, |
@@ -258,6 +258,60 @@ export interface OnCompleteParams { | ||
} | ||
declare type FlexAlignType = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline'; | ||
export interface StyleProps { | ||
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around'; | ||
alignItems?: FlexAlignType; | ||
alignSelf?: 'auto' | FlexAlignType; | ||
aspectRatio?: number; | ||
borderBottomWidth?: number; | ||
borderEndWidth?: number | string; | ||
borderLeftWidth?: number; | ||
borderRightWidth?: number; | ||
borderStartWidth?: number | string; | ||
borderTopWidth?: number; | ||
borderWidth?: number; | ||
bottom?: number | string; | ||
display?: 'none' | 'flex'; | ||
end?: number | string; | ||
flex?: number; | ||
width?: number; | ||
height?: number; | ||
flexBasis?: number | string; | ||
flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse'; | ||
flexGrow?: number; | ||
flexShrink?: number; | ||
flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse'; | ||
height?: number | string; | ||
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly'; | ||
left?: number | string; | ||
margin?: number | string; | ||
marginBottom?: number | string; | ||
marginEnd?: number | string; | ||
marginHorizontal?: number | string; | ||
marginLeft?: number | string; | ||
marginRight?: number | string; | ||
marginStart?: number | string; | ||
marginTop?: number | string; | ||
marginVertical?: number | string; | ||
maxHeight?: number | string; | ||
maxWidth?: number | string; | ||
minHeight?: number | string; | ||
minWidth?: number | string; | ||
overflow?: 'visible' | 'hidden' | 'scroll'; | ||
padding?: number | string; | ||
paddingBottom?: number | string; | ||
paddingEnd?: number | string; | ||
paddingHorizontal?: number | string; | ||
paddingLeft?: number | string; | ||
paddingRight?: number | string; | ||
paddingStart?: number | string; | ||
paddingTop?: number | string; | ||
paddingVertical?: number | string; | ||
position?: 'absolute' | 'relative'; | ||
right?: number | string; | ||
start?: number | string; | ||
top?: number | string; | ||
width?: number | string; | ||
zIndex?: number; | ||
/** | ||
* @platform ios | ||
*/ | ||
direction?: 'inherit' | 'ltr' | 'rtl'; | ||
} | ||
@@ -274,2 +328,3 @@ export interface PostcodeProps { | ||
onSelected: (data: OnCompleteParams) => void; | ||
onClose: () => void; | ||
/** | ||
@@ -281,1 +336,2 @@ * onSelected 함수에서 오류 발생 시 실행되는 함수입니다. | ||
} | ||
export {}; |
{ | ||
"name": "@actbase/react-daum-postcode", | ||
"version": "0.9.3", | ||
"version": "0.9.6", | ||
"description": "다음 우편번호찾기 for React, React-Native", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -107,2 +107,6 @@ # @actbase/react-daum-postcode | ||
# Changes | ||
- 0.9.6 | ||
- onClose 이벤트 추가 | ||
- 0.9.4 | ||
- 아싸리 그냥 FlexStyle속성을 다 밀어넣어버립시다.. | ||
- 0.9.3 | ||
@@ -109,0 +113,0 @@ - 속성에 flex 추가. Thanks @miraten |
Sorry, the diff of this file is not supported yet
35701
516
118