pro-design-vue 1.0.0-rc.5 → 1.0.0-rc.7

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.
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.0.0-rc.5 */
1
+ /*! Pro Design Vue v1.0.0-rc.7 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue')) :
@@ -16,7 +16,7 @@
16
16
  const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
17
17
  const DEFAULT_NAMESPACE = "pro";
18
18
 
19
- const version$1 = "1.0.0-rc.5";
19
+ const version$1 = "1.0.0-rc.7";
20
20
 
21
21
  const makeInstaller = (components = []) => {
22
22
  const install = (app) => {
@@ -30300,6 +30300,7 @@
30300
30300
  const tableSlotsContext = useInjectSlots();
30301
30301
  const dragRowPlaceholderRef = vue.ref();
30302
30302
  const bodyRef = vue.ref();
30303
+ const measureDomRef = vue.ref();
30303
30304
  const bodyInnerRef = vue.ref();
30304
30305
  const scrollLayerRef = vue.ref();
30305
30306
  const viewportRef = vue.ref();
@@ -30610,6 +30611,13 @@
30610
30611
  return summaryStyle.value;
30611
30612
  });
30612
30613
  const emptyStyle = vue.computed(() => ({ width: `${props.bodyWidth}px` }));
30614
+ useResizeObserver(measureDomRef, (entries) => {
30615
+ var _a, _b;
30616
+ console.log("\u{1F680} ~ useResizeObserver ~ entries:", (_a = entries[0]) == null ? void 0 : _a.contentRect);
30617
+ const contentRect = (_b = entries[0]) == null ? void 0 : _b.contentRect;
30618
+ emit("update:bodyWidth", contentRect == null ? void 0 : contentRect.width);
30619
+ emit("update:bodyHeight", contentRect == null ? void 0 : contentRect.height);
30620
+ });
30613
30621
  return {
30614
30622
  bodyContainerStyle,
30615
30623
  measureDomStyle: vue.computed(() => ({
@@ -30660,6 +30668,7 @@
30660
30668
  emit("update:bodyScrollWidth", e.detail.width);
30661
30669
  },
30662
30670
  bodyRef,
30671
+ measureDomRef,
30663
30672
  bodyInnerRef,
30664
30673
  viewportRef,
30665
30674
  summaryViewportRef,
@@ -30816,16 +30825,15 @@
30816
30825
  _: 1
30817
30826
  /* STABLE */
30818
30827
  }),
30819
- vue.withDirectives((vue.openBlock(), vue.createElementBlock(
30828
+ vue.createElementVNode(
30820
30829
  "div",
30821
30830
  {
30822
30831
  key: "body",
30823
30832
  ref: "bodyRef",
30824
30833
  class: vue.normalizeClass(_ctx.bodyClass),
30825
30834
  style: vue.normalizeStyle(_ctx.bodyStyle),
30826
- onDragstart: _cache[9] || (_cache[9] = (...args) => _ctx.handleDragStart && _ctx.handleDragStart(...args)),
30827
- onKeydown: _cache[10] || (_cache[10] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args)),
30828
- onResize: _cache[11] || (_cache[11] = (...args) => _ctx.handleBodyResize && _ctx.handleBodyResize(...args))
30835
+ onDragstart: _cache[8] || (_cache[8] = (...args) => _ctx.handleDragStart && _ctx.handleDragStart(...args)),
30836
+ onKeydown: _cache[9] || (_cache[9] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
30829
30837
  },
30830
30838
  [
30831
30839
  vue.createElementVNode("div", _hoisted_1$3, [
@@ -31135,24 +31143,22 @@
31135
31143
  6
31136
31144
  /* CLASS, STYLE */
31137
31145
  ),
31138
- vue.withDirectives(vue.createElementVNode(
31146
+ vue.createElementVNode(
31139
31147
  "div",
31140
31148
  {
31141
- style: vue.normalizeStyle(_ctx.measureDomStyle),
31142
- onResize: _cache[6] || (_cache[6] = (...args) => _ctx.handleBodyResize && _ctx.handleBodyResize(...args))
31149
+ ref: "measureDomRef",
31150
+ style: vue.normalizeStyle(_ctx.measureDomStyle)
31143
31151
  },
31144
31152
  null,
31145
- 36
31146
- /* STYLE, NEED_HYDRATION */
31147
- ), [
31148
- [_directive_resize]
31149
- ]),
31153
+ 4
31154
+ /* STYLE */
31155
+ ),
31150
31156
  vue.withDirectives(vue.createElementVNode(
31151
31157
  "div",
31152
31158
  {
31153
31159
  class: vue.normalizeClass(`${_ctx.prefixCls}-body-scroll-measure`),
31154
31160
  style: vue.normalizeStyle(`min-width: ${_ctx.bodyInnerWidth}px`),
31155
- onResizewidth: _cache[7] || (_cache[7] = (...args) => _ctx.handleBodyScrollResize && _ctx.handleBodyScrollResize(...args))
31161
+ onResizewidth: _cache[6] || (_cache[6] = (...args) => _ctx.handleBodyScrollResize && _ctx.handleBodyScrollResize(...args))
31156
31162
  },
31157
31163
  null,
31158
31164
  38
@@ -31165,7 +31171,7 @@
31165
31171
  {
31166
31172
  class: vue.normalizeClass(`${_ctx.prefixCls}-body-inner-measure`),
31167
31173
  style: vue.normalizeStyle(`min-width: ${_ctx.scrollX}px`),
31168
- onResizewidth: _cache[8] || (_cache[8] = (...args) => _ctx.handleBodyInnerResize && _ctx.handleBodyInnerResize(...args))
31174
+ onResizewidth: _cache[7] || (_cache[7] = (...args) => _ctx.handleBodyInnerResize && _ctx.handleBodyInnerResize(...args))
31169
31175
  },
31170
31176
  null,
31171
31177
  38
@@ -31180,9 +31186,7 @@
31180
31186
  ],
31181
31187
  38
31182
31188
  /* CLASS, STYLE, NEED_HYDRATION */
31183
- )), [
31184
- [_directive_resize]
31185
- ]),
31189
+ ),
31186
31190
  vue.createVNode(_component_RenderSlot, null, {
31187
31191
  default: vue.withCtx(() => [
31188
31192
  _ctx.summary && _ctx.summaryFixed === "bottom" ? (vue.openBlock(), vue.createElementBlock(
@@ -31211,7 +31215,7 @@
31211
31215
  vue.withDirectives((vue.openBlock(), vue.createElementBlock(
31212
31216
  "div",
31213
31217
  {
31214
- onResizeheight: _cache[12] || (_cache[12] = (...args) => _ctx.handleResize && _ctx.handleResize(...args))
31218
+ onResizeheight: _cache[10] || (_cache[10] = (...args) => _ctx.handleResize && _ctx.handleResize(...args))
31215
31219
  },
31216
31220
  [
31217
31221
  vue.createVNode(_component_RenderVNode, { vnode: _ctx.summary }, null, 8, ["vnode"])