pro-design-vue 1.2.3 → 1.2.5
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.full.js +35 -20
- package/dist/index.full.min.js +7 -7
- 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 +35 -20
- package/es/components/config-provider/src/typing.d.ts +4 -2
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/src/components/InteralTable.vue.d.ts +3 -3
- package/es/components/table/src/components/Table.d.ts +3 -3
- package/es/index.d.ts +29 -27
- package/es/packages/components/config-provider/src/config-provider-container.vue2.mjs +1 -0
- package/es/packages/components/config-provider/src/config-provider-container.vue2.mjs.map +1 -1
- package/es/packages/components/config-provider/src/config-provider.vue2.mjs +7 -5
- package/es/packages/components/config-provider/src/config-provider.vue2.mjs.map +1 -1
- package/es/packages/components/table/index.mjs.map +1 -1
- package/es/packages/components/table/src/components/Form/Form.mjs +0 -1
- package/es/packages/components/table/src/components/Form/Form.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs +25 -12
- package/es/packages/components/table/src/components/Table.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/config-provider/src/typing.d.ts +4 -2
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/src/components/InteralTable.vue.d.ts +3 -3
- package/lib/components/table/src/components/Table.d.ts +3 -3
- package/lib/index.d.ts +29 -27
- package/lib/packages/components/config-provider/src/config-provider-container.vue2.js +1 -0
- package/lib/packages/components/config-provider/src/config-provider-container.vue2.js.map +1 -1
- package/lib/packages/components/config-provider/src/config-provider.vue2.js +7 -5
- package/lib/packages/components/config-provider/src/config-provider.vue2.js.map +1 -1
- package/lib/packages/components/table/index.js.map +1 -1
- package/lib/packages/components/table/src/components/Form/Form.js +0 -1
- package/lib/packages/components/table/src/components/Form/Form.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js +25 -12
- package/lib/packages/components/table/src/components/Table.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/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.5 */
|
|
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.5";
|
|
34
34
|
|
|
35
35
|
const makeInstaller = (components = []) => {
|
|
36
36
|
const install = (app) => {
|
|
@@ -8382,6 +8382,7 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
8382
8382
|
form: computed(() => props.form),
|
|
8383
8383
|
modal: computed(() => props.modal),
|
|
8384
8384
|
drawer: computed(() => props.drawer),
|
|
8385
|
+
prefixCls: computed(() => props.prefixCls),
|
|
8385
8386
|
componentSize: computed(() => props.componentSize),
|
|
8386
8387
|
proPrefixCls: computed(() => props.proPrefixCls),
|
|
8387
8388
|
intl: computed(() => props.intl),
|
|
@@ -8420,7 +8421,7 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8420
8421
|
iconPrefixCls: { type: String, required: false },
|
|
8421
8422
|
getTargetContainer: { type: Function, required: false },
|
|
8422
8423
|
getPopupContainer: { type: Function, required: false },
|
|
8423
|
-
prefixCls: { type: String, required: false },
|
|
8424
|
+
prefixCls: { type: String, required: false, default: "ant" },
|
|
8424
8425
|
getPrefixCls: { type: Function, required: false },
|
|
8425
8426
|
renderEmpty: { type: null, required: false },
|
|
8426
8427
|
transformCellText: { type: Function, required: false },
|
|
@@ -8441,7 +8442,7 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8441
8442
|
wave: { type: Object, required: false }
|
|
8442
8443
|
},
|
|
8443
8444
|
setup(__props) {
|
|
8444
|
-
const rest = createPropsRestProxy(__props, ["intl", "proPrefixCls", "dark", "compact", "token", "locale", "theme", "table", "drawer", "modal", "form", "app", "componentSize"]);
|
|
8445
|
+
const rest = createPropsRestProxy(__props, ["intl", "proPrefixCls", "dark", "compact", "token", "locale", "theme", "table", "drawer", "modal", "form", "app", "prefixCls", "componentSize"]);
|
|
8445
8446
|
if (__props.locale.locale === DEFAULT_LOCALE.toLocaleLowerCase()) {
|
|
8446
8447
|
Promise.resolve().then(function () { return zhCn$1; }).then((value) => {
|
|
8447
8448
|
dayjs.locale(value);
|
|
@@ -8482,12 +8483,13 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8482
8483
|
}
|
|
8483
8484
|
);
|
|
8484
8485
|
ConfigProvider.config({
|
|
8485
|
-
prefixCls:
|
|
8486
|
+
prefixCls: __props.prefixCls
|
|
8486
8487
|
});
|
|
8487
8488
|
return (_ctx, _cache) => {
|
|
8488
8489
|
var _a;
|
|
8489
8490
|
return openBlock(), createBlock(unref(ConfigProvider), mergeProps(rest, {
|
|
8490
8491
|
locale: _ctx.locale,
|
|
8492
|
+
prefixCls: _ctx.prefixCls,
|
|
8491
8493
|
theme: mergerTheme.value,
|
|
8492
8494
|
componentSize: _ctx.componentSize,
|
|
8493
8495
|
form: unref(omit)((_a = _ctx.form) != null ? _a : {}, ["resetOnSubmit", "labelWidth", "resetText", "searchText", "labelWidth"])
|
|
@@ -8508,6 +8510,7 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8508
8510
|
locale: _ctx.locale,
|
|
8509
8511
|
drawer: _ctx.drawer,
|
|
8510
8512
|
modal: _ctx.modal,
|
|
8513
|
+
prefixCls: _ctx.prefixCls,
|
|
8511
8514
|
componentSize: _ctx.componentSize
|
|
8512
8515
|
}, {
|
|
8513
8516
|
default: withCtx(() => [
|
|
@@ -8515,7 +8518,7 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8515
8518
|
]),
|
|
8516
8519
|
_: 3
|
|
8517
8520
|
/* FORWARDED */
|
|
8518
|
-
}, 8, ["contentOffsetTop", "intl", "dark", "proPrefixCls", "table", "form", "locale", "drawer", "modal", "componentSize"])
|
|
8521
|
+
}, 8, ["contentOffsetTop", "intl", "dark", "proPrefixCls", "table", "form", "locale", "drawer", "modal", "prefixCls", "componentSize"])
|
|
8519
8522
|
]),
|
|
8520
8523
|
_: 3
|
|
8521
8524
|
/* FORWARDED */
|
|
@@ -8526,7 +8529,7 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
8526
8529
|
]),
|
|
8527
8530
|
_: 3
|
|
8528
8531
|
/* FORWARDED */
|
|
8529
|
-
}, 16, ["locale", "theme", "componentSize", "form"]);
|
|
8532
|
+
}, 16, ["locale", "prefixCls", "theme", "componentSize", "form"]);
|
|
8530
8533
|
};
|
|
8531
8534
|
}
|
|
8532
8535
|
});
|
|
@@ -35157,7 +35160,6 @@ var FormRender = /* @__PURE__ */ defineComponent({
|
|
|
35157
35160
|
});
|
|
35158
35161
|
(_e = (_d = cardProps.value) == null ? void 0 : _d.onTabChange) == null ? void 0 : _e.call(_d, key);
|
|
35159
35162
|
};
|
|
35160
|
-
console.log("\u{1F680} ~ return ~ cardProps.value:", cardProps.value);
|
|
35161
35163
|
return () => {
|
|
35162
35164
|
var _a2, _b2, _c2, _d;
|
|
35163
35165
|
const searchDom = createVNode(ProQueryFilter, mergeProps({
|
|
@@ -35221,7 +35223,8 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35221
35223
|
var _a;
|
|
35222
35224
|
const tableRef = ref();
|
|
35223
35225
|
const {
|
|
35224
|
-
table
|
|
35226
|
+
table,
|
|
35227
|
+
prefixCls: antPrefixCls
|
|
35225
35228
|
} = useProConfigInject();
|
|
35226
35229
|
const prefixCls = usePrefixCls("table");
|
|
35227
35230
|
const {
|
|
@@ -35237,6 +35240,19 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35237
35240
|
var _a2;
|
|
35238
35241
|
return (_a2 = props.prefixCls) != null ? _a2 : prefixCls;
|
|
35239
35242
|
});
|
|
35243
|
+
const mergeOptions = computed(() => {
|
|
35244
|
+
var _a2, _b;
|
|
35245
|
+
if (props.options === false) {
|
|
35246
|
+
return false;
|
|
35247
|
+
}
|
|
35248
|
+
if (props.options === void 0) {
|
|
35249
|
+
return (_a2 = table == null ? void 0 : table.value) == null ? void 0 : _a2.options;
|
|
35250
|
+
}
|
|
35251
|
+
return {
|
|
35252
|
+
...(_b = table == null ? void 0 : table.value) == null ? void 0 : _b.options,
|
|
35253
|
+
...props.options
|
|
35254
|
+
};
|
|
35255
|
+
});
|
|
35240
35256
|
useProvideLevel();
|
|
35241
35257
|
watch(hoverRowKey, (newValue, oldValue) => {
|
|
35242
35258
|
if (counter.rootDomRef.value) {
|
|
@@ -35288,11 +35304,11 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35288
35304
|
});
|
|
35289
35305
|
const onFormSearchSubmit = (values) => {
|
|
35290
35306
|
var _a2, _b;
|
|
35291
|
-
if (
|
|
35307
|
+
if (mergeOptions.value && mergeOptions.value.search) {
|
|
35292
35308
|
const {
|
|
35293
35309
|
name = "keyword"
|
|
35294
|
-
} =
|
|
35295
|
-
const success = (_b = (_a2 =
|
|
35310
|
+
} = mergeOptions.value.search === true ? {} : mergeOptions.value.search;
|
|
35311
|
+
const success = (_b = (_a2 = mergeOptions.value.search) == null ? void 0 : _a2.onSearch) == null ? void 0 : _b.call(_a2, actions.keyword.value);
|
|
35296
35312
|
if (success !== false) {
|
|
35297
35313
|
actions.setFormSearch({
|
|
35298
35314
|
...values,
|
|
@@ -35439,7 +35455,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35439
35455
|
(_a2 = props["onUpdate:selectedRowKeys"]) == null ? void 0 : _a2.call(props, [], []);
|
|
35440
35456
|
setSelectedRowKeys([]);
|
|
35441
35457
|
};
|
|
35442
|
-
const hideToolbar = computed(() =>
|
|
35458
|
+
const hideToolbar = computed(() => mergeOptions.value === false && !props.title && !slots.title && !slots.toolbar && !slots.searchExtra && !slots.toolbarActions);
|
|
35443
35459
|
const notNeedCardDom = computed(() => {
|
|
35444
35460
|
var _a2;
|
|
35445
35461
|
if ((props.search === false || !((_a2 = formItems.value) == null ? void 0 : _a2.length)) && props.toolBar === false) {
|
|
@@ -35509,7 +35525,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35509
35525
|
reset
|
|
35510
35526
|
});
|
|
35511
35527
|
return () => {
|
|
35512
|
-
var _a2, _b;
|
|
35528
|
+
var _a2, _b, _c, _d;
|
|
35513
35529
|
const {
|
|
35514
35530
|
expandIcon = slots.expandIcon,
|
|
35515
35531
|
expandedRowRender = slots.expandedRowRender
|
|
@@ -35520,12 +35536,11 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35520
35536
|
"subTitle": props.subTitle,
|
|
35521
35537
|
"tooltip": props.tooltip,
|
|
35522
35538
|
"prefixCls": mergedPrefixCls.value,
|
|
35523
|
-
"options":
|
|
35539
|
+
"options": mergeOptions.value,
|
|
35524
35540
|
"actionsRef": {
|
|
35525
35541
|
...actions,
|
|
35526
35542
|
fullScreen: () => {
|
|
35527
35543
|
var _a3;
|
|
35528
|
-
console.log(document.fullscreenElement);
|
|
35529
35544
|
if (!counter.rootDomRef.value || !document.fullscreenEnabled) {
|
|
35530
35545
|
return;
|
|
35531
35546
|
}
|
|
@@ -35536,7 +35551,6 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35536
35551
|
(_a3 = counter.rootDomRef.value) == null ? void 0 : _a3.requestFullscreen();
|
|
35537
35552
|
counter.hasFullScreen.value = true;
|
|
35538
35553
|
}
|
|
35539
|
-
console.log(counter.hasFullScreen.value);
|
|
35540
35554
|
}
|
|
35541
35555
|
},
|
|
35542
35556
|
"tableColumn": tableColumn.value,
|
|
@@ -35585,19 +35599,20 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35585
35599
|
return tableDom;
|
|
35586
35600
|
})();
|
|
35587
35601
|
tableDom = createVNode(Card, mergeProps({
|
|
35588
|
-
"bordered": isBordered("table", props.cardBordered),
|
|
35602
|
+
"bordered": isBordered("table", (_d = props.cardBordered) != null ? _d : (_c = table == null ? void 0 : table.value) == null ? void 0 : _c.cardBordered),
|
|
35589
35603
|
"bodyStyle": cardBodyStyle.value
|
|
35590
35604
|
}, props.cardProps), _isSlot$2(tableDom) ? tableDom : {
|
|
35591
35605
|
default: () => [_tableDom]
|
|
35592
35606
|
});
|
|
35593
35607
|
}
|
|
35594
35608
|
return createVNode(ConfigProvider, {
|
|
35609
|
+
"prefixCls": antPrefixCls == null ? void 0 : antPrefixCls.value,
|
|
35595
35610
|
"getPopupContainer": () => {
|
|
35596
35611
|
return counter.rootDomRef.value || document.body;
|
|
35597
35612
|
}
|
|
35598
35613
|
}, {
|
|
35599
35614
|
default: () => {
|
|
35600
|
-
var _a3;
|
|
35615
|
+
var _a3, _b2, _c2;
|
|
35601
35616
|
return [createVNode("div", mergeProps({
|
|
35602
35617
|
"ref": counter.rootDomRef
|
|
35603
35618
|
}, attrs, {
|
|
@@ -35606,7 +35621,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35606
35621
|
}), [props.search !== false && !!((_a3 = formItems.value) == null ? void 0 : _a3.length) && createVNode(FormRender, {
|
|
35607
35622
|
"prefixCls": mergedPrefixCls.value,
|
|
35608
35623
|
"items": formItems.value,
|
|
35609
|
-
"cardBordered": props.cardBordered,
|
|
35624
|
+
"cardBordered": (_c2 = props.cardBordered) != null ? _c2 : (_b2 = table == null ? void 0 : table.value) == null ? void 0 : _b2.cardBordered,
|
|
35610
35625
|
"search": props.search,
|
|
35611
35626
|
"tableShowCard": props.cardProps !== false,
|
|
35612
35627
|
"loading": formSubmitLoading.value,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AliasToken } from 'ant-design-vue/es/theme/interface';
|
|
2
2
|
import type { ConfigProviderProps, NotificationPlacement } from 'ant-design-vue';
|
|
3
3
|
import type { IntlType } from './intl';
|
|
4
|
-
import type { ProTablePaginationConfig } from 'pro-design-vue/es/components/table';
|
|
5
4
|
import type { ValidateMessages } from 'ant-design-vue/es/form/interface';
|
|
5
|
+
import type { Bordered, OptionConfig, TablePaginationConfig } from 'pro-design-vue/es/components/table/src/components/interface';
|
|
6
6
|
interface ProConfigProviderProps extends Omit<ConfigProviderProps, 'form'> {
|
|
7
7
|
intl?: IntlType;
|
|
8
8
|
proPrefixCls?: string;
|
|
@@ -13,6 +13,7 @@ interface ProConfigProviderProps extends Omit<ConfigProviderProps, 'form'> {
|
|
|
13
13
|
table?: {
|
|
14
14
|
animateRows?: boolean;
|
|
15
15
|
bordered?: boolean;
|
|
16
|
+
cardBordered?: Bordered;
|
|
16
17
|
childrenColumnName?: string;
|
|
17
18
|
expandRowByClick?: boolean;
|
|
18
19
|
rowKey?: string;
|
|
@@ -20,7 +21,8 @@ interface ProConfigProviderProps extends Omit<ConfigProviderProps, 'form'> {
|
|
|
20
21
|
summaryFixed?: boolean;
|
|
21
22
|
columnEmptyText?: string;
|
|
22
23
|
highlightSelectRow?: boolean;
|
|
23
|
-
|
|
24
|
+
options?: OptionConfig | false;
|
|
25
|
+
pagination?: TablePaginationConfig;
|
|
24
26
|
};
|
|
25
27
|
form?: {
|
|
26
28
|
validateMessages?: ValidateMessages;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SFCWithInstall } from 'pro-design-vue/es/utils';
|
|
2
2
|
import { setConfig } from './src/components/config';
|
|
3
|
-
import type { ValueEnumType, CellRenderArgs, ColumnGroupType, ColumnsType, ColumnType, ContextmenuPopupArg, Position, Request, ColumnStateType, ProTableProps, TableExposeType, TablePaginationConfig, TableRowSelection, Key, DensitySize } from './src/components/interface';
|
|
3
|
+
import type { ValueEnumType, CellRenderArgs, ColumnGroupType, ColumnsType, ColumnType, ContextmenuPopupArg, Position, Request, ColumnStateType, ProTableProps, TableExposeType, TablePaginationConfig, TableRowSelection, Key, OptionConfig, DensitySize } from './src/components/interface';
|
|
4
4
|
import { SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE } from './src/hooks/useRowSelection';
|
|
5
5
|
import { setLicenseKey } from './src/license/licenseInfo';
|
|
6
6
|
import Table from './src/components/Table';
|
|
@@ -10,7 +10,7 @@ import SummaryCell from './src/components/Summary/Cell.vue';
|
|
|
10
10
|
import SummaryRow from './src/components/Summary/Row.vue';
|
|
11
11
|
import Summary from './src/components/Summary/Summary.vue';
|
|
12
12
|
export type { RowHeight } from './src/components/interface';
|
|
13
|
-
export type { ProTableProps, TablePaginationConfig as ProTablePaginationConfig, ColumnGroupType as ProTableColumnGroupType, ColumnType as ProTableColumnType, ColumnType as ProTableColumnProps, ColumnsType as ProTableColumnsType, Position as ScrollPosition, Request as ProTableRequest, ValueEnumType as ProTableValueEnumType, CellRenderArgs, ContextmenuPopupArg, TableRowSelection as ProTableRowSelection, TableExposeType as ProTableExposeType, ColumnStateType as ProColumnStateType, Key as ProTableKey, DensitySize as ProTableDensitySize, };
|
|
13
|
+
export type { ProTableProps, TablePaginationConfig as ProTablePaginationConfig, ColumnGroupType as ProTableColumnGroupType, ColumnType as ProTableColumnType, ColumnType as ProTableColumnProps, ColumnsType as ProTableColumnsType, Position as ScrollPosition, Request as ProTableRequest, ValueEnumType as ProTableValueEnumType, CellRenderArgs, ContextmenuPopupArg, TableRowSelection as ProTableRowSelection, TableExposeType as ProTableExposeType, ColumnStateType as ProColumnStateType, Key as ProTableKey, DensitySize as ProTableDensitySize, OptionConfig as ProTableOptionConfig, };
|
|
14
14
|
export { Column as ProTableColumn, ColumnGroup as ProTableColumnGroup, Summary as ProTableSummary, SummaryRow as ProTableSummaryRow, SummaryCell as ProTableSummaryCell, SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE, setLicenseKey, setConfig, };
|
|
15
15
|
export declare const ProTable: SFCWithInstall<typeof Table> & {
|
|
16
16
|
Column: typeof Column;
|
|
@@ -387,7 +387,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
387
387
|
default: undefined;
|
|
388
388
|
};
|
|
389
389
|
options: {
|
|
390
|
-
type: import("vue").PropType<import("
|
|
390
|
+
type: import("vue").PropType<import("pro-design-vue").ProTableOptionConfig | false>;
|
|
391
391
|
default: undefined;
|
|
392
392
|
};
|
|
393
393
|
alwaysShowAlert: {
|
|
@@ -901,7 +901,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
901
901
|
default: undefined;
|
|
902
902
|
};
|
|
903
903
|
options: {
|
|
904
|
-
type: import("vue").PropType<import("
|
|
904
|
+
type: import("vue").PropType<import("pro-design-vue").ProTableOptionConfig | false>;
|
|
905
905
|
default: undefined;
|
|
906
906
|
};
|
|
907
907
|
alwaysShowAlert: {
|
|
@@ -1120,7 +1120,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1120
1120
|
onCloseEditor: (opt: import("pro-design-vue").CellRenderArgs) => void;
|
|
1121
1121
|
columnEmptyText: string | false;
|
|
1122
1122
|
toolBar: boolean;
|
|
1123
|
-
options: false | import("
|
|
1123
|
+
options: false | import("pro-design-vue").ProTableOptionConfig;
|
|
1124
1124
|
alwaysShowAlert: boolean;
|
|
1125
1125
|
manual: boolean;
|
|
1126
1126
|
manualRequest: boolean;
|
|
@@ -430,7 +430,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
430
430
|
default: undefined;
|
|
431
431
|
};
|
|
432
432
|
options: {
|
|
433
|
-
type: import("vue").PropType<import("
|
|
433
|
+
type: import("vue").PropType<import("pro-design-vue").ProTableOptionConfig | false>;
|
|
434
434
|
default: undefined;
|
|
435
435
|
};
|
|
436
436
|
alwaysShowAlert: {
|
|
@@ -913,7 +913,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
913
913
|
default: undefined;
|
|
914
914
|
};
|
|
915
915
|
options: {
|
|
916
|
-
type: import("vue").PropType<import("
|
|
916
|
+
type: import("vue").PropType<import("pro-design-vue").ProTableOptionConfig | false>;
|
|
917
917
|
default: undefined;
|
|
918
918
|
};
|
|
919
919
|
alwaysShowAlert: {
|
|
@@ -1166,7 +1166,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1166
1166
|
onCloseEditor: (opt: import("pro-design-vue").CellRenderArgs) => void;
|
|
1167
1167
|
columnEmptyText: string | false;
|
|
1168
1168
|
toolBar: boolean;
|
|
1169
|
-
options: false | import("
|
|
1169
|
+
options: false | import("pro-design-vue").ProTableOptionConfig;
|
|
1170
1170
|
alwaysShowAlert: boolean;
|
|
1171
1171
|
manual: boolean;
|
|
1172
1172
|
manualRequest: boolean;
|
package/es/index.d.ts
CHANGED
|
@@ -483,8 +483,8 @@ import { ShapeOutsideProperty } from "csstype";
|
|
|
483
483
|
import { ShapeRenderingProperty } from "csstype";
|
|
484
484
|
import type { SlotsType } from "vue";
|
|
485
485
|
import type { SpaceProps } from "ant-design-vue";
|
|
486
|
-
import { SpinProps } from "ant-design-vue";
|
|
487
|
-
import
|
|
486
|
+
import type { SpinProps } from "ant-design-vue/es/spin";
|
|
487
|
+
import { SpinProps as SpinProps_2 } from "ant-design-vue";
|
|
488
488
|
import { SpinSize } from "ant-design-vue/es/spin/Spin";
|
|
489
489
|
import { Status } from "ant-design-vue/es/vc-steps/interface";
|
|
490
490
|
import { StepProps } from "ant-design-vue";
|
|
@@ -526,8 +526,8 @@ import { TextUnderlineOffsetProperty } from "csstype";
|
|
|
526
526
|
import { TextUnderlinePositionProperty } from "csstype";
|
|
527
527
|
import { TooltipPlacement } from "ant-design-vue/es/tooltip";
|
|
528
528
|
import { TooltipPlacement as TooltipPlacement_2 } from "ant-design-vue/es/tooltip/abstractTooltipProps";
|
|
529
|
-
import { TooltipProps } from "ant-design-vue";
|
|
530
|
-
import
|
|
529
|
+
import type { TooltipProps } from "ant-design-vue/es/tooltip";
|
|
530
|
+
import { TooltipProps as TooltipProps_2 } from "ant-design-vue";
|
|
531
531
|
import { TopProperty } from "csstype";
|
|
532
532
|
import { TouchActionProperty } from "csstype";
|
|
533
533
|
import { TransformBoxProperty } from "csstype";
|
|
@@ -1091,7 +1091,7 @@ declare interface ColumnType<RecordType = DefaultRecordType> extends ColumnShare
|
|
|
1091
1091
|
sortOrder?: SortOrder;
|
|
1092
1092
|
defaultSortOrder?: SortOrder;
|
|
1093
1093
|
sortDirections?: SortOrder[];
|
|
1094
|
-
showSorterTooltip?: boolean |
|
|
1094
|
+
showSorterTooltip?: boolean | TooltipProps;
|
|
1095
1095
|
filtered?: boolean;
|
|
1096
1096
|
filters?: ColumnFilterItem[];
|
|
1097
1097
|
filterIcon?: ({ filtered }: {
|
|
@@ -2107,7 +2107,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
|
|
|
2107
2107
|
default: undefined;
|
|
2108
2108
|
};
|
|
2109
2109
|
options: {
|
|
2110
|
-
type: PropType<
|
|
2110
|
+
type: PropType<ProTableOptionConfig | false>;
|
|
2111
2111
|
default: undefined;
|
|
2112
2112
|
};
|
|
2113
2113
|
alwaysShowAlert: {
|
|
@@ -2126,7 +2126,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
|
|
|
2126
2126
|
default: undefined;
|
|
2127
2127
|
};
|
|
2128
2128
|
onLoadingChange: {
|
|
2129
|
-
type: PropType<(loading: boolean |
|
|
2129
|
+
type: PropType<(loading: boolean | SpinProps_2 | undefined) => void>;
|
|
2130
2130
|
default: undefined;
|
|
2131
2131
|
};
|
|
2132
2132
|
onRequestError: {
|
|
@@ -2590,7 +2590,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
|
|
|
2590
2590
|
default: undefined;
|
|
2591
2591
|
};
|
|
2592
2592
|
options: {
|
|
2593
|
-
type: PropType<
|
|
2593
|
+
type: PropType<ProTableOptionConfig | false>;
|
|
2594
2594
|
default: undefined;
|
|
2595
2595
|
};
|
|
2596
2596
|
alwaysShowAlert: {
|
|
@@ -2609,7 +2609,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
|
|
|
2609
2609
|
default: undefined;
|
|
2610
2610
|
};
|
|
2611
2611
|
onLoadingChange: {
|
|
2612
|
-
type: PropType<(loading: boolean |
|
|
2612
|
+
type: PropType<(loading: boolean | SpinProps_2 | undefined) => void>;
|
|
2613
2613
|
default: undefined;
|
|
2614
2614
|
};
|
|
2615
2615
|
onRequestError: {
|
|
@@ -2673,7 +2673,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
|
|
|
2673
2673
|
locale: TableLocale;
|
|
2674
2674
|
virtual: boolean;
|
|
2675
2675
|
pagination: false | ProTablePaginationConfig;
|
|
2676
|
-
onLoadingChange: (loading: boolean |
|
|
2676
|
+
onLoadingChange: (loading: boolean | SpinProps_2 | undefined) => void;
|
|
2677
2677
|
bordered: boolean;
|
|
2678
2678
|
cardProps: false | Partial<ExtractPropTypes<{
|
|
2679
2679
|
prefixCls: StringConstructor;
|
|
@@ -2843,7 +2843,7 @@ declare const _default_17: DefineComponent<ExtractPropTypes<{
|
|
|
2843
2843
|
onCloseEditor: (opt: CellRenderArgs) => void;
|
|
2844
2844
|
columnEmptyText: string | false;
|
|
2845
2845
|
toolBar: boolean;
|
|
2846
|
-
options: false |
|
|
2846
|
+
options: false | ProTableOptionConfig;
|
|
2847
2847
|
alwaysShowAlert: boolean;
|
|
2848
2848
|
manual: boolean;
|
|
2849
2849
|
manualRequest: boolean;
|
|
@@ -5480,7 +5480,7 @@ declare class Helper<T extends DefaultRecordType> {
|
|
|
5480
5480
|
default: undefined;
|
|
5481
5481
|
};
|
|
5482
5482
|
options: {
|
|
5483
|
-
type: PropType<
|
|
5483
|
+
type: PropType<ProTableOptionConfig | false>;
|
|
5484
5484
|
default: undefined;
|
|
5485
5485
|
};
|
|
5486
5486
|
alwaysShowAlert: {
|
|
@@ -5499,7 +5499,7 @@ declare class Helper<T extends DefaultRecordType> {
|
|
|
5499
5499
|
default: undefined;
|
|
5500
5500
|
};
|
|
5501
5501
|
onLoadingChange: {
|
|
5502
|
-
type: PropType<(loading: boolean |
|
|
5502
|
+
type: PropType<(loading: boolean | SpinProps | undefined) => void>;
|
|
5503
5503
|
default: undefined;
|
|
5504
5504
|
};
|
|
5505
5505
|
onRequestError: {
|
|
@@ -5634,16 +5634,6 @@ declare interface Option_2 {
|
|
|
5634
5634
|
isLeaf?: boolean;
|
|
5635
5635
|
}
|
|
5636
5636
|
export { Option_2 as Option };
|
|
5637
|
-
declare type OptionConfig = {
|
|
5638
|
-
density?: boolean;
|
|
5639
|
-
filter?: boolean;
|
|
5640
|
-
fullScreen?: OptionsType;
|
|
5641
|
-
reload?: OptionsType;
|
|
5642
|
-
setting?: boolean | SettingOptionType;
|
|
5643
|
-
search?: (OptionSearchProps & {
|
|
5644
|
-
name?: string;
|
|
5645
|
-
}) | boolean;
|
|
5646
|
-
};
|
|
5647
5637
|
declare type OptionSearchProps = Omit<InputProps, "onSearch"> & {
|
|
5648
5638
|
/** 如果 onSearch 返回一个false,直接拦截请求 */
|
|
5649
5639
|
onSearch?: (keyword: string) => Promise<boolean | undefined> | boolean | undefined;
|
|
@@ -5685,7 +5675,7 @@ declare interface PageProps {
|
|
|
5685
5675
|
*
|
|
5686
5676
|
* @name loading 是否加载
|
|
5687
5677
|
*/
|
|
5688
|
-
loading?: boolean |
|
|
5678
|
+
loading?: boolean | SpinProps_2;
|
|
5689
5679
|
}
|
|
5690
5680
|
declare interface PaginationProps {
|
|
5691
5681
|
total?: number;
|
|
@@ -5763,7 +5753,7 @@ export declare const ProButton: SFCWithInstall<DefineComponent<ExtractPropTypes<
|
|
|
5763
5753
|
default: string;
|
|
5764
5754
|
};
|
|
5765
5755
|
tooltipProps: {
|
|
5766
|
-
type: PropType<
|
|
5756
|
+
type: PropType<TooltipProps_2>;
|
|
5767
5757
|
};
|
|
5768
5758
|
dropdownProps: {
|
|
5769
5759
|
type: PropType<DropdownProps>;
|
|
@@ -5846,7 +5836,7 @@ export declare const ProButton: SFCWithInstall<DefineComponent<ExtractPropTypes<
|
|
|
5846
5836
|
default: string;
|
|
5847
5837
|
};
|
|
5848
5838
|
tooltipProps: {
|
|
5849
|
-
type: PropType<
|
|
5839
|
+
type: PropType<TooltipProps_2>;
|
|
5850
5840
|
};
|
|
5851
5841
|
dropdownProps: {
|
|
5852
5842
|
type: PropType<DropdownProps>;
|
|
@@ -5963,6 +5953,7 @@ export declare interface ProConfigProviderProps extends Omit<ConfigProviderProps
|
|
|
5963
5953
|
table?: {
|
|
5964
5954
|
animateRows?: boolean;
|
|
5965
5955
|
bordered?: boolean;
|
|
5956
|
+
cardBordered?: Bordered;
|
|
5966
5957
|
childrenColumnName?: string;
|
|
5967
5958
|
expandRowByClick?: boolean;
|
|
5968
5959
|
rowKey?: string;
|
|
@@ -5970,6 +5961,7 @@ export declare interface ProConfigProviderProps extends Omit<ConfigProviderProps
|
|
|
5970
5961
|
summaryFixed?: boolean;
|
|
5971
5962
|
columnEmptyText?: string;
|
|
5972
5963
|
highlightSelectRow?: boolean;
|
|
5964
|
+
options?: ProTableOptionConfig | false;
|
|
5973
5965
|
pagination?: ProTablePaginationConfig;
|
|
5974
5966
|
};
|
|
5975
5967
|
form?: {
|
|
@@ -6637,6 +6629,16 @@ export declare interface ProTableExposeType {
|
|
|
6637
6629
|
}
|
|
6638
6630
|
export declare type ProTableInstance = InstanceType<typeof _default_17> & ProTableExposeType;
|
|
6639
6631
|
export declare type ProTableKey = string | number;
|
|
6632
|
+
export declare type ProTableOptionConfig = {
|
|
6633
|
+
density?: boolean;
|
|
6634
|
+
filter?: boolean;
|
|
6635
|
+
fullScreen?: OptionsType;
|
|
6636
|
+
reload?: OptionsType;
|
|
6637
|
+
setting?: boolean | SettingOptionType;
|
|
6638
|
+
search?: (OptionSearchProps & {
|
|
6639
|
+
name?: string;
|
|
6640
|
+
}) | boolean;
|
|
6641
|
+
};
|
|
6640
6642
|
export declare interface ProTablePaginationConfig extends PaginationProps {
|
|
6641
6643
|
position?: TablePaginationPosition[];
|
|
6642
6644
|
}
|
|
@@ -10405,7 +10407,7 @@ declare type UseFetchDataAction<T = any> = {
|
|
|
10405
10407
|
dataSource: Ref<T[]>;
|
|
10406
10408
|
keyword: Ref<string>;
|
|
10407
10409
|
formSearch: Ref<Record<string, any> | undefined>;
|
|
10408
|
-
loading: ComputedRef<boolean |
|
|
10410
|
+
loading: ComputedRef<boolean | SpinProps | undefined>;
|
|
10409
10411
|
setParams: (key: string, value: any) => void;
|
|
10410
10412
|
reload: (resetPageIndex?: boolean) => Promise<void>;
|
|
10411
10413
|
reset: () => void;
|
|
@@ -51,6 +51,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
form: computed(() => props.form),
|
|
52
52
|
modal: computed(() => props.modal),
|
|
53
53
|
drawer: computed(() => props.drawer),
|
|
54
|
+
prefixCls: computed(() => props.prefixCls),
|
|
54
55
|
componentSize: computed(() => props.componentSize),
|
|
55
56
|
proPrefixCls: computed(() => props.proPrefixCls),
|
|
56
57
|
intl: computed(() => props.intl),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-provider-container.vue2.mjs","sources":["../../../../../../../packages/components/config-provider/src/config-provider-container.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-
|
|
1
|
+
{"version":3,"file":"config-provider-container.vue2.mjs","sources":["../../../../../../../packages/components/config-provider/src/config-provider-container.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-14 14:42:34\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\nimport { computed, ref } from 'vue'\nimport { useProConfigProvide } from './context'\nimport { useCssVariables } from './useCssVariables'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ConfigProviderContainer',\n})\n\nconst props = defineProps<Props>()\n\nconst contentOffsetTop = ref(props.contentOffsetTop)\n\nuseCssVariables(computed(() => props.dark))\n\nuseProConfigProvide({\n table: computed(() => props.table),\n form: computed(() => props.form),\n modal: computed(() => props.modal),\n drawer: computed(() => props.drawer),\n prefixCls: computed(() => props.prefixCls),\n componentSize: computed(() => props.componentSize),\n proPrefixCls: computed(() => props.proPrefixCls),\n intl: computed(() => props.intl),\n locale: computed(() => props.locale),\n contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),\n setContentOffsetTop: (offsetTop: number) => {\n contentOffsetTop.value = offsetTop\n },\n})\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAEd,IAAA,MAAM,gBAAA,GAAmB,GAAA,CAAI,KAAA,CAAM,gBAAgB,CAAA;AAEnD,IAAA,eAAA,CAAgB,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAC,CAAA;AAE1C,IAAA,mBAAA,CAAoB;AAAA,MAClB,KAAA,EAAO,QAAA,CAAS,MAAM,KAAA,CAAM,KAAK,CAAA;AAAA,MACjC,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,KAAA,EAAO,QAAA,CAAS,MAAM,KAAA,CAAM,KAAK,CAAA;AAAA,MACjC,MAAA,EAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,SAAA,EAAW,QAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA;AAAA,MACzC,aAAA,EAAe,QAAA,CAAS,MAAM,KAAA,CAAM,aAAa,CAAA;AAAA,MACjD,YAAA,EAAc,QAAA,CAAS,MAAM,KAAA,CAAM,YAAY,CAAA;AAAA,MAC/C,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,MAAA,EAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,kBAAkB,QAAA,CAAS,MAAM,KAAA,CAAM,gBAAA,IAAoB,iBAAiB,KAAK,CAAA;AAAA,MACjF,mBAAA,EAAqB,CAAC,SAAA,KAAsB;AAC1C,QAAA,gBAAA,CAAiB,KAAA,GAAQ,SAAA;AAAA,MAC3B;AAAA,KACD,CAAA;;aAICA,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA;;;;;;"}
|
|
@@ -32,7 +32,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
iconPrefixCls: { type: String, required: false },
|
|
33
33
|
getTargetContainer: { type: Function, required: false },
|
|
34
34
|
getPopupContainer: { type: Function, required: false },
|
|
35
|
-
prefixCls: { type: String, required: false },
|
|
35
|
+
prefixCls: { type: String, required: false, default: "ant" },
|
|
36
36
|
getPrefixCls: { type: Function, required: false },
|
|
37
37
|
renderEmpty: { type: null, required: false },
|
|
38
38
|
transformCellText: { type: Function, required: false },
|
|
@@ -53,7 +53,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
wave: { type: Object, required: false }
|
|
54
54
|
},
|
|
55
55
|
setup(__props) {
|
|
56
|
-
const rest = createPropsRestProxy(__props, ["intl", "proPrefixCls", "dark", "compact", "token", "locale", "theme", "table", "drawer", "modal", "form", "app", "componentSize"]);
|
|
56
|
+
const rest = createPropsRestProxy(__props, ["intl", "proPrefixCls", "dark", "compact", "token", "locale", "theme", "table", "drawer", "modal", "form", "app", "prefixCls", "componentSize"]);
|
|
57
57
|
if (__props.locale.locale === DEFAULT_LOCALE.toLocaleLowerCase()) {
|
|
58
58
|
import('dayjs/locale/zh-cn.js').then((value) => {
|
|
59
59
|
dayjs.locale(value);
|
|
@@ -94,12 +94,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
ConfigProvider.config({
|
|
97
|
-
prefixCls:
|
|
97
|
+
prefixCls: __props.prefixCls
|
|
98
98
|
});
|
|
99
99
|
return (_ctx, _cache) => {
|
|
100
100
|
var _a;
|
|
101
101
|
return openBlock(), createBlock(unref(ConfigProvider), mergeProps(rest, {
|
|
102
102
|
locale: _ctx.locale,
|
|
103
|
+
prefixCls: _ctx.prefixCls,
|
|
103
104
|
theme: mergerTheme.value,
|
|
104
105
|
componentSize: _ctx.componentSize,
|
|
105
106
|
form: unref(omit)((_a = _ctx.form) != null ? _a : {}, ["resetOnSubmit", "labelWidth", "resetText", "searchText", "labelWidth"])
|
|
@@ -120,6 +121,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
121
|
locale: _ctx.locale,
|
|
121
122
|
drawer: _ctx.drawer,
|
|
122
123
|
modal: _ctx.modal,
|
|
124
|
+
prefixCls: _ctx.prefixCls,
|
|
123
125
|
componentSize: _ctx.componentSize
|
|
124
126
|
}, {
|
|
125
127
|
default: withCtx(() => [
|
|
@@ -127,7 +129,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
129
|
]),
|
|
128
130
|
_: 3
|
|
129
131
|
/* FORWARDED */
|
|
130
|
-
}, 8, ["contentOffsetTop", "intl", "dark", "proPrefixCls", "table", "form", "locale", "drawer", "modal", "componentSize"])
|
|
132
|
+
}, 8, ["contentOffsetTop", "intl", "dark", "proPrefixCls", "table", "form", "locale", "drawer", "modal", "prefixCls", "componentSize"])
|
|
131
133
|
]),
|
|
132
134
|
_: 3
|
|
133
135
|
/* FORWARDED */
|
|
@@ -138,7 +140,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
140
|
]),
|
|
139
141
|
_: 3
|
|
140
142
|
/* FORWARDED */
|
|
141
|
-
}, 16, ["locale", "theme", "componentSize", "form"]);
|
|
143
|
+
}, 16, ["locale", "prefixCls", "theme", "componentSize", "form"]);
|
|
142
144
|
};
|
|
143
145
|
}
|
|
144
146
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-provider.vue2.mjs","sources":["../../../../../../../packages/components/config-provider/src/config-provider.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-
|
|
1
|
+
{"version":3,"file":"config-provider.vue2.mjs","sources":["../../../../../../../packages/components/config-provider/src/config-provider.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-15 14:58:00\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\nimport { ConfigProvider, App, theme as antTheme } from 'ant-design-vue'\nimport { DEFAULT_LOCALE } from '@pro-design-vue/constants'\nimport { zhCNIntl } from './intl'\nimport { computed, nextTick, watch } from 'vue'\nimport { isArray, omit } from '@pro-design-vue/utils'\nimport dayjs from 'dayjs'\nimport ConfigProviderContainer from './config-provider-container.vue'\nimport antdDefaultLocale from 'ant-design-vue/es/locale/zh_CN.js'\nimport { defaultToken } from './defaultToken'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ProConfigProvider',\n})\n\nconst {\n intl = {\n ...zhCNIntl,\n locale: 'default',\n },\n proPrefixCls = 'pro',\n dark = false,\n compact = false,\n token,\n locale = antdDefaultLocale,\n theme,\n table,\n drawer,\n modal,\n form,\n app,\n prefixCls = 'ant',\n componentSize,\n ...rest\n} = defineProps<Props>()\n// 默认国际化为zh-cn\nif (locale.locale === DEFAULT_LOCALE.toLocaleLowerCase()) {\n import('dayjs/locale/zh-cn.js').then((value) => {\n dayjs.locale(value)\n })\n}\n\nconst mergerTheme = computed(() => {\n const algorithm = dark ? [antTheme.darkAlgorithm] : [antTheme.defaultAlgorithm]\n if (compact) {\n algorithm.push(antTheme.compactAlgorithm)\n }\n\n if (theme?.algorithm) {\n if (isArray(theme?.algorithm)) {\n algorithm.push(...theme?.algorithm)\n } else {\n algorithm.push(theme?.algorithm)\n }\n }\n\n return {\n ...theme,\n algorithm,\n token: {\n ...defaultToken,\n ...theme?.token,\n ...token,\n },\n }\n})\n\nwatch(\n () => dark,\n async () => {\n await nextTick()\n const root = document.documentElement\n root.classList.toggle('dark', dark)\n },\n {\n immediate: true,\n },\n)\nConfigProvider.config({\n prefixCls,\n})\n</script>\n\n<template>\n <ConfigProvider\n v-bind=\"rest\"\n :locale\n :prefixCls\n :theme=\"mergerTheme\"\n :componentSize\n :form=\"\n omit(form ?? {}, ['resetOnSubmit', 'labelWidth', 'resetText', 'searchText', 'labelWidth'])\n \"\n >\n <App v-bind=\"app\">\n <ConfigProviderContainer\n :contentOffsetTop\n :intl\n :dark\n :proPrefixCls\n :table\n :form\n :locale\n :drawer\n :modal\n :prefixCls\n :componentSize\n >\n <slot />\n </ConfigProviderContainer>\n </App>\n </ConfigProvider>\n</template>\n"],"names":["_createPropsRestProxy","antTheme","_createBlock","_unref","_mergeProps","locale","prefixCls","componentSize","form","_createVNode","app","ConfigProviderContainer","contentOffsetTop","intl","dark","proPrefixCls","table","drawer","modal","_renderSlot"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/table/index.ts"],"sourcesContent":["/*\n * @Author: shen\n * @Date: 2023-07-29 15:15:45\n * @LastEditors: shen\n * @LastEditTime: 2025-10-
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/table/index.ts"],"sourcesContent":["/*\n * @Author: shen\n * @Date: 2023-07-29 15:15:45\n * @LastEditors: shen\n * @LastEditTime: 2025-10-15 14:35:58\n * @Description:\n */\nimport type { SFCWithInstall } from '@pro-design-vue/utils'\n\nimport { setConfig } from './src/components/config'\nimport type {\n ValueEnumType,\n CellRenderArgs,\n ColumnGroupType,\n ColumnsType,\n ColumnType,\n ContextmenuPopupArg,\n Position,\n Request,\n ColumnStateType,\n ProTableProps,\n TableExposeType,\n TablePaginationConfig,\n TableRowSelection,\n Key,\n OptionConfig,\n DensitySize,\n} from './src/components/interface'\nimport { SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE } from './src/hooks/useRowSelection'\nimport { setLicenseKey } from './src/license/licenseInfo'\nimport { withInstall } from '@pro-design-vue/utils'\nimport Table from './src/components/Table'\nimport Column from './src/components/Column.vue'\nimport ColumnGroup from './src/components/ColumnGroup.vue'\nimport SummaryCell from './src/components/Summary/Cell.vue'\nimport SummaryRow from './src/components/Summary/Row.vue'\nimport Summary from './src/components/Summary/Summary.vue'\n\nexport type { RowHeight } from './src/components/interface'\nexport type {\n ProTableProps,\n TablePaginationConfig as ProTablePaginationConfig,\n ColumnGroupType as ProTableColumnGroupType,\n ColumnType as ProTableColumnType,\n ColumnType as ProTableColumnProps,\n ColumnsType as ProTableColumnsType,\n Position as ScrollPosition,\n Request as ProTableRequest,\n ValueEnumType as ProTableValueEnumType,\n CellRenderArgs,\n ContextmenuPopupArg,\n TableRowSelection as ProTableRowSelection,\n TableExposeType as ProTableExposeType,\n ColumnStateType as ProColumnStateType,\n Key as ProTableKey,\n DensitySize as ProTableDensitySize,\n OptionConfig as ProTableOptionConfig,\n}\nexport {\n Column as ProTableColumn,\n ColumnGroup as ProTableColumnGroup,\n Summary as ProTableSummary,\n SummaryRow as ProTableSummaryRow,\n SummaryCell as ProTableSummaryCell,\n SELECTION_ALL,\n SELECTION_INVERT,\n SELECTION_NONE,\n setLicenseKey,\n setConfig,\n}\n\nexport const ProTable: SFCWithInstall<typeof Table> & {\n Column: typeof Column\n ColumnGroup: typeof ColumnGroup\n Summary: typeof Summary\n SummaryRow: typeof SummaryRow\n SummaryCell: typeof SummaryCell\n} = withInstall(Table, {\n Column,\n ColumnGroup,\n Summary,\n SummaryRow,\n SummaryCell,\n})\n\nProTable.SELECTION_ALL = SELECTION_ALL\nProTable.SELECTION_INVERT = SELECTION_INVERT\nProTable.SELECTION_NONE = SELECTION_NONE\n\nexport default ProTable\n\nexport type ProTableInstance = InstanceType<typeof Table> & TableExposeType\n"],"names":["Column","ColumnGroup","Summary","SummaryRow","SummaryCell"],"mappings":";;;;;;;;;;;AAuEO,MAAM,QAAA,GAMT,YAAY,KAAA,EAAO;AAAA,UACrBA,WAAA;AAAA,eACAC,SAAA;AAAA,WACAC,eAAA;AAAA,cACAC,kBAAA;AAAA,eACAC;AACF,CAAC;AAED,QAAA,CAAS,aAAA,GAAgB,aAAA;AACzB,QAAA,CAAS,gBAAA,GAAmB,gBAAA;AAC5B,QAAA,CAAS,cAAA,GAAiB,cAAA;;;;"}
|
|
@@ -80,7 +80,6 @@ var FormRender = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
});
|
|
81
81
|
(_e = (_d = cardProps.value) == null ? void 0 : _d.onTabChange) == null ? void 0 : _e.call(_d, key);
|
|
82
82
|
};
|
|
83
|
-
console.log("\u{1F680} ~ return ~ cardProps.value:", cardProps.value);
|
|
84
83
|
return () => {
|
|
85
84
|
var _a2, _b2, _c2, _d;
|
|
86
85
|
const searchDom = createVNode(ProQueryFilter, mergeProps({
|