bkui-vue 2.0.2-beta.48 → 2.0.2-beta.49

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 (154) hide show
  1. package/dist/index.cjs.js +42 -47
  2. package/dist/index.esm.js +7009 -7201
  3. package/dist/index.umd.js +45 -50
  4. package/lib/affix/index.js +14 -12
  5. package/lib/alert/index.js +14 -12
  6. package/lib/animate-number/index.js +12 -11
  7. package/lib/backtop/index.js +11 -10
  8. package/lib/badge/index.js +14 -12
  9. package/lib/breadcrumb/index.js +14 -12
  10. package/lib/button/index.js +14 -12
  11. package/lib/card/index.js +14 -12
  12. package/lib/cascader/index.js +101 -94
  13. package/lib/checkbox/index.js +35 -37
  14. package/lib/code-diff/index.js +674 -1170
  15. package/lib/collapse/index.js +42 -44
  16. package/lib/collapse-transition/index.js +4 -3
  17. package/lib/color-picker/index.js +60 -59
  18. package/lib/config-provider/index.js +14 -12
  19. package/lib/container/index.js +25 -21
  20. package/lib/date-picker/index.js +51 -58
  21. package/lib/dialog/index.js +441 -43
  22. package/lib/directives/index.js +34 -37
  23. package/lib/divider/index.js +3 -2
  24. package/lib/dropdown/index.js +21 -17
  25. package/lib/exception/index.js +17 -14
  26. package/lib/fixed-navbar/index.js +3 -2
  27. package/lib/form/index.js +34 -37
  28. package/lib/icon/angle-double-down-line.js +36 -29
  29. package/lib/icon/angle-double-left-line.js +36 -29
  30. package/lib/icon/angle-double-left.js +36 -29
  31. package/lib/icon/angle-double-right-line.js +36 -29
  32. package/lib/icon/angle-double-right.js +36 -29
  33. package/lib/icon/angle-double-up-line.js +36 -29
  34. package/lib/icon/angle-down-fill.js +36 -29
  35. package/lib/icon/angle-down-line.js +36 -29
  36. package/lib/icon/angle-down.js +36 -29
  37. package/lib/icon/angle-left.js +36 -29
  38. package/lib/icon/angle-right.js +36 -29
  39. package/lib/icon/angle-up-fill.js +36 -29
  40. package/lib/icon/angle-up.js +36 -29
  41. package/lib/icon/archive-fill.js +36 -29
  42. package/lib/icon/arrows-left.js +36 -29
  43. package/lib/icon/arrows-right.js +36 -29
  44. package/lib/icon/assistant.js +36 -29
  45. package/lib/icon/audio-fill.js +36 -29
  46. package/lib/icon/bk.js +36 -29
  47. package/lib/icon/circle.js +36 -29
  48. package/lib/icon/close-line.js +36 -29
  49. package/lib/icon/close.js +36 -29
  50. package/lib/icon/code.js +36 -29
  51. package/lib/icon/cog-shape.js +36 -29
  52. package/lib/icon/collapse-left.js +36 -29
  53. package/lib/icon/copy-shape.js +36 -29
  54. package/lib/icon/copy.js +36 -29
  55. package/lib/icon/data-shape.js +36 -29
  56. package/lib/icon/del.js +36 -29
  57. package/lib/icon/doc-fill.js +36 -29
  58. package/lib/icon/done.js +36 -29
  59. package/lib/icon/down-shape.js +36 -29
  60. package/lib/icon/down-small.js +36 -29
  61. package/lib/icon/edit-line.js +36 -29
  62. package/lib/icon/ellipsis.js +36 -29
  63. package/lib/icon/enlarge-line.js +36 -29
  64. package/lib/icon/error.js +36 -29
  65. package/lib/icon/excel-fill.js +36 -29
  66. package/lib/icon/exclamation-circle-shape.js +36 -29
  67. package/lib/icon/eye.js +36 -29
  68. package/lib/icon/filliscreen-line.js +36 -29
  69. package/lib/icon/fix-line.js +36 -29
  70. package/lib/icon/fix-shape.js +36 -29
  71. package/lib/icon/folder-open.js +36 -29
  72. package/lib/icon/folder-shape-open.js +36 -29
  73. package/lib/icon/folder-shape.js +36 -29
  74. package/lib/icon/folder.js +36 -29
  75. package/lib/icon/funnel.js +36 -29
  76. package/lib/icon/grag-fill.js +36 -29
  77. package/lib/icon/help-document-fill.js +36 -29
  78. package/lib/icon/help-fill.js +36 -29
  79. package/lib/icon/help.js +36 -29
  80. package/lib/icon/image-fill.js +36 -29
  81. package/lib/icon/img-error.js +36 -29
  82. package/lib/icon/img-placehoulder.js +36 -29
  83. package/lib/icon/info-line.js +36 -29
  84. package/lib/icon/info.js +36 -29
  85. package/lib/icon/left-shape.js +36 -29
  86. package/lib/icon/left-turn-line.js +36 -29
  87. package/lib/icon/loading.js +36 -29
  88. package/lib/icon/narrow-line.js +36 -29
  89. package/lib/icon/original.js +36 -29
  90. package/lib/icon/pdf-fill.js +36 -29
  91. package/lib/icon/play-shape.js +36 -29
  92. package/lib/icon/plus.js +36 -29
  93. package/lib/icon/ppt-fill.js +36 -29
  94. package/lib/icon/qq.js +36 -29
  95. package/lib/icon/right-shape.js +36 -29
  96. package/lib/icon/right-turn-line.js +36 -29
  97. package/lib/icon/search.js +36 -29
  98. package/lib/icon/share.js +36 -29
  99. package/lib/icon/spinner.js +36 -29
  100. package/lib/icon/success.js +36 -29
  101. package/lib/icon/switcher-loading.js +36 -29
  102. package/lib/icon/text-all.js +36 -29
  103. package/lib/icon/text-file.js +36 -29
  104. package/lib/icon/text-fill.js +36 -29
  105. package/lib/icon/transfer.js +36 -29
  106. package/lib/icon/tree-application-shape.js +36 -29
  107. package/lib/icon/unfull-screen.js +36 -29
  108. package/lib/icon/unvisible.js +36 -29
  109. package/lib/icon/up-shape.js +36 -29
  110. package/lib/icon/upload.js +36 -29
  111. package/lib/icon/video-fill.js +36 -29
  112. package/lib/icon/warn.js +36 -29
  113. package/lib/icon/weixin-pro.js +36 -29
  114. package/lib/icon/weixin.js +36 -29
  115. package/lib/image/index.js +47 -49
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +461 -62
  118. package/lib/input/index.js +60 -62
  119. package/lib/link/index.js +2 -2
  120. package/lib/loading/index.js +25 -22
  121. package/lib/menu/index.js +34 -36
  122. package/lib/message/index.js +31 -34
  123. package/lib/modal/index.js +14 -12
  124. package/lib/navigation/index.js +9 -7
  125. package/lib/notify/index.js +14 -12
  126. package/lib/overflow-title/index.js +10 -9
  127. package/lib/pagination/index.js +29 -32
  128. package/lib/pop-confirm/index.js +5 -4
  129. package/lib/popover/index.js +136 -209
  130. package/lib/popover2/index.js +2 -2
  131. package/lib/process/index.js +452 -59
  132. package/lib/progress/index.js +19 -16
  133. package/lib/radio/index.js +34 -37
  134. package/lib/rate/index.js +14 -12
  135. package/lib/resize-layout/index.js +20 -18
  136. package/lib/scrollbar/index.js +58 -51
  137. package/lib/search-select/index.js +595 -222
  138. package/lib/select/index.js +463 -111
  139. package/lib/shared/index.js +95 -83
  140. package/lib/sideslider/index.js +441 -43
  141. package/lib/slider/index.js +446 -49
  142. package/lib/steps/index.js +458 -60
  143. package/lib/swiper/index.js +17 -15
  144. package/lib/switcher/index.js +14 -12
  145. package/lib/tab/index.js +40 -42
  146. package/lib/table/index.js +501 -152
  147. package/lib/tag/index.js +14 -12
  148. package/lib/tag-input/index.js +41 -47
  149. package/lib/timeline/index.js +0 -1
  150. package/lib/transfer/index.js +17 -22
  151. package/lib/tree/index.js +66 -73
  152. package/lib/upload/index.js +487 -136
  153. package/lib/virtual-render/index.js +51 -47
  154. package/package.json +1 -2
@@ -47,7 +47,6 @@ function _typeof(o) {
47
47
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
48
48
  }, _typeof(o);
49
49
  }
50
-
51
50
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
52
51
 
53
52
  function toPrimitive(t, r) {
@@ -60,26 +59,29 @@ function toPrimitive(t, r) {
60
59
  }
61
60
  return ("string" === r ? String : Number)(t);
62
61
  }
63
-
64
62
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
65
63
 
66
64
 
67
65
  function toPropertyKey(t) {
68
66
  var i = toPrimitive(t, "string");
69
- return "symbol" == _typeof(i) ? i : i + "";
67
+ return "symbol" == _typeof(i) ? i : String(i);
70
68
  }
71
-
72
69
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
73
70
 
74
- function _defineProperty(e, r, t) {
75
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
76
- value: t,
77
- enumerable: !0,
78
- configurable: !0,
79
- writable: !0
80
- }) : e[r] = t, e;
71
+ function _defineProperty(obj, key, value) {
72
+ key = toPropertyKey(key);
73
+ if (key in obj) {
74
+ Object.defineProperty(obj, key, {
75
+ value: value,
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true
79
+ });
80
+ } else {
81
+ obj[key] = value;
82
+ }
83
+ return obj;
81
84
  }
82
-
83
85
  ;// CONCATENATED MODULE: external "vue"
84
86
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
85
87
  var external_vue_y = x => () => x
@@ -47,7 +47,6 @@ function _typeof(o) {
47
47
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
48
48
  }, _typeof(o);
49
49
  }
50
-
51
50
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
52
51
 
53
52
  function toPrimitive(t, r) {
@@ -60,26 +59,29 @@ function toPrimitive(t, r) {
60
59
  }
61
60
  return ("string" === r ? String : Number)(t);
62
61
  }
63
-
64
62
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
65
63
 
66
64
 
67
65
  function toPropertyKey(t) {
68
66
  var i = toPrimitive(t, "string");
69
- return "symbol" == _typeof(i) ? i : i + "";
67
+ return "symbol" == _typeof(i) ? i : String(i);
70
68
  }
71
-
72
69
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
73
70
 
74
- function _defineProperty(e, r, t) {
75
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
76
- value: t,
77
- enumerable: !0,
78
- configurable: !0,
79
- writable: !0
80
- }) : e[r] = t, e;
71
+ function _defineProperty(obj, key, value) {
72
+ key = toPropertyKey(key);
73
+ if (key in obj) {
74
+ Object.defineProperty(obj, key, {
75
+ value: value,
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true
79
+ });
80
+ } else {
81
+ obj[key] = value;
82
+ }
83
+ return obj;
81
84
  }
82
-
83
85
  ;// CONCATENATED MODULE: external "vue"
84
86
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
85
87
  var external_vue_y = x => () => x
@@ -37,7 +37,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
37
37
  ;// CONCATENATED MODULE: external "vue"
38
38
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
39
39
  var external_vue_y = x => () => x
40
- const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode });
40
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
41
41
  ;// CONCATENATED MODULE: ../../packages/animate-number/src/animate-number.tsx
42
42
 
43
43
  /*
@@ -66,7 +66,8 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
66
66
  * IN THE SOFTWARE.
67
67
  */
68
68
 
69
- /* harmony default export */ const animate_number = (defineComponent({
69
+
70
+ /* harmony default export */ const animate_number = ((0,external_vue_namespaceObject.defineComponent)({
70
71
  name: 'AnimateNumber',
71
72
  props: {
72
73
  value: shared_namespaceObject.PropTypes.number.def(0),
@@ -74,8 +75,8 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
74
75
  },
75
76
  setup: function setup(props) {
76
77
  var rafId = -1;
77
- var tweeningValue = ref(0);
78
- var formatValue = computed(function () {
78
+ var tweeningValue = (0,external_vue_namespaceObject.ref)(0);
79
+ var formatValue = (0,external_vue_namespaceObject.computed)(function () {
79
80
  return Number(tweeningValue.value).toFixed(props.digits);
80
81
  });
81
82
  var tween = function tween(startValue, endValue) {
@@ -88,32 +89,32 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
88
89
  // 算出每次计算需要间隔的时间,保证动画的流畅
89
90
  var gapTime = 25 / ticTimes;
90
91
  var tickGap = 1;
91
- var _animate = function animate() {
92
+ var animate = function animate() {
92
93
  if (tickGap < gapTime) {
93
- rafId = requestAnimationFrame(_animate);
94
+ rafId = requestAnimationFrame(animate);
94
95
  tickGap = tickGap + 1;
95
96
  return;
96
97
  }
97
98
  tweeningValue.value += ticDis * isPositive;
98
99
  var isUnDone = isPositive === 1 ? tweeningValue.value < endValue : tweeningValue.value > endValue;
99
100
  if (isUnDone) {
100
- rafId = requestAnimationFrame(_animate);
101
+ rafId = requestAnimationFrame(animate);
101
102
  tickGap = 1;
102
103
  } else {
103
104
  tweeningValue.value = endValue;
104
105
  }
105
106
  };
106
- _animate();
107
+ animate();
107
108
  };
108
- watch(function () {
109
+ (0,external_vue_namespaceObject.watch)(function () {
109
110
  return props.value;
110
111
  }, function (newValue, oldValue) {
111
112
  tween(oldValue, newValue);
112
113
  });
113
- onMounted(function () {
114
+ (0,external_vue_namespaceObject.onMounted)(function () {
114
115
  tween(0, props.value);
115
116
  });
116
- onBeforeUnmount(function () {
117
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
117
118
  cancelAnimationFrame(rafId);
118
119
  });
119
120
  return function () {
@@ -41,7 +41,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
41
41
  ;// CONCATENATED MODULE: external "vue"
42
42
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
43
  var external_vue_y = x => () => x
44
- const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode });
44
+ const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
45
45
  ;// CONCATENATED MODULE: external "../config-provider"
46
46
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
47
  var config_provider_y = x => () => x
@@ -85,7 +85,8 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
85
85
 
86
86
 
87
87
 
88
- /* harmony default export */ const backtop = (defineComponent({
88
+
89
+ /* harmony default export */ const backtop = ((0,external_vue_namespaceObject.defineComponent)({
89
90
  name: 'Backtop',
90
91
  props: {
91
92
  visibilityHeight: shared_namespaceObject.PropTypes.number.def(200),
@@ -96,10 +97,10 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
96
97
  },
97
98
  setup: function setup(props, _ref) {
98
99
  var slots = _ref.slots;
99
- var container = ref(null);
100
- var el = ref(null);
101
- var visible = ref(false);
102
- var zIndex = ref(shared_namespaceObject.bkZIndexManager.getModalNextIndex());
100
+ var container = (0,external_vue_namespaceObject.ref)(null);
101
+ var el = (0,external_vue_namespaceObject.ref)(null);
102
+ var visible = (0,external_vue_namespaceObject.ref)(false);
103
+ var zIndex = (0,external_vue_namespaceObject.ref)(shared_namespaceObject.bkZIndexManager.getModalNextIndex());
103
104
  var styleBottom = "".concat(props.bottom, "px");
104
105
  var styleRight = "".concat(props.right, "px");
105
106
  var scrollHandler = (0,throttle_namespaceObject["default"])(function () {
@@ -111,12 +112,12 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
111
112
  behavior: 'smooth'
112
113
  });
113
114
  };
114
- watch(function () {
115
+ (0,external_vue_namespaceObject.watch)(function () {
115
116
  return visible;
116
117
  }, function () {
117
118
  zIndex.value = shared_namespaceObject.bkZIndexManager.getModalNextIndex();
118
119
  });
119
- onMounted(function () {
120
+ (0,external_vue_namespaceObject.onMounted)(function () {
120
121
  container.value = document;
121
122
  el.value = document.documentElement;
122
123
  if (props.target) {
@@ -128,14 +129,14 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
128
129
  }
129
130
  container.value.addEventListener('scroll', scrollHandler);
130
131
  });
131
- onBeforeUnmount(function () {
132
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
132
133
  container.value.removeEventListener('scroll', scrollHandler);
133
134
  });
134
135
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
135
136
  resolveClassName = _usePrefix.resolveClassName;
136
137
  return function () {
137
138
  var _slots$default, _slots$default2;
138
- return (0,external_vue_namespaceObject.createVNode)(Transition, {
139
+ return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
139
140
  "name": "bk-fade"
140
141
  }, {
141
142
  "default": function _default() {
@@ -46,7 +46,6 @@ function _typeof(o) {
46
46
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
47
47
  }, _typeof(o);
48
48
  }
49
-
50
49
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
51
50
 
52
51
  function toPrimitive(t, r) {
@@ -59,26 +58,29 @@ function toPrimitive(t, r) {
59
58
  }
60
59
  return ("string" === r ? String : Number)(t);
61
60
  }
62
-
63
61
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
64
62
 
65
63
 
66
64
  function toPropertyKey(t) {
67
65
  var i = toPrimitive(t, "string");
68
- return "symbol" == _typeof(i) ? i : i + "";
66
+ return "symbol" == _typeof(i) ? i : String(i);
69
67
  }
70
-
71
68
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
72
69
 
73
- function _defineProperty(e, r, t) {
74
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
75
- value: t,
76
- enumerable: !0,
77
- configurable: !0,
78
- writable: !0
79
- }) : e[r] = t, e;
70
+ function _defineProperty(obj, key, value) {
71
+ key = toPropertyKey(key);
72
+ if (key in obj) {
73
+ Object.defineProperty(obj, key, {
74
+ value: value,
75
+ enumerable: true,
76
+ configurable: true,
77
+ writable: true
78
+ });
79
+ } else {
80
+ obj[key] = value;
81
+ }
82
+ return obj;
80
83
  }
81
-
82
84
  ;// CONCATENATED MODULE: external "vue"
83
85
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
84
86
  var external_vue_y = x => () => x
@@ -49,7 +49,6 @@ function _typeof(o) {
49
49
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
50
50
  }, _typeof(o);
51
51
  }
52
-
53
52
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
54
53
 
55
54
  function toPrimitive(t, r) {
@@ -62,26 +61,29 @@ function toPrimitive(t, r) {
62
61
  }
63
62
  return ("string" === r ? String : Number)(t);
64
63
  }
65
-
66
64
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
67
65
 
68
66
 
69
67
  function toPropertyKey(t) {
70
68
  var i = toPrimitive(t, "string");
71
- return "symbol" == _typeof(i) ? i : i + "";
69
+ return "symbol" == _typeof(i) ? i : String(i);
72
70
  }
73
-
74
71
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
75
72
 
76
- function _defineProperty(e, r, t) {
77
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
78
- value: t,
79
- enumerable: !0,
80
- configurable: !0,
81
- writable: !0
82
- }) : e[r] = t, e;
73
+ function _defineProperty(obj, key, value) {
74
+ key = toPropertyKey(key);
75
+ if (key in obj) {
76
+ Object.defineProperty(obj, key, {
77
+ value: value,
78
+ enumerable: true,
79
+ configurable: true,
80
+ writable: true
81
+ });
82
+ } else {
83
+ obj[key] = value;
84
+ }
85
+ return obj;
83
86
  }
84
-
85
87
  ;// CONCATENATED MODULE: external "vue"
86
88
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
89
  var external_vue_y = x => () => x
@@ -50,7 +50,6 @@ function _typeof(o) {
50
50
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
51
51
  }, _typeof(o);
52
52
  }
53
-
54
53
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
55
54
 
56
55
  function toPrimitive(t, r) {
@@ -63,26 +62,29 @@ function toPrimitive(t, r) {
63
62
  }
64
63
  return ("string" === r ? String : Number)(t);
65
64
  }
66
-
67
65
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
68
66
 
69
67
 
70
68
  function toPropertyKey(t) {
71
69
  var i = toPrimitive(t, "string");
72
- return "symbol" == _typeof(i) ? i : i + "";
70
+ return "symbol" == _typeof(i) ? i : String(i);
73
71
  }
74
-
75
72
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
76
73
 
77
- function _defineProperty(e, r, t) {
78
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
79
- value: t,
80
- enumerable: !0,
81
- configurable: !0,
82
- writable: !0
83
- }) : e[r] = t, e;
74
+ function _defineProperty(obj, key, value) {
75
+ key = toPropertyKey(key);
76
+ if (key in obj) {
77
+ Object.defineProperty(obj, key, {
78
+ value: value,
79
+ enumerable: true,
80
+ configurable: true,
81
+ writable: true
82
+ });
83
+ } else {
84
+ obj[key] = value;
85
+ }
86
+ return obj;
84
87
  }
85
-
86
88
  ;// CONCATENATED MODULE: external "vue"
87
89
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
88
90
  var external_vue_y = x => () => x
package/lib/card/index.js CHANGED
@@ -50,7 +50,6 @@ function _typeof(o) {
50
50
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
51
51
  }, _typeof(o);
52
52
  }
53
-
54
53
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
55
54
 
56
55
  function toPrimitive(t, r) {
@@ -63,26 +62,29 @@ function toPrimitive(t, r) {
63
62
  }
64
63
  return ("string" === r ? String : Number)(t);
65
64
  }
66
-
67
65
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
68
66
 
69
67
 
70
68
  function toPropertyKey(t) {
71
69
  var i = toPrimitive(t, "string");
72
- return "symbol" == _typeof(i) ? i : i + "";
70
+ return "symbol" == _typeof(i) ? i : String(i);
73
71
  }
74
-
75
72
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
76
73
 
77
- function _defineProperty(e, r, t) {
78
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
79
- value: t,
80
- enumerable: !0,
81
- configurable: !0,
82
- writable: !0
83
- }) : e[r] = t, e;
74
+ function _defineProperty(obj, key, value) {
75
+ key = toPropertyKey(key);
76
+ if (key in obj) {
77
+ Object.defineProperty(obj, key, {
78
+ value: value,
79
+ enumerable: true,
80
+ configurable: true,
81
+ writable: true
82
+ });
83
+ } else {
84
+ obj[key] = value;
85
+ }
86
+ return obj;
84
87
  }
85
-
86
88
  ;// CONCATENATED MODULE: external "vue"
87
89
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
88
90
  var external_vue_y = x => () => x