zartui 2.1.1-beta → 2.1.2

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.
@@ -219,6 +219,13 @@ export default createComponent({
219
219
  "click": function click() {
220
220
  _this3.select(option.value);
221
221
  }
222
+ },
223
+ "scopedSlots": {
224
+ title: _this3.$scopedSlots['item-title'] ? function () {
225
+ return _this3.$scopedSlots['item-title']({
226
+ item: option
227
+ });
228
+ } : undefined
222
229
  }
223
230
  }, [h(Checkbox, {
224
231
  "style": "padding:0;position: absolute;right: 0px;",
@@ -255,6 +262,13 @@ export default createComponent({
255
262
  _this3.$emit('item-select', option.value);
256
263
  }
257
264
  }
265
+ },
266
+ "scopedSlots": {
267
+ title: _this3.$scopedSlots['item-title'] ? function () {
268
+ return _this3.$scopedSlots['item-title']({
269
+ item: option
270
+ });
271
+ } : undefined
258
272
  }
259
273
  }, [active && h(Icon, {
260
274
  "class": bem('icon'),
package/es/index.js CHANGED
@@ -75,7 +75,7 @@ import TextEllipsis from './text-ellipsis';
75
75
  import Timeline from './timeline';
76
76
  import Toast from './toast';
77
77
  import Uploader from './uploader';
78
- var version = '2.1.0';
78
+ var version = '2.1.2';
79
79
 
80
80
  function install(Vue) {
81
81
  var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, TextEllipsis, Timeline, Toast, Uploader];
@@ -124,6 +124,8 @@ export default createComponent({
124
124
  }
125
125
  },
126
126
  render: function render(h) {
127
+ var _this2 = this;
128
+
127
129
  return h(Popup, {
128
130
  "class": bem(),
129
131
  "attrs": {
@@ -145,7 +147,11 @@ export default createComponent({
145
147
  "size": "large"
146
148
  },
147
149
  "on": {
148
- "click": this.onClose
150
+ "click": function click(event) {
151
+ event.stopPropagation();
152
+
153
+ _this2.onClose();
154
+ }
149
155
  }
150
156
  }, ["\u5173\u95ED"])]);
151
157
  }
@@ -235,6 +235,13 @@ var _default2 = createComponent({
235
235
  "click": function click() {
236
236
  _this3.select(option.value);
237
237
  }
238
+ },
239
+ "scopedSlots": {
240
+ title: _this3.$scopedSlots['item-title'] ? function () {
241
+ return _this3.$scopedSlots['item-title']({
242
+ item: option
243
+ });
244
+ } : undefined
238
245
  }
239
246
  }, [h(_checkbox.default, {
240
247
  "style": "padding:0;position: absolute;right: 0px;",
@@ -271,6 +278,13 @@ var _default2 = createComponent({
271
278
  _this3.$emit('item-select', option.value);
272
279
  }
273
280
  }
281
+ },
282
+ "scopedSlots": {
283
+ title: _this3.$scopedSlots['item-title'] ? function () {
284
+ return _this3.$scopedSlots['item-title']({
285
+ item: option
286
+ });
287
+ } : undefined
274
288
  }
275
289
  }, [active && h(_icon.default, {
276
290
  "class": bem('icon'),
package/lib/index.js CHANGED
@@ -313,7 +313,7 @@ exports.Toast = _toast.default;
313
313
  var _uploader = _interopRequireDefault(require("./uploader"));
314
314
 
315
315
  exports.Uploader = _uploader.default;
316
- var version = '2.1.0';
316
+ var version = '2.1.2';
317
317
  exports.version = version;
318
318
 
319
319
  function install(Vue) {
@@ -135,6 +135,8 @@ var _default = createComponent({
135
135
  }
136
136
  },
137
137
  render: function render(h) {
138
+ var _this2 = this;
139
+
138
140
  return h(_popup.default, {
139
141
  "class": bem(),
140
142
  "attrs": {
@@ -156,7 +158,11 @@ var _default = createComponent({
156
158
  "size": "large"
157
159
  },
158
160
  "on": {
159
- "click": this.onClose
161
+ "click": function click(event) {
162
+ event.stopPropagation();
163
+
164
+ _this2.onClose();
165
+ }
160
166
  }
161
167
  }, ["\u5173\u95ED"])]);
162
168
  }