tplus-components-touch 3.45.1 → 3.46.1
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/billSearch/index.js +2 -2
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +2 -2
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/index.js +893 -608
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +184 -48
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/cloudPrint/printTemplate/dialy_one.json +239 -0
- package/dist/components/cloudPrint/printTemplate/duty_one.json +239 -0
- package/dist/components/cloudPrint/printTemplate/retail_one.json +204 -0
- package/dist/components/cloudPrint/printTemplate/retail_two.json +220 -0
- package/dist/components/cloudPrint/printTemplate/storage_one.json +129 -0
- package/dist/components/cloudPrint/printTemplate/template.js +52 -0
- package/dist/components/cloudPrint/printTemplate/template.js.map +1 -0
- package/dist/components/commonForm/addressPicker/index.js +241 -0
- package/dist/components/commonForm/addressPicker/index.js.map +1 -0
- package/dist/components/commonForm/autoComplete/index.js +260 -0
- package/dist/components/commonForm/autoComplete/index.js.map +1 -0
- package/dist/components/commonForm/datePicker/index.js +92 -0
- package/dist/components/commonForm/datePicker/index.js.map +1 -0
- package/dist/components/commonForm/formControl/index.js +144 -0
- package/dist/components/commonForm/formControl/index.js.map +1 -0
- package/dist/components/commonForm/inputNumber/index.js +272 -0
- package/dist/components/commonForm/inputNumber/index.js.map +1 -0
- package/dist/components/commonForm/radio/index.js +132 -0
- package/dist/components/commonForm/radio/index.js.map +1 -0
- package/dist/components/hardwareAPI/index.js +46 -12
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/input/tplusInput/index.js +81 -0
- package/dist/components/input/tplusInput/index.js.map +1 -0
- package/dist/components/input/tplusInput/inputContent.js +128 -0
- package/dist/components/input/tplusInput/inputContent.js.map +1 -0
- package/dist/components/input/tplusInput/inputs.js +151 -0
- package/dist/components/input/tplusInput/inputs.js.map +1 -0
- package/dist/components/input/utils/index.js +26 -0
- package/dist/components/input/utils/index.js.map +1 -0
- package/dist/components/message/index.js +4 -3
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/modalWraper/index.js +1 -16
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +0 -6
- package/dist/components/settlement/asyncModal.js +1 -4
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/index.js +156 -0
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
- package/dist/components/settlement/prototypeTable/index.js +353 -0
- package/dist/components/settlement/prototypeTable/index.js.map +1 -0
- package/dist/components/settlement/prototypeTable/utils.js +14 -0
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -0
- package/dist/components/settlement/settlement.js +225 -292
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +0 -3
- package/dist/components/settlement/settlementStore.js +2820 -0
- package/dist/components/settlement/settlementStore.js.map +1 -0
- package/dist/components/settlement/utils.js +249 -0
- package/dist/components/settlement/utils.js.map +1 -0
- package/dist/components/socket/index.js +221 -0
- package/dist/components/socket/index.js.map +1 -0
- package/dist/components/spin/index.js +95 -0
- package/dist/components/spin/index.js.map +1 -0
- package/dist/components/test/index.js +330 -0
- package/dist/components/test/index.js.map +1 -0
- package/dist/components/ticon/iconfont/iconfont.js +35 -0
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -0
- package/dist/components/ticon/index.js +60 -0
- package/dist/components/ticon/index.js.map +1 -0
- package/dist/components/touchScroll/index.js +186 -0
- package/dist/components/touchScroll/index.js.map +1 -0
- package/dist/components/touchTable/AuthProcess.js +42 -0
- package/dist/components/touchTable/AuthProcess.js.map +1 -0
- package/dist/components/touchTable/generateWater.js +59 -0
- package/dist/components/touchTable/generateWater.js.map +1 -0
- package/dist/components/touchTable/index.js +1135 -0
- package/dist/components/touchTable/index.js.map +1 -0
- package/dist/components/touchTable/utils.js +14 -0
- package/dist/components/touchTable/utils.js.map +1 -0
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/settlement/settlementApi.js +0 -512
- package/dist/components/settlement/settlementApi.js.map +0 -1
@@ -0,0 +1,330 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = undefined;
|
7
|
+
|
8
|
+
var _input = require('antd/es/input');
|
9
|
+
|
10
|
+
var _input2 = _interopRequireDefault(_input);
|
11
|
+
|
12
|
+
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
13
|
+
|
14
|
+
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
15
|
+
|
16
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
17
|
+
|
18
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
19
|
+
|
20
|
+
var _createClass2 = require('babel-runtime/helpers/createClass');
|
21
|
+
|
22
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
23
|
+
|
24
|
+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
25
|
+
|
26
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
27
|
+
|
28
|
+
var _inherits2 = require('babel-runtime/helpers/inherits');
|
29
|
+
|
30
|
+
var _inherits3 = _interopRequireDefault(_inherits2);
|
31
|
+
|
32
|
+
require('antd/es/input/style');
|
33
|
+
|
34
|
+
var _react = require('react');
|
35
|
+
|
36
|
+
var _react2 = _interopRequireDefault(_react);
|
37
|
+
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
39
|
+
|
40
|
+
var A = function (_Component) {
|
41
|
+
(0, _inherits3.default)(A, _Component);
|
42
|
+
|
43
|
+
function A(props) {
|
44
|
+
(0, _classCallCheck3.default)(this, A);
|
45
|
+
|
46
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, (A.__proto__ || (0, _getPrototypeOf2.default)(A)).call(this, props));
|
47
|
+
|
48
|
+
_this.onChange = function (e) {
|
49
|
+
_this.setState({
|
50
|
+
value: e
|
51
|
+
});
|
52
|
+
_this.props.onChange(e);
|
53
|
+
};
|
54
|
+
|
55
|
+
_this.state = {
|
56
|
+
value: ''
|
57
|
+
};
|
58
|
+
return _this;
|
59
|
+
}
|
60
|
+
|
61
|
+
(0, _createClass3.default)(A, [{
|
62
|
+
key: 'render',
|
63
|
+
value: function render() {
|
64
|
+
return _react2.default.createElement(_input2.default, { onChange: this.onChange, value: this.props.value });
|
65
|
+
}
|
66
|
+
}]);
|
67
|
+
return A;
|
68
|
+
}(_react.Component); // import React, { Component } from 'react';
|
69
|
+
|
70
|
+
|
71
|
+
// class Test extends Component {
|
72
|
+
// state = {
|
73
|
+
// show: false
|
74
|
+
// }
|
75
|
+
// onFocus = () => {
|
76
|
+
// console.log('focus')
|
77
|
+
// this.setState({
|
78
|
+
// show: true
|
79
|
+
// })
|
80
|
+
// }
|
81
|
+
// onBlur = () => {
|
82
|
+
// console.log('blur')
|
83
|
+
// this.setState({
|
84
|
+
// show: false
|
85
|
+
// })
|
86
|
+
// }
|
87
|
+
// onHide = (visible) => {
|
88
|
+
// this.setState({
|
89
|
+
// show: visible
|
90
|
+
// })
|
91
|
+
// }
|
92
|
+
// render() {
|
93
|
+
// let content = (
|
94
|
+
// <div>
|
95
|
+
// <h3>消息</h3>
|
96
|
+
// <ul>
|
97
|
+
// <li>您的服务器已宕机,请处理。</li>
|
98
|
+
// <li>您的手机已停机,请续费。</li>
|
99
|
+
// <li>你的工资已到账,请查收。</li>
|
100
|
+
// </ul>
|
101
|
+
// </div>
|
102
|
+
// );
|
103
|
+
// return (
|
104
|
+
// <Popover
|
105
|
+
// placement="topLeft"
|
106
|
+
// show={this.state.show}
|
107
|
+
// onHide={this.onHide}
|
108
|
+
// content={content}>
|
109
|
+
|
110
|
+
// <FormControl type='text' onFocus={this.onFocus} onBlur={this.onBlur} />
|
111
|
+
// </Popover>
|
112
|
+
// )
|
113
|
+
// }
|
114
|
+
// }
|
115
|
+
// export default Test;
|
116
|
+
|
117
|
+
// import React, {Component} from 'react';
|
118
|
+
|
119
|
+
|
120
|
+
// class Test extends Component {
|
121
|
+
// constructor(props) {
|
122
|
+
// super(props);
|
123
|
+
// this.state = {
|
124
|
+
// show: false
|
125
|
+
// }
|
126
|
+
// }
|
127
|
+
// handleClose = () => {
|
128
|
+
// this.setState({
|
129
|
+
// show: false
|
130
|
+
// })
|
131
|
+
// }
|
132
|
+
// show = () => {
|
133
|
+
// this.setState({
|
134
|
+
// show: true
|
135
|
+
// })
|
136
|
+
// }
|
137
|
+
// onHide = (visible) => {
|
138
|
+
// this.setState({
|
139
|
+
// show: visible
|
140
|
+
// })
|
141
|
+
// }
|
142
|
+
// render() {
|
143
|
+
// let content = (
|
144
|
+
// <div>
|
145
|
+
// <Button
|
146
|
+
// colors="primary"
|
147
|
+
// onClick={ this.handleClose }
|
148
|
+
// size="sm">
|
149
|
+
// 关闭
|
150
|
+
// </Button>
|
151
|
+
// </div>
|
152
|
+
// )
|
153
|
+
// return (
|
154
|
+
// <div>
|
155
|
+
// <Popover
|
156
|
+
// id="demo2"
|
157
|
+
// placement="right"
|
158
|
+
// title={<h3>请确认您的包裹已签收!</h3>}
|
159
|
+
// content={content}
|
160
|
+
// show={this.state.show}
|
161
|
+
// onHide={this.onHide}
|
162
|
+
// >
|
163
|
+
// {/* <Button
|
164
|
+
// colors="primary"
|
165
|
+
// onClick={ this.show }
|
166
|
+
// >确认按钮</Button> */}
|
167
|
+
// <FormControl type='text' onFocus={this.show} />
|
168
|
+
// </Popover>
|
169
|
+
// </div>
|
170
|
+
// )
|
171
|
+
// }
|
172
|
+
// }
|
173
|
+
|
174
|
+
// export default Test;
|
175
|
+
|
176
|
+
// /**
|
177
|
+
// *
|
178
|
+
// * @title 拖拽改变列宽度
|
179
|
+
// * @parent 列操作-拖拽 Drag
|
180
|
+
// * @description onDropBorder方法为调整列宽后触发的回调函数。注:不支持tree结构的表头、合并表头的table。
|
181
|
+
// * demo1002
|
182
|
+
// */
|
183
|
+
// import React, { Component } from 'react';
|
184
|
+
|
185
|
+
// const columns23 = [
|
186
|
+
// {
|
187
|
+
// title: "订单编号",
|
188
|
+
// dataIndex: "a",
|
189
|
+
// key: "a",
|
190
|
+
// width: '200',
|
191
|
+
// fixed:'left'
|
192
|
+
// },
|
193
|
+
// {
|
194
|
+
// title: "单据日期",
|
195
|
+
// dataIndex: "b",
|
196
|
+
// key: "b",
|
197
|
+
// width: '600'
|
198
|
+
// },
|
199
|
+
// {
|
200
|
+
// title: "供应商",
|
201
|
+
// dataIndex: "c",
|
202
|
+
// key: "c",
|
203
|
+
// width: '200',
|
204
|
+
// },
|
205
|
+
// {
|
206
|
+
// title: "联系人",
|
207
|
+
// dataIndex: "d",
|
208
|
+
// key: "d",
|
209
|
+
// width: 500,
|
210
|
+
// }
|
211
|
+
// ];
|
212
|
+
|
213
|
+
// const data23 = [
|
214
|
+
// { a: "NU0391001", b: "2019-03-01", c: "xx供应商",d:'Tom', key: "2" },
|
215
|
+
// { a: "NU0391002", b: "2018-11-02", c: "yy供应商",d:'Jack', key: "1" },
|
216
|
+
// { a: "NU0391003", b: "2019-05-03", c: "zz供应商",d:'Jane', key: "3" }
|
217
|
+
// ];
|
218
|
+
|
219
|
+
// // const DragColumnTable = dragColumn(Table);
|
220
|
+
|
221
|
+
|
222
|
+
// export default class Test extends Component {
|
223
|
+
// constructor(props) {
|
224
|
+
// super(props);
|
225
|
+
// }
|
226
|
+
|
227
|
+
// render() {
|
228
|
+
// return <Table
|
229
|
+
// columns={columns23}
|
230
|
+
// data={data23}
|
231
|
+
// bordered
|
232
|
+
// dragborder={true}
|
233
|
+
// draggable={true}
|
234
|
+
// scroll={{y:200}}
|
235
|
+
// onDropBorder ={(e,width)=>{
|
236
|
+
// console.log(width+"--调整列宽后触发事件",e.target);
|
237
|
+
// }}
|
238
|
+
// />;
|
239
|
+
// }
|
240
|
+
// }
|
241
|
+
|
242
|
+
/**
|
243
|
+
* @title 基本Tooltip
|
244
|
+
* @description trigger 设置显示方式。
|
245
|
+
*/
|
246
|
+
|
247
|
+
// import React, { Component } from 'react';
|
248
|
+
|
249
|
+
|
250
|
+
// export default class Test extends Component {
|
251
|
+
// state = {
|
252
|
+
// visible: false
|
253
|
+
// }
|
254
|
+
|
255
|
+
// onHide = (visible) => {
|
256
|
+
// console.log('onHide', visible);
|
257
|
+
// this.setState({
|
258
|
+
// visible: visible
|
259
|
+
// })
|
260
|
+
// }
|
261
|
+
|
262
|
+
// show = () => {
|
263
|
+
// this.setState({
|
264
|
+
// visible: !this.state.visible
|
265
|
+
// })
|
266
|
+
// }
|
267
|
+
|
268
|
+
// render() {
|
269
|
+
// let tip = (
|
270
|
+
// <div>
|
271
|
+
// 这是一个很强的提醒!
|
272
|
+
// </div>
|
273
|
+
// )
|
274
|
+
|
275
|
+
// return (
|
276
|
+
// <div className="demo-tooltip">
|
277
|
+
// <Tooltip inverse overlay={tip}>
|
278
|
+
// <Button colors="primary">
|
279
|
+
// 鼠标滑过显示
|
280
|
+
// </Button>
|
281
|
+
// </Tooltip>
|
282
|
+
// <Tooltip
|
283
|
+
// trigger="click"
|
284
|
+
// rootClose
|
285
|
+
// placement="bottom"
|
286
|
+
// overlay={tip}
|
287
|
+
// visible={this.state.visible}
|
288
|
+
// onVisibleChange={v => console.log(v)}
|
289
|
+
// onHide={this.onHide}>
|
290
|
+
// <Button style={{ marginLeft: 100 }} colors="primary" onClick={this.show}>
|
291
|
+
// 点击显示
|
292
|
+
// </Button>
|
293
|
+
// </Tooltip>
|
294
|
+
// </div>
|
295
|
+
// )
|
296
|
+
// }
|
297
|
+
// }
|
298
|
+
|
299
|
+
|
300
|
+
var Test = function (_Component2) {
|
301
|
+
(0, _inherits3.default)(Test, _Component2);
|
302
|
+
|
303
|
+
function Test(props) {
|
304
|
+
(0, _classCallCheck3.default)(this, Test);
|
305
|
+
|
306
|
+
var _this2 = (0, _possibleConstructorReturn3.default)(this, (Test.__proto__ || (0, _getPrototypeOf2.default)(Test)).call(this, props));
|
307
|
+
|
308
|
+
_this2.onChange = function (e) {
|
309
|
+
_this2.setState({
|
310
|
+
value: e
|
311
|
+
});
|
312
|
+
};
|
313
|
+
|
314
|
+
_this2.state = {
|
315
|
+
value: ''
|
316
|
+
};
|
317
|
+
return _this2;
|
318
|
+
}
|
319
|
+
|
320
|
+
(0, _createClass3.default)(Test, [{
|
321
|
+
key: 'render',
|
322
|
+
value: function render() {
|
323
|
+
return _react2.default.createElement(A, { value: this.state.value, onChange: this.onChange });
|
324
|
+
}
|
325
|
+
}]);
|
326
|
+
return Test;
|
327
|
+
}(_react.Component);
|
328
|
+
|
329
|
+
exports.default = Test;
|
330
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/test/index.js"],"names":["A","props","onChange","e","setState","value","state","Component","Test"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+OA;;;;;;IAEOA,C;;;AAEL,aAAYC,KAAZ,EAAmB;AAAA;;AAAA,4HACXA,KADW;;AAAA,UAOnBC,QAPmB,GAOR,UAACC,CAAD,EAAO;AAChB,YAAKC,QAAL,CAAc;AACZC,eAAOF;AADK,OAAd;AAGA,YAAKF,KAAL,CAAWC,QAAX,CAAoBC,CAApB;AACD,KAZkB;;AAEjB,UAAKG,KAAL,GAAa;AACXD,aAAO;AADI,KAAb;AAFiB;AAKlB;;;;6BASQ;AACP,aACE,iDAAO,UAAU,KAAKH,QAAtB,EAAgC,OAAO,KAAKD,KAAL,CAAWI,KAAlD,GADF;AAGD;;;EApBcE,gB,GAjPjB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;AAIA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;AAMA;;;AAIA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;IAgCqBC,I;;;AAEnB,gBAAYP,KAAZ,EAAmB;AAAA;;AAAA,mIACXA,KADW;;AAAA,WAMnBC,QANmB,GAMR,UAACC,CAAD,EAAO;AAChB,aAAKC,QAAL,CAAc;AACZC,eAAOF;AADK,OAAd;AAGD,KAVkB;;AAEjB,WAAKG,KAAL,GAAa;AACXD,aAAO;AADI,KAAb;AAFiB;AAKlB;;;;6BAMQ;AACP,aACE,8BAAC,CAAD,IAAG,OAAO,KAAKC,KAAL,CAAWD,KAArB,EAA4B,UAAU,KAAKH,QAA3C,GADF;AAGD;;;EAjB+BK,gB;;kBAAbC,I","file":"index.js","sourcesContent":["// import React, { Component } from 'react';\r\n\r\n\r\n// class Test extends Component {\r\n// state = {\r\n// show: false\r\n// }\r\n// onFocus = () => {\r\n// console.log('focus')\r\n// this.setState({\r\n// show: true\r\n// })\r\n// }\r\n// onBlur = () => {\r\n// console.log('blur')\r\n// this.setState({\r\n// show: false\r\n// })\r\n// }\r\n// onHide = (visible) => {\r\n// this.setState({\r\n// show: visible\r\n// })\r\n// }\r\n// render() {\r\n// let content = (\r\n// <div>\r\n// <h3>消息</h3>\r\n// <ul>\r\n// <li>您的服务器已宕机,请处理。</li>\r\n// <li>您的手机已停机,请续费。</li>\r\n// <li>你的工资已到账,请查收。</li>\r\n// </ul>\r\n// </div>\r\n// );\r\n// return (\r\n// <Popover\r\n// placement=\"topLeft\"\r\n// show={this.state.show}\r\n// onHide={this.onHide}\r\n// content={content}>\r\n\r\n// <FormControl type='text' onFocus={this.onFocus} onBlur={this.onBlur} />\r\n// </Popover>\r\n// )\r\n// }\r\n// }\r\n// export default Test;\r\n\r\n// import React, {Component} from 'react';\r\n\r\n\r\n// class Test extends Component {\r\n// constructor(props) {\r\n// super(props);\r\n// this.state = {\r\n// show: false\r\n// }\r\n// }\r\n// handleClose = () => {\r\n// this.setState({\r\n// show: false\r\n// })\r\n// }\r\n// show = () => {\r\n// this.setState({\r\n// show: true\r\n// })\r\n// }\r\n// onHide = (visible) => {\r\n// this.setState({\r\n// show: visible\r\n// })\r\n// }\r\n// render() {\r\n// let content = (\r\n// <div>\r\n// <Button\r\n// colors=\"primary\"\r\n// onClick={ this.handleClose }\r\n// size=\"sm\">\r\n// 关闭\r\n// </Button>\r\n// </div>\r\n// )\r\n// return (\r\n// <div>\r\n// <Popover\r\n// id=\"demo2\"\r\n// placement=\"right\"\r\n// title={<h3>请确认您的包裹已签收!</h3>}\r\n// content={content}\r\n// show={this.state.show}\r\n// onHide={this.onHide}\r\n// >\r\n// {/* <Button\r\n// colors=\"primary\"\r\n// onClick={ this.show }\r\n// >确认按钮</Button> */}\r\n// <FormControl type='text' onFocus={this.show} />\r\n// </Popover>\r\n// </div>\r\n// )\r\n// }\r\n// }\r\n\r\n// export default Test;\r\n\r\n// /**\r\n// *\r\n// * @title 拖拽改变列宽度\r\n// * @parent 列操作-拖拽 Drag\r\n// * @description onDropBorder方法为调整列宽后触发的回调函数。注:不支持tree结构的表头、合并表头的table。\r\n// * demo1002\r\n// */\r\n// import React, { Component } from 'react';\r\n\r\n// const columns23 = [\r\n// {\r\n// title: \"订单编号\",\r\n// dataIndex: \"a\",\r\n// key: \"a\",\r\n// width: '200',\r\n// fixed:'left'\r\n// },\r\n// {\r\n// title: \"单据日期\",\r\n// dataIndex: \"b\",\r\n// key: \"b\",\r\n// width: '600'\r\n// },\r\n// {\r\n// title: \"供应商\",\r\n// dataIndex: \"c\",\r\n// key: \"c\",\r\n// width: '200',\r\n// },\r\n// {\r\n// title: \"联系人\",\r\n// dataIndex: \"d\",\r\n// key: \"d\",\r\n// width: 500,\r\n// }\r\n// ];\r\n\r\n// const data23 = [\r\n// { a: \"NU0391001\", b: \"2019-03-01\", c: \"xx供应商\",d:'Tom', key: \"2\" },\r\n// { a: \"NU0391002\", b: \"2018-11-02\", c: \"yy供应商\",d:'Jack', key: \"1\" },\r\n// { a: \"NU0391003\", b: \"2019-05-03\", c: \"zz供应商\",d:'Jane', key: \"3\" }\r\n// ];\r\n\r\n// // const DragColumnTable = dragColumn(Table);\r\n\r\n\r\n\r\n// export default class Test extends Component {\r\n// constructor(props) {\r\n// super(props);\r\n// }\r\n\r\n// render() {\r\n// return <Table\r\n// columns={columns23}\r\n// data={data23}\r\n// bordered\r\n// dragborder={true}\r\n// draggable={true}\r\n// scroll={{y:200}}\r\n// onDropBorder ={(e,width)=>{\r\n// console.log(width+\"--调整列宽后触发事件\",e.target);\r\n// }}\r\n// />;\r\n// }\r\n// }\r\n\r\n/**\r\n * @title 基本Tooltip\r\n * @description trigger 设置显示方式。\r\n */\r\n\r\n\r\n// import React, { Component } from 'react';\r\n\r\n\r\n\r\n// export default class Test extends Component {\r\n// state = {\r\n// visible: false\r\n// }\r\n\r\n// onHide = (visible) => {\r\n// console.log('onHide', visible);\r\n// this.setState({\r\n// visible: visible\r\n// })\r\n// }\r\n\r\n// show = () => {\r\n// this.setState({\r\n// visible: !this.state.visible\r\n// })\r\n// }\r\n\r\n// render() {\r\n// let tip = (\r\n// <div>\r\n// 这是一个很强的提醒!\r\n// \t\t\t</div>\r\n// )\r\n\r\n// return (\r\n// <div className=\"demo-tooltip\">\r\n// <Tooltip inverse overlay={tip}>\r\n// <Button colors=\"primary\">\r\n// 鼠标滑过显示\r\n// \t\t\t\t\t</Button>\r\n// </Tooltip>\r\n// <Tooltip\r\n// trigger=\"click\"\r\n// rootClose\r\n// placement=\"bottom\"\r\n// overlay={tip}\r\n// visible={this.state.visible}\r\n// onVisibleChange={v => console.log(v)}\r\n// onHide={this.onHide}>\r\n// <Button style={{ marginLeft: 100 }} colors=\"primary\" onClick={this.show}>\r\n// 点击显示\r\n// \t\t\t\t\t</Button>\r\n// </Tooltip>\r\n// </div>\r\n// )\r\n// }\r\n// }\r\n\r\n\r\n\r\n\r\n\r\n\r\nimport React, { Component } from 'react';\r\nimport { Input } from 'antd';\r\n class A extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n value: ''\r\n }\r\n }\r\n\r\n onChange = (e) => {\r\n this.setState({\r\n value: e\r\n })\r\n this.props.onChange(e)\r\n }\r\n\r\n render() {\r\n return (\r\n <Input onChange={this.onChange} value={this.props.value} />\r\n )\r\n }\r\n}\r\n\r\nexport default class Test extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n value: ''\r\n }\r\n }\r\n onChange = (e) => {\r\n this.setState({\r\n value: e\r\n })\r\n }\r\n render() {\r\n return (\r\n <A value={this.state.value} onChange={this.onChange} />\r\n )\r\n }\r\n}"]}
|