@qin-ui/antd-vue-pro 1.0.33 → 1.0.34
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/LICENSE +9 -0
- package/es/component-provider/index.js +1 -1
- package/es/form/{index-a8c9e629.js → index-e89e1742.js} +4 -3
- package/es/form/index.js +1 -1
- package/es/index.d.ts +13 -13
- package/es/index.js +2 -2
- package/es/table/index.js +1 -1
- package/package.json +5 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-present pro-components
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, provide, renderSlot } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-
|
|
3
|
+
import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-e89e1742.js";
|
|
4
4
|
import { PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS } from "../table/index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -15958,16 +15958,17 @@ const useFields = (initFields) => {
|
|
|
15958
15958
|
return void 0;
|
|
15959
15959
|
return (_a = fieldMap.value[path]) == null ? void 0 : _a.fieldPath;
|
|
15960
15960
|
};
|
|
15961
|
-
const setField = (path, field) => {
|
|
15961
|
+
const setField = (path, field, updateType = "merge") => {
|
|
15962
15962
|
const fieldPath = getFieldPath(path);
|
|
15963
15963
|
if (!fieldPath)
|
|
15964
15964
|
return;
|
|
15965
15965
|
let value = field;
|
|
15966
|
+
const preField = getField(path);
|
|
15966
15967
|
if (typeof field === "function") {
|
|
15967
|
-
const preField = getField(path);
|
|
15968
15968
|
value = field(preField);
|
|
15969
15969
|
}
|
|
15970
|
-
|
|
15970
|
+
const newField = updateType === "rewrite" ? value : { ...preField, ...value };
|
|
15971
|
+
set$1(fields.value, fieldPath, newField);
|
|
15971
15972
|
};
|
|
15972
15973
|
function findFieldIndex(path) {
|
|
15973
15974
|
var _a;
|
package/es/form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-
|
|
1
|
+
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-e89e1742.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
export {
|
package/es/index.d.ts
CHANGED
|
@@ -683,14 +683,14 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
683
683
|
footer?: PanelRender<any> | undefined;
|
|
684
684
|
tableLayout?: TableLayout | undefined;
|
|
685
685
|
columns?: ColumnsType<any> | undefined;
|
|
686
|
-
sortDirections?: SortOrder[] | undefined;
|
|
687
|
-
showSorterTooltip?: boolean | undefined;
|
|
688
686
|
scroll?: ({
|
|
689
687
|
x?: string | number | true | undefined;
|
|
690
688
|
y?: string | number | undefined;
|
|
691
689
|
} & {
|
|
692
690
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
693
691
|
}) | undefined;
|
|
692
|
+
sortDirections?: SortOrder[] | undefined;
|
|
693
|
+
showSorterTooltip?: boolean | undefined;
|
|
694
694
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
695
695
|
showHeader?: boolean | undefined;
|
|
696
696
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -1126,14 +1126,14 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1126
1126
|
footer?: PanelRender<any> | undefined;
|
|
1127
1127
|
tableLayout?: TableLayout | undefined;
|
|
1128
1128
|
columns?: ColumnsType<any> | undefined;
|
|
1129
|
-
sortDirections?: SortOrder[] | undefined;
|
|
1130
|
-
showSorterTooltip?: boolean | undefined;
|
|
1131
1129
|
scroll?: ({
|
|
1132
1130
|
x?: string | number | true | undefined;
|
|
1133
1131
|
y?: string | number | undefined;
|
|
1134
1132
|
} & {
|
|
1135
1133
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
1136
1134
|
}) | undefined;
|
|
1135
|
+
sortDirections?: SortOrder[] | undefined;
|
|
1136
|
+
showSorterTooltip?: boolean | undefined;
|
|
1137
1137
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
1138
1138
|
showHeader?: boolean | undefined;
|
|
1139
1139
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -1573,14 +1573,14 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1573
1573
|
footer?: PanelRender<any> | undefined;
|
|
1574
1574
|
tableLayout?: TableLayout | undefined;
|
|
1575
1575
|
columns?: ColumnsType<any> | undefined;
|
|
1576
|
-
sortDirections?: SortOrder[] | undefined;
|
|
1577
|
-
showSorterTooltip?: boolean | undefined;
|
|
1578
1576
|
scroll?: ({
|
|
1579
1577
|
x?: string | number | true | undefined;
|
|
1580
1578
|
y?: string | number | undefined;
|
|
1581
1579
|
} & {
|
|
1582
1580
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
1583
1581
|
}) | undefined;
|
|
1582
|
+
sortDirections?: SortOrder[] | undefined;
|
|
1583
|
+
showSorterTooltip?: boolean | undefined;
|
|
1584
1584
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
1585
1585
|
showHeader?: boolean | undefined;
|
|
1586
1586
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -3291,14 +3291,14 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3291
3291
|
footer?: PanelRender<any> | undefined;
|
|
3292
3292
|
tableLayout?: TableLayout | undefined;
|
|
3293
3293
|
columns?: TableColumnsType<any> | undefined;
|
|
3294
|
-
sortDirections?: SortOrder[] | undefined;
|
|
3295
|
-
showSorterTooltip?: boolean | undefined;
|
|
3296
3294
|
scroll?: ({
|
|
3297
3295
|
x?: string | number | true | undefined;
|
|
3298
3296
|
y?: string | number | undefined;
|
|
3299
3297
|
} & {
|
|
3300
3298
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
3301
3299
|
}) | undefined;
|
|
3300
|
+
sortDirections?: SortOrder[] | undefined;
|
|
3301
|
+
showSorterTooltip?: boolean | undefined;
|
|
3302
3302
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
3303
3303
|
showHeader?: boolean | undefined;
|
|
3304
3304
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -3734,14 +3734,14 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3734
3734
|
footer?: PanelRender<any> | undefined;
|
|
3735
3735
|
tableLayout?: TableLayout | undefined;
|
|
3736
3736
|
columns?: TableColumnsType<any> | undefined;
|
|
3737
|
-
sortDirections?: SortOrder[] | undefined;
|
|
3738
|
-
showSorterTooltip?: boolean | undefined;
|
|
3739
3737
|
scroll?: ({
|
|
3740
3738
|
x?: string | number | true | undefined;
|
|
3741
3739
|
y?: string | number | undefined;
|
|
3742
3740
|
} & {
|
|
3743
3741
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
3744
3742
|
}) | undefined;
|
|
3743
|
+
sortDirections?: SortOrder[] | undefined;
|
|
3744
|
+
showSorterTooltip?: boolean | undefined;
|
|
3745
3745
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
3746
3746
|
showHeader?: boolean | undefined;
|
|
3747
3747
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -4181,14 +4181,14 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
4181
4181
|
footer?: PanelRender<any> | undefined;
|
|
4182
4182
|
tableLayout?: TableLayout | undefined;
|
|
4183
4183
|
columns?: TableColumnsType<any> | undefined;
|
|
4184
|
-
sortDirections?: SortOrder[] | undefined;
|
|
4185
|
-
showSorterTooltip?: boolean | undefined;
|
|
4186
4184
|
scroll?: ({
|
|
4187
4185
|
x?: string | number | true | undefined;
|
|
4188
4186
|
y?: string | number | undefined;
|
|
4189
4187
|
} & {
|
|
4190
4188
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
4191
4189
|
}) | undefined;
|
|
4190
|
+
sortDirections?: SortOrder[] | undefined;
|
|
4191
|
+
showSorterTooltip?: boolean | undefined;
|
|
4192
4192
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
4193
4193
|
showHeader?: boolean | undefined;
|
|
4194
4194
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -4371,7 +4371,7 @@ declare type SelectSlots = FieldSlot<keyof InstanceType<typeof Select>['$slots']
|
|
|
4371
4371
|
|
|
4372
4372
|
export declare type SetActivePath = (path: string | undefined) => void;
|
|
4373
4373
|
|
|
4374
|
-
export declare type SetField = (path: string | undefined, field: Field | ((preField: ReturnType<GetField>) => Field)) => void;
|
|
4374
|
+
export declare type SetField = (path: string | undefined, field: Field | ((preField: ReturnType<GetField>) => Field), updateType?: 'rewrite' | 'merge') => void;
|
|
4375
4375
|
|
|
4376
4376
|
export declare type SetFormData = (path: string | undefined, value: any | ((preValue: DeepReadonly<any>) => any)) => void;
|
|
4377
4377
|
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-e89e1742.js";
|
|
3
|
+
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-e89e1742.js";
|
|
4
4
|
import BaseTable from "./table/index.js";
|
|
5
5
|
import { PRO_TABLE_INIT_COMPONENT_PROPS_MAP, PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS, useTable } from "./table/index.js";
|
|
6
6
|
import _sfc_main$1 from "./component-provider/index.js";
|
package/es/table/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, inject, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
|
|
3
|
-
import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-
|
|
3
|
+
import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-e89e1742.js";
|
|
4
4
|
var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
|
|
5
5
|
const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
|
|
6
6
|
function _objectSpread$2(target) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qin-ui/antd-vue-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "二次封装antd vue组件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "",
|
|
@@ -14,9 +14,6 @@
|
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git+https://github.com/dufan3715/pro-components.git"
|
|
16
16
|
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "vue-tsc && vite build"
|
|
19
|
-
},
|
|
20
17
|
"keywords": [
|
|
21
18
|
"vue",
|
|
22
19
|
"ant-design-vue",
|
|
@@ -38,5 +35,8 @@
|
|
|
38
35
|
},
|
|
39
36
|
"dependencies": {
|
|
40
37
|
"@ant-design/icons-vue": "^7.0.1"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "vue-tsc && vite build"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|