@qin-ui/antdv-next-pro 1.1.8 → 1.1.10
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/es/antdv-next-pro.css +6 -6
- package/es/component-provider/index.js +1 -1
- package/es/core/{index-BWMfavD1.js → index-C98RSrpN.js} +0 -2
- package/es/form/{index-CdBauDf0.js → index-CyMXEA_9.js} +1 -1
- package/es/form/index.js +2 -2
- package/es/index.d.ts +17 -17
- package/es/index.js +3 -3
- package/es/table/index.js +3 -3
- package/package.json +2 -3
package/es/antdv-next-pro.css
CHANGED
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
.pro-table_column-control_button[data-v-246b0faf] svg {
|
|
37
37
|
transform: scale(1.2, 1.4);
|
|
38
38
|
}
|
|
39
|
-
.pro-table_header[data-v-
|
|
39
|
+
.pro-table_header[data-v-b87d832c] {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: flex-end;
|
|
43
43
|
}
|
|
44
|
-
.pro-table_header[data-v-
|
|
44
|
+
.pro-table_header[data-v-b87d832c]:empty {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
.pro-table_header + .pro-table_header_content[data-v-
|
|
47
|
+
.pro-table_header + .pro-table_header_content[data-v-b87d832c] {
|
|
48
48
|
margin-top: 16px;
|
|
49
49
|
}
|
|
50
|
-
.pro-table_header_button-bar[data-v-
|
|
50
|
+
.pro-table_header_button-bar[data-v-b87d832c] {
|
|
51
51
|
flex: 1;
|
|
52
52
|
}
|
|
53
|
-
.pro-table_header_toolbar[data-v-
|
|
53
|
+
.pro-table_header_toolbar[data-v-b87d832c] {
|
|
54
54
|
margin-left: 12px;
|
|
55
55
|
}
|
|
56
|
-
.pro-table[data-v-
|
|
56
|
+
.pro-table[data-v-b87d832c] [class*='-pagination'] [class*='-pagination-total-text'] {
|
|
57
57
|
flex: 1;
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, provide, renderSlot } from "vue";
|
|
2
|
-
import { g as getObject } from "../core/index-
|
|
2
|
+
import { g as getObject } from "../core/index-C98RSrpN.js";
|
|
3
3
|
const getPopupContainer = (triggerNode) => triggerNode.closest("form[class*='-form']");
|
|
4
4
|
const INJECT_CONFIG = {
|
|
5
5
|
"pro-table": {
|
|
@@ -268,8 +268,6 @@ const useTable = (params) => {
|
|
|
268
268
|
} else if (columnItem.dataIndex) {
|
|
269
269
|
const dataIndexKey = Array.isArray(columnItem.dataIndex) ? columnItem.dataIndex.join(".") : columnItem.dataIndex;
|
|
270
270
|
matched = dataIndexKey === key;
|
|
271
|
-
} else {
|
|
272
|
-
matched = key === i;
|
|
273
271
|
}
|
|
274
272
|
if (matched) {
|
|
275
273
|
updater({
|
|
@@ -2,7 +2,7 @@ import { defineComponent, provide, computed, inject, useSlots, watchEffect, crea
|
|
|
2
2
|
import { FormItem, Col, Table, Form, Transfer, TreeSelect, Slider, Switch, RadioGroup, CheckboxGroup, TimeRangePicker, TimePicker, DateRangePicker, DatePicker, Cascader, Select, AutoComplete, InputOTP, InputNumber, InputPassword, InputSearch, TextArea, Input, Row } from "antdv-next";
|
|
3
3
|
import { useDisabledContextProvider, useDisabledContext } from "antdv-next/dist/config-provider/DisabledContext";
|
|
4
4
|
import { INJECT_CONFIG, getInjectConfig, INJECT_COMPONENTS } from "../component-provider/index.js";
|
|
5
|
-
import { I as InjectionFormKey, c as camelizeProperties, a as InjectionPathKey, g as getObject, u as useForm$1, b as useFields$1, d as useFormRef$1 } from "../core/index-
|
|
5
|
+
import { I as InjectionFormKey, c as camelizeProperties, a as InjectionPathKey, g as getObject, u as useForm$1, b as useFields$1, d as useFormRef$1 } from "../core/index-C98RSrpN.js";
|
|
6
6
|
import { i as isPlainObject, t as toPath, o as omit, c as cloneDeep } from "../vendor/utils/lodash-es-p6jau26B.js";
|
|
7
7
|
const tableProps = () => Table.props || {};
|
|
8
8
|
const gridItemProps = () => Col.props || {};
|
package/es/form/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, _, b, a, F, d, T, e, _ as _2, h, f, u, g } from "./index-
|
|
2
|
-
import { I, a as a2, e as e2 } from "../core/index-
|
|
1
|
+
import { c, _, b, a, F, d, T, e, _ as _2, h, f, u, g } from "./index-CyMXEA_9.js";
|
|
2
|
+
import { I, a as a2, e as e2 } from "../core/index-C98RSrpN.js";
|
|
3
3
|
export {
|
|
4
4
|
c as BaseField,
|
|
5
5
|
_ as BaseForm,
|
package/es/index.d.ts
CHANGED
|
@@ -122,8 +122,8 @@ declare type AdditionalMethods<FormItemInstance> = {
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
declare type AllowStringKey<T, Prefix extends string = ''> = {
|
|
125
|
-
[K in keyof T
|
|
126
|
-
}[keyof
|
|
125
|
+
[K in keyof T as string extends K ? never : number extends K ? never : K extends string ? K : never]: T[K] extends (infer U)[] ? `${Prefix}${K & string}` | (IsRecord<U> extends true ? AllowStringKey<U, `${Prefix}${K & string}[index].`> : never) : IsRecord<T[K]> extends true ? `${Prefix}${K & string}` | AllowStringKey<T[K], `${Prefix}${K & string}.`> : `${Prefix}${K & string}`;
|
|
126
|
+
} extends infer Obj ? Obj[keyof Obj] : never;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* @type {Object} Base - 基础公共字段类型
|
|
@@ -450,9 +450,9 @@ declare const _default_2: <T extends Table<any> = Table>(__VLS_props: NonNullabl
|
|
|
450
450
|
bodyCell?: (props: {
|
|
451
451
|
text: any;
|
|
452
452
|
value: any;
|
|
453
|
-
record: T extends Table<infer
|
|
453
|
+
record: T extends Table<any, infer R extends Data> ? R : never;
|
|
454
454
|
index: number;
|
|
455
|
-
column: Column<T extends Table<infer
|
|
455
|
+
column: Column<T extends Table<any, infer R extends Data> ? R : never>;
|
|
456
456
|
}) => void;
|
|
457
457
|
}> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">> & Omit<Omit<Readonly<{
|
|
458
458
|
default?: (() => any) | undefined;
|
|
@@ -489,9 +489,9 @@ declare const _default_2: <T extends Table<any> = Table>(__VLS_props: NonNullabl
|
|
|
489
489
|
bodyCell?: (props: {
|
|
490
490
|
text: any;
|
|
491
491
|
value: any;
|
|
492
|
-
record: T extends Table<infer
|
|
492
|
+
record: T extends Table<any, infer R extends Data> ? R : never;
|
|
493
493
|
index: number;
|
|
494
|
-
column: Column<T extends Table<infer
|
|
494
|
+
column: Column<T extends Table<any, infer R extends Data> ? R : never>;
|
|
495
495
|
}) => void;
|
|
496
496
|
}> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">;
|
|
497
497
|
emit: ((evt: "update:size", value: ButtonSize) => void) & ((evt: "update:loading", value: boolean) => void);
|
|
@@ -803,7 +803,7 @@ declare type SearchFormProps = {
|
|
|
803
803
|
expandButton?: Component<ExpandButtonProps> | DefineComponent<ExpandButtonProps>;
|
|
804
804
|
} & /* @vue-ignore */ _FormProps & AllowedComponentProps;
|
|
805
805
|
|
|
806
|
-
declare type SetColumn<
|
|
806
|
+
declare type SetColumn<T extends Data = Data, C extends BaseColumn<T> = BaseColumn<T>> = (key: Path<T>, column: C | ((pre: Readonly<C>) => C), options?: {
|
|
807
807
|
updateType?: 'rewrite' | 'merge';
|
|
808
808
|
} & UpdateColumnOptions) => void;
|
|
809
809
|
|
|
@@ -826,19 +826,19 @@ export declare type Slots = {
|
|
|
826
826
|
};
|
|
827
827
|
|
|
828
828
|
/**
|
|
829
|
-
* 重新定义 Table 类型,将 Column 类型绑定为 antdv-next 的 Column<
|
|
829
|
+
* 重新定义 Table 类型,将 Column 类型绑定为 antdv-next 的 Column<T>
|
|
830
830
|
*/
|
|
831
|
-
export declare type Table<D extends Data = Data, T extends
|
|
831
|
+
export declare type Table<D extends Data = Data, T extends Data = ExtendWithAny<D>> = Table_2<D, T, Column<T>>;
|
|
832
832
|
|
|
833
|
-
declare type Table_2<D extends Data = Data, T extends
|
|
834
|
-
columns: Ref<Columns_2<
|
|
833
|
+
declare type Table_2<D extends Data = Data, T extends Data = ExtendWithAny<D>, C extends BaseColumn<T> = BaseColumn<T>> = {
|
|
834
|
+
columns: Ref<Columns_2<T, C>>;
|
|
835
835
|
dataSource: Ref<T[]>;
|
|
836
836
|
pageParam: Reactive<PageParam>;
|
|
837
837
|
searchForm: Form_2<D>;
|
|
838
|
-
setColumn: SetColumn<
|
|
839
|
-
deleteColumn: (path: Path<
|
|
840
|
-
appendColumn: (path: Path<
|
|
841
|
-
prependColumn: (path: Path<
|
|
838
|
+
setColumn: SetColumn<T, C>;
|
|
839
|
+
deleteColumn: (path: Path<T> | ColumnFindBy<T, C>, options?: UpdateColumnOptions) => void;
|
|
840
|
+
appendColumn: (path: Path<T> | ColumnFindBy<T, C> | undefined, column: C | Columns_2<T, C>, options?: UpdateColumnOptions) => void;
|
|
841
|
+
prependColumn: (path: Path<T> | ColumnFindBy<T, C> | undefined, column: C | Columns_2<T, C>, options?: UpdateColumnOptions) => void;
|
|
842
842
|
setPageParam: SetPageParam;
|
|
843
843
|
resetQueryParams: () => void;
|
|
844
844
|
};
|
|
@@ -939,8 +939,8 @@ declare const useFormRef_2: <F = any>() => {
|
|
|
939
939
|
/**
|
|
940
940
|
* 类型断言 re-export @qin-ui/core 的 useTable,
|
|
941
941
|
*/
|
|
942
|
-
export declare const useTable: <D extends Data = Data, T extends
|
|
943
|
-
columns?: Columns<
|
|
942
|
+
export declare const useTable: <D extends Data = Data, T extends Data = ExtendWithAny<D>>(params: {
|
|
943
|
+
columns?: Columns<T>;
|
|
944
944
|
dataSource?: T[];
|
|
945
945
|
pageParam?: PageParam;
|
|
946
946
|
searchParam?: ExtendWithAny<DeepPartial<D>>;
|
package/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./antdv-next-pro.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-
|
|
4
|
-
import { I, a as a2, e as e2 } from "./core/index-
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-CyMXEA_9.js";
|
|
3
|
+
import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-CyMXEA_9.js";
|
|
4
|
+
import { I, a as a2, e as e2 } from "./core/index-C98RSrpN.js";
|
|
5
5
|
import BaseTable from "./table/index.js";
|
|
6
6
|
import { useTable } from "./table/index.js";
|
|
7
7
|
import _sfc_main$1 from "./component-provider/index.js";
|
package/es/table/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createElementVNode, defineComponent, ref, computed, watch, watchEffect, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, resolveDynamicComponent, createTextVNode, createCommentVNode, Fragment, toDisplayString, normalizeStyle, useModel, h, mergeModels, inject, useAttrs, useSlots, onMounted, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Space, Button, theme, useConfig, Dropdown, Menu, Checkbox, Table } from "antdv-next";
|
|
3
3
|
import "antdv-next/dist/config-provider/DisabledContext";
|
|
4
|
-
import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-
|
|
4
|
+
import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-CyMXEA_9.js";
|
|
5
5
|
import { INJECT_CONFIG } from "../component-provider/index.js";
|
|
6
|
-
import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-
|
|
6
|
+
import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-C98RSrpN.js";
|
|
7
7
|
import { p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
|
|
8
8
|
const _export_sfc = (sfc, props) => {
|
|
9
9
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -679,7 +679,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
679
679
|
};
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
682
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b87d832c"]]);
|
|
683
683
|
const useTable = useTable$1;
|
|
684
684
|
export {
|
|
685
685
|
BaseTable as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qin-ui/antdv-next-pro",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "基于 antdv-next 的二次封装组件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
"@qin-ui/core": "workspace:^",
|
|
40
40
|
"@types/lodash-es": "^4.17.12",
|
|
41
41
|
"antdv-next": "^1.1.0",
|
|
42
|
-
"lodash-es": "^4.17.21"
|
|
43
|
-
"vue": "^3.5.29"
|
|
42
|
+
"lodash-es": "^4.17.21"
|
|
44
43
|
},
|
|
45
44
|
"publishConfig": {
|
|
46
45
|
"access": "public",
|