zartui 1.0.13 → 1.0.14

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.
@@ -146,7 +146,9 @@ export default createComponent({
146
146
  this.tabs = this.tabs.slice(0, tabIndex + 1);
147
147
  }
148
148
 
149
- if (option[this.childrenKey]) {
149
+ var hasChildren = option[this.childrenKey] && option[this.childrenKey].length > 0;
150
+
151
+ if (hasChildren) {
150
152
  var nextTab = {
151
153
  options: option[this.childrenKey],
152
154
  selectedOption: null
@@ -176,7 +178,7 @@ export default createComponent({
176
178
  this.$emit('input', option[this.valueKey]);
177
179
  this.$emit('change', eventParams);
178
180
 
179
- if (!option[this.childrenKey]) {
181
+ if (!hasChildren) {
180
182
  this.$emit('finish', eventParams);
181
183
  }
182
184
  },
package/es/index.js CHANGED
@@ -76,7 +76,7 @@ import Tag from './tag';
76
76
  import Timeline from './timeline';
77
77
  import Toast from './toast';
78
78
  import Uploader from './uploader';
79
- var version = '1.0.13';
79
+ var version = '1.0.14';
80
80
 
81
81
  function install(Vue) {
82
82
  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, PdfViewer, PdfViewerV2, 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, Timeline, Toast, Uploader];