@v-c/overflow 0.0.1 → 0.0.2

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.
package/dist/Overflow.cjs CHANGED
@@ -1,321 +1,273 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vue = require("vue");
4
- const ResizeObserver = require("@v-c/resize-observer");
5
- const util = require("@v-c/util");
6
- const context = require("./context.cjs");
7
- const useEffectState = require("./hooks/useEffectState.cjs");
8
- const Item = require("./Item.cjs");
9
- const RawItem = require("./RawItem.cjs");
1
+ const require_rolldown_runtime = require("./_virtual/rolldown_runtime.cjs");
2
+ const require_context = require("./context.cjs");
3
+ const require_useEffectState = require("./hooks/useEffectState.cjs");
4
+ const require_Item = require("./Item.cjs");
5
+ const require_RawItem = require("./RawItem.cjs");
6
+ let vue = require("vue");
7
+ let __v_c_resize_observer = require("@v-c/resize-observer");
8
+ __v_c_resize_observer = require_rolldown_runtime.__toESM(__v_c_resize_observer);
9
+ let __v_c_util = require("@v-c/util");
10
10
  function _isSlot(s) {
11
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
11
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !(0, vue.isVNode)(s);
12
12
  }
13
- const RESPONSIVE = "responsive";
14
- const INVALIDATE = "invalidate";
13
+ var RESPONSIVE = "responsive";
14
+ var INVALIDATE = "invalidate";
15
15
  function defaultRenderRest(omittedItems) {
16
- return `+ ${omittedItems.length} ...`;
16
+ return `+ ${omittedItems.length} ...`;
17
17
  }
18
- const overflowProps = {
19
- prefixCls: {
20
- type: String,
21
- default: "vc-overflow"
22
- },
23
- data: {
24
- type: Array,
25
- default: () => []
26
- },
27
- renderItem: Function,
28
- renderRawItem: Function,
29
- itemKey: [String, Number, Function],
30
- itemWidth: {
31
- type: Number,
32
- default: 10
33
- },
34
- maxCount: [Number, String],
35
- renderRest: [Function, Object],
36
- renderRawRest: Function,
37
- prefix: {},
38
- suffix: {},
39
- component: [String, Object, Function],
40
- itemComponent: [String, Object, Function],
41
- onVisibleChange: Function,
42
- ssr: String
43
- };
44
- const OverflowImpl = /* @__PURE__ */ vue.defineComponent({
45
- name: "Overflow",
46
- inheritAttrs: false,
47
- props: overflowProps,
48
- emits: ["visibleChange"],
49
- setup(props, {
50
- attrs,
51
- slots,
52
- emit
53
- }) {
54
- const notifyEffectUpdate = useEffectState.useBatcher();
55
- const [containerWidth, setContainerWidth] = useEffectState.default(notifyEffectUpdate, null);
56
- const mergedContainerWidth = vue.computed(() => containerWidth.value || 0);
57
- const [itemWidths, setItemWidths] = useEffectState.default(notifyEffectUpdate, /* @__PURE__ */ new Map());
58
- const [prevRestWidth, setPrevRestWidth] = useEffectState.default(notifyEffectUpdate, 0);
59
- const [restWidth, setRestWidth] = useEffectState.default(notifyEffectUpdate, 0);
60
- const [prefixWidth, setPrefixWidth] = useEffectState.default(notifyEffectUpdate, 0);
61
- const [suffixWidth, setSuffixWidth] = useEffectState.default(notifyEffectUpdate, 0);
62
- const suffixFixedStart = vue.ref(null);
63
- const displayCount = vue.ref(null);
64
- const mergedDisplayCount = vue.computed(() => {
65
- if (displayCount.value === null && props.ssr === "full") {
66
- return Number.MAX_SAFE_INTEGER;
67
- }
68
- return displayCount.value || 0;
69
- });
70
- const restReady = vue.ref(false);
71
- const itemPrefixCls = vue.computed(() => `${props.prefixCls}-item`);
72
- const mergedRestWidth = vue.computed(() => Math.max(prevRestWidth.value, restWidth.value));
73
- const data = vue.computed(() => props.data ?? []);
74
- const isResponsive = vue.computed(() => props.maxCount === RESPONSIVE);
75
- const shouldResponsive = vue.computed(() => data.value.length && isResponsive.value);
76
- const invalidate = vue.computed(() => props.maxCount === INVALIDATE);
77
- const showRest = vue.computed(() => shouldResponsive.value || typeof props.maxCount === "number" && data.value.length > props.maxCount);
78
- const mergedData = vue.computed(() => {
79
- let items = data.value;
80
- if (shouldResponsive.value) {
81
- if (containerWidth.value === null && props.ssr === "full") {
82
- items = data.value;
83
- } else {
84
- const mergedItemWidth = props.itemWidth ?? 10;
85
- const maxLen = Math.min(data.value.length, mergedContainerWidth.value / mergedItemWidth);
86
- items = data.value.slice(0, Math.floor(maxLen));
87
- }
88
- } else if (typeof props.maxCount === "number") {
89
- items = data.value.slice(0, props.maxCount);
90
- }
91
- return items;
92
- });
93
- const omittedItems = vue.computed(() => {
94
- if (shouldResponsive.value) {
95
- return data.value.slice(mergedDisplayCount.value + 1);
96
- }
97
- return data.value.slice(mergedData.value.length);
98
- });
99
- const getKey = (item, index) => {
100
- const {
101
- itemKey
102
- } = props;
103
- if (typeof itemKey === "function") {
104
- return itemKey(item);
105
- }
106
- if (itemKey != null) {
107
- return item?.[itemKey] ?? index;
108
- }
109
- return index;
110
- };
111
- function updateDisplayCount(count, suffixFixedStartVal, notReady) {
112
- if (displayCount.value === count && (suffixFixedStartVal === void 0 || suffixFixedStartVal === suffixFixedStart.value)) {
113
- return;
114
- }
115
- displayCount.value = count;
116
- if (!notReady) {
117
- restReady.value = count < data.value.length - 1;
118
- props.onVisibleChange?.(count);
119
- emit("visibleChange", count);
120
- }
121
- if (suffixFixedStartVal !== void 0) {
122
- suffixFixedStart.value = suffixFixedStartVal;
123
- }
124
- }
125
- function onOverflowResize(_, element) {
126
- setContainerWidth(element.clientWidth);
127
- }
128
- function registerSize(key, width) {
129
- setItemWidths((origin) => {
130
- const clone = new Map(origin || []);
131
- if (width === null) {
132
- clone.delete(key);
133
- } else {
134
- clone.set(key, width);
135
- }
136
- return clone;
137
- });
138
- }
139
- function registerOverflowSize(_, width) {
140
- setRestWidth(width ?? 0);
141
- setPrevRestWidth(restWidth.value);
142
- }
143
- function registerPrefixSize(_, width) {
144
- setPrefixWidth(width ?? 0);
145
- }
146
- function registerSuffixSize(_, width) {
147
- setSuffixWidth(width ?? 0);
148
- }
149
- function getItemWidth(index) {
150
- const key = getKey(mergedData.value[index], index);
151
- return itemWidths.value?.get(key);
152
- }
153
- vue.watchEffect(() => {
154
- const container = mergedContainerWidth.value;
155
- const rest = mergedRestWidth.value;
156
- const list = mergedData.value;
157
- if (container && typeof rest === "number" && list) {
158
- let totalWidth = prefixWidth.value + suffixWidth.value;
159
- const len = list.length;
160
- const lastIndex = len - 1;
161
- if (!len) {
162
- updateDisplayCount(0, null);
163
- return;
164
- }
165
- for (let i = 0; i < len; i += 1) {
166
- let currentItemWidth = getItemWidth(i);
167
- if (props.ssr === "full") {
168
- currentItemWidth = currentItemWidth || 0;
169
- }
170
- if (currentItemWidth === void 0) {
171
- updateDisplayCount(i - 1, void 0, true);
172
- break;
173
- }
174
- totalWidth += currentItemWidth;
175
- if (
176
- // Only one means `totalWidth` is the final width
177
- lastIndex === 0 && totalWidth <= container || i === lastIndex - 1 && totalWidth + (getItemWidth(lastIndex) || 0) <= container
178
- ) {
179
- updateDisplayCount(lastIndex, null);
180
- break;
181
- } else if (totalWidth + rest > container) {
182
- updateDisplayCount(i - 1, totalWidth - currentItemWidth - suffixWidth.value + restWidth.value);
183
- break;
184
- }
185
- }
186
- if ((props.suffix ?? slots.suffix?.()) && getItemWidth(0) + suffixWidth.value > container) {
187
- suffixFixedStart.value = null;
188
- }
189
- }
190
- }, {
191
- flush: "post"
192
- });
193
- return () => {
194
- const {
195
- prefixCls = "vc-overflow",
196
- component: Component = "div",
197
- itemComponent
198
- } = props;
199
- const renderItem = slots?.renderItem ?? props?.renderItem;
200
- const renderRawItem = slots?.renderRawItem ?? props?.renderRawItem;
201
- const renderRest = slots?.renderRest ?? props?.renderRest;
202
- const renderRawRest = slots?.renderRawRest ?? props?.renderRawRest;
203
- let prefix = slots?.prefix ?? props?.prefix;
204
- let suffix = slots?.suffix ?? props?.suffix;
205
- if (typeof prefix === "function") {
206
- prefix = prefix();
207
- }
208
- if (typeof suffix === "function") {
209
- suffix = suffix();
210
- }
211
- const displayRest = restReady.value && !!omittedItems.value.length;
212
- let suffixStyle = {};
213
- if (suffixFixedStart.value !== null && shouldResponsive.value) {
214
- suffixStyle = {
215
- position: "absolute",
216
- left: `${suffixFixedStart.value}px`,
217
- top: 0
218
- };
219
- }
220
- const itemSharedProps = {
221
- prefixCls: itemPrefixCls.value,
222
- responsive: shouldResponsive.value,
223
- component: itemComponent,
224
- invalidate: invalidate.value
225
- };
226
- const internalRenderItemNode = (item, index) => {
227
- const key = getKey(item, index);
228
- if (renderRawItem) {
229
- let _slot;
230
- return vue.createVNode(context.OverflowContextProvider, {
231
- "key": key,
232
- "value": {
233
- ...itemSharedProps,
234
- order: index,
235
- item,
236
- itemKey: key,
237
- registerSize,
238
- display: index <= mergedDisplayCount.value
239
- }
240
- }, _isSlot(_slot = renderRawItem(item, index)) ? _slot : {
241
- default: () => [_slot]
242
- });
243
- }
244
- return vue.createVNode(Item.default, vue.mergeProps(itemSharedProps, {
245
- "order": index,
246
- "key": key,
247
- "item": item,
248
- "renderItem": renderItem,
249
- "itemKey": key,
250
- "registerSize": registerSize,
251
- "display": index <= mergedDisplayCount.value
252
- }), null);
253
- };
254
- const restContextProps = {
255
- order: displayRest ? mergedDisplayCount.value : Number.MAX_SAFE_INTEGER,
256
- class: `${itemPrefixCls.value}-rest`,
257
- registerSize: registerOverflowSize,
258
- display: displayRest
259
- };
260
- const mergedRenderRestFn = renderRest ?? defaultRenderRest;
261
- const restNode = () => {
262
- if (renderRawRest) {
263
- let _slot2;
264
- return vue.createVNode(context.OverflowContextProvider, {
265
- "value": {
266
- ...itemSharedProps,
267
- ...restContextProps
268
- }
269
- }, _isSlot(_slot2 = renderRawRest(omittedItems.value)) ? _slot2 : {
270
- default: () => [_slot2]
271
- });
272
- }
273
- return vue.createVNode(Item.default, vue.mergeProps(itemSharedProps, restContextProps), {
274
- default: () => typeof mergedRenderRestFn === "function" ? mergedRenderRestFn(omittedItems.value) : mergedRenderRestFn
275
- });
276
- };
277
- const {
278
- class: classAttr,
279
- style: styleAttr,
280
- ...restAttrs
281
- } = attrs;
282
- const overflowNode = vue.createVNode(Component, vue.mergeProps({
283
- "class": util.classNames(!invalidate.value && prefixCls, classAttr),
284
- "style": styleAttr
285
- }, restAttrs), {
286
- default: () => [prefix && vue.createVNode(Item.default, vue.mergeProps(itemSharedProps, {
287
- "responsive": isResponsive.value,
288
- "responsiveDisabled": !shouldResponsive.value,
289
- "order": -1,
290
- "class": `${itemPrefixCls.value}-prefix`,
291
- "registerSize": registerPrefixSize,
292
- "display": true
293
- }), {
294
- default: () => prefix
295
- }), mergedData.value.map(internalRenderItemNode), showRest.value ? restNode() : null, suffix && vue.createVNode(Item.default, vue.mergeProps(itemSharedProps, {
296
- "responsive": isResponsive.value,
297
- "responsiveDisabled": !shouldResponsive.value,
298
- "order": mergedDisplayCount.value,
299
- "class": `${itemPrefixCls.value}-suffix`,
300
- "registerSize": registerSuffixSize,
301
- "display": true,
302
- "style": suffixStyle
303
- }), {
304
- default: () => suffix
305
- }), slots.default?.()]
306
- });
307
- return isResponsive.value ? vue.createVNode(ResizeObserver, {
308
- "onResize": onOverflowResize,
309
- "disabled": !shouldResponsive.value
310
- }, _isSlot(overflowNode) ? overflowNode : {
311
- default: () => [overflowNode]
312
- }) : overflowNode;
313
- };
314
- }
18
+ var Overflow = /* @__PURE__ */ (0, vue.defineComponent)({
19
+ name: "Overflow",
20
+ inheritAttrs: false,
21
+ props: {
22
+ prefixCls: {
23
+ type: String,
24
+ default: "vc-overflow"
25
+ },
26
+ data: {
27
+ type: Array,
28
+ default: () => []
29
+ },
30
+ renderItem: Function,
31
+ renderRawItem: Function,
32
+ itemKey: [
33
+ String,
34
+ Number,
35
+ Function
36
+ ],
37
+ itemWidth: {
38
+ type: Number,
39
+ default: 10
40
+ },
41
+ maxCount: [Number, String],
42
+ renderRest: [Function, Object],
43
+ renderRawRest: Function,
44
+ prefix: {},
45
+ suffix: {},
46
+ component: [
47
+ String,
48
+ Object,
49
+ Function
50
+ ],
51
+ itemComponent: [
52
+ String,
53
+ Object,
54
+ Function
55
+ ],
56
+ onVisibleChange: Function,
57
+ ssr: String
58
+ },
59
+ emits: ["visibleChange"],
60
+ setup(props, { attrs, slots, emit }) {
61
+ const notifyEffectUpdate = require_useEffectState.useBatcher();
62
+ const [containerWidth, setContainerWidth] = require_useEffectState.default(notifyEffectUpdate, null);
63
+ const mergedContainerWidth = (0, vue.computed)(() => containerWidth.value || 0);
64
+ const [itemWidths, setItemWidths] = require_useEffectState.default(notifyEffectUpdate, /* @__PURE__ */ new Map());
65
+ const [prevRestWidth, setPrevRestWidth] = require_useEffectState.default(notifyEffectUpdate, 0);
66
+ const [restWidth, setRestWidth] = require_useEffectState.default(notifyEffectUpdate, 0);
67
+ const [prefixWidth, setPrefixWidth] = require_useEffectState.default(notifyEffectUpdate, 0);
68
+ const [suffixWidth, setSuffixWidth] = require_useEffectState.default(notifyEffectUpdate, 0);
69
+ const suffixFixedStart = (0, vue.ref)(null);
70
+ const displayCount = (0, vue.ref)(null);
71
+ const mergedDisplayCount = (0, vue.computed)(() => {
72
+ if (displayCount.value === null && props.ssr === "full") return Number.MAX_SAFE_INTEGER;
73
+ return displayCount.value || 0;
74
+ });
75
+ const restReady = (0, vue.ref)(false);
76
+ const itemPrefixCls = (0, vue.computed)(() => `${props.prefixCls}-item`);
77
+ const mergedRestWidth = (0, vue.computed)(() => Math.max(prevRestWidth.value, restWidth.value));
78
+ const data = (0, vue.computed)(() => props.data ?? []);
79
+ const isResponsive = (0, vue.computed)(() => props.maxCount === RESPONSIVE);
80
+ const shouldResponsive = (0, vue.computed)(() => data.value.length && isResponsive.value);
81
+ const invalidate = (0, vue.computed)(() => props.maxCount === INVALIDATE);
82
+ const showRest = (0, vue.computed)(() => shouldResponsive.value || typeof props.maxCount === "number" && data.value.length > props.maxCount);
83
+ const mergedData = (0, vue.computed)(() => {
84
+ let items = data.value;
85
+ if (shouldResponsive.value) if (containerWidth.value === null && props.ssr === "full") items = data.value;
86
+ else {
87
+ const mergedItemWidth = props.itemWidth ?? 10;
88
+ const maxLen = Math.min(data.value.length, mergedContainerWidth.value / mergedItemWidth);
89
+ items = data.value.slice(0, Math.floor(maxLen));
90
+ }
91
+ else if (typeof props.maxCount === "number") items = data.value.slice(0, props.maxCount);
92
+ return items;
93
+ });
94
+ const omittedItems = (0, vue.computed)(() => {
95
+ if (shouldResponsive.value) return data.value.slice(mergedDisplayCount.value + 1);
96
+ return data.value.slice(mergedData.value.length);
97
+ });
98
+ const getKey = (item, index) => {
99
+ const { itemKey } = props;
100
+ if (typeof itemKey === "function") return itemKey(item);
101
+ if (itemKey != null) return item?.[itemKey] ?? index;
102
+ return index;
103
+ };
104
+ function updateDisplayCount(count, suffixFixedStartVal, notReady) {
105
+ if (displayCount.value === count && (suffixFixedStartVal === void 0 || suffixFixedStartVal === suffixFixedStart.value)) return;
106
+ displayCount.value = count;
107
+ if (!notReady) {
108
+ restReady.value = count < data.value.length - 1;
109
+ props.onVisibleChange?.(count);
110
+ emit("visibleChange", count);
111
+ }
112
+ if (suffixFixedStartVal !== void 0) suffixFixedStart.value = suffixFixedStartVal;
113
+ }
114
+ function onOverflowResize(_, element) {
115
+ setContainerWidth(element.clientWidth);
116
+ }
117
+ function registerSize(key, width) {
118
+ setItemWidths((origin) => {
119
+ const clone = new Map(origin || []);
120
+ if (width === null) clone.delete(key);
121
+ else clone.set(key, width);
122
+ return clone;
123
+ });
124
+ }
125
+ function registerOverflowSize(_, width) {
126
+ setRestWidth(width ?? 0);
127
+ setPrevRestWidth(restWidth.value);
128
+ }
129
+ function registerPrefixSize(_, width) {
130
+ setPrefixWidth(width ?? 0);
131
+ }
132
+ function registerSuffixSize(_, width) {
133
+ setSuffixWidth(width ?? 0);
134
+ }
135
+ function getItemWidth(index) {
136
+ const key = getKey(mergedData.value[index], index);
137
+ return itemWidths.value?.get(key);
138
+ }
139
+ (0, vue.watchEffect)(() => {
140
+ const container = mergedContainerWidth.value;
141
+ const rest = mergedRestWidth.value;
142
+ const list = mergedData.value;
143
+ if (container && typeof rest === "number" && list) {
144
+ let totalWidth = prefixWidth.value + suffixWidth.value;
145
+ const len = list.length;
146
+ const lastIndex = len - 1;
147
+ if (!len) {
148
+ updateDisplayCount(0, null);
149
+ return;
150
+ }
151
+ for (let i = 0; i < len; i += 1) {
152
+ let currentItemWidth = getItemWidth(i);
153
+ if (props.ssr === "full") currentItemWidth = currentItemWidth || 0;
154
+ if (currentItemWidth === void 0) {
155
+ updateDisplayCount(i - 1, void 0, true);
156
+ break;
157
+ }
158
+ totalWidth += currentItemWidth;
159
+ if (lastIndex === 0 && totalWidth <= container || i === lastIndex - 1 && totalWidth + (getItemWidth(lastIndex) || 0) <= container) {
160
+ updateDisplayCount(lastIndex, null);
161
+ break;
162
+ } else if (totalWidth + rest > container) {
163
+ updateDisplayCount(i - 1, totalWidth - currentItemWidth - suffixWidth.value + restWidth.value);
164
+ break;
165
+ }
166
+ }
167
+ if ((props.suffix ?? slots.suffix?.()) && getItemWidth(0) + suffixWidth.value > container) suffixFixedStart.value = null;
168
+ }
169
+ }, { flush: "post" });
170
+ return () => {
171
+ const { prefixCls = "vc-overflow", component: Component = "div", itemComponent } = props;
172
+ const renderItem = slots?.renderItem ?? props?.renderItem;
173
+ const renderRawItem = slots?.renderRawItem ?? props?.renderRawItem;
174
+ const renderRest = slots?.renderRest ?? props?.renderRest;
175
+ const renderRawRest = slots?.renderRawRest ?? props?.renderRawRest;
176
+ let prefix = slots?.prefix ?? props?.prefix;
177
+ let suffix = slots?.suffix ?? props?.suffix;
178
+ if (typeof prefix === "function") prefix = prefix();
179
+ if (typeof suffix === "function") suffix = suffix();
180
+ const displayRest = restReady.value && !!omittedItems.value.length;
181
+ let suffixStyle = {};
182
+ if (suffixFixedStart.value !== null && shouldResponsive.value) suffixStyle = {
183
+ position: "absolute",
184
+ left: `${suffixFixedStart.value}px`,
185
+ top: 0
186
+ };
187
+ const itemSharedProps = {
188
+ prefixCls: itemPrefixCls.value,
189
+ responsive: shouldResponsive.value,
190
+ component: itemComponent,
191
+ invalidate: invalidate.value
192
+ };
193
+ const internalRenderItemNode = (item, index) => {
194
+ const key = getKey(item, index);
195
+ if (renderRawItem) {
196
+ let _slot;
197
+ return (0, vue.createVNode)(require_context.OverflowContextProvider, {
198
+ "key": key,
199
+ "value": {
200
+ ...itemSharedProps,
201
+ order: index,
202
+ item,
203
+ itemKey: key,
204
+ registerSize,
205
+ display: index <= mergedDisplayCount.value
206
+ }
207
+ }, _isSlot(_slot = renderRawItem(item, index)) ? _slot : { default: () => [_slot] });
208
+ }
209
+ return (0, vue.createVNode)(require_Item.default, (0, vue.mergeProps)(itemSharedProps, {
210
+ "order": index,
211
+ "key": key,
212
+ "item": item,
213
+ "renderItem": renderItem,
214
+ "itemKey": key,
215
+ "registerSize": registerSize,
216
+ "display": index <= mergedDisplayCount.value
217
+ }), null);
218
+ };
219
+ const restContextProps = {
220
+ order: displayRest ? mergedDisplayCount.value : Number.MAX_SAFE_INTEGER,
221
+ class: `${itemPrefixCls.value}-rest`,
222
+ registerSize: registerOverflowSize,
223
+ display: displayRest
224
+ };
225
+ const mergedRenderRestFn = renderRest ?? defaultRenderRest;
226
+ const restNode = () => {
227
+ if (renderRawRest) {
228
+ let _slot2;
229
+ return (0, vue.createVNode)(require_context.OverflowContextProvider, { "value": {
230
+ ...itemSharedProps,
231
+ ...restContextProps
232
+ } }, _isSlot(_slot2 = renderRawRest(omittedItems.value)) ? _slot2 : { default: () => [_slot2] });
233
+ }
234
+ return (0, vue.createVNode)(require_Item.default, (0, vue.mergeProps)(itemSharedProps, restContextProps), { default: () => typeof mergedRenderRestFn === "function" ? mergedRenderRestFn(omittedItems.value) : mergedRenderRestFn });
235
+ };
236
+ const { class: classAttr, style: styleAttr,...restAttrs } = attrs;
237
+ const overflowNode = (0, vue.createVNode)(Component, (0, vue.mergeProps)({
238
+ "class": (0, __v_c_util.classNames)(!invalidate.value && prefixCls, classAttr),
239
+ "style": styleAttr
240
+ }, restAttrs), { default: () => [
241
+ prefix && (0, vue.createVNode)(require_Item.default, (0, vue.mergeProps)(itemSharedProps, {
242
+ "responsive": isResponsive.value,
243
+ "responsiveDisabled": !shouldResponsive.value,
244
+ "order": -1,
245
+ "class": `${itemPrefixCls.value}-prefix`,
246
+ "registerSize": registerPrefixSize,
247
+ "display": true
248
+ }), { default: () => prefix }),
249
+ mergedData.value.map(internalRenderItemNode),
250
+ showRest.value ? restNode() : null,
251
+ suffix && (0, vue.createVNode)(require_Item.default, (0, vue.mergeProps)(itemSharedProps, {
252
+ "responsive": isResponsive.value,
253
+ "responsiveDisabled": !shouldResponsive.value,
254
+ "order": mergedDisplayCount.value,
255
+ "class": `${itemPrefixCls.value}-suffix`,
256
+ "registerSize": registerSuffixSize,
257
+ "display": true,
258
+ "style": suffixStyle
259
+ }), { default: () => suffix }),
260
+ slots.default?.()
261
+ ] });
262
+ return isResponsive.value ? (0, vue.createVNode)(__v_c_resize_observer.default, {
263
+ "onResize": onOverflowResize,
264
+ "disabled": !shouldResponsive.value
265
+ }, _isSlot(overflowNode) ? overflowNode : { default: () => [overflowNode] }) : overflowNode;
266
+ };
267
+ }
315
268
  });
316
- const Overflow = OverflowImpl;
317
- Overflow.Item = RawItem.default;
269
+ Overflow.Item = require_RawItem.default;
318
270
  Overflow.RESPONSIVE = RESPONSIVE;
319
271
  Overflow.INVALIDATE = INVALIDATE;
320
- exports.OverflowContextProvider = context.OverflowContextProvider;
321
- exports.default = Overflow;
272
+ var Overflow_default = Overflow;
273
+ exports.default = Overflow_default;