tplus-components-touch 3.28.9 → 3.28.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/progressState/EmptyAndErrorView.js +4 -3
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +2 -1
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/settlement/settlement.js +3 -3
- package/dist/components/settlement/settlement.js.map +1 -1
- package/package.json +1 -1
|
@@ -80,10 +80,11 @@ var EmptyAndErrorView = (_temp2 = _class = function (_Component) {
|
|
|
80
80
|
_props$style = _props.style,
|
|
81
81
|
style = _props$style === undefined ? {} : _props$style,
|
|
82
82
|
_props$type = _props.type,
|
|
83
|
-
type = _props$type === undefined ? 'error' : _props$type
|
|
83
|
+
type = _props$type === undefined ? 'error' : _props$type,
|
|
84
|
+
_props$imgStyle = _props.imgStyle,
|
|
85
|
+
imgStyle = _props$imgStyle === undefined ? {} : _props$imgStyle;
|
|
84
86
|
|
|
85
87
|
var imgURL = imgRef[type];
|
|
86
|
-
|
|
87
88
|
return _react2.default.createElement(
|
|
88
89
|
'div',
|
|
89
90
|
{ className: 'progressState', style: style },
|
|
@@ -93,7 +94,7 @@ var EmptyAndErrorView = (_temp2 = _class = function (_Component) {
|
|
|
93
94
|
iconVisible && _react2.default.createElement(
|
|
94
95
|
'div',
|
|
95
96
|
{ className: 'icon' },
|
|
96
|
-
_react2.default.createElement('img', { src: imgURL })
|
|
97
|
+
_react2.default.createElement('img', { style: imgStyle, src: imgURL })
|
|
97
98
|
),
|
|
98
99
|
info && _react2.default.createElement(
|
|
99
100
|
'div',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/progressState/EmptyAndErrorView.js"],"names":["imgRef","empty","error","EmptyAndErrorView","onButtonClick","e","onClick","props","iconVisible","info","buttonVisible","buttonTitle","secondaryTip","style","type","imgURL","Component","propTypes","PropTypes","bool","string","func","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;;;;;AAGA,IAAMA,SAAS;AACXC,WAAM,gDADK;AAEXC,WAAM;AAFK,CAAf;;IAKMC,iB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/progressState/EmptyAndErrorView.js"],"names":["imgRef","empty","error","EmptyAndErrorView","onButtonClick","e","onClick","props","iconVisible","info","buttonVisible","buttonTitle","secondaryTip","style","type","imgStyle","imgURL","Component","propTypes","PropTypes","bool","string","func","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;;;;;AAGA,IAAMA,SAAS;AACXC,WAAM,gDADK;AAEXC,WAAM;AAFK,CAAf;;IAKMC,iB;;;;;;;;;;;;;;sOA+CFC,a,GAAgB,UAACC,CAAD,EAAK;AAAA,gBACVC,OADU,GACC,MAAKC,KADN,CACVD,OADU;;AAEjBA,uBAAWA,QAAQD,CAAR,CAAX;AACH,S;;;;;iCArCQ;AAAA,yBAEoG,KAAKE,KAFzG;AAAA,gBAEEC,WAFF,UAEEA,WAFF;AAAA,gBAEeC,IAFf,UAEeA,IAFf;AAAA,gBAEqBC,aAFrB,UAEqBA,aAFrB;AAAA,gBAEoCC,WAFpC,UAEoCA,WAFpC;AAAA,gBAEgDC,YAFhD,UAEgDA,YAFhD;AAAA,sCAE6DC,KAF7D;AAAA,gBAE6DA,KAF7D,gCAEmE,EAFnE;AAAA,qCAEsEC,IAFtE;AAAA,gBAEsEA,IAFtE,+BAE2E,OAF3E;AAAA,yCAEmFC,QAFnF;AAAA,gBAEmFA,QAFnF,mCAE8F,EAF9F;;AAGL,gBAAMC,SAAShB,OAAOc,IAAP,CAAf;AACA,mBACI;AAAA;AAAA,kBAAK,WAAU,eAAf,EAA+B,OAAOD,KAAtC;AACI;AAAA;AAAA;AACKL,mCACD;AAAA;AAAA,0BAAK,WAAU,MAAf;AACI,+DAAK,OAAOO,QAAZ,EAAsB,KAAKC,MAA3B;AADJ,qBAFJ;AAMKP,4BACD;AAAA;AAAA,0BAAK,WAAU,MAAf;AAAuBA;AAAvB,qBAPJ;AASKC,qCACD;AAAA;AAAA,0BAAK,WAAU,QAAf;AACI;AAAA;AAAA,8BAAQ,MAAK,SAAb,EAAuB,SAAS,KAAKN,aAArC;AACMO;AADN;AADJ;AAVJ,iBADJ;AAkBKC,gCACG;AAAA;AAAA,sBAAK,WAAU,cAAf;AACI;AAAA;AAAA,0BAAM,WAAU,UAAhB;AAAA;AAAA,qBADJ;AAEI;AAAA;AAAA,0BAAK,WAAU,YAAf;AAAA;AAA+BA;AAA/B;AAFJ;AAnBR,aADJ;AA4BH;;;EA7C2BK,gB,UAErBC,S,GAAY;AACfV,iBAAaW,oBAAUC,IADR;AAEfX,UAAMU,oBAAUE,MAFD;AAGfX,mBAAeS,oBAAUC,IAHV;AAIfT,iBAAaQ,oBAAUE,MAJR;AAKfT,kBAAcO,oBAAUE,MALT;AAMff,aAASa,oBAAUG,IANJ;AAOfT,WAAOM,oBAAUI,MAPF;AAQfT,UAAMK,oBAAUE;AARD,C;kBAoDRlB,iB","file":"EmptyAndErrorView.js","sourcesContent":["import React, {Component} from 'react';\nimport { Button } from 'antd';\nimport PropTypes from 'prop-types';\n\n\nconst imgRef = {\n empty:'https://newretail.static.chanjet.com/empty.png',\n error:'https://newretail.static.chanjet.com/operation_error.png'\n}\n\nclass EmptyAndErrorView extends Component{\n\n static propTypes = {\n iconVisible: PropTypes.bool,\n info: PropTypes.string,\n buttonVisible: PropTypes.bool,\n buttonTitle: PropTypes.string,\n secondaryTip: PropTypes.string,\n onClick: PropTypes.func,\n style: PropTypes.object,\n type: PropTypes.string\n };\n\n render() {\n\n const {iconVisible, info, buttonVisible, buttonTitle,secondaryTip,style={},type='error',imgStyle = {}} = this.props;\n const imgURL = imgRef[type];\n return (\n <div className=\"progressState\" style={style}>\n <div>\n {iconVisible &&\n <div className=\"icon\">\n <img style={imgStyle} src={imgURL}/>\n </div>\n }\n {info &&\n <div className=\"text\">{info}</div>\n }\n {buttonVisible &&\n <div className=\"addBtn\">\n <Button type=\"primary\" onClick={this.onButtonClick}>\n {buttonTitle}\n </Button>\n </div>\n }\n </div>\n {secondaryTip &&\n <div className=\"secondaryTip\">\n <span className=\"tipLabel\">提示 :</span>\n <div className=\"tipContent\"> {secondaryTip}</div>\n </div>\n }\n\n </div>\n );\n }\n\n onButtonClick = (e)=>{\n const {onClick} = this.props;\n onClick && onClick(e);\n }\n\n}\n\nexport default EmptyAndErrorView;"]}
|
|
@@ -139,7 +139,8 @@ var ProgressState = (_temp = _class = function (_React$Component) {
|
|
|
139
139
|
buttonTitle: _propTypes2.default.string,
|
|
140
140
|
onClick: _propTypes2.default.func,
|
|
141
141
|
buttonVisible: _propTypes2.default.bool,
|
|
142
|
-
style: _propTypes2.default.object
|
|
142
|
+
style: _propTypes2.default.object,
|
|
143
|
+
imgStyle: _propTypes2.default.object
|
|
143
144
|
}),
|
|
144
145
|
error: _propTypes2.default.shape({
|
|
145
146
|
iconVisible: _propTypes2.default.bool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/progressState/ProgressState.js"],"names":["ProgressState","props","state","load","style","empty","error","children","stateCommonStyle","className","baseStyle","height","defaultProps","React","Component","iconVisible","buttonTitle","buttonVisible","info","defaultLoadProps","position","gotProgressState","loading","notEmpty","progressState","propTypes","PropTypes","oneOf","shape","text","string","object","bool","onClick","func","node"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;AACA;;;;;;IAEMA,a;;;;;;;;;;;;AAWF;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/progressState/ProgressState.js"],"names":["ProgressState","props","state","load","style","empty","error","children","stateCommonStyle","className","baseStyle","height","defaultProps","React","Component","iconVisible","buttonTitle","buttonVisible","info","defaultLoadProps","position","gotProgressState","loading","notEmpty","progressState","propTypes","PropTypes","oneOf","shape","text","string","object","bool","onClick","func","imgStyle","node"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;AACA;;;;;;IAEMA,a;;;;;;;;;;;;AAWF;;;;;;;;;;;iCA2DS;AAAA,yBAUD,KAAKC,KAVJ;AAAA,gBAEDC,KAFC,UAEDA,KAFC;AAAA,qCAGDC,IAHC;AAAA,gBAGDA,IAHC,+BAGM,EAACC,OAAM,EAAP,EAHN;AAAA,sCAIDC,KAJC;AAAA,gBAIDA,KAJC,gCAIO,EAACD,OAAM,EAAP,EAJP;AAAA,sCAKDE,KALC;AAAA,gBAKDA,KALC,gCAKO,EAACF,OAAM,EAAP,EALP;AAAA,gBAMDG,QANC,UAMDA,QANC;AAAA,gBAODH,KAPC,UAODA,KAPC;AAAA,+CAQDI,gBARC;AAAA,gBAQDA,gBARC,yCAQkB,EARlB;AAAA,gBASDC,SATC,UASDA,SATC;;AAWL,gBAAMC,YAAYD,YAAY,EAAZ,GAAiB,EAACE,QAAQ,MAAT,EAAnC;AACAN,kBAAMD,KAAN,8BAAkBI,gBAAlB,EAAsCH,MAAMD,KAA5C;AACAE,kBAAMF,KAAN,8BAAkBI,gBAAlB,EAAsCF,MAAMF,KAA5C;AACAD,iBAAKC,KAAL,8BAAgBI,gBAAhB,EAAoCL,KAAKC,KAAzC;AACA,mBACI;AAAA;AAAA,kBAAK,WAAWK,SAAhB,EAA2B,OAAO,sBAAcC,SAAd,EAAwBN,KAAxB,CAAlC;AACMG,wBADN;AAEKL,0BAAU,MAAV,IACD,8BAAC,wBAAD,EAAiBC,IAAjB,CAHJ;AAKKD,0BAAU,OAAV,IAAqBG,KAArB,IACD,8BAAC,2BAAD,2BAAmB,MAAM,OAAzB,IAAsCL,cAAcY,YAAd,CAA2BP,KAAjE,EAA4EA,KAA5E,EANJ;AAQKH,0BAAU,OAAV,IAAqBI,K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OsB,oBAAUK,MANE;AAOnBI,kBAAUT,oBAAUK;AAPD,KAAhB,CAPQ;AAgBfzB,WAAOoB,oBAAUE,KAAV,CAAgB;AACnBb,qBAAYW,oBAAUM,IADH;AAEnBd,cAAMQ,oBAAUI,MAFG;AAGnBd,qBAAaU,oBAAUI,MAHJ;AAInBG,iBAASP,oBAAUQ,IAJA;AAKnBjB,uBAAeS,oBAAUM;AALN,KAAhB,CAhBQ;AAuBfzB,cAAUmB,oBAAUU,IAvBL;AAwBf3B,eAAWiB,oBAAUI,MAxBN;AAyBf1B,WAAOsB,oBAAUK,MAzBF;AA0BfvB,sBAAkBkB,oBAAUK;AA1Bb,C;kBA6DR/B,a","file":"ProgressState.js","sourcesContent":["import React from 'react';\nimport LoadingView from '../loading/loadingContent';\nimport EmptyAndErrorView from './EmptyAndErrorView';\nimport './style.less';\nimport PropTypes from 'prop-types';\n\nclass ProgressState extends React.Component {\n static defaultProps = {\n state: 'show',\n error: {iconVisible:true, buttonTitle: '重试', buttonVisible: true},\n empty: {iconVisible:true, info: '哎呀, 这里空空的什么都没有', buttonTitle: '刷新', buttonVisible: true},\n };\n\n static defaultLoadProps = {\n style:{position:'relative'}\n }\n\n /**\n * 返回 ProgressState, 规则如下:\n * 1. error 优先,如果有error, 则状态为 error\n * 2. 否则如果 loading, 则状态为 load\n * 3. 否则如果 notEmpty, 则状态为 show\n * 4. 否则为 empty\n * @param loading\n * @param notEmptu\n * @param error\n * @returns {*}\n */\n static gotProgressState = (loading, notEmpty, error) => {\n let progressState;\n\n if (error) {\n progressState = 'error';\n }\n else if (loading) {\n progressState = 'load';\n }\n else if (notEmpty) {\n progressState = 'show';\n }\n else {\n progressState = 'empty';\n }\n\n return progressState;\n };\n\n static propTypes = {\n state: PropTypes.oneOf(['wait', 'load', 'show', 'error', 'empty']),\n load: PropTypes.shape({\n text: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n }),\n empty: PropTypes.shape({\n iconVisible:PropTypes.bool,\n info: PropTypes.string,\n buttonTitle: PropTypes.string,\n onClick: PropTypes.func,\n buttonVisible: PropTypes.bool,\n style: PropTypes.object,\n imgStyle: PropTypes.object\n }),\n error: PropTypes.shape({\n iconVisible:PropTypes.bool,\n info: PropTypes.string,\n buttonTitle: PropTypes.string,\n onClick: PropTypes.func,\n buttonVisible: PropTypes.bool\n }),\n children: PropTypes.node,\n className: PropTypes.string,\n style: PropTypes.object,\n stateCommonStyle: PropTypes.object\n };\n\n render() {\n const {\n state,\n load = {style:{}},\n empty = {style:{}},\n error = {style:{}},\n children,\n style,\n stateCommonStyle = {},\n className,\n } = this.props;\n const baseStyle = className ? {} : {height: '100%'};\n empty.style = {...stateCommonStyle,...empty.style};\n error.style = {...stateCommonStyle,...error.style};\n load.style ={...stateCommonStyle,...load.style};\n return (\n <div className={className} style={Object.assign(baseStyle,style)}>\n {children}\n {state === 'load' &&\n <LoadingView {...load}/>\n }\n {state === 'empty' && empty &&\n <EmptyAndErrorView type={'empty'} {...ProgressState.defaultProps.empty} {...empty} />\n }\n {state === 'error' && error &&\n <EmptyAndErrorView type={'error'} {...ProgressState.defaultProps.error} {...error} />\n }\n </div>\n );\n }\n}\n\nexport default ProgressState;\n"]}
|
|
@@ -5183,9 +5183,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5183
5183
|
_react2.default.createElement('div', { className: 'point_bottom' })
|
|
5184
5184
|
);
|
|
5185
5185
|
}) : _react2.default.createElement(_tplusComponentsTouch.ProgressState, {
|
|
5186
|
-
state: "empty"
|
|
5187
|
-
|
|
5188
|
-
|
|
5186
|
+
state: "empty",
|
|
5187
|
+
stateCommonStyle: { 'paddingTop': "30px", backgroundColor: 'transparent' },
|
|
5188
|
+
empty: { buttonVisible: false, imgStyle: { width: '120px', height: '120px' } } })
|
|
5189
5189
|
)
|
|
5190
5190
|
),
|
|
5191
5191
|
currentMode && !currentMode.boriginReturn && _react2.default.createElement(
|