tplus-components-touch 3.34.5 → 3.34.8

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.
@@ -25,4 +25,7 @@
25
25
  font-size: 20px;
26
26
  }
27
27
  }
28
+ .ant-input {
29
+ border: none;
30
+ }
28
31
  }
@@ -120,7 +120,9 @@ var NumKeyboard = (_temp = _class = function (_Component) {
120
120
  _this.getKeyboardIcon = function () {
121
121
  var icon = _this.state.changeKey ? 'jianpan1' : 'jianpan2';
122
122
 
123
- return _react2.default.createElement(_index.Ticon, { className: 'keyboard-icon', type: icon, style: { color: '#999' }, onClick: _this.onShowKeyBoard });
123
+ return _react2.default.createElement(_index.Ticon, { className: 'keyboard-icon', type: icon, style: { color: '#999' }, onMouseDown: function onMouseDown(e) {
124
+ return e.preventDefault();
125
+ }, onClick: _this.onShowKeyBoard });
124
126
  };
125
127
 
126
128
  _this.state = {
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-components-touch/components/keyboard/numKeyboardScan.js"],"names":["NumKeyboard","props","setStateValue","value","fn","setState","onChange","getShowValue","name","inputChange","e","test","target","onBlur","Keyboard","close","onFocus","input","select","open","v","newValue","getNewValue","blur","changeKey","onShowKeyBoard","state","focus","undefined","getKeyboardIcon","icon","color","platform","isHorizontalPad","isMobileEnvironment","defaultValue","bordered","className","inputClassName","_props","trigger","popClassName","onIconClick","precisionLength","maxLength","Component","propTypes","PropTypes","func","string","bool","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;AACA;;AAEA;;;;;;IAEqBA,W;;;AAgBnB,uBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AAAA,UAgBnBC,aAhBmB,GAgBH,UAACC,KAAD,EAAQC,EAAR,EAAe;AAC7B,YAAKC,QAAL,CAAc;AACZF,eAAOA;AADK,OAAd,EAEG,YAAM;AACP,YAAI,MAAKF,KAAL,CAAWK,QAAf,EAAyB;AAC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ADC,WACDA,QADC;AAAA,sCACSC,SADT;AAAA,UACSA,SADT,qCACqB,EADrB;AAAA,0CACyBC,cADzB;AAAA,UACyBA,cADzB,yCACwC,EADxC;;AAEP,UAAIC,oCAAa,KAAKtC,KAAlB,CAAJ;AACA,aAAOsC,OAAOH,QAAd;AACA,aAAOG,OAAOC,OAAd;AACA,aAAOD,OAAOF,SAAd;AACA,aAAOE,OAAOE,YAAd;AACA,aAAOF,OAAOT,IAAd;AACA,aAAOS,OAAOG,WAAd;AACA,aAAOH,OAAOD,cAAd;AACA,aAAOC,OAAOI,eAAd;AACA,aAAOJ,OAAOK,SAAd;AACA,UAAIzC,QAAQ,KAAKI,YAAL,EAAZ;AACA,aACE;AAAA;AAAA,UAAK,6DAA0D,CAAC6B,QAAD,GAAY,aAAZ,GAA4B,EAAtF,UAA4FC,SAAjG;AACM,gFAAO,MAAK;AAAZ,WACIE,MADJ;AAEA,qBAAcD,cAAd,oBAFA;AAGA,mBAAS,KAAKtB,OAHd;AAIA,oBAAU,KAAKP,WAJf;AAKA,kBAAQ,KAAKI,MALb;AAMA,iBAAOV,KANP;AAOA,eAAK;AAAA,mBAAS,OAAKc,KAAL,GAAaA,KAAtB;AAAA,WAPL;AAQA,sBAAY,KAAKiB;AACjB;AATA,WADN;AAaQ,SAAC,KAAKA,mBAAN,IAA6B,KAAKL,eAAL;AAbrC,OADF;AAkBD;;;EA9HsCgB,gB,UAEhCC,S,GAAY;AACjBxC,YAAUyC,oBAAUC,IADH;AAEjBlB,QAAMiB,oBAAUE,MAFC;AAGjBb,YAAUW,oBAAUG,IAHH,EAGS;AAC1BT,gBAAcM,oBAAUE,MAJP,EAIe;AAChCP,eAAaK,oBAAUC;AALN,C,SAQZG,Y,GAAe;AACpBX,WAAS,OADW;AAEpBJ,YAAU,KAFU;AAGpBN,QAAM;AAHc,C;kBAVH9B,W","file":"numKeyboardScan.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { Input } from 'antd';\r\nimport { platform } from 'mutants-util';\r\nimport { Ticon, Keyboard } from '../../index';\r\n\r\nimport PropTypes from 'prop-types';\r\n\r\nexport default class NumKeyboard extends Component {\r\n\r\n static propTypes = {\r\n onChange: PropTypes.func,\r\n icon: PropTypes.string,\r\n bordered: PropTypes.bool, // 是否要 通过 icon 来触发键盘弹出\r\n popClassName: PropTypes.string, // 键盘弹出框的 className\r\n onIconClick: PropTypes.func\r\n }\r\n\r\n static defaultProps = {\r\n trigger: 'click',\r\n bordered: false,\r\n icon: 'jianpan'\r\n }\r\n\r\n constructor(props) {\r\n super();\r\n this.state = {\r\n value: props.value || '',\r\n changeKey: false\r\n }\r\n const { isHorizontalPad } = platform || {};\r\n this.isMobileEnvironment = !!isHorizontalPad;\r\n }\r\n\r\n componentDidMount() {\r\n this.setState({\r\n value: this.props.defaultValue || ''\r\n })\r\n }\r\n\r\n setStateValue = (value, fn) => {\r\n this.setState({\r\n value: value\r\n }, () => {\r\n if (this.props.onChange) {\r\n this.props.onChange(this.getShowValue(), this.props.name);\r\n }\r\n if (fn && typeof fn == 'function') fn();\r\n })\r\n }\r\n\r\n inputChange = (e) => {\r\n if(/^[\\d\\w]+$/.test(e.target.value)){\r\n this.setStateValue(e.target.value)\r\n }\r\n if (e.target.value === \"\") {\r\n this.setStateValue('')\r\n }\r\n }\r\n onBlur = () => {\r\n Keyboard.close()\r\n }\r\n onFocus = () => {\r\n this.props.onFocus&&this.props.onFocus();\r\n this.input.input.select()\r\n Keyboard.open((v) => {\r\n if (/^[\\d\\w]+$/.test(v)) {\r\n let newValue = Keyboard.getNewValue(this.input.input, this.getShowValue(), v);\r\n this.setStateValue(newValue);\r\n }\r\n }, () => {\r\n this.input.input.blur()\r\n this.setState({ changeKey: false })\r\n }, () => {\r\n this.input.input.blur()\r\n this.setState({ changeKey: false })\r\n })()\r\n this.setState({ changeKey: true })\r\n }\r\n\r\n onShowKeyBoard = () => {\r\n const { changeKey } = this.state\r\n if (this.state.changeKey) {\r\n this.input.input.blur()\r\n this.setState({ changeKey: false })\r\n } else {\r\n this.input.input.focus();\r\n this.input.input.select()\r\n }\r\n }\r\n\r\n getShowValue = () => {\r\n return this.props.value === undefined ? this.state.value : this.props.value;\r\n }\r\n\r\n getKeyboardIcon = () => {\r\n let icon = (this.state.changeKey ? 'jianpan1' : 'jianpan2');\r\n\r\n return (\r\n <Ticon className='keyboard-icon' type={icon} style={{ color: '#999'}} onClick={this.onShowKeyBoard} />\r\n )\r\n }\r\n\r\n render() {\r\n let { bordered, className = '', inputClassName='' } = this.props;\r\n let _props = {...this.props};\r\n delete _props.bordered;\r\n delete _props.trigger;\r\n delete _props.className;\r\n delete _props.popClassName;\r\n delete _props.icon;\r\n delete _props.onIconClick;\r\n delete _props.inputClassName;\r\n delete _props.precisionLength;\r\n delete _props.maxLength;\r\n let value = this.getShowValue();\r\n return (\r\n <div className={`keyboard number-keyboard keybord-icon-focus ${!bordered ? 'no-bordered' : ''} ${className}`}>\r\n <Input type=\"text\"\r\n {..._props}\r\n className={`${inputClassName} keyboard-input`}\r\n onFocus={this.onFocus}\r\n onChange={this.inputChange}\r\n onBlur={this.onBlur}\r\n value={value}\r\n ref={input => this.input = input}\r\n allowClear={this.isMobileEnvironment}\r\n // suffix={!this.isMobileEnvironment && this.getKeyboardIcon()}\r\n />\r\n {\r\n !this.isMobileEnvironment && this.getKeyboardIcon()\r\n }\r\n </div>\r\n )\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["tplus-components-touch/components/keyboard/numKeyboardScan.js"],"names":["NumKeyboard","props","setStateValue","value","fn","setState","onChange","getShowValue","name","inputChange","e","test","target","onBlur","Keyboard","close","onFocus","input","select","open","v","newValue","getNewValue","blur","changeKey","onShowKeyBoard","state","focus","undefined","getKeyboardIcon","icon","color","preventDefault","platform","isHorizontalPad","isMobileEnvironment","defaultValue","bordered","className","inputClassName","_props","trigger","popClassName","onIconClick","precisionLength","maxLength","Component","propTypes","PropTypes","func","string","bool","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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S,GAAY;AACjBzC,YAAU0C,oBAAUC,IADH;AAEjBnB,QAAMkB,oBAAUE,MAFC;AAGjBb,YAAUW,oBAAUG,IAHH,EAGS;AAC1BT,gBAAcM,oBAAUE,MAJP,EAIe;AAChCP,eAAaK,oBAAUC;AALN,C,SAQZG,Y,GAAe;AACpBX,WAAS,OADW;AAEpBJ,YAAU,KAFU;AAGpBP,QAAM;AAHc,C;kBAVH9B,W","file":"numKeyboardScan.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { Input } from 'antd';\r\nimport { platform } from 'mutants-util';\r\nimport { Ticon, Keyboard } from '../../index';\r\n\r\nimport PropTypes from 'prop-types';\r\n\r\nexport default class NumKeyboard extends Component {\r\n\r\n static propTypes = {\r\n onChange: PropTypes.func,\r\n icon: PropTypes.string,\r\n bordered: PropTypes.bool, // 是否要 通过 icon 来触发键盘弹出\r\n popClassName: PropTypes.string, // 键盘弹出框的 className\r\n onIconClick: PropTypes.func\r\n }\r\n\r\n static defaultProps = {\r\n trigger: 'click',\r\n bordered: false,\r\n icon: 'jianpan'\r\n }\r\n\r\n constructor(props) {\r\n super();\r\n this.state = {\r\n value: props.value || '',\r\n changeKey: false\r\n }\r\n const { isHorizontalPad } = platform || {};\r\n this.isMobileEnvironment = !!isHorizontalPad;\r\n }\r\n\r\n componentDidMount() {\r\n this.setState({\r\n value: this.props.defaultValue || ''\r\n })\r\n }\r\n\r\n setStateValue = (value, fn) => {\r\n this.setState({\r\n value: value\r\n }, () => {\r\n if (this.props.onChange) {\r\n this.props.onChange(this.getShowValue(), this.props.name);\r\n }\r\n if (fn && typeof fn == 'function') fn();\r\n })\r\n }\r\n\r\n inputChange = (e) => {\r\n if(/^[\\d\\w]+$/.test(e.target.value)){\r\n this.setStateValue(e.target.value)\r\n }\r\n if (e.target.value === \"\") {\r\n this.setStateValue('')\r\n }\r\n }\r\n onBlur = () => {\r\n Keyboard.close()\r\n }\r\n onFocus = () => {\r\n this.props.onFocus&&this.props.onFocus();\r\n this.input.input.select()\r\n Keyboard.open((v) => {\r\n if (/^[\\d\\w]+$/.test(v)) {\r\n let newValue = Keyboard.getNewValue(this.input.input, this.getShowValue(), v);\r\n this.setStateValue(newValue);\r\n }\r\n }, () => {\r\n this.input.input.blur()\r\n this.setState({ changeKey: false })\r\n }, () => {\r\n this.input.input.blur()\r\n this.setState({ changeKey: false })\r\n })()\r\n this.setState({ changeKey: true })\r\n }\r\n\r\n onShowKeyBoard = () => {\r\n const { changeKey } = this.state\r\n if (this.state.changeKey) {\r\n this.input.input.blur()\r\n this.setState({ changeKey: false })\r\n } else {\r\n this.input.input.focus();\r\n this.input.input.select()\r\n }\r\n }\r\n\r\n getShowValue = () => {\r\n return this.props.value === undefined ? this.state.value : this.props.value;\r\n }\r\n\r\n getKeyboardIcon = () => {\r\n let icon = (this.state.changeKey ? 'jianpan1' : 'jianpan2');\r\n\r\n return (\r\n <Ticon className='keyboard-icon' type={icon} style={{ color: '#999'}} onMouseDown={e => e.preventDefault()} onClick={this.onShowKeyBoard} />\r\n )\r\n }\r\n\r\n render() {\r\n let { bordered, className = '', inputClassName='' } = this.props;\r\n let _props = {...this.props};\r\n delete _props.bordered;\r\n delete _props.trigger;\r\n delete _props.className;\r\n delete _props.popClassName;\r\n delete _props.icon;\r\n delete _props.onIconClick;\r\n delete _props.inputClassName;\r\n delete _props.precisionLength;\r\n delete _props.maxLength;\r\n let value = this.getShowValue();\r\n return (\r\n <div className={`keyboard number-keyboard keybord-icon-focus ${!bordered ? 'no-bordered' : ''} ${className}`}>\r\n <Input type=\"text\"\r\n {..._props}\r\n className={`${inputClassName} keyboard-input`}\r\n onFocus={this.onFocus}\r\n onChange={this.inputChange}\r\n onBlur={this.onBlur}\r\n value={value}\r\n ref={input => this.input = input}\r\n allowClear={this.isMobileEnvironment}\r\n // suffix={!this.isMobileEnvironment && this.getKeyboardIcon()}\r\n />\r\n {\r\n !this.isMobileEnvironment && this.getKeyboardIcon()\r\n }\r\n </div>\r\n )\r\n }\r\n}\r\n"]}
@@ -2916,6 +2916,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2916
2916
  id: 'paymentAmount',
2917
2917
  className: 'content',
2918
2918
  type: 'text',
2919
+ bordered: true,
2919
2920
  placeholder: '\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D',
2920
2921
  disabled: paymode.value < 0,
2921
2922
  defaultValue: that.getXianjinPayment(paymode.paymentType, paymode.value),
@@ -3762,7 +3763,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3762
3763
  title: '\u590D\u5408\u7ED3\u7B97',
3763
3764
  width: '600px',
3764
3765
  placement: 'right',
3765
- maskClosable: false,
3766
+ maskClosable: true,
3766
3767
  closable: false,
3767
3768
  onClose: this.handleCancel,
3768
3769
  visible: this.state.visible,
@@ -4019,7 +4020,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4019
4020
  title: '\u590D\u5408\u7ED3\u7B97',
4020
4021
  width: '600px',
4021
4022
  placement: 'right',
4022
- maskClosable: false,
4023
+ maskClosable: true,
4023
4024
  closable: false,
4024
4025
  onClose: this.handleCancel,
4025
4026
  visible: this.state.visible,