bk-magic-vue 2.5.9-beta.8 → 2.5.9-beta.9

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.
@@ -32839,9 +32839,7 @@
32839
32839
  return !this.enabledOptions.length;
32840
32840
  },
32841
32841
  isAllSelected: function isAllSelected() {
32842
- return !this.enabledOptions.some(function (option) {
32843
- return !option.isSelected;
32844
- });
32842
+ return this.select.selected.length === this.enabledOptions.length;
32845
32843
  }
32846
32844
  },
32847
32845
  watch: {
@@ -45982,8 +45980,16 @@
45982
45980
  components: {
45983
45981
  vnodeIcon: {
45984
45982
  functional: true,
45985
- render: function render(h, ctx) {
45986
- return ctx.props.icon;
45983
+ render: function render(_, _ref) {
45984
+ var props = _ref.props;
45985
+ return props.icon;
45986
+ }
45987
+ },
45988
+ ContentVnode: {
45989
+ functional: true,
45990
+ render: function render(_, _ref2) {
45991
+ var props = _ref2.props;
45992
+ return props.content;
45987
45993
  }
45988
45994
  }
45989
45995
  },
@@ -46011,9 +46017,9 @@
46011
46017
  this.$emit('select', item);
46012
46018
  },
46013
46019
  makeClass: function makeClass(item) {
46014
- var _ref;
46020
+ var _ref3;
46015
46021
  var classPrefix = 'bk-timeline-item-';
46016
- var classNames = [(_ref = {}, _defineProperty(_ref, "".concat(classPrefix, "filled"), item.filled), _defineProperty(_ref, "".concat(classPrefix, "custom-icon"), this.isCustomIcon(item.icon)), _ref)];
46022
+ var classNames = [(_ref3 = {}, _defineProperty(_ref3, "".concat(classPrefix, "filled"), item.filled), _defineProperty(_ref3, "".concat(classPrefix, "custom-icon"), this.isCustomIcon(item.icon)), _ref3)];
46017
46023
  var dotColors = ['blue', 'red', 'green', 'yellow', 'gray'];
46018
46024
  if (item.size) {
46019
46025
  classNames.push("".concat(classPrefix).concat(item.size));
@@ -46033,9 +46039,6 @@
46033
46039
  return false;
46034
46040
  }
46035
46041
  },
46036
- nodeContent: function nodeContent(data, index) {
46037
- this.$slots["nodeContent".concat(index)] = [data.content];
46038
- },
46039
46042
  isBuiltinIcon: function isBuiltinIcon(icon) {
46040
46043
  return typeof icon === 'string';
46041
46044
  },
@@ -46094,16 +46097,20 @@
46094
46097
  }) : _vm._e()];
46095
46098
  }, null, item), item.content ? _c('div', {
46096
46099
  staticClass: "bk-timeline-content"
46097
- }, [_vm.isNode(item) ? [_vm._t('nodeContent' + index, function () {
46098
- return [_vm._v(_vm._s(_vm.nodeContent(item, index)))];
46099
- })] : [_c('div', {
46100
- attrs: {
46101
- "title": _vm.computedTitle(item.content)
46102
- },
46103
- domProps: {
46104
- "innerHTML": _vm._s(item.content)
46105
- }
46106
- })]], 2) : _vm._e()], 2)]);
46100
+ }, [_vm._t("nodeContent" + index, function () {
46101
+ return [_vm.isNode(item) ? [_c('content-vnode', {
46102
+ attrs: {
46103
+ "content": item.content
46104
+ }
46105
+ })] : [_c('div', {
46106
+ attrs: {
46107
+ "title": _vm.computedTitle(item.content)
46108
+ },
46109
+ domProps: {
46110
+ "innerHTML": _vm._s(item.content)
46111
+ }
46112
+ })]];
46113
+ }, null, item)], 2) : _vm._e()], 2)]);
46107
46114
  }), 0);
46108
46115
  };
46109
46116
  var __vue_staticRenderFns__$17 = [];