aaa-ui-test 1.0.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.

Potentially problematic release.


This version of aaa-ui-test might be problematic. Click here for more details.

Files changed (189) hide show
  1. package/README.md +62 -0
  2. package/babel-plugin-on-demand-load/index.js +74 -0
  3. package/babel-plugin-on-demand-load/report.js +49 -0
  4. package/lib/address/index.js +19 -0
  5. package/lib/address/src/address.js +340 -0
  6. package/lib/amount/index.js +19 -0
  7. package/lib/amount/src/amount.js +206 -0
  8. package/lib/button/index.js +19 -0
  9. package/lib/button/src/button.js +75 -0
  10. package/lib/button-group/index.js +19 -0
  11. package/lib/button-group/src/button-group.js +53 -0
  12. package/lib/checkbox/index.js +22 -0
  13. package/lib/checkbox/src/checkbox-group.js +85 -0
  14. package/lib/checkbox/src/checkbox.js +228 -0
  15. package/lib/components/address/index.js +19 -0
  16. package/lib/components/amount/index.js +19 -0
  17. package/lib/components/button/index.js +19 -0
  18. package/lib/components/button-group/index.js +19 -0
  19. package/lib/components/checkbox/index.js +22 -0
  20. package/lib/components/date-selecter/index.js +19 -0
  21. package/lib/components/default/index.js +19 -0
  22. package/lib/components/dialog/index.js +204 -0
  23. package/lib/components/field/index.js +19 -0
  24. package/lib/components/input/index.js +19 -0
  25. package/lib/components/list/index.js +19 -0
  26. package/lib/components/list-item/index.js +19 -0
  27. package/lib/components/loading/index.js +116 -0
  28. package/lib/components/mask/index.js +19 -0
  29. package/lib/components/notice/index.js +19 -0
  30. package/lib/components/overlay/index.js +19 -0
  31. package/lib/components/picker/index.js +19 -0
  32. package/lib/components/popup/index.js +19 -0
  33. package/lib/components/popup-header/index.js +19 -0
  34. package/lib/components/radio/index.js +19 -0
  35. package/lib/components/select/index.js +19 -0
  36. package/lib/components/swiper/index.js +19 -0
  37. package/lib/components/switch/index.js +19 -0
  38. package/lib/components/tabs/index.js +22 -0
  39. package/lib/components/textarea/index.js +19 -0
  40. package/lib/components/toast/index.js +60 -0
  41. package/lib/date-selecter/index.js +19 -0
  42. package/lib/date-selecter/src/dateselecter.js +544 -0
  43. package/lib/default/index.js +19 -0
  44. package/lib/default/src/default.js +61 -0
  45. package/lib/dialog/index.js +204 -0
  46. package/lib/dialog/src/dialog.js +258 -0
  47. package/lib/field/index.js +19 -0
  48. package/lib/field/src/field.js +91 -0
  49. package/lib/index.css +2213 -0
  50. package/lib/index.js +10083 -0
  51. package/lib/input/index.js +19 -0
  52. package/lib/input/src/input.js +365 -0
  53. package/lib/list/index.js +19 -0
  54. package/lib/list/src/list.js +54 -0
  55. package/lib/list-item/index.js +19 -0
  56. package/lib/list-item/src/list-item.js +122 -0
  57. package/lib/loading/index.js +116 -0
  58. package/lib/loading/src/loading.js +80 -0
  59. package/lib/mask/index.js +19 -0
  60. package/lib/mask/src/mask.js +94 -0
  61. package/lib/mixins/emitter.js +43 -0
  62. package/lib/mixins/visible.js +29 -0
  63. package/lib/notice/index.js +19 -0
  64. package/lib/notice/src/notice.js +188 -0
  65. package/lib/overlay/index.js +19 -0
  66. package/lib/overlay/src/overlay.js +153 -0
  67. package/lib/picker/index.js +19 -0
  68. package/lib/picker/src/picker.js +218 -0
  69. package/lib/popup/index.js +19 -0
  70. package/lib/popup/src/popup.js +170 -0
  71. package/lib/popup-header/index.js +19 -0
  72. package/lib/popup-header/src/popup-header.js +93 -0
  73. package/lib/radio/index.js +19 -0
  74. package/lib/radio/src/radio.js +102 -0
  75. package/lib/select/index.js +19 -0
  76. package/lib/select/src/select.js +136 -0
  77. package/lib/swiper/index.js +19 -0
  78. package/lib/swiper/src/swiper.js +270 -0
  79. package/lib/switch/index.js +19 -0
  80. package/lib/switch/src/switch.js +143 -0
  81. package/lib/tabs/index.js +22 -0
  82. package/lib/tabs/src/tab-item.js +72 -0
  83. package/lib/tabs/src/tabs.js +171 -0
  84. package/lib/textarea/index.js +19 -0
  85. package/lib/textarea/src/textarea.js +219 -0
  86. package/lib/toast/index.js +60 -0
  87. package/lib/toast/src/toast.js +59 -0
  88. package/lib/utils/clickoutside.js +45 -0
  89. package/lib/utils/fix-body.js +57 -0
  90. package/lib/utils/utils.js +74 -0
  91. package/package.json +73 -0
  92. package/src/assets/css/common/_mixin.scss +130 -0
  93. package/src/assets/css/common/_var.scss +69 -0
  94. package/src/components/address/index.js +8 -0
  95. package/src/components/address/index.scss +72 -0
  96. package/src/components/address/src/address.vue +238 -0
  97. package/src/components/amount/index.js +6 -0
  98. package/src/components/amount/index.scss +88 -0
  99. package/src/components/amount/src/amount.vue +143 -0
  100. package/src/components/button/__tests__/__snapshots__/index.test.js.snap +7 -0
  101. package/src/components/button/__tests__/index.test.js +39 -0
  102. package/src/components/button/index.js +7 -0
  103. package/src/components/button/index.scss +83 -0
  104. package/src/components/button/src/button.vue +39 -0
  105. package/src/components/button-group/index.js +8 -0
  106. package/src/components/button-group/index.scss +37 -0
  107. package/src/components/button-group/src/button-group.vue +21 -0
  108. package/src/components/checkbox/index.js +8 -0
  109. package/src/components/checkbox/index.scss +47 -0
  110. package/src/components/checkbox/src/checkbox-group.vue +53 -0
  111. package/src/components/checkbox/src/checkbox.vue +153 -0
  112. package/src/components/date-selecter/index.js +6 -0
  113. package/src/components/date-selecter/index.scss +190 -0
  114. package/src/components/date-selecter/src/dateselecter.vue +387 -0
  115. package/src/components/default/index.js +6 -0
  116. package/src/components/default/index.scss +25 -0
  117. package/src/components/default/src/default.vue +23 -0
  118. package/src/components/dialog/index.js +146 -0
  119. package/src/components/dialog/index.scss +250 -0
  120. package/src/components/dialog/src/dialog.vue +153 -0
  121. package/src/components/field/index.js +8 -0
  122. package/src/components/field/index.scss +93 -0
  123. package/src/components/field/src/field.vue +57 -0
  124. package/src/components/input/__tests__/__snapshots__/index.test.js.snap +10 -0
  125. package/src/components/input/__tests__/index.test.js +63 -0
  126. package/src/components/input/index.js +8 -0
  127. package/src/components/input/index.scss +91 -0
  128. package/src/components/input/src/input.vue +214 -0
  129. package/src/components/list/index.js +8 -0
  130. package/src/components/list/index.scss +21 -0
  131. package/src/components/list/src/list.vue +16 -0
  132. package/src/components/list-item/index.js +8 -0
  133. package/src/components/list-item/index.scss +126 -0
  134. package/src/components/list-item/src/list-item.vue +59 -0
  135. package/src/components/loading/__tests__/__snapshots__/index.test.js.snap +9 -0
  136. package/src/components/loading/__tests__/index.test.js +30 -0
  137. package/src/components/loading/index.js +128 -0
  138. package/src/components/loading/index.scss +33 -0
  139. package/src/components/loading/src/loading.vue +23 -0
  140. package/src/components/mask/index.js +9 -0
  141. package/src/components/mask/index.scss +16 -0
  142. package/src/components/mask/src/mask.vue +52 -0
  143. package/src/components/notice/index.js +6 -0
  144. package/src/components/notice/index.scss +81 -0
  145. package/src/components/notice/src/notice.vue +128 -0
  146. package/src/components/overlay/index.js +8 -0
  147. package/src/components/overlay/index.scss +119 -0
  148. package/src/components/overlay/src/overlay.vue +72 -0
  149. package/src/components/picker/index.js +7 -0
  150. package/src/components/picker/index.scss +49 -0
  151. package/src/components/picker/src/picker.vue +205 -0
  152. package/src/components/popup/index.js +8 -0
  153. package/src/components/popup/index.scss +79 -0
  154. package/src/components/popup/src/popup.vue +88 -0
  155. package/src/components/popup-header/index.js +8 -0
  156. package/src/components/popup-header/index.scss +45 -0
  157. package/src/components/popup-header/src/popup-header.vue +41 -0
  158. package/src/components/radio/index.js +8 -0
  159. package/src/components/radio/index.scss +19 -0
  160. package/src/components/radio/src/radio.vue +51 -0
  161. package/src/components/select/index.js +8 -0
  162. package/src/components/select/index.scss +51 -0
  163. package/src/components/select/src/select.vue +86 -0
  164. package/src/components/swiper/index.js +6 -0
  165. package/src/components/swiper/index.scss +49 -0
  166. package/src/components/swiper/src/swiper.vue +211 -0
  167. package/src/components/switch/__tests__/__snapshots__/index.test.js.snap +15 -0
  168. package/src/components/switch/__tests__/index.test.js +44 -0
  169. package/src/components/switch/index.js +8 -0
  170. package/src/components/switch/index.scss +85 -0
  171. package/src/components/switch/src/switch.vue +60 -0
  172. package/src/components/tabs/index.js +8 -0
  173. package/src/components/tabs/index.scss +73 -0
  174. package/src/components/tabs/src/tab-item.vue +40 -0
  175. package/src/components/tabs/src/tabs.vue +121 -0
  176. package/src/components/textarea/index.js +8 -0
  177. package/src/components/textarea/index.scss +41 -0
  178. package/src/components/textarea/src/textarea.vue +140 -0
  179. package/src/components/toast/__tests__/__snapshots__/index.test.js.snap +3 -0
  180. package/src/components/toast/__tests__/index.test.js +25 -0
  181. package/src/components/toast/index.js +53 -0
  182. package/src/components/toast/index.scss +102 -0
  183. package/src/components/toast/src/toast.vue +19 -0
  184. package/src/index.js +87 -0
  185. package/src/mixins/emitter.js +33 -0
  186. package/src/mixins/visible.js +23 -0
  187. package/src/utils/clickoutside.js +42 -0
  188. package/src/utils/fix-body.js +46 -0
  189. package/src/utils/utils.js +71 -0
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ //
13
+ //
14
+ //
15
+ //
16
+ //
17
+ //
18
+ //
19
+ //
20
+ //
21
+ //
22
+ //
23
+ //
24
+ //
25
+ var __script__ = {
26
+ name: "JddPicker",
27
+ props: {
28
+ type: {
29
+ type: String
30
+ },
31
+ // change:{
32
+ // type:Function
33
+ // },
34
+ outindex: {
35
+ type: Number,
36
+ default: 2
37
+ },
38
+ data: {
39
+ type: Array,
40
+ default: function _default() {
41
+ return [];
42
+ }
43
+ }
44
+ },
45
+ data: function data() {
46
+ return {
47
+ currentTop: 0,
48
+ moveTop: 0,
49
+ moveDis: 0,
50
+ index: this.outindex,
51
+ height: 50,
52
+ childrenLength: 0
53
+ };
54
+ },
55
+ mounted: function mounted() {
56
+ // debugger;
57
+ // this.renderPosition(this.index);
58
+ var top = -(this.index * this.height);
59
+ var style = "-webkit-transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); -webkit-transition-duration: 300ms; transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); transition-duration: 300ms; transform: translate3d(0px, " + top + "px,0px);-webkit-transform: translate3d(0px, " + top + "px,0px)"; // this.$refs.dl.style = style;
60
+ // this.$refs.dl.style.transform = "translate3d(0px, " +
61
+ // top +
62
+ // "px,0px)";
63
+
64
+ this.setPos(this.$refs.dl, top); //var childrenes = this.$refs.dl.parentNode.parentNode.children;
65
+ // for(var i=0; i<childrenes.length; i++){
66
+ // childrenes[i].style.width = 100/childrenes.length + '%';
67
+ // }
68
+ // this.$nextTick(()=>{
69
+ // this.setIndex(this.$refs.dl);
70
+ // })
71
+ },
72
+ updated: function updated() {
73
+ this.renderPosition(this.outindex);
74
+ },
75
+ watch: {
76
+ data: function data(newVal) {
77
+ this.index = Math.min(this.index, newVal.length - 1);
78
+ this.$emit("update:outindex", this.index);
79
+ }
80
+ },
81
+ methods: {
82
+ setPos: function setPos(dom, top) {
83
+ dom.style["-webkit-transition-timing-function"] = "cubic-bezier(0.1, 0.57, 0.1, 1)";
84
+ dom.style["-webkit-transition-duration"] = "300ms";
85
+ dom.style["transition-timing-function"] = "cubic-bezier(0.1, 0.57, 0.1, 1)";
86
+ dom.style["transition-duration"] = "300ms";
87
+ dom.style["-webkit-transform"] = "translate3d(0px, " + top + "px,0px)";
88
+ dom.style["transform"] = "translate3d(0px, " + top + "px,0px)"; //dom.style
89
+ },
90
+ renderPosition: function renderPosition() {
91
+ this.index = this.index >= this.data.length ? this.data.length - 1 : this.index;
92
+ var top = -(this.index * this.height);
93
+ var style = "-webkit-transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); -webkit-transition-duration: 300ms; transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); transition-duration: 300ms; transform: translate3d(0px, " + top + "px,0px);-webkit-transform: translate3d(0px, " + top + "px,0px)"; //this.$refs.dl.style = style;
94
+ // this.$refs.dl.style.transform = "translate3d(0px, " +
95
+ // top +
96
+ // "px,0px)";
97
+
98
+ this.setPos(this.$refs.dl, top); // var childrenes = this.$refs.dl.parentNode.parentNode.children;
99
+ // for(var i=0; i<childrenes.length; i++){
100
+ // childrenes[i].style.width = 100/childrenes.length + '%';
101
+ // }
102
+ // this.$nextTick(()=>{
103
+ // this.setIndex(this.$refs.dl);
104
+ // })
105
+ },
106
+ touchstart: function touchstart(ev) {
107
+ this.childrenLength = ev.target.parentNode.children.length;
108
+ this.currentTop = ev.targetTouches[0].clientY; // console.log( 'currentTop:' + this.currentTop );
109
+ },
110
+ touchmove: function touchmove(ev) {
111
+ this.moveTop = ev.targetTouches[0].clientY;
112
+ this.moveDis = Number(this.moveTop) - Number(this.currentTop);
113
+ var top = -(this.index * this.height) + this.moveDis;
114
+ var style = "-webkit-transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); -webkit-transition-duration: 300ms; transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); transition-duration: 300ms; transform: translate3d(0px, " + top + "px,0px);-webkit-transform: translate3d(0px, " + top + "px,0px)"; // ev.target.parentNode.style = style;
115
+ // ev.target.parentNode.style.transform = "translate3d(0px, " +
116
+ // top +
117
+ // "px,0px)";
118
+
119
+ this.setPos(ev.target.parentNode, top); // console.log('moveTop:' + this.moveTop);
120
+ // console.log('moveDis:' + this.moveDis);
121
+ },
122
+ touchend: function touchend(ev) {
123
+ if (this.moveDis >= this.height / 2) {
124
+ var num = Math.floor(this.moveDis / this.height) || 1;
125
+ this.index = this.index - num;
126
+
127
+ if (this.index < 1) {
128
+ this.index = 0;
129
+ }
130
+ }
131
+
132
+ if (this.moveDis <= -this.height / 2) {
133
+ var _num = -Math.floor(this.moveDis / this.height) || 1;
134
+
135
+ this.index = this.index + _num;
136
+
137
+ if (this.index > this.childrenLength - 1) {
138
+ this.index = this.childrenLength - 1;
139
+ }
140
+ }
141
+
142
+ var top = -(this.index * this.height);
143
+ var style = "-webkit-transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); -webkit-transition-duration: 300ms; transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); transition-duration: 300ms; transform: translate3d(0px, " + top + "px,0px);-webkit-transform: translate3d(0px, " + top + "px,0px)"; //ev.target.parentNode.style = style;
144
+ // ev.target.parentNode.style.transform = "translate3d(0px, " +
145
+ // top +
146
+ // "px,0px)";
147
+
148
+ this.setPos(ev.target.parentNode, top); //this.setIndex(ev.target.parentNode);
149
+ // debugger;
150
+
151
+ this.$emit("update:outindex", this.index);
152
+ var changeObj = {};
153
+ changeObj["type"] = this.type;
154
+ changeObj["index"] = this.index;
155
+ this.$emit("change", changeObj); // this.$props.change && this.$props.change(changeObj);
156
+ } // setIndex: function(scrollBox){
157
+ // var childrens = scrollBox.children;
158
+ // // let exist = false;
159
+ // for(var i=0;i<childrens.length;i++)
160
+ // {
161
+ // if(i == this.index){
162
+ // exist = true;
163
+ // childrens[i].className = 'focus';
164
+ // }
165
+ // else{
166
+ // childrens[i].className = '';
167
+ // }
168
+ // }
169
+ // }
170
+
171
+ }
172
+ };
173
+
174
+ var render = function render() {
175
+ var _vm = this;
176
+
177
+ var _h = _vm.$createElement;
178
+
179
+ var _c = _vm._self._c || _h;
180
+
181
+ return _c('div', [_c('dl', {
182
+ ref: "dl",
183
+ on: {
184
+ "touchstart": function touchstart($event) {
185
+ $event.stopPropagation();
186
+ $event.preventDefault();
187
+ return _vm.touchstart($event);
188
+ },
189
+ "touchmove": function touchmove($event) {
190
+ $event.stopPropagation();
191
+ $event.preventDefault();
192
+ return _vm.touchmove($event);
193
+ },
194
+ "touchend": function touchend($event) {
195
+ $event.stopPropagation();
196
+ $event.preventDefault();
197
+ return _vm.touchend($event);
198
+ }
199
+ }
200
+ }, _vm._l(_vm.data, function (item, ind) {
201
+ return _c('dd', {
202
+ key: ind,
203
+ class: {
204
+ focus: _vm.index == ind
205
+ }
206
+ }, [_vm._v(_vm._s(item))]);
207
+ }), 0)]);
208
+ };
209
+
210
+ var staticRenderFns = [];
211
+ var __template__ = {
212
+ render: render,
213
+ staticRenderFns: staticRenderFns
214
+ };
215
+
216
+ var _default2 = (0, _extends2.default)({}, __script__, __template__);
217
+
218
+ exports.default = _default2;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _popup = _interopRequireDefault(require("./src/popup"));
11
+
12
+ require("./index.css");
13
+
14
+ _popup.default.install = function (Vue) {
15
+ Vue.component(_popup.default.name, _popup.default);
16
+ };
17
+
18
+ var _default = _popup.default;
19
+ exports.default = _default;
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _mask = _interopRequireDefault(require("../../mask"));
13
+
14
+ //
15
+ //
16
+ //
17
+ //
18
+ //
19
+ //
20
+ //
21
+ //
22
+ //
23
+ //
24
+ //
25
+ //
26
+ //
27
+ //
28
+ //
29
+ //
30
+ //
31
+ //
32
+ //
33
+ //
34
+ //
35
+ var __script__ = {
36
+ name: "JddPopup",
37
+ props: {
38
+ visible: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ popHeight: {
43
+ type: String,
44
+ default: ""
45
+ },
46
+ mainTitle: {
47
+ type: String,
48
+ default: ""
49
+ },
50
+ subTitle: {
51
+ type: String,
52
+ default: ""
53
+ },
54
+ showMask: {
55
+ type: Boolean,
56
+ default: true
57
+ }
58
+ },
59
+ data: function data() {
60
+ return {};
61
+ },
62
+ components: {
63
+ JddMask: _mask.default
64
+ },
65
+ mounted: function mounted() {
66
+ // const body = document.querySelector("body");
67
+ //将body放在
68
+ document.querySelector("body").appendChild(this.$el);
69
+ },
70
+ provide: function provide() {
71
+ return {
72
+ closeMask: this.handleClose
73
+ };
74
+ },
75
+ computed: {
76
+ getMask: function getMask() {
77
+ return this.visible && this.showMask;
78
+ }
79
+ },
80
+ methods: {
81
+ maskClick: function maskClick() {
82
+ this.$emit("update:visible", false); // this.showModal = false;
83
+ },
84
+ handleClose: function handleClose() {
85
+ this.$emit("update:visible", false);
86
+ }
87
+ },
88
+ destroyed: function destroyed() {
89
+ //remove child when components destroyed
90
+ if (this.$el && this.$el.parentNode) {
91
+ this.$el.parentNode.removeChild(this.$el);
92
+ }
93
+ }
94
+ };
95
+
96
+ var render = function render() {
97
+ var _vm = this;
98
+
99
+ var _h = _vm.$createElement;
100
+
101
+ var _c = _vm._self._c || _h;
102
+
103
+ return _c('transition', {
104
+ attrs: {
105
+ "name": "jdd-fade-bottom",
106
+ "appear": ""
107
+ }
108
+ }, [_c('div', {
109
+ directives: [{
110
+ name: "show",
111
+ rawName: "v-show",
112
+ value: _vm.visible,
113
+ expression: "visible"
114
+ }],
115
+ staticClass: "jdd-popup-wrap"
116
+ }, [_c('jdd-mask', {
117
+ on: {
118
+ "onClick": _vm.maskClick
119
+ },
120
+ model: {
121
+ value: _vm.getMask,
122
+ callback: function callback($$v) {
123
+ _vm.getMask = $$v;
124
+ },
125
+ expression: "getMask"
126
+ }
127
+ }), _vm._v(" "), _c('div', {
128
+ staticClass: "jdd-popup",
129
+ style: {
130
+ height: _vm.popHeight
131
+ }
132
+ }, [_vm._t("popup-header", [_c('div', {
133
+ directives: [{
134
+ name: "show",
135
+ rawName: "v-show",
136
+ value: _vm.mainTitle,
137
+ expression: "mainTitle"
138
+ }],
139
+ staticClass: "jdd-popup-header"
140
+ }, [_c('div', {
141
+ staticClass: "jdd-popup-main-title"
142
+ }, [_c('p', [_vm._v(_vm._s(_vm.mainTitle))]), _vm._v(" "), _c('span', {
143
+ on: {
144
+ "click": function click($event) {
145
+ $event.stopPropagation();
146
+ return _vm.handleClose($event);
147
+ }
148
+ }
149
+ })]), _vm._v(" "), _c('p', {
150
+ directives: [{
151
+ name: "show",
152
+ rawName: "v-show",
153
+ value: _vm.subTitle,
154
+ expression: "subTitle"
155
+ }],
156
+ staticClass: "jdd-popup-sub-title"
157
+ }, [_vm._v(_vm._s(_vm.subTitle))])])]), _vm._v(" "), _c('div', {
158
+ staticClass: "jdd-popup-content"
159
+ }, [_vm._t("default")], 2)], 2)], 1)]);
160
+ };
161
+
162
+ var staticRenderFns = [];
163
+ var __template__ = {
164
+ render: render,
165
+ staticRenderFns: staticRenderFns
166
+ };
167
+
168
+ var _default = (0, _extends2.default)({}, __script__, __template__);
169
+
170
+ exports.default = _default;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _popupHeader = _interopRequireDefault(require("./src/popup-header"));
11
+
12
+ require("./index.css");
13
+
14
+ _popupHeader.default.install = function (Vue) {
15
+ Vue.component(_popupHeader.default.name, _popupHeader.default);
16
+ };
17
+
18
+ var _default = _popupHeader.default;
19
+ exports.default = _default;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ //
13
+ //
14
+ //
15
+ //
16
+ //
17
+ //
18
+ //
19
+ //
20
+ //
21
+ var __script__ = {
22
+ name: "JddPopupHeader",
23
+ inject: ['closeMask'],
24
+ props: {
25
+ mainTitle: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ subTitle: {
30
+ type: String,
31
+ default: ""
32
+ },
33
+ textAlign: {
34
+ type: String,
35
+ default: "center"
36
+ }
37
+ },
38
+ data: function data() {
39
+ return {};
40
+ },
41
+ methods: {
42
+ closePopup: function closePopup() {
43
+ this.closeMask();
44
+ this.$emit("close-pop");
45
+ }
46
+ }
47
+ };
48
+
49
+ var render = function render() {
50
+ var _vm = this;
51
+
52
+ var _h = _vm.$createElement;
53
+
54
+ var _c = _vm._self._c || _h;
55
+
56
+ return _c('div', {
57
+ staticClass: "jdd-popup-header"
58
+ }, [_c('div', {
59
+ staticClass: "jdd-popup-main-title"
60
+ }, [_c('p', {
61
+ style: {
62
+ 'text-align': _vm.textAlign
63
+ }
64
+ }, [_vm._v(_vm._s(_vm.mainTitle))]), _vm._v(" "), _c('span', {
65
+ on: {
66
+ "click": function click($event) {
67
+ $event.stopPropagation();
68
+ return _vm.closePopup($event);
69
+ }
70
+ }
71
+ })]), _vm._v(" "), _c('p', {
72
+ directives: [{
73
+ name: "show",
74
+ rawName: "v-show",
75
+ value: _vm.subTitle,
76
+ expression: "subTitle"
77
+ }],
78
+ staticClass: "jdd-popup-sub-title",
79
+ style: {
80
+ 'text-align': _vm.textAlign
81
+ }
82
+ }, [_vm._v(_vm._s(_vm.subTitle))])]);
83
+ };
84
+
85
+ var staticRenderFns = [];
86
+ var __template__ = {
87
+ render: render,
88
+ staticRenderFns: staticRenderFns
89
+ };
90
+
91
+ var _default = (0, _extends2.default)({}, __script__, __template__);
92
+
93
+ exports.default = _default;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _radio = _interopRequireDefault(require("./src/radio"));
11
+
12
+ require("./index.css");
13
+
14
+ _radio.default.install = function (Vue) {
15
+ Vue.component(_radio.default.name, _radio.default);
16
+ };
17
+
18
+ var _default = _radio.default;
19
+ exports.default = _default;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ //
13
+ //
14
+ //
15
+ //
16
+ //
17
+ //
18
+ //
19
+ //
20
+ var __script__ = {
21
+ name: "JddRadio",
22
+ props: {
23
+ mainTitle: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ subTitle: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ options: {
32
+ type: Array,
33
+ default: function _default() {
34
+ return [];
35
+ }
36
+ },
37
+ value: {
38
+ default: ""
39
+ },
40
+ selectField: {
41
+ type: String,
42
+ default: "value"
43
+ }
44
+ },
45
+ data: function data() {
46
+ return {
47
+ validateStatus: true,
48
+ label: this.title
49
+ };
50
+ },
51
+ methods: {
52
+ updateValue: function updateValue(item) {
53
+ this.$emit("input", item[this.selectField]);
54
+ this.$emit("select-item", item);
55
+ }
56
+ }
57
+ };
58
+
59
+ var render = function render() {
60
+ var _vm = this;
61
+
62
+ var _h = _vm.$createElement;
63
+
64
+ var _c = _vm._self._c || _h;
65
+
66
+ return _c('div', {
67
+ staticClass: "jdd-radio"
68
+ }, _vm._l(_vm.options, function (item) {
69
+ return _c('div', {
70
+ key: item[_vm.selectField],
71
+ staticClass: "jdd-radio-item",
72
+ class: {
73
+ 'jdd-radio-item-active': item[_vm.selectField] === _vm.value
74
+ },
75
+ on: {
76
+ "click": function click($event) {
77
+ _vm.updateValue(item);
78
+ }
79
+ }
80
+ }, [_vm._t("default", null, {
81
+ slotProps: item
82
+ }), _vm._v(" "), _c('span', {
83
+ directives: [{
84
+ name: "show",
85
+ rawName: "v-show",
86
+ value: item[_vm.selectField] === _vm.value,
87
+ expression: "item[selectField]===value"
88
+ }],
89
+ staticClass: "jdd-radio-check"
90
+ })], 2);
91
+ }), 0);
92
+ };
93
+
94
+ var staticRenderFns = [];
95
+ var __template__ = {
96
+ render: render,
97
+ staticRenderFns: staticRenderFns
98
+ };
99
+
100
+ var _default2 = (0, _extends2.default)({}, __script__, __template__);
101
+
102
+ exports.default = _default2;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _select = _interopRequireDefault(require("./src/select"));
11
+
12
+ require("./index.css");
13
+
14
+ _select.default.install = function (Vue) {
15
+ Vue.component(_select.default.name, _select.default);
16
+ };
17
+
18
+ var _default = _select.default;
19
+ exports.default = _default;