@deot/vc-components 1.0.12 → 1.0.14
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/index.cjs +77 -48
- package/dist/index.d.ts +34 -6
- package/dist/index.iife.js +77 -48
- package/dist/index.js +77 -48
- package/dist/index.style.css +1 -1
- package/dist/index.umd.cjs +77 -48
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -794,7 +794,7 @@ const COMPONENT_NAME$1T = 'vc-alert';
|
|
|
794
794
|
|
|
795
795
|
// [color, borderColor, backgroundColor], -> CSS
|
|
796
796
|
const THEME_MAP = {
|
|
797
|
-
info: ['#
|
|
797
|
+
info: ['#2B72FD', '#91d5ff', '#e6f7ff'],
|
|
798
798
|
success: ['#52c41a', '#b7eb8f', '#f6ffed'],
|
|
799
799
|
error: ['#ed4014', '#ffb08f', '#fbe9e9'],
|
|
800
800
|
warning: ['#ffbf00', '#ffe58f', '#fffbe6']
|
|
@@ -10285,7 +10285,7 @@ const props$z = {
|
|
|
10285
10285
|
validator: (v) => /(small|medium|large)/.test(v),
|
|
10286
10286
|
default: "small"
|
|
10287
10287
|
},
|
|
10288
|
-
|
|
10288
|
+
contentClass: [Object, String],
|
|
10289
10289
|
width: {
|
|
10290
10290
|
type: Number
|
|
10291
10291
|
},
|
|
@@ -10334,6 +10334,10 @@ const props$z = {
|
|
|
10334
10334
|
type: Boolean,
|
|
10335
10335
|
default: true
|
|
10336
10336
|
},
|
|
10337
|
+
border: {
|
|
10338
|
+
type: Boolean,
|
|
10339
|
+
default: false
|
|
10340
|
+
},
|
|
10337
10341
|
/**
|
|
10338
10342
|
* 兼容portal设计, 实现Promise方式
|
|
10339
10343
|
*/
|
|
@@ -10631,7 +10635,8 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10631
10635
|
"class": [{
|
|
10632
10636
|
'is-drag': props.draggable,
|
|
10633
10637
|
'is-large': props.size === 'large' || props.size === 'medium',
|
|
10634
|
-
'
|
|
10638
|
+
'has-footer': props.footer && (props.cancelText || props.okText),
|
|
10639
|
+
'has-border': props.border
|
|
10635
10640
|
}, 'vc-modal__container'],
|
|
10636
10641
|
"style": [basicStyle.value, draggableStyle.value]
|
|
10637
10642
|
}, [vue.createVNode("div", {
|
|
@@ -10663,7 +10668,7 @@ const ModalView = /* @__PURE__ */ vue.defineComponent({
|
|
|
10663
10668
|
"height": isTransitionEnd.value ? row.height : void 0,
|
|
10664
10669
|
"contentClass": [{
|
|
10665
10670
|
'is-confirm': props.mode
|
|
10666
|
-
}, props.
|
|
10671
|
+
}, props.contentClass, 'vc-modal__content']
|
|
10667
10672
|
}, {
|
|
10668
10673
|
default: () => [typeof props.content === 'string' ? vue.createVNode("div", {
|
|
10669
10674
|
"innerHTML": props.content
|
|
@@ -12144,7 +12149,7 @@ const props$m = {
|
|
|
12144
12149
|
color: {
|
|
12145
12150
|
type: [Object, String],
|
|
12146
12151
|
default: () => ({
|
|
12147
|
-
normal: "#
|
|
12152
|
+
normal: "#2B72FD",
|
|
12148
12153
|
success: "#52c41a",
|
|
12149
12154
|
error: "#f5222d"
|
|
12150
12155
|
})
|
|
@@ -13384,6 +13389,8 @@ const RecycleList = /* @__PURE__ */ vue.defineComponent({
|
|
|
13384
13389
|
});
|
|
13385
13390
|
if (!originalData.length) {
|
|
13386
13391
|
rebuildData.value = [];
|
|
13392
|
+
} else {
|
|
13393
|
+
rebuildData.value = originalData.slice();
|
|
13387
13394
|
}
|
|
13388
13395
|
offsetPageSize.value = 0;
|
|
13389
13396
|
await refreshLayout(0, originalData.length);
|
|
@@ -14526,17 +14533,24 @@ class Store extends BaseWatcher {
|
|
|
14526
14533
|
const dataInstanceChanged = this.states._data !== data;
|
|
14527
14534
|
this.states._data = data;
|
|
14528
14535
|
this.states.data = data;
|
|
14536
|
+
const caches = /* @__PURE__ */ new Map();
|
|
14537
|
+
this.states.list.forEach((item) => {
|
|
14538
|
+
item.rows.forEach((row) => {
|
|
14539
|
+
caches.set(row.data, row);
|
|
14540
|
+
});
|
|
14541
|
+
});
|
|
14529
14542
|
this.states.list = data.reduce((pre, row, index) => {
|
|
14543
|
+
const cache = caches.get(row) || { heightMap: {} };
|
|
14530
14544
|
pre.push({
|
|
14531
14545
|
rows: [
|
|
14532
14546
|
{
|
|
14533
14547
|
index,
|
|
14534
14548
|
data: row,
|
|
14535
|
-
height: "",
|
|
14549
|
+
height: cache.height || "",
|
|
14536
14550
|
heightMap: {
|
|
14537
|
-
left: "",
|
|
14538
|
-
main: "",
|
|
14539
|
-
right: ""
|
|
14551
|
+
left: cache.heightMap.left || "",
|
|
14552
|
+
main: cache.heightMap.main || "",
|
|
14553
|
+
right: cache.heightMap.right || ""
|
|
14540
14554
|
}
|
|
14541
14555
|
}
|
|
14542
14556
|
],
|
|
@@ -14544,6 +14558,7 @@ class Store extends BaseWatcher {
|
|
|
14544
14558
|
});
|
|
14545
14559
|
return pre;
|
|
14546
14560
|
}, []);
|
|
14561
|
+
caches.clear();
|
|
14547
14562
|
this.current.update();
|
|
14548
14563
|
this.expand.update();
|
|
14549
14564
|
if (!this.states.reserveSelection) {
|
|
@@ -14677,12 +14692,12 @@ class Store extends BaseWatcher {
|
|
|
14677
14692
|
*/
|
|
14678
14693
|
cleanSelection() {
|
|
14679
14694
|
const { primaryKey } = this.table.props;
|
|
14680
|
-
const { selection = [] } = this.states;
|
|
14695
|
+
const { selection = [], data } = this.states;
|
|
14681
14696
|
let deleted;
|
|
14682
14697
|
if (primaryKey) {
|
|
14683
14698
|
deleted = [];
|
|
14684
14699
|
const selectedMap = getValuesMap(selection, primaryKey);
|
|
14685
|
-
const dataMap = getValuesMap(
|
|
14700
|
+
const dataMap = getValuesMap(data, primaryKey);
|
|
14686
14701
|
for (const key in selectedMap) {
|
|
14687
14702
|
if (Utils.hasOwn(selectedMap, key) && !dataMap[key]) {
|
|
14688
14703
|
deleted.push(selectedMap[key].row);
|
|
@@ -14857,8 +14872,10 @@ const COMPONENT_NAME$h = 'vc-table-normal-list';
|
|
|
14857
14872
|
const NormalList = /* @__PURE__ */ vue.defineComponent({
|
|
14858
14873
|
name: COMPONENT_NAME$h,
|
|
14859
14874
|
props: {
|
|
14860
|
-
data:
|
|
14861
|
-
|
|
14875
|
+
data: {
|
|
14876
|
+
type: Array,
|
|
14877
|
+
default: () => []
|
|
14878
|
+
}
|
|
14862
14879
|
},
|
|
14863
14880
|
emits: ['row-resize'],
|
|
14864
14881
|
setup(props, {
|
|
@@ -14900,7 +14917,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
14900
14917
|
expose
|
|
14901
14918
|
}) {
|
|
14902
14919
|
const instance = vue.getCurrentInstance();
|
|
14903
|
-
const table =
|
|
14920
|
+
const table = vue.inject('vc-table');
|
|
14904
14921
|
const states = useStates({
|
|
14905
14922
|
data: 'data',
|
|
14906
14923
|
list: 'list',
|
|
@@ -15024,7 +15041,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15024
15041
|
column,
|
|
15025
15042
|
row
|
|
15026
15043
|
};
|
|
15027
|
-
table.
|
|
15044
|
+
table.hoverState.value = hoverState;
|
|
15028
15045
|
table.emit('cell-mouse-enter', hoverState.row, hoverState.column, hoverState.cell, e);
|
|
15029
15046
|
}
|
|
15030
15047
|
|
|
@@ -15057,7 +15074,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15057
15074
|
const handleCellMouseLeave = e => {
|
|
15058
15075
|
const cell = getCell(e);
|
|
15059
15076
|
if (!cell) return;
|
|
15060
|
-
const oldHoverState = table.
|
|
15077
|
+
const oldHoverState = table.hoverState.value || {};
|
|
15061
15078
|
table.emit('cell-mouse-leave', oldHoverState.row, oldHoverState.column, oldHoverState.cell, e);
|
|
15062
15079
|
};
|
|
15063
15080
|
const handleMouseEnter = lodashEs.debounce(index => {
|
|
@@ -15095,6 +15112,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15095
15112
|
columns
|
|
15096
15113
|
} = states;
|
|
15097
15114
|
const key = getValueOfRow(row, rowIndex);
|
|
15115
|
+
const selected = props.store.isSelected(row);
|
|
15098
15116
|
return vue.createVNode("div", {
|
|
15099
15117
|
"key": key,
|
|
15100
15118
|
"class": [getRowClass(row, rowIndex), 'vc-table__tr'],
|
|
@@ -15115,10 +15133,12 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15115
15133
|
};
|
|
15116
15134
|
if (columnsHidden.value[columnIndex]) {
|
|
15117
15135
|
return vue.createVNode("div", {
|
|
15136
|
+
"key": column.id,
|
|
15118
15137
|
"style": [sizeStyle]
|
|
15119
15138
|
}, null);
|
|
15120
15139
|
}
|
|
15121
15140
|
return vue.createVNode("div", {
|
|
15141
|
+
"key": column.id,
|
|
15122
15142
|
"style": [getCellStyle(rowIndex, columnIndex, row, column), sizeStyle],
|
|
15123
15143
|
"class": [getCellClass(rowIndex, columnIndex, row, column), 'vc-table__td'],
|
|
15124
15144
|
"onMouseenter": e => handleCellMouseEnter(e, row),
|
|
@@ -15128,7 +15148,8 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15128
15148
|
column,
|
|
15129
15149
|
rowIndex,
|
|
15130
15150
|
columnIndex,
|
|
15131
|
-
store: props.store
|
|
15151
|
+
store: props.store,
|
|
15152
|
+
selected
|
|
15132
15153
|
})]);
|
|
15133
15154
|
})]);
|
|
15134
15155
|
};
|
|
@@ -15162,7 +15183,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15162
15183
|
wrapper,
|
|
15163
15184
|
getRootElement: () => instance.vnode.el
|
|
15164
15185
|
});
|
|
15165
|
-
const layout = table.
|
|
15186
|
+
const layout = table.layout;
|
|
15166
15187
|
return () => {
|
|
15167
15188
|
return vue.createVNode("div", {
|
|
15168
15189
|
"class": "vc-table__body"
|
|
@@ -15172,7 +15193,7 @@ const TableBody = /* @__PURE__ */ vue.defineComponent({
|
|
|
15172
15193
|
"disabled": true,
|
|
15173
15194
|
"class": "vc-table__tbody",
|
|
15174
15195
|
"scrollerOptions": {
|
|
15175
|
-
barTo: `.${table.
|
|
15196
|
+
barTo: `.${table.tableId}`,
|
|
15176
15197
|
native: false,
|
|
15177
15198
|
always: false,
|
|
15178
15199
|
showBar: !props.fixed,
|
|
@@ -15224,7 +15245,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15224
15245
|
}
|
|
15225
15246
|
},
|
|
15226
15247
|
setup(props) {
|
|
15227
|
-
const table =
|
|
15248
|
+
const table = vue.inject('vc-table');
|
|
15228
15249
|
const instance = vue.getCurrentInstance();
|
|
15229
15250
|
const draggingColumn = vue.ref(null);
|
|
15230
15251
|
const dragging = vue.ref(false);
|
|
@@ -15331,7 +15352,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15331
15352
|
/* istanbul ignore if */
|
|
15332
15353
|
if (draggingColumn.value && props.border) {
|
|
15333
15354
|
dragging.value = true;
|
|
15334
|
-
table.
|
|
15355
|
+
table.resizeProxyVisible.value = true;
|
|
15335
15356
|
const tableEl = table.vnode.el;
|
|
15336
15357
|
const tableLeft = tableEl.getBoundingClientRect().left;
|
|
15337
15358
|
const columnEl = instance.vnode.el.querySelector(`.vc-table__th.${column.id}`);
|
|
@@ -15344,7 +15365,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
15344
15365
|
startColumnLeft: columnRect.left - tableLeft,
|
|
15345
15366
|
tableLeft
|
|
15346
15367
|
};
|
|
15347
|
-
const resizeProxy = table.
|
|
15368
|
+
const resizeProxy = table.resizeProxy.value;
|
|
15348
15369
|
resizeProxy.style.left = dragState.value.startLeft + 'px';
|
|
15349
15370
|
document.onselectstart = () => false;
|
|
15350
15371
|
document.ondragstart = () => false;
|
|
@@ -15703,7 +15724,8 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
15703
15724
|
emits: ['select', 'select-all', 'selection-change', 'cell-mouse-enter', 'cell-mouse-leave', 'cell-click', 'cell-dblclick', 'row-click', 'row-contextmenu', 'row-dblclick', 'header-click', 'header-contextmenu', 'current-change', 'header-dragend ', 'expand-change', 'sort-change'],
|
|
15704
15725
|
setup(props, {
|
|
15705
15726
|
slots,
|
|
15706
|
-
expose
|
|
15727
|
+
expose,
|
|
15728
|
+
emit
|
|
15707
15729
|
}) {
|
|
15708
15730
|
const instance = vue.getCurrentInstance();
|
|
15709
15731
|
const store = new Store({
|
|
@@ -15819,7 +15841,8 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
15819
15841
|
};
|
|
15820
15842
|
}
|
|
15821
15843
|
return {
|
|
15822
|
-
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : ''
|
|
15844
|
+
height: layout.states.viewportHeight ? layout.states.viewportHeight + 'px' : '',
|
|
15845
|
+
bottom: 0
|
|
15823
15846
|
};
|
|
15824
15847
|
}
|
|
15825
15848
|
});
|
|
@@ -16023,8 +16046,8 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16023
16046
|
}, {
|
|
16024
16047
|
immediate: true
|
|
16025
16048
|
});
|
|
16026
|
-
vue.watch(() => props.data,
|
|
16027
|
-
store.setData(
|
|
16049
|
+
vue.watch(() => [props.data, props.data.length], () => {
|
|
16050
|
+
store.setData(props.data);
|
|
16028
16051
|
isReady.value && vue.nextTick(refreshLayout);
|
|
16029
16052
|
}, {
|
|
16030
16053
|
immediate: true
|
|
@@ -16062,7 +16085,7 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16062
16085
|
isUnMount = true;
|
|
16063
16086
|
unbindEvents();
|
|
16064
16087
|
});
|
|
16065
|
-
|
|
16088
|
+
const exposed = {
|
|
16066
16089
|
bodyXWrapper,
|
|
16067
16090
|
bodyYWrapper,
|
|
16068
16091
|
tableId,
|
|
@@ -16084,8 +16107,12 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16084
16107
|
isReady,
|
|
16085
16108
|
hoverState,
|
|
16086
16109
|
renderExpanded,
|
|
16087
|
-
hiddenColumns
|
|
16088
|
-
|
|
16110
|
+
hiddenColumns,
|
|
16111
|
+
props,
|
|
16112
|
+
emit
|
|
16113
|
+
};
|
|
16114
|
+
expose(exposed);
|
|
16115
|
+
vue.provide('vc-table', exposed);
|
|
16089
16116
|
return () => {
|
|
16090
16117
|
return vue.createVNode("div", {
|
|
16091
16118
|
"class": [classes.value, tableId, 'vc-table'],
|
|
@@ -16121,7 +16148,9 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
16121
16148
|
}, null), props.data.length === 0 && vue.createVNode("div", {
|
|
16122
16149
|
"ref": emptyBlock,
|
|
16123
16150
|
"style": bodyWidthStyle.value,
|
|
16124
|
-
"class":
|
|
16151
|
+
"class": [{
|
|
16152
|
+
'is-absolute': !!props.height
|
|
16153
|
+
}, 'vc-table__empty-wrapper']
|
|
16125
16154
|
}, [vue.createVNode("span", {
|
|
16126
16155
|
"class": "vc-table__empty-text"
|
|
16127
16156
|
}, [slots.empty ? slots.empty() : props.emptyText || '暂无数据'])]), slots.append && vue.createVNode("div", {
|
|
@@ -16272,10 +16301,11 @@ const cellForced = {
|
|
|
16272
16301
|
column,
|
|
16273
16302
|
store,
|
|
16274
16303
|
rowIndex,
|
|
16275
|
-
level
|
|
16304
|
+
level,
|
|
16305
|
+
selected
|
|
16276
16306
|
}) {
|
|
16277
16307
|
return vue.withDirectives(vue.createVNode(Checkbox, {
|
|
16278
|
-
"modelValue":
|
|
16308
|
+
"modelValue": selected,
|
|
16279
16309
|
"disabled": column.selectable ? !column.selectable.call(null, row, rowIndex) : false,
|
|
16280
16310
|
"onChange": () => store.rowSelectedChanged(row),
|
|
16281
16311
|
"onClick": e => e.stopPropagation()
|
|
@@ -16448,15 +16478,14 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16448
16478
|
tooltip: [String, Function]
|
|
16449
16479
|
},
|
|
16450
16480
|
setup(props, {
|
|
16451
|
-
slots
|
|
16452
|
-
expose
|
|
16481
|
+
slots
|
|
16453
16482
|
}) {
|
|
16454
16483
|
const instance = vue.getCurrentInstance();
|
|
16455
|
-
const table =
|
|
16456
|
-
const parent =
|
|
16484
|
+
const table = vue.inject('vc-table');
|
|
16485
|
+
const parent = vue.inject('vc-table-column', table);
|
|
16457
16486
|
const isSubColumn = table !== parent; // 用于多久表头
|
|
16458
16487
|
|
|
16459
|
-
const columnId = vue.ref((parent.
|
|
16488
|
+
const columnId = vue.ref((parent.tableId || parent.columnId) + Utils.getUid('column'));
|
|
16460
16489
|
const realWidth = vue.computed(() => {
|
|
16461
16490
|
return parseWidth(props.width);
|
|
16462
16491
|
});
|
|
@@ -16555,7 +16584,7 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16555
16584
|
column.renderCell = data => vue.createVNode("div", {
|
|
16556
16585
|
"class": "vc-table__cell"
|
|
16557
16586
|
}, [originRenderCell(data)]);
|
|
16558
|
-
table.
|
|
16587
|
+
table.renderExpanded.value = data => {
|
|
16559
16588
|
return slots.default ? slots.default(data) : slots.default;
|
|
16560
16589
|
};
|
|
16561
16590
|
} else {
|
|
@@ -16574,7 +16603,7 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16574
16603
|
style: {}
|
|
16575
16604
|
};
|
|
16576
16605
|
// 存在树形数组,且当前行无箭头图标且处于当前展开列,表格对齐
|
|
16577
|
-
if (!lodashEs.isEmpty(table.
|
|
16606
|
+
if (!lodashEs.isEmpty(table.store.states.treeData) && !prefix && data.isExpandColumn) {
|
|
16578
16607
|
prefix = vue.createVNode("span", {
|
|
16579
16608
|
"class": "vc-table-un-expand__indent"
|
|
16580
16609
|
}, null);
|
|
@@ -16617,15 +16646,15 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16617
16646
|
|
|
16618
16647
|
// 影响布局
|
|
16619
16648
|
vue.watch(() => props.fixed, () => {
|
|
16620
|
-
table.
|
|
16649
|
+
table.store.scheduleLayout(true);
|
|
16621
16650
|
});
|
|
16622
16651
|
vue.watch(() => realWidth.value, v => {
|
|
16623
16652
|
columnConfig['width'] = v;
|
|
16624
16653
|
columnConfig['realWidth'] = v;
|
|
16625
|
-
table.
|
|
16654
|
+
table.store.scheduleLayout(false);
|
|
16626
16655
|
});
|
|
16627
16656
|
vue.watch(() => realMinWidth.value, () => {
|
|
16628
|
-
table.
|
|
16657
|
+
table.store.scheduleLayout(false);
|
|
16629
16658
|
});
|
|
16630
16659
|
};
|
|
16631
16660
|
vue.onBeforeMount(() => {
|
|
@@ -16633,17 +16662,17 @@ const TableColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16633
16662
|
registerWatchers();
|
|
16634
16663
|
});
|
|
16635
16664
|
vue.onMounted(() => {
|
|
16636
|
-
const children = isSubColumn ? parent.vnode.el.children : parent.
|
|
16665
|
+
const children = isSubColumn ? parent.vnode.el.children : parent.hiddenColumns.value.children;
|
|
16637
16666
|
|
|
16638
16667
|
// DOM上
|
|
16639
16668
|
const columnIndex = [...children].indexOf(instance.vnode.el);
|
|
16640
|
-
table.
|
|
16669
|
+
table.store.insertColumn(columnConfig, columnIndex, isSubColumn && parent.columnConfig);
|
|
16641
16670
|
});
|
|
16642
16671
|
vue.onUnmounted(() => {
|
|
16643
16672
|
if (!instance.parent) return;
|
|
16644
|
-
table.
|
|
16673
|
+
table.store.removeColumn(columnConfig, isSubColumn && parent.columnConfig);
|
|
16645
16674
|
});
|
|
16646
|
-
|
|
16675
|
+
vue.provide('vc-table-column', {
|
|
16647
16676
|
columnId,
|
|
16648
16677
|
columnConfig
|
|
16649
16678
|
});
|
|
@@ -16884,7 +16913,7 @@ const Tabs = /* @__PURE__ */ vue.defineComponent({
|
|
|
16884
16913
|
if (!Array.from(items).length) return;
|
|
16885
16914
|
let offset = 0;
|
|
16886
16915
|
if (index > 0) {
|
|
16887
|
-
const gutter =
|
|
16916
|
+
const gutter = 12; // margin-right -> 12px
|
|
16888
16917
|
for (let i = 0; i < index; i++) {
|
|
16889
16918
|
offset += parseFloat(items[i].offsetWidth) + gutter;
|
|
16890
16919
|
}
|
|
@@ -16956,7 +16985,7 @@ const Tabs = /* @__PURE__ */ vue.defineComponent({
|
|
|
16956
16985
|
}, [slots.extra?.()]), vue.createVNode("div", {
|
|
16957
16986
|
"ref": wrapper,
|
|
16958
16987
|
"style": {
|
|
16959
|
-
padding: tabs.scrollable.value
|
|
16988
|
+
padding: tabs.scrollable.value ? '0 24px' : 0
|
|
16960
16989
|
},
|
|
16961
16990
|
"class": "vc-tabs__bar"
|
|
16962
16991
|
}, [tabs.scrollable.value && vue.createVNode(Icon, {
|
package/dist/index.d.ts
CHANGED
|
@@ -5158,7 +5158,7 @@ export declare const Modal: {
|
|
|
5158
5158
|
validator: (v: string) => boolean;
|
|
5159
5159
|
default: string;
|
|
5160
5160
|
};
|
|
5161
|
-
|
|
5161
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5162
5162
|
width: {
|
|
5163
5163
|
type: NumberConstructor;
|
|
5164
5164
|
};
|
|
@@ -5206,6 +5206,10 @@ export declare const Modal: {
|
|
|
5206
5206
|
type: BooleanConstructor;
|
|
5207
5207
|
default: boolean;
|
|
5208
5208
|
};
|
|
5209
|
+
border: {
|
|
5210
|
+
type: BooleanConstructor;
|
|
5211
|
+
default: boolean;
|
|
5212
|
+
};
|
|
5209
5213
|
onOk: {
|
|
5210
5214
|
type: FunctionConstructor;
|
|
5211
5215
|
};
|
|
@@ -5225,6 +5229,7 @@ export declare const Modal: {
|
|
|
5225
5229
|
mask: boolean;
|
|
5226
5230
|
modelValue: boolean;
|
|
5227
5231
|
closable: boolean;
|
|
5232
|
+
border: boolean;
|
|
5228
5233
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
5229
5234
|
maskClosable: boolean;
|
|
5230
5235
|
scrollable: boolean;
|
|
@@ -5258,7 +5263,7 @@ export declare const Modal: {
|
|
|
5258
5263
|
validator: (v: string) => boolean;
|
|
5259
5264
|
default: string;
|
|
5260
5265
|
};
|
|
5261
|
-
|
|
5266
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5262
5267
|
width: {
|
|
5263
5268
|
type: NumberConstructor;
|
|
5264
5269
|
};
|
|
@@ -5306,6 +5311,10 @@ export declare const Modal: {
|
|
|
5306
5311
|
type: BooleanConstructor;
|
|
5307
5312
|
default: boolean;
|
|
5308
5313
|
};
|
|
5314
|
+
border: {
|
|
5315
|
+
type: BooleanConstructor;
|
|
5316
|
+
default: boolean;
|
|
5317
|
+
};
|
|
5309
5318
|
onOk: {
|
|
5310
5319
|
type: FunctionConstructor;
|
|
5311
5320
|
};
|
|
@@ -5325,6 +5334,7 @@ export declare const Modal: {
|
|
|
5325
5334
|
mask: boolean;
|
|
5326
5335
|
modelValue: boolean;
|
|
5327
5336
|
closable: boolean;
|
|
5337
|
+
border: boolean;
|
|
5328
5338
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
5329
5339
|
maskClosable: boolean;
|
|
5330
5340
|
scrollable: boolean;
|
|
@@ -5355,7 +5365,7 @@ type: PropType<"small" | "medium" | "large">;
|
|
|
5355
5365
|
validator: (v: string) => boolean;
|
|
5356
5366
|
default: string;
|
|
5357
5367
|
};
|
|
5358
|
-
|
|
5368
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5359
5369
|
width: {
|
|
5360
5370
|
type: NumberConstructor;
|
|
5361
5371
|
};
|
|
@@ -5403,6 +5413,10 @@ footer: {
|
|
|
5403
5413
|
type: BooleanConstructor;
|
|
5404
5414
|
default: boolean;
|
|
5405
5415
|
};
|
|
5416
|
+
border: {
|
|
5417
|
+
type: BooleanConstructor;
|
|
5418
|
+
default: boolean;
|
|
5419
|
+
};
|
|
5406
5420
|
onOk: {
|
|
5407
5421
|
type: FunctionConstructor;
|
|
5408
5422
|
};
|
|
@@ -5422,6 +5436,7 @@ footer: boolean;
|
|
|
5422
5436
|
mask: boolean;
|
|
5423
5437
|
modelValue: boolean;
|
|
5424
5438
|
closable: boolean;
|
|
5439
|
+
border: boolean;
|
|
5425
5440
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
5426
5441
|
maskClosable: boolean;
|
|
5427
5442
|
scrollable: boolean;
|
|
@@ -5456,7 +5471,7 @@ type: PropType<"small" | "medium" | "large">;
|
|
|
5456
5471
|
validator: (v: string) => boolean;
|
|
5457
5472
|
default: string;
|
|
5458
5473
|
};
|
|
5459
|
-
|
|
5474
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5460
5475
|
width: {
|
|
5461
5476
|
type: NumberConstructor;
|
|
5462
5477
|
};
|
|
@@ -5504,6 +5519,10 @@ footer: {
|
|
|
5504
5519
|
type: BooleanConstructor;
|
|
5505
5520
|
default: boolean;
|
|
5506
5521
|
};
|
|
5522
|
+
border: {
|
|
5523
|
+
type: BooleanConstructor;
|
|
5524
|
+
default: boolean;
|
|
5525
|
+
};
|
|
5507
5526
|
onOk: {
|
|
5508
5527
|
type: FunctionConstructor;
|
|
5509
5528
|
};
|
|
@@ -5528,7 +5547,7 @@ type: PropType<"small" | "medium" | "large">;
|
|
|
5528
5547
|
validator: (v: string) => boolean;
|
|
5529
5548
|
default: string;
|
|
5530
5549
|
};
|
|
5531
|
-
|
|
5550
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
5532
5551
|
width: {
|
|
5533
5552
|
type: NumberConstructor;
|
|
5534
5553
|
};
|
|
@@ -5576,6 +5595,10 @@ footer: {
|
|
|
5576
5595
|
type: BooleanConstructor;
|
|
5577
5596
|
default: boolean;
|
|
5578
5597
|
};
|
|
5598
|
+
border: {
|
|
5599
|
+
type: BooleanConstructor;
|
|
5600
|
+
default: boolean;
|
|
5601
|
+
};
|
|
5579
5602
|
onOk: {
|
|
5580
5603
|
type: FunctionConstructor;
|
|
5581
5604
|
};
|
|
@@ -5595,6 +5618,7 @@ footer: boolean;
|
|
|
5595
5618
|
mask: boolean;
|
|
5596
5619
|
modelValue: boolean;
|
|
5597
5620
|
closable: boolean;
|
|
5621
|
+
border: boolean;
|
|
5598
5622
|
content: string | ((props: Record<string, unknown>, context: SetupContext) => any);
|
|
5599
5623
|
maskClosable: boolean;
|
|
5600
5624
|
scrollable: boolean;
|
|
@@ -9313,7 +9337,7 @@ declare const props_5: {
|
|
|
9313
9337
|
validator: (v: string) => boolean;
|
|
9314
9338
|
default: string;
|
|
9315
9339
|
};
|
|
9316
|
-
|
|
9340
|
+
contentClass: (ObjectConstructor | StringConstructor)[];
|
|
9317
9341
|
width: {
|
|
9318
9342
|
type: NumberConstructor;
|
|
9319
9343
|
};
|
|
@@ -9361,6 +9385,10 @@ declare const props_5: {
|
|
|
9361
9385
|
type: BooleanConstructor;
|
|
9362
9386
|
default: boolean;
|
|
9363
9387
|
};
|
|
9388
|
+
border: {
|
|
9389
|
+
type: BooleanConstructor;
|
|
9390
|
+
default: boolean;
|
|
9391
|
+
};
|
|
9364
9392
|
onOk: {
|
|
9365
9393
|
type: FunctionConstructor;
|
|
9366
9394
|
};
|