bi-eleme 2.0.0 → 2.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.
Files changed (82) hide show
  1. package/lib/dropdown.js +3 -3
  2. package/lib/element-ui.common.js +55 -27
  3. package/lib/index.js +1 -1
  4. package/lib/menu-item.js +9 -7
  5. package/lib/pagination.js +1 -0
  6. package/lib/submenu.js +3 -3
  7. package/lib/table.js +36 -11
  8. package/lib/theme-chalk/autocomplete.css +1 -1
  9. package/lib/theme-chalk/base.css +1 -1
  10. package/lib/theme-chalk/button.css +1 -1
  11. package/lib/theme-chalk/calendar.css +1 -1
  12. package/lib/theme-chalk/cascader.css +1 -1
  13. package/lib/theme-chalk/date-picker.css +1 -1
  14. package/lib/theme-chalk/dropdown.css +1 -1
  15. package/lib/theme-chalk/fonts/bi-icons.ttf +0 -0
  16. package/lib/theme-chalk/fonts/bi-icons.woff +0 -0
  17. package/lib/theme-chalk/form.css +1 -1
  18. package/lib/theme-chalk/icon-bi.css +1 -0
  19. package/lib/theme-chalk/icon.css +1 -1
  20. package/lib/theme-chalk/index.css +1 -1
  21. package/lib/theme-chalk/input-number.css +1 -1
  22. package/lib/theme-chalk/input.css +1 -1
  23. package/lib/theme-chalk/menu.css +1 -1
  24. package/lib/theme-chalk/message-box.css +1 -1
  25. package/lib/theme-chalk/pagination.css +1 -1
  26. package/lib/theme-chalk/select.css +1 -1
  27. package/lib/theme-chalk/slider.css +1 -1
  28. package/lib/theme-chalk/table.css +1 -1
  29. package/lib/theme-chalk/time-picker.css +1 -1
  30. package/lib/theme-chalk/time-select.css +1 -1
  31. package/lib/theme-chalk/tooltip.css +1 -1
  32. package/lib/theme-chalk/transfer.css +1 -1
  33. package/package.json +2 -2
  34. package/packages/dropdown/src/dropdown.vue +2 -2
  35. package/packages/menu/src/menu-item.vue +1 -1
  36. package/packages/menu/src/menu-mixin.js +17 -20
  37. package/packages/pagination/src/pagination.js +1 -0
  38. package/packages/table/src/table-footer.js +36 -11
  39. package/packages/theme-chalk/lib/autocomplete.css +1 -1
  40. package/packages/theme-chalk/lib/base.css +1 -1
  41. package/packages/theme-chalk/lib/button.css +1 -1
  42. package/packages/theme-chalk/lib/calendar.css +1 -1
  43. package/packages/theme-chalk/lib/cascader.css +1 -1
  44. package/packages/theme-chalk/lib/date-picker.css +1 -1
  45. package/packages/theme-chalk/lib/dropdown.css +1 -1
  46. package/packages/theme-chalk/lib/fonts/bi-icons.ttf +0 -0
  47. package/packages/theme-chalk/lib/fonts/bi-icons.woff +0 -0
  48. package/packages/theme-chalk/lib/form.css +1 -1
  49. package/packages/theme-chalk/lib/icon-bi.css +1 -0
  50. package/packages/theme-chalk/lib/icon.css +1 -1
  51. package/packages/theme-chalk/lib/index.css +1 -1
  52. package/packages/theme-chalk/lib/input-number.css +1 -1
  53. package/packages/theme-chalk/lib/input.css +1 -1
  54. package/packages/theme-chalk/lib/menu.css +1 -1
  55. package/packages/theme-chalk/lib/message-box.css +1 -1
  56. package/packages/theme-chalk/lib/pagination.css +1 -1
  57. package/packages/theme-chalk/lib/select.css +1 -1
  58. package/packages/theme-chalk/lib/slider.css +1 -1
  59. package/packages/theme-chalk/lib/table.css +1 -1
  60. package/packages/theme-chalk/lib/time-picker.css +1 -1
  61. package/packages/theme-chalk/lib/time-select.css +1 -1
  62. package/packages/theme-chalk/lib/tooltip.css +1 -1
  63. package/packages/theme-chalk/lib/transfer.css +1 -1
  64. package/packages/theme-chalk/src/base.scss +3 -2
  65. package/packages/theme-chalk/src/button.scss +7 -6
  66. package/packages/theme-chalk/src/cascader.scss +1 -0
  67. package/packages/theme-chalk/src/common/var.scss +1 -1
  68. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +9 -3
  69. package/packages/theme-chalk/src/date-picker/picker.scss +3 -3
  70. package/packages/theme-chalk/src/dropdown.scss +25 -10
  71. package/packages/theme-chalk/src/fonts/bi-icons.ttf +0 -0
  72. package/packages/theme-chalk/src/fonts/bi-icons.woff +0 -0
  73. package/packages/theme-chalk/src/form.scss +6 -1
  74. package/packages/theme-chalk/src/icon-bi.scss +255 -0
  75. package/packages/theme-chalk/src/icon.scss +0 -262
  76. package/packages/theme-chalk/src/input.scss +3 -1
  77. package/packages/theme-chalk/src/menu.scss +52 -20
  78. package/packages/theme-chalk/src/pagination.scss +5 -0
  79. package/packages/theme-chalk/src/select.scss +1 -0
  80. package/packages/theme-chalk/src/tooltip.scss +18 -17
  81. package/packages/time-picker/index.js +5 -5
  82. package/src/index.js +1 -1
package/lib/dropdown.js CHANGED
@@ -538,7 +538,7 @@ var util_ = __webpack_require__(3);
538
538
  triggerElm = h('el-button-group', [h(
539
539
  'el-button',
540
540
  {
541
- attrs: { type: type, size: dropdownSize, disabled: disabled },
541
+ attrs: { type: type, test: '1', size: dropdownSize, disabled: disabled },
542
542
  nativeOn: {
543
543
  'click': handleMainButtonClick
544
544
  }
@@ -546,8 +546,8 @@ var util_ = __webpack_require__(3);
546
546
  [this.$slots.default]
547
547
  ), h(
548
548
  'el-button',
549
- { ref: 'trigger', attrs: { type: type, size: dropdownSize, disabled: disabled },
550
- 'class': 'el-dropdown__caret-button' },
549
+ { ref: 'trigger', attrs: { test: '2', type: type, size: dropdownSize, disabled: disabled },
550
+ 'class': 'el-dropdown__caret-button ' },
551
551
  [h('i', { 'class': 'el-dropdown__icon el-icon-down' })]
552
552
  )]);
553
553
  } else {
@@ -956,6 +956,7 @@ var util_ = __webpack_require__(2);
956
956
  value: this.$parent.internalPageSize,
957
957
  popperClass: this.$parent.popperClass || '',
958
958
  size: 'mini',
959
+ clearable: false,
959
960
 
960
961
  disabled: this.$parent.disabled
961
962
  },
@@ -2560,7 +2561,7 @@ var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_);
2560
2561
  triggerElm = h('el-button-group', [h(
2561
2562
  'el-button',
2562
2563
  {
2563
- attrs: { type: type, size: dropdownSize, disabled: disabled },
2564
+ attrs: { type: type, test: '1', size: dropdownSize, disabled: disabled },
2564
2565
  nativeOn: {
2565
2566
  'click': handleMainButtonClick
2566
2567
  }
@@ -2568,8 +2569,8 @@ var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_);
2568
2569
  [this.$slots.default]
2569
2570
  ), h(
2570
2571
  'el-button',
2571
- { ref: 'trigger', attrs: { type: type, size: dropdownSize, disabled: disabled },
2572
- 'class': 'el-dropdown__caret-button' },
2572
+ { ref: 'trigger', attrs: { test: '2', type: type, size: dropdownSize, disabled: disabled },
2573
+ 'class': 'el-dropdown__caret-button ' },
2573
2574
  [h('i', { 'class': 'el-dropdown__icon el-icon-down' })]
2574
2575
  )]);
2575
2576
  } else {
@@ -3524,15 +3525,15 @@ var collapse_transition_default = /*#__PURE__*/__webpack_require__.n(collapse_tr
3524
3525
  paddingStyle: function paddingStyle() {
3525
3526
  if (this.rootMenu.mode !== 'vertical') return {};
3526
3527
 
3527
- var padding = 20;
3528
+ var padding = 14;
3528
3529
  var parent = this.$parent;
3529
3530
 
3530
3531
  if (this.rootMenu.collapse) {
3531
- padding = 20;
3532
+ padding = 14;
3532
3533
  } else {
3533
3534
  while (parent && parent.$options.componentName !== 'ElMenu') {
3534
3535
  if (parent.$options.componentName === 'ElSubmenu') {
3535
- padding += 20;
3536
+ padding += 28;
3536
3537
  }
3537
3538
  parent = parent.$parent;
3538
3539
  }
@@ -3933,8 +3934,8 @@ submenu.install = function (Vue) {
3933
3934
  };
3934
3935
 
3935
3936
  /* harmony default export */ var packages_submenu = (submenu);
3936
- // CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=eef3478e&
3937
- var menu_itemvue_type_template_id_eef3478e_render = function () {
3937
+ // CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=727ffca8&
3938
+ var menu_itemvue_type_template_id_727ffca8_render = function () {
3938
3939
  var _vm = this
3939
3940
  var _h = _vm.$createElement
3940
3941
  var _c = _vm._self._c || _h
@@ -3980,9 +3981,11 @@ var menu_itemvue_type_template_id_eef3478e_render = function () {
3980
3981
  top: "0",
3981
3982
  height: "100%",
3982
3983
  width: "100%",
3983
- display: "inline-block",
3984
+ display: "inline-flex",
3984
3985
  "box-sizing": "border-box",
3985
- padding: "0 20px",
3986
+ padding: "14px",
3987
+ "align-items": "center",
3988
+ "justify-content": "center",
3986
3989
  },
3987
3990
  },
3988
3991
  [_vm._t("default")],
@@ -3994,11 +3997,11 @@ var menu_itemvue_type_template_id_eef3478e_render = function () {
3994
3997
  2
3995
3998
  )
3996
3999
  }
3997
- var menu_itemvue_type_template_id_eef3478e_staticRenderFns = []
3998
- menu_itemvue_type_template_id_eef3478e_render._withStripped = true
4000
+ var menu_itemvue_type_template_id_727ffca8_staticRenderFns = []
4001
+ menu_itemvue_type_template_id_727ffca8_render._withStripped = true
3999
4002
 
4000
4003
 
4001
- // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=eef3478e&
4004
+ // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=727ffca8&
4002
4005
 
4003
4006
  // EXTERNAL MODULE: external "bi-eleme/lib/tooltip"
4004
4007
  var tooltip_ = __webpack_require__(26);
@@ -4132,8 +4135,8 @@ var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
4132
4135
 
4133
4136
  var menu_item_component = normalizeComponent(
4134
4137
  src_menu_itemvue_type_script_lang_js_,
4135
- menu_itemvue_type_template_id_eef3478e_render,
4136
- menu_itemvue_type_template_id_eef3478e_staticRenderFns,
4138
+ menu_itemvue_type_template_id_727ffca8_render,
4139
+ menu_itemvue_type_template_id_727ffca8_staticRenderFns,
4137
4140
  false,
4138
4141
  null,
4139
4142
  null,
@@ -13705,16 +13708,23 @@ var table_footer_extends = Object.assign || function (target) { for (var i = 1;
13705
13708
  }
13706
13709
  });
13707
13710
  }
13708
- console.log('sums:', sums);
13709
13711
  if (sums instanceof Array) {
13710
13712
  return h(
13711
13713
  'table',
13712
- { 'class': 'el-table__footer', attrs: { cellspacing: '0', cellpadding: '0', border: '0' }
13714
+ {
13715
+ 'class': 'el-table__footer',
13716
+ attrs: { cellspacing: '0',
13717
+ cellpadding: '0',
13718
+ border: '0'
13719
+ }
13713
13720
  },
13714
13721
  [h('colgroup', [this.columns.map(function (column) {
13715
13722
  return h('col', {
13716
- attrs: { name: column.id },
13717
- key: column.id });
13723
+ attrs: {
13724
+ name: column.id
13725
+ },
13726
+ key: column.id
13727
+ });
13718
13728
  }), this.hasGutter ? h('col', {
13719
13729
  attrs: { name: 'gutter' }
13720
13730
  }) : '']), h(
@@ -13723,8 +13733,13 @@ var table_footer_extends = Object.assign || function (target) { for (var i = 1;
13723
13733
  [h('tr', [this.columns.map(function (column, cellIndex) {
13724
13734
  return h(
13725
13735
  'td',
13726
- { key: cellIndex, attrs: { colspan: column.colSpan, rowspan: column.rowSpan },
13727
- 'class': [].concat(_this.getRowClasses(column, cellIndex), ['el-table__cell']) },
13736
+ {
13737
+ key: cellIndex,
13738
+ attrs: { colspan: column.colSpan,
13739
+ rowspan: column.rowSpan
13740
+ },
13741
+ 'class': [].concat(_this.getRowClasses(column, cellIndex), ['el-table__cell'])
13742
+ },
13728
13743
  [h(
13729
13744
  'div',
13730
13745
  { 'class': ['cell', column.labelClassName] },
@@ -13737,12 +13752,20 @@ var table_footer_extends = Object.assign || function (target) { for (var i = 1;
13737
13752
  } else {
13738
13753
  return h(
13739
13754
  'table',
13740
- { 'class': 'el-table__footer', attrs: { cellspacing: '0', cellpadding: '0', border: '0' }
13755
+ {
13756
+ 'class': 'el-table__footer',
13757
+ attrs: { cellspacing: '0',
13758
+ cellpadding: '0',
13759
+ border: '0'
13760
+ }
13741
13761
  },
13742
13762
  [h('colgroup', [this.columns.map(function (column) {
13743
13763
  return h('col', {
13744
- attrs: { name: column.id },
13745
- key: column.id });
13764
+ attrs: {
13765
+ name: column.id
13766
+ },
13767
+ key: column.id
13768
+ });
13746
13769
  }), this.hasGutter ? h('col', {
13747
13770
  attrs: { name: 'gutter' }
13748
13771
  }) : '']), h(
@@ -13751,8 +13774,13 @@ var table_footer_extends = Object.assign || function (target) { for (var i = 1;
13751
13774
  [h('tr', [this.columns.map(function (column, cellIndex) {
13752
13775
  return h(
13753
13776
  'td',
13754
- { key: cellIndex, attrs: { colspan: column.colSpan, rowspan: column.rowSpan },
13755
- 'class': [].concat(_this.getRowClasses(column, cellIndex), ['el-table__cell']) },
13777
+ {
13778
+ key: cellIndex,
13779
+ attrs: { colspan: column.colSpan,
13780
+ rowspan: column.rowSpan
13781
+ },
13782
+ 'class': [].concat(_this.getRowClasses(column, cellIndex), ['el-table__cell'])
13783
+ },
13756
13784
  [h(
13757
13785
  'div',
13758
13786
  { 'class': ['cell', column.labelClassName] },
@@ -44334,7 +44362,7 @@ if (typeof window !== 'undefined' && window.Vue) {
44334
44362
  }
44335
44363
 
44336
44364
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
44337
- version: '2.0.0',
44365
+ version: '2.0.1',
44338
44366
  locale: lib_locale_default.a.use,
44339
44367
  i18n: lib_locale_default.a.i18n,
44340
44368
  install: src_install,