tplus-components-touch 3.22.15 → 3.22.16
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/package.json +1 -1
- package/dist/components/acCitySelect/CitySelect.js +0 -541
- package/dist/components/acCitySelect/CitySelect.js.map +0 -1
- package/dist/components/acCitySelect/CitySelect.less +0 -10
- package/dist/components/acCitySelect/citys.js +0 -1270
- package/dist/components/acCitySelect/citys.js.map +0 -1
- package/dist/components/acCitySelect/index.js +0 -18
- package/dist/components/acCitySelect/index.js.map +0 -1
- package/dist/components/acCitySelect/provinceData.js +0 -40
- package/dist/components/acCitySelect/provinceData.js.map +0 -1
- package/dist/components/addLog/AddLogProcessor.js +0 -49
- package/dist/components/addLog/AddLogProcessor.js.map +0 -1
- package/dist/components/addLog/OperationLogApi.js +0 -125
- package/dist/components/addLog/OperationLogApi.js.map +0 -1
- package/dist/components/autoComplete/index.js +0 -245
- package/dist/components/autoComplete/index.js.map +0 -1
- package/dist/components/autoComplete/index.less +0 -89
- package/dist/components/autoComplete/option.js +0 -75
- package/dist/components/autoComplete/option.js.map +0 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +0 -231
- package/dist/components/autoCompleteWithKeyboard/index.js.map +0 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +0 -8
- package/dist/components/billSearch/api.js +0 -465
- package/dist/components/billSearch/api.js.map +0 -1
- package/dist/components/billSearch/index.js +0 -2063
- package/dist/components/billSearch/index.js.map +0 -1
- package/dist/components/billSearch/index.less +0 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +0 -568
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +0 -1
- package/dist/components/cloudPrint/api.js +0 -349
- package/dist/components/cloudPrint/api.js.map +0 -1
- package/dist/components/cloudPrint/index.js +0 -674
- package/dist/components/cloudPrint/index.js.map +0 -1
- package/dist/components/cloudPrint/printDispatch.js +0 -223
- package/dist/components/cloudPrint/printDispatch.js.map +0 -1
- package/dist/components/commonForm/addressPicker/index.js +0 -232
- package/dist/components/commonForm/addressPicker/index.js.map +0 -1
- package/dist/components/commonForm/addressPicker/style.less +0 -11
- package/dist/components/commonForm/autoComplete/index.js +0 -241
- package/dist/components/commonForm/autoComplete/index.js.map +0 -1
- package/dist/components/commonForm/autoComplete/style.less +0 -3
- package/dist/components/commonForm/datePicker/index.js +0 -89
- package/dist/components/commonForm/datePicker/index.js.map +0 -1
- package/dist/components/commonForm/datePicker/style.less +0 -5
- package/dist/components/commonForm/formControl/index.js +0 -143
- package/dist/components/commonForm/formControl/index.js.map +0 -1
- package/dist/components/commonForm/formControl/style.less +0 -0
- package/dist/components/commonForm/index.js +0 -225
- package/dist/components/commonForm/index.js.map +0 -1
- package/dist/components/commonForm/inputNumber/index.js +0 -272
- package/dist/components/commonForm/inputNumber/index.js.map +0 -1
- package/dist/components/commonForm/inputNumber/style.less +0 -11
- package/dist/components/commonForm/radio/index.js +0 -132
- package/dist/components/commonForm/radio/index.js.map +0 -1
- package/dist/components/commonForm/radio/style.less +0 -0
- package/dist/components/commonForm/style.less +0 -2
- package/dist/components/deliverySearch/api.js +0 -355
- package/dist/components/deliverySearch/api.js.map +0 -1
- package/dist/components/deliverySearch/index.js +0 -1214
- package/dist/components/deliverySearch/index.js.map +0 -1
- package/dist/components/deliverySearch/index.less +0 -554
- package/dist/components/form/index.js +0 -310
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/hardwareAPI/index.js +0 -181
- package/dist/components/hardwareAPI/index.js.map +0 -1
- package/dist/components/hotKey/config.js +0 -306
- package/dist/components/hotKey/config.js.map +0 -1
- package/dist/components/hotKey/hotKeyModal.js +0 -479
- package/dist/components/hotKey/hotKeyModal.js.map +0 -1
- package/dist/components/hotKey/index.js +0 -785
- package/dist/components/hotKey/index.js.map +0 -1
- package/dist/components/hotKey/localConfig.js +0 -1021
- package/dist/components/hotKey/localConfig.js.map +0 -1
- package/dist/components/hotKey/style.less +0 -96
- package/dist/components/hotKey/utils.js +0 -135
- package/dist/components/hotKey/utils.js.map +0 -1
- package/dist/components/input/index.js +0 -251
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input/style.less +0 -99
- package/dist/components/input/tplusInput/index.js +0 -81
- package/dist/components/input/tplusInput/index.js.map +0 -1
- package/dist/components/input/tplusInput/inputContent.js +0 -128
- package/dist/components/input/tplusInput/inputContent.js.map +0 -1
- package/dist/components/input/tplusInput/inputs.js +0 -151
- package/dist/components/input/tplusInput/inputs.js.map +0 -1
- package/dist/components/input/tplusInput/style.less +0 -132
- package/dist/components/input/utils/index.js +0 -26
- package/dist/components/input/utils/index.js.map +0 -1
- package/dist/components/inventorySearch/api.js +0 -214
- package/dist/components/inventorySearch/api.js.map +0 -1
- package/dist/components/inventorySearch/index.js +0 -303
- package/dist/components/inventorySearch/index.js.map +0 -1
- package/dist/components/inventorySearch/index.less +0 -120
- package/dist/components/inventorySearch/store.js +0 -344
- package/dist/components/inventorySearch/store.js.map +0 -1
- package/dist/components/inventorySearch/tab.js +0 -258
- package/dist/components/inventorySearch/tab.js.map +0 -1
- package/dist/components/keyboard/index.js +0 -255
- package/dist/components/keyboard/index.js.map +0 -1
- package/dist/components/keyboard/index.less +0 -470
- package/dist/components/keyboard/letterKeyboard.js +0 -210
- package/dist/components/keyboard/letterKeyboard.js.map +0 -1
- package/dist/components/keyboard/numKeyboard.js +0 -459
- package/dist/components/keyboard/numKeyboard.js.map +0 -1
- package/dist/components/keyboard/numKeyboardScan.js +0 -195
- package/dist/components/keyboard/numKeyboardScan.js.map +0 -1
- package/dist/components/keyboard/numberButton_input.js +0 -303
- package/dist/components/keyboard/numberButton_input.js.map +0 -1
- package/dist/components/keyboard/numkeyboardPassword.js +0 -460
- package/dist/components/keyboard/numkeyboardPassword.js.map +0 -1
- package/dist/components/keyboard/onlyKeyboard.js +0 -90
- package/dist/components/keyboard/onlyKeyboard.js.map +0 -1
- package/dist/components/keyboard/onlyLetterButton.js +0 -187
- package/dist/components/keyboard/onlyLetterButton.js.map +0 -1
- package/dist/components/keyboard/onlyLetterButton2.js +0 -235
- package/dist/components/keyboard/onlyLetterButton2.js.map +0 -1
- package/dist/components/keyboard/onlyLetterButton2.less +0 -162
- package/dist/components/keyboard/onlyNumberButton.js +0 -128
- package/dist/components/keyboard/onlyNumberButton.js.map +0 -1
- package/dist/components/keyboard/onlyNumberButton2.js +0 -115
- package/dist/components/keyboard/onlyNumberButton2.js.map +0 -1
- package/dist/components/keyboard/textKeyboard.js +0 -50
- package/dist/components/keyboard/textKeyboard.js.map +0 -1
- package/dist/components/layout/hamburger.js +0 -29
- package/dist/components/layout/hamburger.js.map +0 -1
- package/dist/components/layout/index.js +0 -31
- package/dist/components/layout/index.js.map +0 -1
- package/dist/components/layout/layout.js +0 -182
- package/dist/components/layout/layout.js.map +0 -1
- package/dist/components/layout/sider.js +0 -165
- package/dist/components/layout/sider.js.map +0 -1
- package/dist/components/layout/style.less +0 -82
- package/dist/components/loading/index.js +0 -198
- package/dist/components/loading/index.js.map +0 -1
- package/dist/components/loading/loadingContent.js +0 -176
- package/dist/components/loading/loadingContent.js.map +0 -1
- package/dist/components/loading/style.less +0 -61
- package/dist/components/loading/utils.js +0 -29
- package/dist/components/loading/utils.js.map +0 -1
- package/dist/components/message/index.js +0 -308
- package/dist/components/message/index.js.map +0 -1
- package/dist/components/message/index.less +0 -101
- package/dist/components/modal/index.js +0 -93
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/index.less +0 -19
- package/dist/components/modalVertical/index.js +0 -325
- package/dist/components/modalVertical/index.js.map +0 -1
- package/dist/components/modalVertical/style.less +0 -60
- package/dist/components/modalWraper/index.js +0 -470
- package/dist/components/modalWraper/index.js.map +0 -1
- package/dist/components/modalWraper/style.less +0 -257
- package/dist/components/modalWraper/utils.js +0 -48
- package/dist/components/modalWraper/utils.js.map +0 -1
- package/dist/components/notification/index.js +0 -119
- package/dist/components/notification/index.js.map +0 -1
- package/dist/components/notification/index.less +0 -52
- package/dist/components/overflowTip/index.js +0 -269
- package/dist/components/overflowTip/index.js.map +0 -1
- package/dist/components/overflowTip/style.less +0 -66
- package/dist/components/page/index.js +0 -49
- package/dist/components/page/index.js.map +0 -1
- package/dist/components/page/index.less +0 -22
- package/dist/components/product/detail.js +0 -148
- package/dist/components/product/detail.js.map +0 -1
- package/dist/components/product/getCard.js +0 -145
- package/dist/components/product/getCard.js.map +0 -1
- package/dist/components/product/index.less +0 -128
- package/dist/components/progressState/EmptyAndErrorView.js +0 -143
- package/dist/components/progressState/EmptyAndErrorView.js.map +0 -1
- package/dist/components/progressState/ProgressState.js +0 -157
- package/dist/components/progressState/ProgressState.js.map +0 -1
- package/dist/components/progressState/index.js +0 -14
- package/dist/components/progressState/index.js.map +0 -1
- package/dist/components/progressState/style.less +0 -65
- package/dist/components/scan/index.js +0 -219
- package/dist/components/scan/index.js.map +0 -1
- package/dist/components/scan/index.less +0 -34
- package/dist/components/select/index.js +0 -28
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/select/index.less +0 -12
- package/dist/components/settlement/asyncModal.js +0 -204
- package/dist/components/settlement/asyncModal.js.map +0 -1
- package/dist/components/settlement/index.js +0 -16
- package/dist/components/settlement/index.js.map +0 -1
- package/dist/components/settlement/prototypeTable/index.js +0 -349
- package/dist/components/settlement/prototypeTable/index.js.map +0 -1
- package/dist/components/settlement/prototypeTable/style.less +0 -59
- package/dist/components/settlement/prototypeTable/utils.js +0 -14
- package/dist/components/settlement/prototypeTable/utils.js.map +0 -1
- package/dist/components/settlement/settlement.js +0 -5471
- package/dist/components/settlement/settlement.js.map +0 -1
- package/dist/components/settlement/settlement.less +0 -1594
- package/dist/components/settlement/settlementStore.js +0 -2099
- package/dist/components/settlement/settlementStore.js.map +0 -1
- package/dist/components/settlement/utils.js +0 -249
- package/dist/components/settlement/utils.js.map +0 -1
- package/dist/components/socket/index.js +0 -220
- package/dist/components/socket/index.js.map +0 -1
- package/dist/components/spin/index.js +0 -95
- package/dist/components/spin/index.js.map +0 -1
- package/dist/components/spin/spin-style.less +0 -436
- package/dist/components/test/index.js +0 -330
- package/dist/components/test/index.js.map +0 -1
- package/dist/components/ticon/iconfont/demo.css +0 -539
- package/dist/components/ticon/iconfont/demo_index.html +0 -5202
- package/dist/components/ticon/iconfont/iconfont.css +0 -887
- package/dist/components/ticon/iconfont/iconfont.eot +0 -0
- package/dist/components/ticon/iconfont/iconfont.js +0 -35
- package/dist/components/ticon/iconfont/iconfont.js.map +0 -1
- package/dist/components/ticon/iconfont/iconfont.json +0 -1535
- package/dist/components/ticon/iconfont/iconfont.svg +0 -593
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/ticon/index.js +0 -60
- package/dist/components/ticon/index.js.map +0 -1
- package/dist/components/touchScroll/index.js +0 -182
- package/dist/components/touchScroll/index.js.map +0 -1
- package/dist/components/touchTable/AuthProcess.js +0 -42
- package/dist/components/touchTable/AuthProcess.js.map +0 -1
- package/dist/components/touchTable/generateWater.js +0 -59
- package/dist/components/touchTable/generateWater.js.map +0 -1
- package/dist/components/touchTable/index.js +0 -1109
- package/dist/components/touchTable/index.js.map +0 -1
- package/dist/components/touchTable/index.less +0 -370
- package/dist/components/touchTable/utils.js +0 -14
- package/dist/components/touchTable/utils.js.map +0 -1
- package/dist/demo/PopOverDemo.js +0 -126
- package/dist/demo/PopOverDemo.js.map +0 -1
- package/dist/index.js +0 -249
- package/dist/index.js.map +0 -1
- package/dist/util/tools.js +0 -202
- package/dist/util/tools.js.map +0 -1
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _input = require('antd/es/input');
|
|
8
|
-
|
|
9
|
-
var _input2 = _interopRequireDefault(_input);
|
|
10
|
-
|
|
11
|
-
var _select = require('antd/es/select');
|
|
12
|
-
|
|
13
|
-
var _select2 = _interopRequireDefault(_select);
|
|
14
|
-
|
|
15
|
-
var _extends2 = require('babel-runtime/helpers/extends');
|
|
16
|
-
|
|
17
|
-
var _extends3 = _interopRequireDefault(_extends2);
|
|
18
|
-
|
|
19
|
-
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
|
20
|
-
|
|
21
|
-
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
|
22
|
-
|
|
23
|
-
exports.default = Inputs;
|
|
24
|
-
|
|
25
|
-
require('antd/es/input/style');
|
|
26
|
-
|
|
27
|
-
require('antd/es/select/style');
|
|
28
|
-
|
|
29
|
-
var _react = require('react');
|
|
30
|
-
|
|
31
|
-
var _react2 = _interopRequireDefault(_react);
|
|
32
|
-
|
|
33
|
-
var _index = require('../../../index');
|
|
34
|
-
|
|
35
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
36
|
-
|
|
37
|
-
var NativeInput = function NativeInput(props) {
|
|
38
|
-
var placeholder = props.placeholder,
|
|
39
|
-
onChange = props.onChange,
|
|
40
|
-
value = props.value,
|
|
41
|
-
onFocus = props.onFocus,
|
|
42
|
-
onBlur = props.onBlur,
|
|
43
|
-
noAutocomplete = props.noAutocomplete,
|
|
44
|
-
nativeFocus = props.nativeFocus,
|
|
45
|
-
nativeBlur = props.nativeBlur,
|
|
46
|
-
password = props.password,
|
|
47
|
-
_props$disabled = props.disabled,
|
|
48
|
-
disabled = _props$disabled === undefined ? false : _props$disabled,
|
|
49
|
-
className = props.className,
|
|
50
|
-
inputRef = props.inputRef,
|
|
51
|
-
_props$htmlType = props.htmlType,
|
|
52
|
-
htmlType = _props$htmlType === undefined ? 'text' : _props$htmlType,
|
|
53
|
-
_props$size = props.size,
|
|
54
|
-
size = _props$size === undefined ? '' : _props$size,
|
|
55
|
-
onClear = props.onClear,
|
|
56
|
-
prop = (0, _objectWithoutProperties3.default)(props, ['placeholder', 'onChange', 'value', 'onFocus', 'onBlur', 'noAutocomplete', 'nativeFocus', 'nativeBlur', 'password', 'disabled', 'className', 'inputRef', 'htmlType', 'size', 'onClear']);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var handleChange = function handleChange(e) {
|
|
60
|
-
onChange && onChange(e);
|
|
61
|
-
};
|
|
62
|
-
var handleFocus = function handleFocus(e) {
|
|
63
|
-
nativeFocus();
|
|
64
|
-
onFocus && onFocus(e);
|
|
65
|
-
};
|
|
66
|
-
var handleBlur = function handleBlur(e) {
|
|
67
|
-
nativeBlur();
|
|
68
|
-
onBlur && onBlur(e);
|
|
69
|
-
};
|
|
70
|
-
var clearValue = function clearValue(e) {
|
|
71
|
-
onClear && onClear(e);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var classNames = 'tplus-inout-native ' + className;
|
|
75
|
-
switch (size) {
|
|
76
|
-
case 'sm':
|
|
77
|
-
classNames += ' sm';
|
|
78
|
-
break;
|
|
79
|
-
case 'lg':
|
|
80
|
-
classNames += ' lg';
|
|
81
|
-
break;
|
|
82
|
-
default:
|
|
83
|
-
classNames += ' md';
|
|
84
|
-
}
|
|
85
|
-
var isPassword = password ? { type: 'password' } : {};
|
|
86
|
-
return _react2.default.createElement(
|
|
87
|
-
_react.Fragment,
|
|
88
|
-
null,
|
|
89
|
-
!!noAutocomplete && _react2.default.createElement(NoAutocomplete, null),
|
|
90
|
-
_react2.default.createElement('input', (0, _extends3.default)({
|
|
91
|
-
ref: function ref(input) {
|
|
92
|
-
textInput = input;
|
|
93
|
-
}
|
|
94
|
-
}, isPassword, {
|
|
95
|
-
placeholder: placeholder,
|
|
96
|
-
disabled: disabled,
|
|
97
|
-
onChange: handleChange,
|
|
98
|
-
value: value,
|
|
99
|
-
onFocus: handleFocus,
|
|
100
|
-
onBlur: handleBlur,
|
|
101
|
-
className: classNames,
|
|
102
|
-
ref: inputRef,
|
|
103
|
-
type: htmlType
|
|
104
|
-
}, prop)),
|
|
105
|
-
onClear && !!(value || '').length && _react2.default.createElement(_index.Ticon, {
|
|
106
|
-
icon: 'guanbi-yuan',
|
|
107
|
-
className: 'tplus-input-icon tplus-input-clear',
|
|
108
|
-
onClick: clearValue,
|
|
109
|
-
style: { fontSize: 14 }
|
|
110
|
-
})
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var NoAutocomplete = function NoAutocomplete(props) {
|
|
115
|
-
return _react2.default.createElement(
|
|
116
|
-
'div',
|
|
117
|
-
{ className: 'tplus-input-noAutocomplete' },
|
|
118
|
-
_react2.default.createElement('input', null),
|
|
119
|
-
_react2.default.createElement('input', { type: 'password' })
|
|
120
|
-
);
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
var SelectInput = function SelectInput(props) {
|
|
124
|
-
var children = props.children,
|
|
125
|
-
prop = (0, _objectWithoutProperties3.default)(props, ['children']);
|
|
126
|
-
|
|
127
|
-
return _react2.default.createElement(
|
|
128
|
-
_select2.default,
|
|
129
|
-
(0, _extends3.default)({ suffixIcon: _react2.default.createElement(_index.Ticon, { type: 'xialaqietu3' }) }, prop),
|
|
130
|
-
children
|
|
131
|
-
);
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
function Inputs(props) {
|
|
135
|
-
var type = props.type,
|
|
136
|
-
prop = (0, _objectWithoutProperties3.default)(props, ['type']);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
var createInput = function createInput(type) {
|
|
140
|
-
switch (type) {
|
|
141
|
-
case 'native':
|
|
142
|
-
return _react2.default.createElement(NativeInput, prop);
|
|
143
|
-
case 'select':
|
|
144
|
-
return _react2.default.createElement(SelectInput, prop);
|
|
145
|
-
default:
|
|
146
|
-
return _react2.default.createElement(_input2.default, props);
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
return createInput(type);
|
|
150
|
-
};
|
|
151
|
-
//# sourceMappingURL=inputs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/input/tplusInput/inputs.js"],"names":["Inputs","NativeInput","props","placeholder","onChange","value","onFocus","onBlur","noAutocomplete","nativeFocus","nativeBlur","password","disabled","className","inputRef","htmlType","size","onClear","prop","handleChange","e","handleFocus","handleBlur","clearValue","classNames","isPassword","type","input","textInput","length","fontSize","NoAutocomplete","SelectInput","children","createInput"],"mappings":"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","file":"inputs.js","sourcesContent":["import React, {Fragment} from 'react';\nimport {Ticon} from '../../../index';\nimport { Select, Input } from 'antd';\n\nconst NativeInput = (props) => {\n const {placeholder, onChange, value, onFocus, onBlur, noAutocomplete, nativeFocus, nativeBlur, password, disabled = false, className, inputRef, htmlType = 'text', size = '', onClear, ...prop} = props;\n\n const handleChange = (e) => {\n onChange && onChange(e);\n };\n const handleFocus = (e) => {\n nativeFocus();\n onFocus && onFocus(e);\n };\n const handleBlur = (e) => {\n nativeBlur();\n onBlur && onBlur(e);\n };\n const clearValue = (e) => {\n onClear && onClear(e);\n };\n\n let classNames = `tplus-inout-native ${className}`;\n switch (size) {\n case 'sm':\n classNames += ' sm';\n break;\n case 'lg':\n classNames += ' lg';\n break;\n default:\n classNames += ' md';\n }\n const isPassword = password ? {type: 'password'} : {};\n return <Fragment>\n {!!noAutocomplete && <NoAutocomplete />}\n <input\n ref={(input) => { textInput = input; }}\n {...isPassword}\n placeholder={placeholder}\n disabled={disabled}\n onChange={handleChange}\n value={value}\n onFocus={handleFocus}\n onBlur={handleBlur}\n className={classNames}\n ref={inputRef}\n type={htmlType}\n {...prop}\n />\n {onClear && !!(value || '').length && <Ticon\n icon='guanbi-yuan'\n className='tplus-input-icon tplus-input-clear'\n onClick={clearValue}\n style={{fontSize: 14}}\n />}\n </Fragment>;\n};\n\nconst NoAutocomplete = (props) => {\n return <div className=\"tplus-input-noAutocomplete\">\n <input />\n <input type=\"password\" />\n </div>;\n}\n\nconst SelectInput = (props) => {\n const {children, ...prop} = props;\n return <Select suffixIcon={<Ticon type=\"xialaqietu3\"/>} {...prop}>{children}</Select>;\n};\n\nexport default function Inputs(props) {\n const {type, ...prop} = props;\n\n const createInput = (type) => {\n switch (type) {\n case 'native':\n return <NativeInput {...prop}/>;\n case 'select':\n return <SelectInput {...prop}/>;\n default:\n return <Input {...props}/>;\n }\n };\n return createInput(type);\n};\n\n"]}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
.tplus-input-container{
|
|
2
|
-
display: flex;
|
|
3
|
-
.tplus-input-title{
|
|
4
|
-
flex: 0 0 auto;
|
|
5
|
-
padding: 0px 4px;
|
|
6
|
-
line-height: 32px;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
text-align: right;
|
|
9
|
-
margin-right: 10px;
|
|
10
|
-
}
|
|
11
|
-
.tplus-input-wrapper{
|
|
12
|
-
flex: 1;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.tplus-input-noAutocomplete{
|
|
16
|
-
position: fixed;
|
|
17
|
-
top: -999999px;
|
|
18
|
-
}
|
|
19
|
-
.tplus-input-wrapper {
|
|
20
|
-
position: relative;
|
|
21
|
-
display: flex;
|
|
22
|
-
border-radius: 3px;
|
|
23
|
-
height: 34px;
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
input{
|
|
26
|
-
border: none;
|
|
27
|
-
outline: none;
|
|
28
|
-
flex: auto;
|
|
29
|
-
background: transparent;
|
|
30
|
-
}
|
|
31
|
-
._tplus-animation-ease_{
|
|
32
|
-
-webkit-transition: all 0.3s ease-in-out;
|
|
33
|
-
-o-transition: all 0.3s ease-in-out;
|
|
34
|
-
transition: all 0.3s ease-in-out;
|
|
35
|
-
};
|
|
36
|
-
._tplus-animation-ease_;
|
|
37
|
-
.tplus-select-arrow-placeholder{
|
|
38
|
-
position: absolute;
|
|
39
|
-
height: 100%;
|
|
40
|
-
width: 20px;
|
|
41
|
-
right: 0px;
|
|
42
|
-
top: 0px;
|
|
43
|
-
z-index: 9;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
.tplus-input-icon{
|
|
47
|
-
color: rgba(0, 0, 0, 0.25);
|
|
48
|
-
font-size: 16px;
|
|
49
|
-
flex: 0 0 32px;
|
|
50
|
-
line-height: 32px;
|
|
51
|
-
text-align: center;
|
|
52
|
-
}
|
|
53
|
-
input {
|
|
54
|
-
padding: 0px 10px;
|
|
55
|
-
}
|
|
56
|
-
.tplus-input-clear{
|
|
57
|
-
color: #c8c8cd;
|
|
58
|
-
}
|
|
59
|
-
.tplus-input-prefix{
|
|
60
|
-
left: 5px;
|
|
61
|
-
}
|
|
62
|
-
.tplus-input-suffix{
|
|
63
|
-
right: 6px;
|
|
64
|
-
}
|
|
65
|
-
.has-prefix-icon{
|
|
66
|
-
//padding-left: 28px;
|
|
67
|
-
}
|
|
68
|
-
.has-suffix-icon{
|
|
69
|
-
//padding-right: 28px;
|
|
70
|
-
}
|
|
71
|
-
&.tplus-input-disabled{
|
|
72
|
-
cursor: not-allowed;
|
|
73
|
-
input{
|
|
74
|
-
cursor: not-allowed;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.tplus-input-error-text{
|
|
78
|
-
position: absolute;
|
|
79
|
-
right: 0px;
|
|
80
|
-
bottom: -18px;
|
|
81
|
-
margin: 0px;
|
|
82
|
-
font-size: 12px;
|
|
83
|
-
}
|
|
84
|
-
.tplus-select-placeholder{
|
|
85
|
-
position: absolute;
|
|
86
|
-
left: 0px;
|
|
87
|
-
right: 0px;
|
|
88
|
-
top: 0px;
|
|
89
|
-
bottom: 0px;
|
|
90
|
-
z-index: 9;
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.vertical-input-container{
|
|
96
|
-
.tplus-input-title{
|
|
97
|
-
font-size: 28px;
|
|
98
|
-
line-height: 64px;
|
|
99
|
-
}
|
|
100
|
-
.tplus-input-wrapper{
|
|
101
|
-
height: 64px;
|
|
102
|
-
input{
|
|
103
|
-
font-size: 26px;
|
|
104
|
-
padding: 0px 20px;
|
|
105
|
-
}
|
|
106
|
-
.tplus-input-icon {
|
|
107
|
-
font-size: 32px;
|
|
108
|
-
line-height: 64px;
|
|
109
|
-
}
|
|
110
|
-
.tplus-input-suffix{
|
|
111
|
-
right: 12px;
|
|
112
|
-
position: relative;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.ant-select{
|
|
117
|
-
.ant-select-arrow{
|
|
118
|
-
.iconfont{
|
|
119
|
-
display: inline-block;
|
|
120
|
-
color: #999;
|
|
121
|
-
font-size: 12px;
|
|
122
|
-
transition: transform .2s ease,-webkit-transform .2s ease;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
&.ant-select-open{
|
|
126
|
-
.ant-select-arrow{
|
|
127
|
-
.iconfont{
|
|
128
|
-
transform: rotate(180deg);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
|
|
8
|
-
|
|
9
|
-
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
|
|
10
|
-
|
|
11
|
-
exports.generatorClass = generatorClass;
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
|
-
function generatorClass() {
|
|
16
|
-
var classes = [];
|
|
17
|
-
[].concat(Array.prototype.slice.call(arguments)).forEach(function (currentArg) {
|
|
18
|
-
if (typeof currentArg === 'string') {
|
|
19
|
-
classes.push(currentArg);
|
|
20
|
-
} else {
|
|
21
|
-
classes.push.apply(classes, (0, _toConsumableArray3.default)(currentArg));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return classes.join(' ').trim();
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/input/utils/index.js"],"names":["generatorClass","classes","arguments","forEach","currentArg","push","join","trim"],"mappings":";;;;;;;;;;QAAgBA,c,GAAAA,c;;;;AAAT,SAASA,cAAT,GAA0B;AAC/B,MAAIC,UAAU,EAAd;AACA,uCAAIC,SAAJ,GAAeC,OAAf,CAAuB,sBAAc;AACnC,QAAI,OAAOC,UAAP,KAAsB,QAA1B,EAAoC;AAClCH,cAAQI,IAAR,CAAaD,UAAb;AACD,KAFD,MAEO;AACLH,cAAQI,IAAR,iDAAgBD,UAAhB;AACD;AACF,GAND;AAOA,SAAOH,QAAQK,IAAR,CAAa,GAAb,EAAkBC,IAAlB,EAAP;AACD","file":"index.js","sourcesContent":["export function generatorClass() {\n var classes = [];\n [...arguments].forEach(currentArg => {\n if (typeof currentArg === 'string') {\n classes.push(currentArg);\n } else {\n classes.push(...currentArg);\n }\n })\n return classes.join(' ').trim();\n}\n"]}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = undefined;
|
|
7
|
-
|
|
8
|
-
var _regenerator = require('babel-runtime/regenerator');
|
|
9
|
-
|
|
10
|
-
var _regenerator2 = _interopRequireDefault(_regenerator);
|
|
11
|
-
|
|
12
|
-
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
|
13
|
-
|
|
14
|
-
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
|
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 _tplusApi = require('tplus-api');
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
|
-
var InventorySearchApi = function () {
|
|
29
|
-
function InventorySearchApi() {
|
|
30
|
-
(0, _classCallCheck3.default)(this, InventorySearchApi);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
(0, _createClass3.default)(InventorySearchApi, null, [{
|
|
34
|
-
key: 'getPOSSearchDesigns',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param {string} ViewName 获取库存栏目
|
|
40
|
-
*/
|
|
41
|
-
value: function () {
|
|
42
|
-
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(ViewName) {
|
|
43
|
-
var result;
|
|
44
|
-
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
45
|
-
while (1) {
|
|
46
|
-
switch (_context.prev = _context.next) {
|
|
47
|
-
case 0:
|
|
48
|
-
_context.next = 2;
|
|
49
|
-
return (0, _tplusApi.tApi)({ ViewName: ViewName }, 'chanjet.RE.newRetail.GetPOSSearchDesigns', false, false);
|
|
50
|
-
|
|
51
|
-
case 2:
|
|
52
|
-
result = _context.sent;
|
|
53
|
-
return _context.abrupt('return', result);
|
|
54
|
-
|
|
55
|
-
case 4:
|
|
56
|
-
case 'end':
|
|
57
|
-
return _context.stop();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}, _callee, this);
|
|
61
|
-
}));
|
|
62
|
-
|
|
63
|
-
function getPOSSearchDesigns(_x) {
|
|
64
|
-
return _ref.apply(this, arguments);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return getPOSSearchDesigns;
|
|
68
|
-
}()
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @param {object} SearchParams 获取查询库存查询结果
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
}, {
|
|
75
|
-
key: 'searchInventoryAvailableQuantity',
|
|
76
|
-
value: function () {
|
|
77
|
-
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(SearchParams) {
|
|
78
|
-
var result;
|
|
79
|
-
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
80
|
-
while (1) {
|
|
81
|
-
switch (_context2.prev = _context2.next) {
|
|
82
|
-
case 0:
|
|
83
|
-
_context2.next = 2;
|
|
84
|
-
return (0, _tplusApi.tApi)({ SearchParams: SearchParams }, 'chanjet.AA.DR.NewRetailBaseInfo.SearchInventoryAvailableQuantity', false, false);
|
|
85
|
-
|
|
86
|
-
case 2:
|
|
87
|
-
result = _context2.sent;
|
|
88
|
-
return _context2.abrupt('return', result);
|
|
89
|
-
|
|
90
|
-
case 4:
|
|
91
|
-
case 'end':
|
|
92
|
-
return _context2.stop();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, _callee2, this);
|
|
96
|
-
}));
|
|
97
|
-
|
|
98
|
-
function searchInventoryAvailableQuantity(_x2) {
|
|
99
|
-
return _ref2.apply(this, arguments);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return searchInventoryAvailableQuantity;
|
|
103
|
-
}()
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* POS端查询栏目宽度设置
|
|
107
|
-
* @param {string} ViewType 查询视图名称,支持:Retail,Member,Inventory
|
|
108
|
-
* @param {array} DesignFieldWidth 需要设置的字段和对应宽度
|
|
109
|
-
* DesignFieldWidth说明:
|
|
110
|
-
* 参数名
|
|
111
|
-
* 值类型
|
|
112
|
-
* 说明
|
|
113
|
-
* Key string 字段名
|
|
114
|
-
* Value decimal 字段宽度
|
|
115
|
-
* @returns {bool} 布尔值true|false
|
|
116
|
-
*
|
|
117
|
-
* 示例:
|
|
118
|
-
call:newRetailBaseInfo/SavePOSSearchDesignFieldWidth
|
|
119
|
-
post:
|
|
120
|
-
{
|
|
121
|
-
"POSParam": {
|
|
122
|
-
"ViewType": "Inventory",
|
|
123
|
-
"DesignFieldWidth": [{
|
|
124
|
-
"Key": "InventoryCode",
|
|
125
|
-
"Value": "150"
|
|
126
|
-
}, {
|
|
127
|
-
"Key": "InventoryName",
|
|
128
|
-
"Value": "150"
|
|
129
|
-
}, {
|
|
130
|
-
"Key": "Specification",
|
|
131
|
-
"Value": "150"
|
|
132
|
-
}, {
|
|
133
|
-
"Key": "BarCode",
|
|
134
|
-
"Value": "150"
|
|
135
|
-
}, {
|
|
136
|
-
"Key": "Shorthand",
|
|
137
|
-
"Value": "150"
|
|
138
|
-
}, {
|
|
139
|
-
"Key": "UnitName",
|
|
140
|
-
"Value": "150"
|
|
141
|
-
}, {
|
|
142
|
-
"Key": "Batch",
|
|
143
|
-
"Value": "150"
|
|
144
|
-
}, {
|
|
145
|
-
"Key": "ExpiryDate",
|
|
146
|
-
"Value": "150"
|
|
147
|
-
}, {
|
|
148
|
-
"Key": "ExistingQuantity",
|
|
149
|
-
"Value": "150"
|
|
150
|
-
}, {
|
|
151
|
-
"Key": "AvailableQuantity",
|
|
152
|
-
"Value": "150"
|
|
153
|
-
}]
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
result:true
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
}, {
|
|
160
|
-
key: 'savePOSSearchDesignFieldWidth',
|
|
161
|
-
value: function () {
|
|
162
|
-
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(DesignFieldWidth) {
|
|
163
|
-
var result;
|
|
164
|
-
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
165
|
-
while (1) {
|
|
166
|
-
switch (_context3.prev = _context3.next) {
|
|
167
|
-
case 0:
|
|
168
|
-
_context3.next = 2;
|
|
169
|
-
return (0, _tplusApi.tApi)({
|
|
170
|
-
ViewType: Inventory,
|
|
171
|
-
DesignFieldWidth: DesignFieldWidth
|
|
172
|
-
}, 'chanjet.RE.newRetail.SavePOSSearchDesignFieldWidth', false, false);
|
|
173
|
-
|
|
174
|
-
case 2:
|
|
175
|
-
result = _context3.sent;
|
|
176
|
-
return _context3.abrupt('return', result);
|
|
177
|
-
|
|
178
|
-
case 4:
|
|
179
|
-
case 'end':
|
|
180
|
-
return _context3.stop();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}, _callee3, this);
|
|
184
|
-
}));
|
|
185
|
-
|
|
186
|
-
function savePOSSearchDesignFieldWidth(_x3) {
|
|
187
|
-
return _ref3.apply(this, arguments);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
return savePOSSearchDesignFieldWidth;
|
|
191
|
-
}()
|
|
192
|
-
}, {
|
|
193
|
-
key: 'formatNumber',
|
|
194
|
-
value: function formatNumber(number, length) {
|
|
195
|
-
if (number === '' || number === undefined) {
|
|
196
|
-
return number;
|
|
197
|
-
}
|
|
198
|
-
number += '';
|
|
199
|
-
if (length == 0) {
|
|
200
|
-
return parseInt(number);
|
|
201
|
-
}
|
|
202
|
-
if (number.indexOf('.') > 0) {
|
|
203
|
-
number += '0000000000';
|
|
204
|
-
} else {
|
|
205
|
-
number += '.0000000000';
|
|
206
|
-
}
|
|
207
|
-
return number.substring(0, number.indexOf(".") + +length + 1);
|
|
208
|
-
}
|
|
209
|
-
}]);
|
|
210
|
-
return InventorySearchApi;
|
|
211
|
-
}();
|
|
212
|
-
|
|
213
|
-
exports.default = InventorySearchApi;
|
|
214
|
-
//# sourceMappingURL=api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/inventorySearch/api.js"],"names":["InventorySearchApi","ViewName","result","SearchParams","DesignFieldWidth","ViewType","Inventory","number","length","undefined","parseInt","indexOf","substring"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAEqBA,kB;;;;;;;;;AAEnB;;;;;2GAIiCC,Q;;;;;;;uBACZ,oBAAK,EAAEA,kBAAF,EAAL,EAAmB,0CAAnB,EAA+D,KAA/D,EAAsE,KAAtE,C;;;AAAfC,sB;iDACGA,M;;;;;;;;;;;;;;;;AAET;;;;;;;;6GAI8CC,Y;;;;;;;uBACzB,oBAAK,EAAEA,0BAAF,EAAL,EAAuB,kEAAvB,EAA2F,KAA3F,EAAkG,KAAlG,C;;;AAAfD,sB;kDACGA,M;;;;;;;;;;;;;;;;;AAGT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6GA0D2CE,gB;;;;;;;uBACtB,oBAAK;AACtBC,4BAAUC,SADY;AAEtBF,oCAAkBA;AAFI,iBAAL,EAGhB,oDAHgB,EAGsC,KAHtC,EAG6C,KAH7C,C;;;AAAfF,sB;kDAIGA,M;;;;;;;;;;;;;;;;;;iCAIWK,M,EAAQC,M,EAAQ;AAClC,UAAID,WAAW,EAAX,IAAiBA,WAAWE,SAAhC,EAA2C;AACzC,eAAOF,MAAP;AACD;AACDA,gBAAU,EAAV;AACA,UAAIC,UAAU,CAAd,EAAiB;AACf,eAAOE,SAASH,MAAT,CAAP;AACD;AACD,UAAIA,OAAOI,OAAP,CAAe,GAAf,IAAsB,CAA1B,EAA6B;AAC3BJ,kBAAU,YAAV;AACD,OAFD,MAEO;AACLA,kBAAU,aAAV;AACD;AACD,aAAOA,OAAOK,SAAP,CAAiB,CAAjB,EAAmBL,OAAOI,OAAP,CAAe,GAAf,IAAsB,CAACH,MAAvB,GAAgC,CAAnD,CAAP;AACD;;;;;kBApGkBR,kB","file":"api.js","sourcesContent":["import { tApi } from 'tplus-api';\n\nexport default class InventorySearchApi {\n\n /**\n * \n * @param {string} ViewName 获取库存栏目\n */\n static async getPOSSearchDesigns(ViewName) {\n let result = await tApi({ ViewName }, 'chanjet.RE.newRetail.GetPOSSearchDesigns', false, false);\n return result;\n }\n /**\n * \n * @param {object} SearchParams 获取查询库存查询结果\n */\n static async searchInventoryAvailableQuantity(SearchParams) {\n let result = await tApi({ SearchParams }, 'chanjet.AA.DR.NewRetailBaseInfo.SearchInventoryAvailableQuantity', false, false);\n return result;\n }\n\n /**\n * POS端查询栏目宽度设置\n * @param {string} ViewType 查询视图名称,支持:Retail,Member,Inventory\n * @param {array} DesignFieldWidth 需要设置的字段和对应宽度 \n * DesignFieldWidth说明:\n * 参数名\n * 值类型\n * 说明\n * Key\tstring\t字段名\n * Value\tdecimal\t字段宽度\n * @returns {bool} 布尔值true|false\n * \n * 示例:\n\n call:newRetailBaseInfo/SavePOSSearchDesignFieldWidth\n\n post:\n\n {\n \"POSParam\": {\n \"ViewType\": \"Inventory\",\n \"DesignFieldWidth\": [{\n \"Key\": \"InventoryCode\",\n \"Value\": \"150\"\n\n }, {\n \"Key\": \"InventoryName\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"Specification\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"BarCode\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"Shorthand\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"UnitName\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"Batch\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"ExpiryDate\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"ExistingQuantity\",\n \"Value\": \"150\"\n }, {\n \"Key\": \"AvailableQuantity\",\n \"Value\": \"150\"\n }]\n }\n }\n\n result:true\n */\n static async savePOSSearchDesignFieldWidth(DesignFieldWidth) {\n let result = await tApi({\n ViewType: Inventory,\n DesignFieldWidth: DesignFieldWidth\n }, 'chanjet.RE.newRetail.SavePOSSearchDesignFieldWidth', false, false);\n return result;\n }\n\n\n static formatNumber(number, length) {\n if (number === '' || number === undefined) {\n return number;\n }\n number += '';\n if (length == 0) {\n return parseInt(number);\n }\n if (number.indexOf('.') > 0) {\n number += '0000000000';\n } else {\n number += '.0000000000'\n }\n return number.substring(0,number.indexOf(\".\") + +length + 1)\n }\n\n}"]}
|