pro-design-vue 1.2.15 → 1.2.17
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.css +1 -1
- package/dist/index.full.js +142 -83
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +142 -83
- package/es/components/form/src/components/FormGroup.d.ts +12 -12
- package/es/components/form/src/components/FormList.d.ts +12 -12
- package/es/components/form/src/components/FormListContainer.d.ts +12 -12
- package/es/components/form/src/components/FormListItem.d.ts +12 -12
- package/es/components/form/src/components/FormRowWrapper.d.ts +12 -12
- package/es/components/form/src/components/FormSet.d.ts +12 -12
- package/es/components/table/src/components/Alert.vue.d.ts +2 -1
- package/es/components/table/src/components/InteralTable.vue.d.ts +132 -117
- package/es/components/table/src/components/Table.d.ts +132 -117
- package/es/components/table/src/components/ToolBar/ToolBar.vue.d.ts +1 -3
- package/es/components/table/src/components/interface.d.ts +183 -162
- package/es/index.d.ts +193 -171
- package/es/packages/components/table/src/components/Alert.vue.mjs.map +1 -1
- package/es/packages/components/table/src/components/Alert.vue2.mjs +4 -7
- package/es/packages/components/table/src/components/Alert.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs +53 -19
- package/es/packages/components/table/src/components/Table.mjs.map +1 -1
- package/es/packages/components/table/src/components/ToolBar/ToolBar.vue.mjs +26 -2
- package/es/packages/components/table/src/components/ToolBar/ToolBar.vue.mjs.map +1 -1
- package/es/packages/components/table/src/components/ToolBar/ToolBar.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/interface.mjs +58 -54
- package/es/packages/components/table/src/components/interface.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/form/src/components/FormGroup.d.ts +12 -12
- package/lib/components/form/src/components/FormList.d.ts +12 -12
- package/lib/components/form/src/components/FormListContainer.d.ts +12 -12
- package/lib/components/form/src/components/FormListItem.d.ts +12 -12
- package/lib/components/form/src/components/FormRowWrapper.d.ts +12 -12
- package/lib/components/form/src/components/FormSet.d.ts +12 -12
- package/lib/components/table/src/components/Alert.vue.d.ts +2 -1
- package/lib/components/table/src/components/InteralTable.vue.d.ts +132 -117
- package/lib/components/table/src/components/Table.d.ts +132 -117
- package/lib/components/table/src/components/ToolBar/ToolBar.vue.d.ts +1 -3
- package/lib/components/table/src/components/interface.d.ts +183 -162
- package/lib/index.d.ts +193 -171
- package/lib/packages/components/table/src/components/Alert.vue.js.map +1 -1
- package/lib/packages/components/table/src/components/Alert.vue2.js +4 -7
- package/lib/packages/components/table/src/components/Alert.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js +53 -19
- package/lib/packages/components/table/src/components/Table.js.map +1 -1
- package/lib/packages/components/table/src/components/ToolBar/ToolBar.vue.js +25 -1
- package/lib/packages/components/table/src/components/ToolBar/ToolBar.vue.js.map +1 -1
- package/lib/packages/components/table/src/components/ToolBar/ToolBar.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/interface.js +58 -54
- package/lib/packages/components/table/src/components/interface.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/table/toolbar.less +9 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.17 */
|
|
2
2
|
|
|
3
3
|
import { Modal, theme as theme$1, ConfigProvider, App, Button as Button$1, Tooltip, Popconfirm, Dropdown, Menu, Slider, Drawer, Input, InputNumber, Form as Form$1, Space, Textarea, Select, TreeSelect, Checkbox as Checkbox$1, CheckboxGroup, RadioGroup, Radio as Radio$1, Cascader, Switch, Rate, DatePicker, RangePicker, TimePicker, TimeRangePicker, Upload, FormItemRest, Spin, message, Row as Row$1, Col, FormItem as FormItem$3, Steps, Popover, MenuItem, SubMenu, Empty, Badge, Tag, Pagination, InputSearch, Tree, Card, Tabs, TabPane } from 'ant-design-vue';
|
|
4
4
|
import { inject, ref, getCurrentInstance, nextTick, h, reactive, defineComponent, createVNode, isVNode, Fragment, cloneVNode, provide, watch, computed, renderSlot, createPropsRestProxy, createBlock, openBlock, unref, mergeProps, withCtx, normalizeProps, guardReactiveProps, shallowRef, shallowReadonly, toValue, getCurrentScope, onScopeDispose, onMounted, hasInjectionContext, isRef, toRefs as toRefs$1, customRef, toRef as toRef$1, readonly, watchEffect, toRaw, createElementBlock, createCommentVNode, resolveDynamicComponent, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, createSlots, useAttrs, useTemplateRef, defineAsyncComponent, Teleport, onUnmounted, Comment as Comment$1, useSlots, useModel, withModifiers, mergeModels, renderList, camelize, isReactive, onActivated, onDeactivated, onBeforeUnmount, triggerRef, resolveDirective, withDirectives, vShow, render as render$1, resolveComponent, createTextVNode, vModelText } from 'vue';
|
|
@@ -30,7 +30,7 @@ const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
|
|
|
30
30
|
const DEFAULT_NAMESPACE = "pro";
|
|
31
31
|
const DEFAULT_LOCALE = "zh-CN";
|
|
32
32
|
|
|
33
|
-
const version$1 = "1.2.
|
|
33
|
+
const version$1 = "1.2.17";
|
|
34
34
|
|
|
35
35
|
const makeInstaller = (components = []) => {
|
|
36
36
|
const install = (app) => {
|
|
@@ -21613,60 +21613,6 @@ const baseTableProps = () => ({
|
|
|
21613
21613
|
formatRangeCellText: {
|
|
21614
21614
|
type: Function
|
|
21615
21615
|
},
|
|
21616
|
-
"onUpdate:selectedRowKeys": {
|
|
21617
|
-
type: Function
|
|
21618
|
-
},
|
|
21619
|
-
onScroll: {
|
|
21620
|
-
type: Function
|
|
21621
|
-
},
|
|
21622
|
-
"onUpdate:expandedRowKeys": {
|
|
21623
|
-
type: Function
|
|
21624
|
-
},
|
|
21625
|
-
onResizeColumn: {
|
|
21626
|
-
type: Function,
|
|
21627
|
-
default: void 0
|
|
21628
|
-
},
|
|
21629
|
-
onRowDragEnd: {
|
|
21630
|
-
type: Function,
|
|
21631
|
-
default: void 0
|
|
21632
|
-
},
|
|
21633
|
-
onColumnDragEnd: {
|
|
21634
|
-
type: Function,
|
|
21635
|
-
default: void 0
|
|
21636
|
-
},
|
|
21637
|
-
onCellKeydown: {
|
|
21638
|
-
type: Function,
|
|
21639
|
-
default: void 0
|
|
21640
|
-
},
|
|
21641
|
-
onCellClick: {
|
|
21642
|
-
type: Function,
|
|
21643
|
-
default: void 0
|
|
21644
|
-
},
|
|
21645
|
-
onBeforeOpenEditor: {
|
|
21646
|
-
type: Function,
|
|
21647
|
-
default: void 0
|
|
21648
|
-
},
|
|
21649
|
-
onOpenEditor: {
|
|
21650
|
-
type: Function,
|
|
21651
|
-
default: void 0
|
|
21652
|
-
},
|
|
21653
|
-
onBeforeCloseEditor: {
|
|
21654
|
-
type: Function,
|
|
21655
|
-
default: void 0
|
|
21656
|
-
},
|
|
21657
|
-
onCloseEditor: {
|
|
21658
|
-
type: Function,
|
|
21659
|
-
default: void 0
|
|
21660
|
-
},
|
|
21661
|
-
"onUpdate:pagination": {
|
|
21662
|
-
type: Function
|
|
21663
|
-
},
|
|
21664
|
-
"onUpdate:dataSource": {
|
|
21665
|
-
type: Function
|
|
21666
|
-
},
|
|
21667
|
-
"onUpdate:columns": {
|
|
21668
|
-
type: Function
|
|
21669
|
-
},
|
|
21670
21616
|
columnEmptyText: {
|
|
21671
21617
|
type: [String, Boolean],
|
|
21672
21618
|
default: void 0
|
|
@@ -21674,6 +21620,7 @@ const baseTableProps = () => ({
|
|
|
21674
21620
|
toolBar: { type: Boolean, default: void 0 },
|
|
21675
21621
|
options: { type: [Object, Boolean], default: void 0 },
|
|
21676
21622
|
alwaysShowAlert: { type: Boolean, default: void 0 },
|
|
21623
|
+
showAlert: { type: Boolean, default: void 0 },
|
|
21677
21624
|
// requst 相关配置
|
|
21678
21625
|
request: Function,
|
|
21679
21626
|
params: Object,
|
|
@@ -21723,6 +21670,63 @@ const baseTableProps = () => ({
|
|
|
21723
21670
|
horizontalScrollSticky: {
|
|
21724
21671
|
type: [Boolean, Object],
|
|
21725
21672
|
default: true
|
|
21673
|
+
},
|
|
21674
|
+
"onUpdate:selectedRowKeys": {
|
|
21675
|
+
type: Function
|
|
21676
|
+
},
|
|
21677
|
+
onScroll: {
|
|
21678
|
+
type: Function
|
|
21679
|
+
},
|
|
21680
|
+
"onUpdate:expandedRowKeys": {
|
|
21681
|
+
type: Function
|
|
21682
|
+
},
|
|
21683
|
+
onResizeColumn: {
|
|
21684
|
+
type: Function,
|
|
21685
|
+
default: void 0
|
|
21686
|
+
},
|
|
21687
|
+
onRowDragEnd: {
|
|
21688
|
+
type: Function,
|
|
21689
|
+
default: void 0
|
|
21690
|
+
},
|
|
21691
|
+
onColumnDragEnd: {
|
|
21692
|
+
type: Function,
|
|
21693
|
+
default: void 0
|
|
21694
|
+
},
|
|
21695
|
+
onCellKeydown: {
|
|
21696
|
+
type: Function,
|
|
21697
|
+
default: void 0
|
|
21698
|
+
},
|
|
21699
|
+
onCellClick: {
|
|
21700
|
+
type: Function,
|
|
21701
|
+
default: void 0
|
|
21702
|
+
},
|
|
21703
|
+
onBeforeOpenEditor: {
|
|
21704
|
+
type: Function,
|
|
21705
|
+
default: void 0
|
|
21706
|
+
},
|
|
21707
|
+
onOpenEditor: {
|
|
21708
|
+
type: Function,
|
|
21709
|
+
default: void 0
|
|
21710
|
+
},
|
|
21711
|
+
onBeforeCloseEditor: {
|
|
21712
|
+
type: Function,
|
|
21713
|
+
default: void 0
|
|
21714
|
+
},
|
|
21715
|
+
onCloseEditor: {
|
|
21716
|
+
type: Function,
|
|
21717
|
+
default: void 0
|
|
21718
|
+
},
|
|
21719
|
+
"onUpdate:pagination": {
|
|
21720
|
+
type: Function
|
|
21721
|
+
},
|
|
21722
|
+
"onUpdate:dataSource": {
|
|
21723
|
+
type: Function
|
|
21724
|
+
},
|
|
21725
|
+
"onUpdate:columns": {
|
|
21726
|
+
type: Function
|
|
21727
|
+
},
|
|
21728
|
+
"onUpdate:showAlert": {
|
|
21729
|
+
type: Function
|
|
21726
21730
|
}
|
|
21727
21731
|
});
|
|
21728
21732
|
const tableProps = () => ({
|
|
@@ -34865,6 +34869,18 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34865
34869
|
class: normalizeClass(`${_ctx.prefixCls}-toolbar`)
|
|
34866
34870
|
},
|
|
34867
34871
|
[
|
|
34872
|
+
!!_ctx.$slots.top ? (openBlock(), createElementBlock(
|
|
34873
|
+
"div",
|
|
34874
|
+
{
|
|
34875
|
+
key: 0,
|
|
34876
|
+
class: normalizeClass(`${_ctx.prefixCls}-toolbar-top`)
|
|
34877
|
+
},
|
|
34878
|
+
[
|
|
34879
|
+
renderSlot(_ctx.$slots, "top")
|
|
34880
|
+
],
|
|
34881
|
+
2
|
|
34882
|
+
/* CLASS */
|
|
34883
|
+
)) : createCommentVNode("v-if", true),
|
|
34868
34884
|
createElementVNode(
|
|
34869
34885
|
"div",
|
|
34870
34886
|
{
|
|
@@ -35026,7 +35042,19 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35026
35042
|
],
|
|
35027
35043
|
2
|
|
35028
35044
|
/* CLASS */
|
|
35029
|
-
)
|
|
35045
|
+
),
|
|
35046
|
+
!!_ctx.$slots.bottom ? (openBlock(), createElementBlock(
|
|
35047
|
+
"div",
|
|
35048
|
+
{
|
|
35049
|
+
key: 1,
|
|
35050
|
+
class: normalizeClass(`${_ctx.prefixCls}-toolbar-bottom`)
|
|
35051
|
+
},
|
|
35052
|
+
[
|
|
35053
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
35054
|
+
],
|
|
35055
|
+
2
|
|
35056
|
+
/* CLASS */
|
|
35057
|
+
)) : createCommentVNode("v-if", true)
|
|
35030
35058
|
],
|
|
35031
35059
|
2
|
|
35032
35060
|
/* CLASS */
|
|
@@ -35045,18 +35073,15 @@ var _sfc_main$7 = defineComponent({
|
|
|
35045
35073
|
selectedRows: {
|
|
35046
35074
|
type: Array,
|
|
35047
35075
|
default: () => []
|
|
35048
|
-
}
|
|
35076
|
+
},
|
|
35077
|
+
onCleanSelected: Function
|
|
35049
35078
|
},
|
|
35050
35079
|
inheritAttrs: false,
|
|
35051
35080
|
components: { Space },
|
|
35052
35081
|
emits: ["cleanSelected"],
|
|
35053
|
-
setup(_, {
|
|
35054
|
-
const onCleanSelected = () => {
|
|
35055
|
-
emit("cleanSelected");
|
|
35056
|
-
};
|
|
35082
|
+
setup(_, { slots }) {
|
|
35057
35083
|
return {
|
|
35058
|
-
slots
|
|
35059
|
-
onCleanSelected
|
|
35084
|
+
slots
|
|
35060
35085
|
};
|
|
35061
35086
|
}
|
|
35062
35087
|
});
|
|
@@ -35287,7 +35312,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35287
35312
|
attrs,
|
|
35288
35313
|
emit
|
|
35289
35314
|
}) {
|
|
35290
|
-
var _a;
|
|
35315
|
+
var _a, _b;
|
|
35291
35316
|
const tableRef = ref();
|
|
35292
35317
|
const {
|
|
35293
35318
|
table,
|
|
@@ -35300,8 +35325,8 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35300
35325
|
} = useProvideHover({
|
|
35301
35326
|
rowHoverDelay: computed(() => props.rowHoverDelay),
|
|
35302
35327
|
rowHover: computed(() => {
|
|
35303
|
-
var _a2,
|
|
35304
|
-
return (
|
|
35328
|
+
var _a2, _b2;
|
|
35329
|
+
return (_b2 = props.rowHover) != null ? _b2 : (_a2 = table == null ? void 0 : table.value) == null ? void 0 : _a2.rowHover;
|
|
35305
35330
|
})
|
|
35306
35331
|
});
|
|
35307
35332
|
const mergedPrefixCls = computed(() => {
|
|
@@ -35309,7 +35334,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35309
35334
|
return (_a2 = props.prefixCls) != null ? _a2 : prefixCls;
|
|
35310
35335
|
});
|
|
35311
35336
|
const mergeOptions = computed(() => {
|
|
35312
|
-
var _a2,
|
|
35337
|
+
var _a2, _b2;
|
|
35313
35338
|
if (props.options === false) {
|
|
35314
35339
|
return false;
|
|
35315
35340
|
}
|
|
@@ -35317,7 +35342,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35317
35342
|
return (_a2 = table == null ? void 0 : table.value) == null ? void 0 : _a2.options;
|
|
35318
35343
|
}
|
|
35319
35344
|
return {
|
|
35320
|
-
...(
|
|
35345
|
+
...(_b2 = table == null ? void 0 : table.value) == null ? void 0 : _b2.options,
|
|
35321
35346
|
...props.options
|
|
35322
35347
|
};
|
|
35323
35348
|
});
|
|
@@ -35371,12 +35396,12 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35371
35396
|
}
|
|
35372
35397
|
});
|
|
35373
35398
|
const onFormSearchSubmit = (values) => {
|
|
35374
|
-
var _a2,
|
|
35399
|
+
var _a2, _b2;
|
|
35375
35400
|
if (mergeOptions.value && mergeOptions.value.search) {
|
|
35376
35401
|
const {
|
|
35377
35402
|
name = "keyword"
|
|
35378
35403
|
} = mergeOptions.value.search === true ? {} : mergeOptions.value.search;
|
|
35379
|
-
const success = (
|
|
35404
|
+
const success = (_b2 = (_a2 = mergeOptions.value.search) == null ? void 0 : _a2.onSearch) == null ? void 0 : _b2.call(_a2, actions.keyword.value);
|
|
35380
35405
|
if (success !== false) {
|
|
35381
35406
|
actions.setFormSearch({
|
|
35382
35407
|
...values,
|
|
@@ -35457,11 +35482,11 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35457
35482
|
(_a2 = props["onUpdate:columns"]) == null ? void 0 : _a2.call(props, rawColumns, action);
|
|
35458
35483
|
};
|
|
35459
35484
|
const formItems = computed(() => {
|
|
35460
|
-
var _a2,
|
|
35485
|
+
var _a2, _b2, _c;
|
|
35461
35486
|
if (props.search === false) {
|
|
35462
35487
|
return [];
|
|
35463
35488
|
}
|
|
35464
|
-
if ((
|
|
35489
|
+
if ((_b2 = (_a2 = props.search) == null ? void 0 : _a2.items) == null ? void 0 : _b2.length) {
|
|
35465
35490
|
return (_c = props.search) == null ? void 0 : _c.items;
|
|
35466
35491
|
}
|
|
35467
35492
|
return flatColumnsHandle(props.columns).filter((item) => {
|
|
@@ -35516,13 +35541,30 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35516
35541
|
return (_a3 = preserveRecordsRef.value) == null ? void 0 : _a3.get(key);
|
|
35517
35542
|
});
|
|
35518
35543
|
});
|
|
35519
|
-
const onCleanSelected = () => {
|
|
35520
|
-
var _a2;
|
|
35544
|
+
const onCleanSelected = (keys) => {
|
|
35545
|
+
var _a2, _b2, _c, _d, _e;
|
|
35546
|
+
let newSelectedRowKeys = [];
|
|
35547
|
+
if (keys == null ? void 0 : keys.length) {
|
|
35548
|
+
newSelectedRowKeys = (_b2 = (_a2 = selectedRowKeys.value) == null ? void 0 : _a2.filter((key) => !keys.includes(key))) != null ? _b2 : [];
|
|
35549
|
+
}
|
|
35521
35550
|
if (props.rowSelection && props.rowSelection.onChange) {
|
|
35522
|
-
props.rowSelection.onChange(
|
|
35551
|
+
props.rowSelection.onChange(newSelectedRowKeys, (_c = selectedRows.value) != null ? _c : []);
|
|
35552
|
+
}
|
|
35553
|
+
(_e = props["onUpdate:selectedRowKeys"]) == null ? void 0 : _e.call(props, newSelectedRowKeys, (_d = selectedRows.value) != null ? _d : []);
|
|
35554
|
+
setSelectedRowKeys(newSelectedRowKeys);
|
|
35555
|
+
};
|
|
35556
|
+
const setRowSelected = (keys, rows) => {
|
|
35557
|
+
var _a2;
|
|
35558
|
+
if (keys == null ? void 0 : keys.length) {
|
|
35559
|
+
if (rows == null ? void 0 : rows.length) {
|
|
35560
|
+
rows.forEach((data) => {
|
|
35561
|
+
const dataRowKey = getRowKey.value(data, -1);
|
|
35562
|
+
preserveRecordsRef.value.set(dataRowKey, data);
|
|
35563
|
+
});
|
|
35564
|
+
}
|
|
35565
|
+
const newKeys = Array.from(/* @__PURE__ */ new Set([...(_a2 = selectedRowKeys.value) != null ? _a2 : [], ...keys]));
|
|
35566
|
+
setSelectedRowKeys(newKeys);
|
|
35523
35567
|
}
|
|
35524
|
-
(_a2 = props["onUpdate:selectedRowKeys"]) == null ? void 0 : _a2.call(props, [], []);
|
|
35525
|
-
setSelectedRowKeys([]);
|
|
35526
35568
|
};
|
|
35527
35569
|
const hideToolbar = computed(() => mergeOptions.value === false && !props.title && !slots.title && !slots.toolbar && !slots.searchExtra && !slots.toolbarActions);
|
|
35528
35570
|
const notNeedCardDom = computed(() => {
|
|
@@ -35546,6 +35588,20 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35546
35588
|
}
|
|
35547
35589
|
return {};
|
|
35548
35590
|
});
|
|
35591
|
+
const [mergeShowAlert, setMergeShowAlert] = useMergedState(!!((_b = selectedRowKeys.value) == null ? void 0 : _b.length), {
|
|
35592
|
+
value: computed(() => props.showAlert),
|
|
35593
|
+
onChange(val) {
|
|
35594
|
+
var _a2;
|
|
35595
|
+
(_a2 = props["onUpdate:showAlert"]) == null ? void 0 : _a2.call(props, val);
|
|
35596
|
+
}
|
|
35597
|
+
});
|
|
35598
|
+
watch(selectedRowKeys, (selectedKeys) => {
|
|
35599
|
+
if (selectedKeys == null ? void 0 : selectedKeys.length) {
|
|
35600
|
+
setMergeShowAlert(true);
|
|
35601
|
+
} else {
|
|
35602
|
+
setMergeShowAlert(false);
|
|
35603
|
+
}
|
|
35604
|
+
});
|
|
35549
35605
|
expose({
|
|
35550
35606
|
scrollTo: (pos, behavior) => {
|
|
35551
35607
|
var _a2;
|
|
@@ -35579,6 +35635,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35579
35635
|
dataSource.value = [];
|
|
35580
35636
|
},
|
|
35581
35637
|
cleanSelected: onCleanSelected,
|
|
35638
|
+
setSelected: setRowSelected,
|
|
35582
35639
|
appendCellToSelectedRange: (params) => {
|
|
35583
35640
|
var _a2;
|
|
35584
35641
|
return (_a2 = tableRef.value) == null ? void 0 : _a2.appendCellToSelectedRange(params);
|
|
@@ -35595,7 +35652,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35595
35652
|
reset
|
|
35596
35653
|
});
|
|
35597
35654
|
return () => {
|
|
35598
|
-
var _a2,
|
|
35655
|
+
var _a2, _b2, _c, _d, _e;
|
|
35599
35656
|
const {
|
|
35600
35657
|
expandIcon = slots.expandIcon,
|
|
35601
35658
|
expandedRowRender = slots.expandedRowRender
|
|
@@ -35636,8 +35693,10 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35636
35693
|
toolbar: slots.toolbar,
|
|
35637
35694
|
title: slots.title,
|
|
35638
35695
|
searchExtra: slots.searchExtra,
|
|
35639
|
-
actions: slots.toolbarActions
|
|
35640
|
-
|
|
35696
|
+
actions: slots.toolbarActions,
|
|
35697
|
+
bottom: slots.toolbarBottom,
|
|
35698
|
+
top: slots.toolbarTop
|
|
35699
|
+
}), !!props.rowSelection && ((_b2 = props.rowSelection) == null ? void 0 : _b2.type) !== "radio" && props.alwaysShowAlert !== false && mergeShowAlert.value && createVNode(Alert, {
|
|
35641
35700
|
"prefixCls": mergedPrefixCls.value,
|
|
35642
35701
|
"selectedRowKeys": selectedRowKeys.value,
|
|
35643
35702
|
"selectedRows": selectedRows.value,
|
|
@@ -35686,7 +35745,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35686
35745
|
}
|
|
35687
35746
|
}, {
|
|
35688
35747
|
default: () => {
|
|
35689
|
-
var _a3,
|
|
35748
|
+
var _a3, _b3, _c2, _d2;
|
|
35690
35749
|
return [createVNode("div", mergeProps({
|
|
35691
35750
|
"ref": counter.rootDomRef
|
|
35692
35751
|
}, attrs, {
|
|
@@ -35695,7 +35754,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35695
35754
|
}), [props.search !== false && !!((_a3 = formItems.value) == null ? void 0 : _a3.length) && createVNode(FormRender, {
|
|
35696
35755
|
"prefixCls": mergedPrefixCls.value,
|
|
35697
35756
|
"items": formItems.value,
|
|
35698
|
-
"cardBordered": (_d2 = (_c2 = props.cardBordered) != null ? _c2 : (
|
|
35757
|
+
"cardBordered": (_d2 = (_c2 = props.cardBordered) != null ? _c2 : (_b3 = table == null ? void 0 : table.value) == null ? void 0 : _b3.cardBordered) != null ? _d2 : dark == null ? void 0 : dark.value,
|
|
35699
35758
|
"search": props.search,
|
|
35700
35759
|
"tableShowCard": props.cardProps !== false,
|
|
35701
35760
|
"loading": formSubmitLoading.value,
|
|
@@ -137,20 +137,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
137
137
|
};
|
|
138
138
|
justify: {
|
|
139
139
|
type: import("vue").PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
140
|
-
sm?: "
|
|
141
|
-
md?: "
|
|
142
|
-
lg?: "
|
|
143
|
-
xl?: "
|
|
144
|
-
xs?: "
|
|
145
|
-
xxl?: "
|
|
140
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
141
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
142
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
143
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
144
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
145
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
146
146
|
}>;
|
|
147
147
|
default: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
148
|
-
sm?: "
|
|
149
|
-
md?: "
|
|
150
|
-
lg?: "
|
|
151
|
-
xl?: "
|
|
152
|
-
xs?: "
|
|
153
|
-
xxl?: "
|
|
148
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
149
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
150
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
151
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
152
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
153
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
156
|
prefixCls: StringConstructor;
|
|
@@ -322,20 +322,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
322
322
|
};
|
|
323
323
|
justify: {
|
|
324
324
|
type: import("vue").PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
325
|
-
sm?: "
|
|
326
|
-
md?: "
|
|
327
|
-
lg?: "
|
|
328
|
-
xl?: "
|
|
329
|
-
xs?: "
|
|
330
|
-
xxl?: "
|
|
325
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
326
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
327
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
328
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
329
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
330
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
331
331
|
}>;
|
|
332
332
|
default: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
333
|
-
sm?: "
|
|
334
|
-
md?: "
|
|
335
|
-
lg?: "
|
|
336
|
-
xl?: "
|
|
337
|
-
xs?: "
|
|
338
|
-
xxl?: "
|
|
333
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
334
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
335
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
336
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
337
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
338
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
prefixCls: StringConstructor;
|
|
@@ -245,20 +245,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
245
245
|
};
|
|
246
246
|
justify: {
|
|
247
247
|
type: import("vue").PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
248
|
-
sm?: "
|
|
249
|
-
md?: "
|
|
250
|
-
lg?: "
|
|
251
|
-
xl?: "
|
|
252
|
-
xs?: "
|
|
253
|
-
xxl?: "
|
|
248
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
249
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
250
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
251
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
252
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
253
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
254
254
|
}>;
|
|
255
255
|
default: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
256
|
-
sm?: "
|
|
257
|
-
md?: "
|
|
258
|
-
lg?: "
|
|
259
|
-
xl?: "
|
|
260
|
-
xs?: "
|
|
261
|
-
xxl?: "
|
|
256
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
257
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
258
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
259
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
260
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
261
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
262
262
|
};
|
|
263
263
|
};
|
|
264
264
|
prefixCls: StringConstructor;
|
|
@@ -205,20 +205,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
205
205
|
};
|
|
206
206
|
justify: {
|
|
207
207
|
type: import("vue").PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
208
|
-
sm?: "
|
|
209
|
-
md?: "
|
|
210
|
-
lg?: "
|
|
211
|
-
xl?: "
|
|
212
|
-
xs?: "
|
|
213
|
-
xxl?: "
|
|
208
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
209
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
210
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
211
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
212
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
213
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
214
214
|
}>;
|
|
215
215
|
default: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
216
|
-
sm?: "
|
|
217
|
-
md?: "
|
|
218
|
-
lg?: "
|
|
219
|
-
xl?: "
|
|
220
|
-
xs?: "
|
|
221
|
-
xxl?: "
|
|
216
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
217
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
218
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
219
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
220
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
221
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
224
|
prefixCls: StringConstructor;
|
|
@@ -42,20 +42,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
};
|
|
43
43
|
justify: {
|
|
44
44
|
type: import("vue").PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
45
|
-
sm?: "
|
|
46
|
-
md?: "
|
|
47
|
-
lg?: "
|
|
48
|
-
xl?: "
|
|
49
|
-
xs?: "
|
|
50
|
-
xxl?: "
|
|
45
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
46
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
47
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
48
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
49
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
50
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
51
51
|
}>;
|
|
52
52
|
default: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
53
|
-
sm?: "
|
|
54
|
-
md?: "
|
|
55
|
-
lg?: "
|
|
56
|
-
xl?: "
|
|
57
|
-
xs?: "
|
|
58
|
-
xxl?: "
|
|
53
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
54
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
55
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
56
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
57
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
58
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
prefixCls: StringConstructor;
|
|
@@ -153,20 +153,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
153
|
};
|
|
154
154
|
justify: {
|
|
155
155
|
type: import("vue").PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
156
|
-
sm?: "
|
|
157
|
-
md?: "
|
|
158
|
-
lg?: "
|
|
159
|
-
xl?: "
|
|
160
|
-
xs?: "
|
|
161
|
-
xxl?: "
|
|
156
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
157
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
158
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
159
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
160
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
161
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
162
162
|
}>;
|
|
163
163
|
default: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | {
|
|
164
|
-
sm?: "
|
|
165
|
-
md?: "
|
|
166
|
-
lg?: "
|
|
167
|
-
xl?: "
|
|
168
|
-
xs?: "
|
|
169
|
-
xxl?: "
|
|
164
|
+
sm?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
165
|
+
md?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
166
|
+
lg?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
167
|
+
xl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
168
|
+
xs?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
169
|
+
xxl?: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
prefixCls: StringConstructor;
|
|
@@ -10,11 +10,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
type: PropType<any[]>;
|
|
11
11
|
default: () => never[];
|
|
12
12
|
};
|
|
13
|
+
onCleanSelected: PropType<(keys?: Key[]) => void>;
|
|
13
14
|
}>, {
|
|
14
15
|
slots: Readonly<{
|
|
15
16
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
16
17
|
}>;
|
|
17
|
-
onCleanSelected: () => void;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cleanSelected"[], "cleanSelected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
prefixCls: StringConstructor;
|
|
20
20
|
selectedRowKeys: {
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
type: PropType<any[]>;
|
|
26
26
|
default: () => never[];
|
|
27
27
|
};
|
|
28
|
+
onCleanSelected: PropType<(keys?: Key[]) => void>;
|
|
28
29
|
}>> & Readonly<{
|
|
29
30
|
onCleanSelected?: ((...args: any[]) => any) | undefined;
|
|
30
31
|
}>, {
|