@qin-ui/antdv-next-pro 1.1.7 → 1.1.9
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/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 +15 -15
- package/es/index.js +3 -3
- package/es/table/index.js +2 -2
- package/package.json +2 -3
|
@@ -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 - 基础公共字段类型
|
|
@@ -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>>;
|
|
@@ -969,8 +969,8 @@ declare type WithCommonBase<T = unknown> = T & Omit<FormItemProps, 'label'> & Co
|
|
|
969
969
|
* @template D - 数据对象类型
|
|
970
970
|
*/
|
|
971
971
|
declare type WithComponent<T extends abstract new (...args: any) => any, D extends Data = Data> = WithCommon<{
|
|
972
|
-
slots?: ComponentSlots<T
|
|
973
|
-
} & Omit<ComponentProps<T>, keyof VNodeProps
|
|
972
|
+
slots?: Partial<ComponentSlots<T>>;
|
|
973
|
+
} & Partial<Omit<ComponentProps<T>, keyof VNodeProps>>, D>;
|
|
974
974
|
|
|
975
975
|
declare type WithFields<D extends Data = Data> = WithRef<WithCommonBase & BaseWithFields<D>>;
|
|
976
976
|
|
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;
|
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.9",
|
|
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",
|