pro-design-vue 1.2.15 → 1.2.16
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 +139 -82
- 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 +139 -82
- 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 +22 -0
- 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 +22 -0
- 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.16 */
|
|
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.16";
|
|
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,17 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34865
34869
|
class: normalizeClass(`${_ctx.prefixCls}-toolbar`)
|
|
34866
34870
|
},
|
|
34867
34871
|
[
|
|
34872
|
+
createElementVNode(
|
|
34873
|
+
"div",
|
|
34874
|
+
{
|
|
34875
|
+
class: normalizeClass(`${_ctx.prefixCls}-toolbar-top`)
|
|
34876
|
+
},
|
|
34877
|
+
[
|
|
34878
|
+
renderSlot(_ctx.$slots, "top")
|
|
34879
|
+
],
|
|
34880
|
+
2
|
|
34881
|
+
/* CLASS */
|
|
34882
|
+
),
|
|
34868
34883
|
createElementVNode(
|
|
34869
34884
|
"div",
|
|
34870
34885
|
{
|
|
@@ -35026,6 +35041,17 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35026
35041
|
],
|
|
35027
35042
|
2
|
|
35028
35043
|
/* CLASS */
|
|
35044
|
+
),
|
|
35045
|
+
createElementVNode(
|
|
35046
|
+
"div",
|
|
35047
|
+
{
|
|
35048
|
+
class: normalizeClass(`${_ctx.prefixCls}-toolbar-bottom`)
|
|
35049
|
+
},
|
|
35050
|
+
[
|
|
35051
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
35052
|
+
],
|
|
35053
|
+
2
|
|
35054
|
+
/* CLASS */
|
|
35029
35055
|
)
|
|
35030
35056
|
],
|
|
35031
35057
|
2
|
|
@@ -35045,18 +35071,15 @@ var _sfc_main$7 = defineComponent({
|
|
|
35045
35071
|
selectedRows: {
|
|
35046
35072
|
type: Array,
|
|
35047
35073
|
default: () => []
|
|
35048
|
-
}
|
|
35074
|
+
},
|
|
35075
|
+
onCleanSelected: Function
|
|
35049
35076
|
},
|
|
35050
35077
|
inheritAttrs: false,
|
|
35051
35078
|
components: { Space },
|
|
35052
35079
|
emits: ["cleanSelected"],
|
|
35053
|
-
setup(_, {
|
|
35054
|
-
const onCleanSelected = () => {
|
|
35055
|
-
emit("cleanSelected");
|
|
35056
|
-
};
|
|
35080
|
+
setup(_, { slots }) {
|
|
35057
35081
|
return {
|
|
35058
|
-
slots
|
|
35059
|
-
onCleanSelected
|
|
35082
|
+
slots
|
|
35060
35083
|
};
|
|
35061
35084
|
}
|
|
35062
35085
|
});
|
|
@@ -35287,7 +35310,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35287
35310
|
attrs,
|
|
35288
35311
|
emit
|
|
35289
35312
|
}) {
|
|
35290
|
-
var _a;
|
|
35313
|
+
var _a, _b;
|
|
35291
35314
|
const tableRef = ref();
|
|
35292
35315
|
const {
|
|
35293
35316
|
table,
|
|
@@ -35300,8 +35323,8 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35300
35323
|
} = useProvideHover({
|
|
35301
35324
|
rowHoverDelay: computed(() => props.rowHoverDelay),
|
|
35302
35325
|
rowHover: computed(() => {
|
|
35303
|
-
var _a2,
|
|
35304
|
-
return (
|
|
35326
|
+
var _a2, _b2;
|
|
35327
|
+
return (_b2 = props.rowHover) != null ? _b2 : (_a2 = table == null ? void 0 : table.value) == null ? void 0 : _a2.rowHover;
|
|
35305
35328
|
})
|
|
35306
35329
|
});
|
|
35307
35330
|
const mergedPrefixCls = computed(() => {
|
|
@@ -35309,7 +35332,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35309
35332
|
return (_a2 = props.prefixCls) != null ? _a2 : prefixCls;
|
|
35310
35333
|
});
|
|
35311
35334
|
const mergeOptions = computed(() => {
|
|
35312
|
-
var _a2,
|
|
35335
|
+
var _a2, _b2;
|
|
35313
35336
|
if (props.options === false) {
|
|
35314
35337
|
return false;
|
|
35315
35338
|
}
|
|
@@ -35317,7 +35340,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35317
35340
|
return (_a2 = table == null ? void 0 : table.value) == null ? void 0 : _a2.options;
|
|
35318
35341
|
}
|
|
35319
35342
|
return {
|
|
35320
|
-
...(
|
|
35343
|
+
...(_b2 = table == null ? void 0 : table.value) == null ? void 0 : _b2.options,
|
|
35321
35344
|
...props.options
|
|
35322
35345
|
};
|
|
35323
35346
|
});
|
|
@@ -35371,12 +35394,12 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35371
35394
|
}
|
|
35372
35395
|
});
|
|
35373
35396
|
const onFormSearchSubmit = (values) => {
|
|
35374
|
-
var _a2,
|
|
35397
|
+
var _a2, _b2;
|
|
35375
35398
|
if (mergeOptions.value && mergeOptions.value.search) {
|
|
35376
35399
|
const {
|
|
35377
35400
|
name = "keyword"
|
|
35378
35401
|
} = mergeOptions.value.search === true ? {} : mergeOptions.value.search;
|
|
35379
|
-
const success = (
|
|
35402
|
+
const success = (_b2 = (_a2 = mergeOptions.value.search) == null ? void 0 : _a2.onSearch) == null ? void 0 : _b2.call(_a2, actions.keyword.value);
|
|
35380
35403
|
if (success !== false) {
|
|
35381
35404
|
actions.setFormSearch({
|
|
35382
35405
|
...values,
|
|
@@ -35457,11 +35480,11 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35457
35480
|
(_a2 = props["onUpdate:columns"]) == null ? void 0 : _a2.call(props, rawColumns, action);
|
|
35458
35481
|
};
|
|
35459
35482
|
const formItems = computed(() => {
|
|
35460
|
-
var _a2,
|
|
35483
|
+
var _a2, _b2, _c;
|
|
35461
35484
|
if (props.search === false) {
|
|
35462
35485
|
return [];
|
|
35463
35486
|
}
|
|
35464
|
-
if ((
|
|
35487
|
+
if ((_b2 = (_a2 = props.search) == null ? void 0 : _a2.items) == null ? void 0 : _b2.length) {
|
|
35465
35488
|
return (_c = props.search) == null ? void 0 : _c.items;
|
|
35466
35489
|
}
|
|
35467
35490
|
return flatColumnsHandle(props.columns).filter((item) => {
|
|
@@ -35516,13 +35539,30 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35516
35539
|
return (_a3 = preserveRecordsRef.value) == null ? void 0 : _a3.get(key);
|
|
35517
35540
|
});
|
|
35518
35541
|
});
|
|
35519
|
-
const onCleanSelected = () => {
|
|
35520
|
-
var _a2;
|
|
35542
|
+
const onCleanSelected = (keys) => {
|
|
35543
|
+
var _a2, _b2, _c, _d, _e;
|
|
35544
|
+
let newSelectedRowKeys = [];
|
|
35545
|
+
if (keys == null ? void 0 : keys.length) {
|
|
35546
|
+
newSelectedRowKeys = (_b2 = (_a2 = selectedRowKeys.value) == null ? void 0 : _a2.filter((key) => !keys.includes(key))) != null ? _b2 : [];
|
|
35547
|
+
}
|
|
35521
35548
|
if (props.rowSelection && props.rowSelection.onChange) {
|
|
35522
|
-
props.rowSelection.onChange(
|
|
35549
|
+
props.rowSelection.onChange(newSelectedRowKeys, (_c = selectedRows.value) != null ? _c : []);
|
|
35550
|
+
}
|
|
35551
|
+
(_e = props["onUpdate:selectedRowKeys"]) == null ? void 0 : _e.call(props, newSelectedRowKeys, (_d = selectedRows.value) != null ? _d : []);
|
|
35552
|
+
setSelectedRowKeys(newSelectedRowKeys);
|
|
35553
|
+
};
|
|
35554
|
+
const setRowSelected = (keys, rows) => {
|
|
35555
|
+
var _a2;
|
|
35556
|
+
if (keys == null ? void 0 : keys.length) {
|
|
35557
|
+
if (rows == null ? void 0 : rows.length) {
|
|
35558
|
+
rows.forEach((data) => {
|
|
35559
|
+
const dataRowKey = getRowKey.value(data, -1);
|
|
35560
|
+
preserveRecordsRef.value.set(dataRowKey, data);
|
|
35561
|
+
});
|
|
35562
|
+
}
|
|
35563
|
+
const newKeys = Array.from(/* @__PURE__ */ new Set([...(_a2 = selectedRowKeys.value) != null ? _a2 : [], ...keys]));
|
|
35564
|
+
setSelectedRowKeys(newKeys);
|
|
35523
35565
|
}
|
|
35524
|
-
(_a2 = props["onUpdate:selectedRowKeys"]) == null ? void 0 : _a2.call(props, [], []);
|
|
35525
|
-
setSelectedRowKeys([]);
|
|
35526
35566
|
};
|
|
35527
35567
|
const hideToolbar = computed(() => mergeOptions.value === false && !props.title && !slots.title && !slots.toolbar && !slots.searchExtra && !slots.toolbarActions);
|
|
35528
35568
|
const notNeedCardDom = computed(() => {
|
|
@@ -35546,6 +35586,20 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35546
35586
|
}
|
|
35547
35587
|
return {};
|
|
35548
35588
|
});
|
|
35589
|
+
const [mergeShowAlert, setMergeShowAlert] = useMergedState(!!((_b = selectedRowKeys.value) == null ? void 0 : _b.length), {
|
|
35590
|
+
value: computed(() => props.showAlert),
|
|
35591
|
+
onChange(val) {
|
|
35592
|
+
var _a2;
|
|
35593
|
+
(_a2 = props["onUpdate:showAlert"]) == null ? void 0 : _a2.call(props, val);
|
|
35594
|
+
}
|
|
35595
|
+
});
|
|
35596
|
+
watch(selectedRowKeys, (selectedKeys) => {
|
|
35597
|
+
if (selectedKeys == null ? void 0 : selectedKeys.length) {
|
|
35598
|
+
setMergeShowAlert(true);
|
|
35599
|
+
} else {
|
|
35600
|
+
setMergeShowAlert(false);
|
|
35601
|
+
}
|
|
35602
|
+
});
|
|
35549
35603
|
expose({
|
|
35550
35604
|
scrollTo: (pos, behavior) => {
|
|
35551
35605
|
var _a2;
|
|
@@ -35579,6 +35633,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35579
35633
|
dataSource.value = [];
|
|
35580
35634
|
},
|
|
35581
35635
|
cleanSelected: onCleanSelected,
|
|
35636
|
+
setSelected: setRowSelected,
|
|
35582
35637
|
appendCellToSelectedRange: (params) => {
|
|
35583
35638
|
var _a2;
|
|
35584
35639
|
return (_a2 = tableRef.value) == null ? void 0 : _a2.appendCellToSelectedRange(params);
|
|
@@ -35595,7 +35650,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35595
35650
|
reset
|
|
35596
35651
|
});
|
|
35597
35652
|
return () => {
|
|
35598
|
-
var _a2,
|
|
35653
|
+
var _a2, _b2, _c, _d, _e;
|
|
35599
35654
|
const {
|
|
35600
35655
|
expandIcon = slots.expandIcon,
|
|
35601
35656
|
expandedRowRender = slots.expandedRowRender
|
|
@@ -35636,8 +35691,10 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35636
35691
|
toolbar: slots.toolbar,
|
|
35637
35692
|
title: slots.title,
|
|
35638
35693
|
searchExtra: slots.searchExtra,
|
|
35639
|
-
actions: slots.toolbarActions
|
|
35640
|
-
|
|
35694
|
+
actions: slots.toolbarActions,
|
|
35695
|
+
bottom: slots.toolbarBottom,
|
|
35696
|
+
top: slots.toolbarTop
|
|
35697
|
+
}), !!props.rowSelection && ((_b2 = props.rowSelection) == null ? void 0 : _b2.type) !== "radio" && props.alwaysShowAlert !== false && mergeShowAlert.value && createVNode(Alert, {
|
|
35641
35698
|
"prefixCls": mergedPrefixCls.value,
|
|
35642
35699
|
"selectedRowKeys": selectedRowKeys.value,
|
|
35643
35700
|
"selectedRows": selectedRows.value,
|
|
@@ -35686,7 +35743,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35686
35743
|
}
|
|
35687
35744
|
}, {
|
|
35688
35745
|
default: () => {
|
|
35689
|
-
var _a3,
|
|
35746
|
+
var _a3, _b3, _c2, _d2;
|
|
35690
35747
|
return [createVNode("div", mergeProps({
|
|
35691
35748
|
"ref": counter.rootDomRef
|
|
35692
35749
|
}, attrs, {
|
|
@@ -35695,7 +35752,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35695
35752
|
}), [props.search !== false && !!((_a3 = formItems.value) == null ? void 0 : _a3.length) && createVNode(FormRender, {
|
|
35696
35753
|
"prefixCls": mergedPrefixCls.value,
|
|
35697
35754
|
"items": formItems.value,
|
|
35698
|
-
"cardBordered": (_d2 = (_c2 = props.cardBordered) != null ? _c2 : (
|
|
35755
|
+
"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
35756
|
"search": props.search,
|
|
35700
35757
|
"tableShowCard": props.cardProps !== false,
|
|
35701
35758
|
"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
|
}>, {
|