tplus-components-touch 3.28.2 → 3.28.3
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/acCitySelect/CitySelect.js +541 -0
- package/dist/components/acCitySelect/CitySelect.js.map +1 -0
- package/dist/components/acCitySelect/CitySelect.less +10 -0
- package/dist/components/acCitySelect/citys.js +1270 -0
- package/dist/components/acCitySelect/citys.js.map +1 -0
- package/dist/components/acCitySelect/index.js +18 -0
- package/dist/components/acCitySelect/index.js.map +1 -0
- package/dist/components/acCitySelect/provinceData.js +40 -0
- package/dist/components/acCitySelect/provinceData.js.map +1 -0
- package/dist/components/addLog/AddLogProcessor.js +49 -0
- package/dist/components/addLog/AddLogProcessor.js.map +1 -0
- package/dist/components/addLog/OperationLogApi.js +125 -0
- package/dist/components/addLog/OperationLogApi.js.map +1 -0
- package/dist/components/autoComplete/index.js +245 -0
- package/dist/components/autoComplete/index.js.map +1 -0
- package/dist/components/autoComplete/index.less +89 -0
- package/dist/components/autoComplete/option.js +75 -0
- package/dist/components/autoComplete/option.js.map +1 -0
- package/dist/components/autoCompleteWithKeyboard/index.js +231 -0
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -0
- package/dist/components/autoCompleteWithKeyboard/index.less +8 -0
- package/dist/components/billSearch/api.js +465 -0
- package/dist/components/billSearch/api.js.map +1 -0
- package/dist/components/billSearch/index.js +2201 -0
- package/dist/components/billSearch/index.js.map +1 -0
- package/dist/components/billSearch/index.less +376 -0
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +568 -0
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -0
- package/dist/components/cloudPrint/api.js +391 -0
- package/dist/components/cloudPrint/api.js.map +1 -0
- package/dist/components/cloudPrint/index.js +727 -0
- package/dist/components/cloudPrint/index.js.map +1 -0
- package/dist/components/cloudPrint/printDispatch.js +324 -0
- package/dist/components/cloudPrint/printDispatch.js.map +1 -0
- package/dist/components/commonForm/addressPicker/index.js +232 -0
- package/dist/components/commonForm/addressPicker/index.js.map +1 -0
- package/dist/components/commonForm/addressPicker/style.less +11 -0
- package/dist/components/commonForm/autoComplete/index.js +241 -0
- package/dist/components/commonForm/autoComplete/index.js.map +1 -0
- package/dist/components/commonForm/autoComplete/style.less +3 -0
- package/dist/components/commonForm/datePicker/index.js +89 -0
- package/dist/components/commonForm/datePicker/index.js.map +1 -0
- package/dist/components/commonForm/datePicker/style.less +5 -0
- package/dist/components/commonForm/formControl/index.js +143 -0
- package/dist/components/commonForm/formControl/index.js.map +1 -0
- package/dist/components/commonForm/formControl/style.less +0 -0
- package/dist/components/commonForm/index.js +225 -0
- package/dist/components/commonForm/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/inputNumber/style.less +11 -0
- package/dist/components/commonForm/radio/index.js +132 -0
- package/dist/components/commonForm/radio/index.js.map +1 -0
- package/dist/components/commonForm/radio/style.less +0 -0
- package/dist/components/commonForm/style.less +2 -0
- package/dist/components/deliverySearch/api.js +355 -0
- package/dist/components/deliverySearch/api.js.map +1 -0
- package/dist/components/deliverySearch/index.js +1218 -0
- package/dist/components/deliverySearch/index.js.map +1 -0
- package/dist/components/deliverySearch/index.less +554 -0
- package/dist/components/form/index.js +310 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/hardwareAPI/index.js +181 -0
- package/dist/components/hardwareAPI/index.js.map +1 -0
- package/dist/components/hotKey/config.js +306 -0
- package/dist/components/hotKey/config.js.map +1 -0
- package/dist/components/hotKey/hotKeyModal.js +479 -0
- package/dist/components/hotKey/hotKeyModal.js.map +1 -0
- package/dist/components/hotKey/index.js +785 -0
- package/dist/components/hotKey/index.js.map +1 -0
- package/dist/components/hotKey/localConfig.js +1021 -0
- package/dist/components/hotKey/localConfig.js.map +1 -0
- package/dist/components/hotKey/style.less +96 -0
- package/dist/components/hotKey/utils.js +135 -0
- package/dist/components/hotKey/utils.js.map +1 -0
- package/dist/components/input/index.js +251 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/scanInput.js +98 -0
- package/dist/components/input/scanInput.js.map +1 -0
- package/dist/components/input/scanInput.less +28 -0
- package/dist/components/input/style.less +99 -0
- 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/tplusInput/style.less +132 -0
- package/dist/components/input/utils/index.js +26 -0
- package/dist/components/input/utils/index.js.map +1 -0
- package/dist/components/inventorySearch/api.js +214 -0
- package/dist/components/inventorySearch/api.js.map +1 -0
- package/dist/components/inventorySearch/index.js +303 -0
- package/dist/components/inventorySearch/index.js.map +1 -0
- package/dist/components/inventorySearch/index.less +120 -0
- package/dist/components/inventorySearch/store.js +363 -0
- package/dist/components/inventorySearch/store.js.map +1 -0
- package/dist/components/inventorySearch/tab.js +273 -0
- package/dist/components/inventorySearch/tab.js.map +1 -0
- package/dist/components/keyboard/index.js +255 -0
- package/dist/components/keyboard/index.js.map +1 -0
- package/dist/components/keyboard/index.less +470 -0
- package/dist/components/keyboard/letterKeyboard.js +210 -0
- package/dist/components/keyboard/letterKeyboard.js.map +1 -0
- package/dist/components/keyboard/numKeyboard.js +459 -0
- package/dist/components/keyboard/numKeyboard.js.map +1 -0
- package/dist/components/keyboard/numKeyboardScan.js +195 -0
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -0
- package/dist/components/keyboard/numberButton_input.js +303 -0
- package/dist/components/keyboard/numberButton_input.js.map +1 -0
- package/dist/components/keyboard/numkeyboardPassword.js +460 -0
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -0
- package/dist/components/keyboard/onlyKeyboard.js +90 -0
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -0
- package/dist/components/keyboard/onlyLetterButton.js +187 -0
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -0
- package/dist/components/keyboard/onlyLetterButton2.js +235 -0
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -0
- package/dist/components/keyboard/onlyLetterButton2.less +162 -0
- package/dist/components/keyboard/onlyNumberButton.js +128 -0
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -0
- package/dist/components/keyboard/onlyNumberButton2.js +115 -0
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -0
- package/dist/components/keyboard/textKeyboard.js +50 -0
- package/dist/components/keyboard/textKeyboard.js.map +1 -0
- package/dist/components/layout/hamburger.js +29 -0
- package/dist/components/layout/hamburger.js.map +1 -0
- package/dist/components/layout/index.js +31 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/layout.js +182 -0
- package/dist/components/layout/layout.js.map +1 -0
- package/dist/components/layout/sider.js +165 -0
- package/dist/components/layout/sider.js.map +1 -0
- package/dist/components/layout/style.less +82 -0
- package/dist/components/loading/index.js +198 -0
- package/dist/components/loading/index.js.map +1 -0
- package/dist/components/loading/loadingContent.js +185 -0
- package/dist/components/loading/loadingContent.js.map +1 -0
- package/dist/components/loading/style.less +70 -0
- package/dist/components/loading/utils.js +29 -0
- package/dist/components/loading/utils.js.map +1 -0
- package/dist/components/message/index.js +311 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/message/index.less +101 -0
- package/dist/components/modal/index.js +93 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/index.less +19 -0
- package/dist/components/modalVertical/index.js +325 -0
- package/dist/components/modalVertical/index.js.map +1 -0
- package/dist/components/modalVertical/style.less +60 -0
- package/dist/components/modalWraper/index.js +470 -0
- package/dist/components/modalWraper/index.js.map +1 -0
- package/dist/components/modalWraper/style.less +257 -0
- package/dist/components/modalWraper/utils.js +48 -0
- package/dist/components/modalWraper/utils.js.map +1 -0
- package/dist/components/notification/index.js +119 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/index.less +52 -0
- package/dist/components/overflowTip/index.js +269 -0
- package/dist/components/overflowTip/index.js.map +1 -0
- package/dist/components/overflowTip/style.less +66 -0
- package/dist/components/page/index.js +49 -0
- package/dist/components/page/index.js.map +1 -0
- package/dist/components/page/index.less +22 -0
- package/dist/components/product/detail.js +148 -0
- package/dist/components/product/detail.js.map +1 -0
- package/dist/components/product/getCard.js +145 -0
- package/dist/components/product/getCard.js.map +1 -0
- package/dist/components/product/index.less +128 -0
- package/dist/components/progressState/EmptyAndErrorView.js +143 -0
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -0
- package/dist/components/progressState/ProgressState.js +157 -0
- package/dist/components/progressState/ProgressState.js.map +1 -0
- package/dist/components/progressState/index.js +14 -0
- package/dist/components/progressState/index.js.map +1 -0
- package/dist/components/progressState/style.less +65 -0
- package/dist/components/scan/index.js +219 -0
- package/dist/components/scan/index.js.map +1 -0
- package/dist/components/scan/index.less +34 -0
- package/dist/components/select/index.js +28 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/index.less +12 -0
- package/dist/components/settlement/asyncModal.js +204 -0
- package/dist/components/settlement/asyncModal.js.map +1 -0
- package/dist/components/settlement/index.js +16 -0
- package/dist/components/settlement/index.js.map +1 -0
- package/dist/components/settlement/prototypeTable/index.js +349 -0
- package/dist/components/settlement/prototypeTable/index.js.map +1 -0
- package/dist/components/settlement/prototypeTable/style.less +59 -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 +5474 -0
- package/dist/components/settlement/settlement.js.map +1 -0
- package/dist/components/settlement/settlement.less +1595 -0
- package/dist/components/settlement/settlementStore.js +2117 -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/spin/spin-style.less +436 -0
- package/dist/components/test/index.js +330 -0
- package/dist/components/test/index.js.map +1 -0
- package/dist/components/ticon/iconfont/demo.css +539 -0
- package/dist/components/ticon/iconfont/demo_index.html +5202 -0
- package/dist/components/ticon/iconfont/iconfont.css +887 -0
- package/dist/components/ticon/iconfont/iconfont.eot +0 -0
- package/dist/components/ticon/iconfont/iconfont.js +35 -0
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -0
- package/dist/components/ticon/iconfont/iconfont.json +1535 -0
- package/dist/components/ticon/iconfont/iconfont.svg +593 -0
- 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 +60 -0
- package/dist/components/ticon/index.js.map +1 -0
- package/dist/components/touchScroll/index.js +182 -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 +1110 -0
- package/dist/components/touchTable/index.js.map +1 -0
- package/dist/components/touchTable/index.less +370 -0
- package/dist/components/touchTable/utils.js +14 -0
- package/dist/components/touchTable/utils.js.map +1 -0
- package/dist/demo/PopOverDemo.js +126 -0
- package/dist/demo/PopOverDemo.js.map +1 -0
- package/dist/index.js +266 -0
- package/dist/index.js.map +1 -0
- package/dist/util/tools.js +200 -0
- package/dist/util/tools.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
//modal 样式=======================
|
|
2
|
+
.modal-centre{
|
|
3
|
+
.ant-modal{
|
|
4
|
+
position: relative;
|
|
5
|
+
top: -112px;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.modal-formated{
|
|
10
|
+
.ant-modal-close{
|
|
11
|
+
margin-top: -3px;
|
|
12
|
+
}
|
|
13
|
+
.ant-modal-header{
|
|
14
|
+
height:46px;
|
|
15
|
+
padding:14px 16px!important;
|
|
16
|
+
.ant-modal-title{
|
|
17
|
+
font-size: 18px;
|
|
18
|
+
line-height: 18px!important;
|
|
19
|
+
}
|
|
20
|
+
font-size:18px;
|
|
21
|
+
}
|
|
22
|
+
.ant-modal-footer{
|
|
23
|
+
height:46px;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
padding: 7px 16px!important;
|
|
26
|
+
|
|
27
|
+
.footer{
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
button{
|
|
33
|
+
height:32px;
|
|
34
|
+
font-size:16px;
|
|
35
|
+
margin-left:16px;
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
line-height: 24px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.ant-modal-body{
|
|
41
|
+
padding:0!important;
|
|
42
|
+
overflow: auto;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.modal-formated.bigger-modal{
|
|
46
|
+
.ant-modal-body{
|
|
47
|
+
height:475px;
|
|
48
|
+
overflow: auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.modal-formated.big-modal{
|
|
52
|
+
.ant-modal{
|
|
53
|
+
width:800px !important;
|
|
54
|
+
}
|
|
55
|
+
.ant-modal-body{
|
|
56
|
+
height:376px;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.modal-formated.mid-modal{
|
|
61
|
+
.ant-modal{
|
|
62
|
+
width:400px !important;
|
|
63
|
+
height:376px;
|
|
64
|
+
}
|
|
65
|
+
.ant-modal-body{
|
|
66
|
+
height:288px;
|
|
67
|
+
overflow: auto;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.modal-formated.sm-modal{
|
|
71
|
+
.ant-modal{
|
|
72
|
+
width:400px !important;
|
|
73
|
+
}
|
|
74
|
+
.ant-modal-header{
|
|
75
|
+
border-bottom:none;
|
|
76
|
+
}
|
|
77
|
+
.ant-modal-body{
|
|
78
|
+
height:120px;
|
|
79
|
+
overflow: auto;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
// padding:0px 16px 0!important;
|
|
82
|
+
}
|
|
83
|
+
.ant-modal-footer{
|
|
84
|
+
height:50px!important;
|
|
85
|
+
border-top:none;
|
|
86
|
+
border-bottom:none!important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.method-modal1{
|
|
90
|
+
.method-modal-ticon{
|
|
91
|
+
font-size: 24px;
|
|
92
|
+
line-height: 24px;
|
|
93
|
+
margin-left: 26px;
|
|
94
|
+
margin-right: 14px;
|
|
95
|
+
}
|
|
96
|
+
.ticon-confirm{
|
|
97
|
+
position: absolute;
|
|
98
|
+
top:50%;
|
|
99
|
+
left:6px;
|
|
100
|
+
transform: translateY(-50%);
|
|
101
|
+
}
|
|
102
|
+
.ticon-info{
|
|
103
|
+
position: absolute;
|
|
104
|
+
top:50%;
|
|
105
|
+
left:6px;
|
|
106
|
+
transform: translateY(-50%);
|
|
107
|
+
}
|
|
108
|
+
.ant-modal-content{
|
|
109
|
+
border-radius: 5px!important;
|
|
110
|
+
box-shadow: 0 5px 15px rgba(0,0,0, .5);
|
|
111
|
+
-webkit-box-shadow: 0 5px 15px rgba(0,0,0, .5);
|
|
112
|
+
}
|
|
113
|
+
.ant-modal-confirm-body{
|
|
114
|
+
height: 90px;
|
|
115
|
+
.ant-modal-confirm-title{
|
|
116
|
+
font-weight: 400;
|
|
117
|
+
font-size: 18px;
|
|
118
|
+
color: rgba(0,0,0,0.85);
|
|
119
|
+
}
|
|
120
|
+
.ant-modal-confirm-content{
|
|
121
|
+
color: #333;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.content1{
|
|
125
|
+
width:100%;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
min-height: 30px;
|
|
128
|
+
max-height: 100%;
|
|
129
|
+
position: absolute;
|
|
130
|
+
line-height: 30px;
|
|
131
|
+
top:50%;
|
|
132
|
+
transform: translateY(-50%);
|
|
133
|
+
left:0;
|
|
134
|
+
padding:0 15px 0 70px;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
display: -webkit-box;
|
|
138
|
+
-webkit-line-clamp:4;
|
|
139
|
+
-webkit-box-orient:vertical;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.ant-picker{
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.vertical-touch-platform{ // 竖屏端暂时统一覆盖样式 不使用传参控制
|
|
147
|
+
.method-modal1{
|
|
148
|
+
&.ant-modal-confirm{
|
|
149
|
+
.ant-modal-body{
|
|
150
|
+
padding: 32px 32px 24px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.ant-modal-mask{
|
|
155
|
+
background-color: rgba(0,0,0,.4);
|
|
156
|
+
opacity: 1 !important;
|
|
157
|
+
}
|
|
158
|
+
.ant-modal-body{
|
|
159
|
+
position: relative;
|
|
160
|
+
padding: 0;
|
|
161
|
+
}
|
|
162
|
+
.vertical-modal-wrapper {
|
|
163
|
+
&.ant-modal{
|
|
164
|
+
width: 80% !important;
|
|
165
|
+
}
|
|
166
|
+
.ant-modal-confirm-title{
|
|
167
|
+
padding: 0 !important;
|
|
168
|
+
height: auto !important;
|
|
169
|
+
font-size: 40px !important;
|
|
170
|
+
line-height: 40px!important;
|
|
171
|
+
color:#333333;
|
|
172
|
+
}
|
|
173
|
+
.ant-modal-content{
|
|
174
|
+
border-radius: 30px !important;
|
|
175
|
+
box-shadow: 0 5px 15px rgba(0,0,0,.2) !important;
|
|
176
|
+
.ant-modal-confirm-body{
|
|
177
|
+
height: auto;
|
|
178
|
+
.ant-modal-confirm-content{
|
|
179
|
+
height: auto !important;
|
|
180
|
+
padding-top: 110px !important;
|
|
181
|
+
.content1{
|
|
182
|
+
min-height: 50px;
|
|
183
|
+
font-size: 38px;
|
|
184
|
+
line-height: 48px;
|
|
185
|
+
display: block;
|
|
186
|
+
.method-modal-ticon{
|
|
187
|
+
font-size: 48px !important;
|
|
188
|
+
left: 40px !important;
|
|
189
|
+
height: 48px;
|
|
190
|
+
&:before{
|
|
191
|
+
position: relative;
|
|
192
|
+
top: 13px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
.ant-btn{
|
|
199
|
+
border-radius: 32px;
|
|
200
|
+
font-size: 32px !important;
|
|
201
|
+
padding: 6px 44px;
|
|
202
|
+
}
|
|
203
|
+
.ant-modal-confirm-btns{
|
|
204
|
+
height: 96px !important;
|
|
205
|
+
.ant-btn{
|
|
206
|
+
min-height: 64px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
.ant-modal-confirm-btns, .modal-footer-container{
|
|
210
|
+
margin-bottom: 8px;
|
|
211
|
+
margin-top: 80px;
|
|
212
|
+
.ant-btn{
|
|
213
|
+
&:first-child{
|
|
214
|
+
margin-right: 40px!important
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
.modal-footer-container{
|
|
219
|
+
text-align: right;
|
|
220
|
+
margin-right: -10px;
|
|
221
|
+
padding: 15px 0 15px 15px;
|
|
222
|
+
border-top: 1px solid transparent;
|
|
223
|
+
margin-top: 80px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
&.wrapperControl-modal-container{
|
|
227
|
+
.ant-modal-footer{
|
|
228
|
+
display: none;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
.ant-modal-confirm-content{
|
|
232
|
+
.content1{
|
|
233
|
+
padding:0 40px 0 150px !important;
|
|
234
|
+
position: relative !important;
|
|
235
|
+
transform: translateY(0) !important;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.modal-formated.memberClassWidth {
|
|
242
|
+
.ant-modal{
|
|
243
|
+
width:935px !important;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.modal-formated.memberCareWidth {
|
|
248
|
+
.ant-modal{
|
|
249
|
+
width:688px !important;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.modal-formated.serialWidth {
|
|
254
|
+
.ant-modal{
|
|
255
|
+
width:600px !important;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _promise = require('babel-runtime/core-js/promise');
|
|
8
|
+
|
|
9
|
+
var _promise2 = _interopRequireDefault(_promise);
|
|
10
|
+
|
|
11
|
+
exports.verticalContainer = verticalContainer;
|
|
12
|
+
exports.handleOnOk = handleOnOk;
|
|
13
|
+
exports.handleOnCancel = handleOnCancel;
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
function verticalContainer() {
|
|
18
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
19
|
+
var vertical = props.vertical,
|
|
20
|
+
wrapperControl = props.wrapperControl;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var className = '';
|
|
24
|
+
if (wrapperControl) className += 'wrapperControl-modal-container ';
|
|
25
|
+
if (vertical) className += 'vertical-modal-container vertical-modal-wrapper ';
|
|
26
|
+
|
|
27
|
+
return className;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function handleOnOk(onOk, modal, once) {
|
|
31
|
+
if (onOk) {
|
|
32
|
+
if (once === true) modal.destroy();
|
|
33
|
+
var result = onOk();
|
|
34
|
+
if (typeof result === 'boolean' && !result) return;
|
|
35
|
+
if (result instanceof _promise2.default) {
|
|
36
|
+
return result.then(function (res) {
|
|
37
|
+
return modal.destroy();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (!once) modal.destroy();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function handleOnCancel(onCancel, modal) {
|
|
45
|
+
modal.destroy();
|
|
46
|
+
onCancel && onCancel();
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/modalWraper/utils.js"],"names":["verticalContainer","handleOnOk","handleOnCancel","props","vertical","wrapperControl","className","onOk","modal","once","destroy","result","then","onCancel"],"mappings":";;;;;;;;;;QAAgBA,iB,GAAAA,iB;QAUAC,U,GAAAA,U;QAYAC,c,GAAAA,c;;;;AAtBT,SAASF,iBAAT,GAAuC;AAAA,MAAZG,KAAY,uEAAJ,EAAI;AAAA,MACpCC,QADoC,GACPD,KADO,CACpCC,QADoC;AAAA,MAC1BC,cAD0B,GACPF,KADO,CAC1BE,cAD0B;;;AAG5C,MAAIC,YAAY,EAAhB;AACA,MAAID,cAAJ,EAAoBC,aAAa,iCAAb;AACpB,MAAIF,QAAJ,EAAcE,aAAa,kDAAb;;AAEd,SAAOA,SAAP;AACD;;AAEM,SAASL,UAAT,CAAoBM,IAApB,EAA0BC,KAA1B,EAAiCC,IAAjC,EAAuC;AAC5C,MAAIF,IAAJ,EAAU;AACR,QAAIE,SAAS,IAAb,EAAmBD,MAAME,OAAN;AACnB,QAAMC,SAASJ,MAAf;AACA,QAAI,OAAOI,MAAP,KAAkB,SAAlB,IAA+B,CAACA,MAApC,EAA4C;AAC5C,QAAIA,mCAAJ,EAA+B;AAC7B,aAAOA,OAAOC,IAAP,CAAY;AAAA,eAAOJ,MAAME,OAAN,EAAP;AAAA,OAAZ,CAAP;AACD;AACD,QAAI,CAACD,IAAL,EAAWD,MAAME,OAAN;AACZ;AACF;;AAEM,SAASR,cAAT,CAAwBW,QAAxB,EAAkCL,KAAlC,EAAyC;AAC9CA,QAAME,OAAN;AACAG,cAAYA,UAAZ;AACD","file":"utils.js","sourcesContent":["export function verticalContainer(props = {}) {\n const { vertical, wrapperControl } = props;\n\n let className = '';\n if (wrapperControl) className += 'wrapperControl-modal-container ';\n if (vertical) className += 'vertical-modal-container vertical-modal-wrapper ';\n\n return className;\n}\n\nexport function handleOnOk(onOk, modal, once) {\n if (onOk) {\n if (once === true) modal.destroy();\n const result = onOk();\n if (typeof result === 'boolean' && !result) return;\n if (result instanceof Promise) {\n return result.then(res => modal.destroy());\n }\n if (!once) modal.destroy();\n }\n}\n\nexport function handleOnCancel(onCancel, modal) {\n modal.destroy();\n onCancel && onCancel();\n}\n"]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = undefined;
|
|
7
|
+
|
|
8
|
+
var _notification2 = require('antd/es/notification');
|
|
9
|
+
|
|
10
|
+
var _notification3 = _interopRequireDefault(_notification2);
|
|
11
|
+
|
|
12
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
13
|
+
|
|
14
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
15
|
+
|
|
16
|
+
require('antd/es/notification/style');
|
|
17
|
+
|
|
18
|
+
var _react = require('react');
|
|
19
|
+
|
|
20
|
+
var _react2 = _interopRequireDefault(_react);
|
|
21
|
+
|
|
22
|
+
var _index = require('../../index');
|
|
23
|
+
|
|
24
|
+
require('./index.less');
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
+
|
|
28
|
+
var mtd = "https://newretail.static.chanjet.com/muisc/mtd.mp3"; /*
|
|
29
|
+
* 1.您有新的订单
|
|
30
|
+
* 2.您有新的退款订单
|
|
31
|
+
* 3.请注意,商品调价了
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
var mtt = "https://newretail.static.chanjet.com/muisc/mtt.mp3";
|
|
35
|
+
var mtj = "https://newretail.static.chanjet.com/muisc/mtj.mp3";
|
|
36
|
+
|
|
37
|
+
var NotificationP = function NotificationP() {
|
|
38
|
+
var _this = this;
|
|
39
|
+
|
|
40
|
+
(0, _classCallCheck3.default)(this, NotificationP);
|
|
41
|
+
|
|
42
|
+
this.click = function (cb) {
|
|
43
|
+
cb && cb();
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
this.close = function (key) {
|
|
47
|
+
_notification3.default.close(key);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
this.show = function () {
|
|
51
|
+
var total = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 99;
|
|
52
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
53
|
+
var callback = arguments[2];
|
|
54
|
+
|
|
55
|
+
var that = _this;
|
|
56
|
+
if (_this.key) {
|
|
57
|
+
_this.close(_this.key);
|
|
58
|
+
}
|
|
59
|
+
var title = null,
|
|
60
|
+
voice = null,
|
|
61
|
+
status = false;
|
|
62
|
+
switch (type) {
|
|
63
|
+
case 1:
|
|
64
|
+
title = "您有新的订单";
|
|
65
|
+
voice = mtd;
|
|
66
|
+
status = true;
|
|
67
|
+
break;
|
|
68
|
+
case 2:
|
|
69
|
+
title = "您有新的退款订单";
|
|
70
|
+
voice = mtt;
|
|
71
|
+
status = false;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
var key = Date.now();
|
|
75
|
+
_notification3.default.open({
|
|
76
|
+
className: 'notificationContainer',
|
|
77
|
+
description: _react2.default.createElement(
|
|
78
|
+
'div',
|
|
79
|
+
{ className: 'content', onClick: function onClick() {
|
|
80
|
+
if (status) {
|
|
81
|
+
that.click(callback);
|
|
82
|
+
}
|
|
83
|
+
} },
|
|
84
|
+
_react2.default.createElement(_index.Ticon, { type: 'laba' }),
|
|
85
|
+
_react2.default.createElement(
|
|
86
|
+
'div',
|
|
87
|
+
{ className: 'second' },
|
|
88
|
+
_react2.default.createElement(
|
|
89
|
+
'div',
|
|
90
|
+
{ className: status ? 'text color' : 'text' },
|
|
91
|
+
title
|
|
92
|
+
),
|
|
93
|
+
status && _react2.default.createElement(
|
|
94
|
+
'div',
|
|
95
|
+
{ className: 'total' },
|
|
96
|
+
total
|
|
97
|
+
)
|
|
98
|
+
),
|
|
99
|
+
_react2.default.createElement(
|
|
100
|
+
'audio',
|
|
101
|
+
{ controls: 'controls', autoplay: 'autoplay', preload: true, hidden: true },
|
|
102
|
+
_react2.default.createElement('source', { src: voice })
|
|
103
|
+
)
|
|
104
|
+
),
|
|
105
|
+
key: key,
|
|
106
|
+
placement: 'topRight',
|
|
107
|
+
duration: 99999,
|
|
108
|
+
onClose: function onClose() {
|
|
109
|
+
console.log('simple close');
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
_this.key = key;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
this.key = null;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
exports.default = NotificationP;
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/notification/index.js"],"names":["mtd","mtt","mtj","NotificationP","click","cb","close","key","show","total","type","callback","that","title","voice","status","Date","now","open","className","description","placement","duration","onClose","console","log"],"mappings":";;;;;;;;;;;;;;;;;AAMA;;;;AAEA;;AACA;;;;AAEA,IAAMA,MAAM,oDAAZ,C,CAXA;;;;;;AAYA,IAAMC,MAAM,oDAAZ;AACA,IAAMC,MAAM,oDAAZ;;IACqBC,a,GACjB,yBAAc;AAAA;;AAAA;;AAAA,SAIdC,KAJc,GAIN,UAACC,EAAD,EAAQ;AACZA,cAAMA,IAAN;AACH,KANa;;AAAA,SAOdC,KAPc,GAON,UAACC,GAAD,EAAS;AACb,+BAAaD,KAAb,CAAmBC,GAAnB;AACH,KATa;;AAAA,SAUdC,IAVc,GAUP,YAAoC;AAAA,YAAnCC,KAAmC,uEAA3B,EAA2B;AAAA,YAAvBC,IAAuB,uEAAhB,CAAgB;AAAA,YAAbC,QAAa;;AACvC,YAAIC,OAAO,KAAX;AACA,YAAI,MAAKL,GAAT,EAAc;AACV,kBAAKD,KAAL,CAAW,MAAKC,GAAhB;AACH;AACD,YAAIM,QAAQ,IAAZ;AAAA,YAAkBC,QAAQ,IAA1B;AAAA,YAAgCC,SAAS,KAAzC;AACA,gBAAQL,IAAR;AACI,iBAAK,CAAL;AACIG,wBAAQ,QAAR;AACAC,wBAAQd,GAAR;AACAe,yBAAS,IAAT;AACA;AACJ,iBAAK,CAAL;AACIF,wBAAQ,UAAR;AACAC,wBAAQb,GAAR;AACAc,yBAAS,KAAT;AACA;AAVR;AAYA,YAAMR,MAAMS,KAAKC,GAAL,EAAZ;AACA,+BAAaC,IAAb,CAAkB;AACdC,uBAAW,uBADG;AAEdC,yBAAa;AAAA;AAAA,kBAAK,WAAU,SAAf,EAAyB,SAAS,mBAAM;AAAE,4BAAIL,MAAJ,EAAY;AAAEH,iCAAKR,KAAL,CAAWO,QAAX;AAAsB;AAAE,qBAAhF;AACT,8CAAC,YAAD,IAAO,MAAK,MAAZ,GADS;AAET;AAAA;AAAA,sBAAK,WAAU,QAAf;AACI;AAAA;AAAA,0BAAK,WAAWI,SAAS,YAAT,GAAwB,MAAxC;AAAiDF;AAAjD,qBADJ;AAGQE,8BACA;AAAA;AAAA,0BAAK,WAAU,OAAf;AAAwBN;AAAxB;AAJR,iBAFS;AAST;AAAA;AAAA,sBAAO,UAAS,UAAhB,EAA2B,UAAS,UAApC,EAA+C,aAA/C,EAAuD,YAAvD;AACI,8DAAQ,KAAKK,KAAb;AADJ;AATS,aAFC;AAedP,oBAfc;AAgBdc,uBAAW,UAhBG;AAiBdC,sBAAU,KAjBI;AAkBdC,mBAlBc,qBAkBJ;AAAEC,wBAAQC,GAAR,CAAY,cAAZ;AAA6B;AAlB3B,SAAlB;AAoBA,cAAKlB,GAAL,GAAWA,GAAX;AACH,KAlDa;;AACV,SAAKA,GAAL,GAAW,IAAX;AACH,C;;kBAHgBJ,a","file":"index.js","sourcesContent":["/*\n * 1.您有新的订单\n * 2.您有新的退款订单\n * 3.请注意,商品调价了\n*/\n\nimport React from 'react';\nimport { notification } from 'antd';\nimport { Ticon } from '../../index';\nimport './index.less';\n\nconst mtd = \"https://newretail.static.chanjet.com/muisc/mtd.mp3\";\nconst mtt = \"https://newretail.static.chanjet.com/muisc/mtt.mp3\";\nconst mtj = \"https://newretail.static.chanjet.com/muisc/mtj.mp3\";\nexport default class NotificationP {\n constructor() {\n this.key = null;\n }\n\n click = (cb) => {\n cb && cb();\n }\n close = (key) => {\n notification.close(key);\n }\n show = (total = 99, type = 1, callback) => {\n let that = this;\n if (this.key) {\n this.close(this.key);\n }\n let title = null, voice = null, status = false;\n switch (type) {\n case 1:\n title = \"您有新的订单\";\n voice = mtd;\n status = true;\n break;\n case 2:\n title = \"您有新的退款订单\";\n voice = mtt;\n status = false;\n break;\n }\n const key = Date.now();\n notification.open({\n className: 'notificationContainer',\n description: <div className='content' onClick={() => { if (status) { that.click(callback) } }}>\n <Ticon type='laba' />\n <div className='second'>\n <div className={status ? 'text color' : 'text'}>{title}</div>\n {\n status &&\n <div className='total'>{total}</div>\n }\n </div>\n <audio controls=\"controls\" autoplay=\"autoplay\" preload hidden>\n <source src={voice} />\n </audio>\n </div>,\n key,\n placement: 'topRight',\n duration: 99999,\n onClose() { console.log('simple close') }\n })\n this.key = key;\n }\n}"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.notificationContainer {
|
|
2
|
+
border-radius: 6px;
|
|
3
|
+
width : 220px;
|
|
4
|
+
height : 50px;
|
|
5
|
+
line-height : 50px;
|
|
6
|
+
padding : 0;
|
|
7
|
+
display : block;
|
|
8
|
+
float : right;
|
|
9
|
+
cursor : pointer;
|
|
10
|
+
.ant-notification-notice-message{
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
.ant-notification-notice-close{
|
|
14
|
+
top: -10px;
|
|
15
|
+
right: 10px;
|
|
16
|
+
}
|
|
17
|
+
.content {
|
|
18
|
+
|
|
19
|
+
display : flex;
|
|
20
|
+
align-items : flex-start;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
margin-left : 15px;
|
|
23
|
+
margin-right : 25px;
|
|
24
|
+
|
|
25
|
+
i {
|
|
26
|
+
font-size: 20px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.second {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
|
|
34
|
+
.text {
|
|
35
|
+
font-size : 14px;
|
|
36
|
+
margin-left : 5px;
|
|
37
|
+
margin-right: 5px;
|
|
38
|
+
width : 120px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.total {
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
font-size : 10px;
|
|
44
|
+
width : 20px;
|
|
45
|
+
height : 20px;
|
|
46
|
+
line-height : 20px;
|
|
47
|
+
text-align : center;
|
|
48
|
+
margin-top: 15px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|