@qin-ui/antd-vue-pro 1.0.23 → 1.0.25
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/form/{index-2b6aeb25.js → index-b9546055.js} +17 -16
- package/es/form/index.js +17 -17
- package/es/index.js +18 -18
- package/es/table/index.js +5 -4
- package/package.json +1 -1
|
@@ -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-b9546055.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",
|
|
@@ -16646,22 +16646,23 @@ export {
|
|
|
16646
16646
|
_sfc_main as _,
|
|
16647
16647
|
_export_sfc as a,
|
|
16648
16648
|
_sfc_main$2 as b,
|
|
16649
|
-
|
|
16650
|
-
_sfc_main$
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16649
|
+
cloneDeep as c,
|
|
16650
|
+
_sfc_main$4 as d,
|
|
16651
|
+
_sfc_main$1 as e,
|
|
16652
|
+
FORM_DATA as f,
|
|
16653
|
+
UPDATE_REFS as g,
|
|
16654
|
+
COMMAND as h,
|
|
16655
|
+
UPDATE_ACTIVE_PATH as i,
|
|
16656
|
+
FunctionRegexp as j,
|
|
16657
|
+
ArrowFunctionRegexp as k,
|
|
16658
|
+
INIT_COMPONENT_PROPS_MAP as l,
|
|
16659
|
+
isFunctionString as m,
|
|
16660
|
+
jsonStringifyReplacer as n,
|
|
16661
16661
|
omit$1 as o,
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16662
|
+
jsonParseReviver as p,
|
|
16663
|
+
useFields as q,
|
|
16664
|
+
useFormData as r,
|
|
16665
|
+
useCommand as s,
|
|
16666
|
+
useInitProps as t,
|
|
16666
16667
|
useForm as u
|
|
16667
16668
|
};
|
package/es/form/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
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-b9546055.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
k as ArrowFunctionRegexp,
|
|
6
6
|
B as BaseField,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
d as BaseFormItem,
|
|
8
|
+
h as COMMAND,
|
|
9
9
|
C as COMPONENT_MAP,
|
|
10
10
|
b as ContainerFragment,
|
|
11
|
-
|
|
11
|
+
f as FORM_DATA,
|
|
12
12
|
F as FORM_ITEM_SLOT_KEYS,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
j as FunctionRegexp,
|
|
14
|
+
l as INIT_COMPONENT_PROPS_MAP,
|
|
15
15
|
I as INJECT_COMPONENT_PROPS_KEYS,
|
|
16
16
|
R as RULE_TYPE_MAP,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
e as SlotComponent,
|
|
18
|
+
i as UPDATE_ACTIVE_PATH,
|
|
19
19
|
U as UPDATE_FORM_DATA,
|
|
20
|
-
|
|
20
|
+
g as UPDATE_REFS,
|
|
21
21
|
_ as default,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
m as isFunctionString,
|
|
23
|
+
p as jsonParseReviver,
|
|
24
|
+
n as jsonStringifyReplacer,
|
|
25
|
+
s as useCommand,
|
|
26
|
+
q as useFields,
|
|
27
27
|
u as useForm,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
r as useFormData,
|
|
29
|
+
t as useInitProps
|
|
30
30
|
};
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import {
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-b9546055.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-b9546055.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";
|
|
@@ -24,16 +24,16 @@ const index = {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
k as ArrowFunctionRegexp,
|
|
28
28
|
B as BaseField,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
d as BaseFormItem,
|
|
30
|
+
h as COMMAND,
|
|
31
31
|
C as COMPONENT_MAP,
|
|
32
32
|
b as ContainerFragment,
|
|
33
|
-
|
|
33
|
+
f as FORM_DATA,
|
|
34
34
|
F as FORM_ITEM_SLOT_KEYS,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
j as FunctionRegexp,
|
|
36
|
+
l as INIT_COMPONENT_PROPS_MAP,
|
|
37
37
|
I as INJECT_COMPONENT_PROPS_KEYS,
|
|
38
38
|
PRO_TABLE_INIT_COMPONENT_PROPS_MAP,
|
|
39
39
|
PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS,
|
|
@@ -41,18 +41,18 @@ export {
|
|
|
41
41
|
ProForm,
|
|
42
42
|
ProTable,
|
|
43
43
|
R as RULE_TYPE_MAP,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
e as SlotComponent,
|
|
45
|
+
i as UPDATE_ACTIVE_PATH,
|
|
46
46
|
U as UPDATE_FORM_DATA,
|
|
47
|
-
|
|
47
|
+
g as UPDATE_REFS,
|
|
48
48
|
index as default,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
m as isFunctionString,
|
|
50
|
+
p as jsonParseReviver,
|
|
51
|
+
n as jsonStringifyReplacer,
|
|
52
|
+
s as useCommand,
|
|
53
|
+
q as useFields,
|
|
54
54
|
u as useForm,
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
r as useFormData,
|
|
56
|
+
t as useInitProps,
|
|
57
57
|
useTable
|
|
58
58
|
};
|
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, 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-b9546055.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) {
|
|
@@ -587,10 +587,11 @@ const useTable = ({
|
|
|
587
587
|
columns: initColumns = [],
|
|
588
588
|
dataSource: initDataSource = [],
|
|
589
589
|
checkedColumns: initCheckedColumns = void 0,
|
|
590
|
-
pagination: initPagination =
|
|
591
|
-
searchParam: initSearchParam =
|
|
590
|
+
pagination: initPagination = getDefaultPagination(),
|
|
591
|
+
searchParam: initSearchParam = {},
|
|
592
592
|
searchFields: initSearchFields = []
|
|
593
593
|
}) => {
|
|
594
|
+
const _initSearchParam = cloneDeep(unref(initSearchParam));
|
|
594
595
|
const columns = ref(initColumns);
|
|
595
596
|
const dataSource = ref(initDataSource);
|
|
596
597
|
const checkedColumns = ref(
|
|
@@ -618,7 +619,7 @@ const useTable = ({
|
|
|
618
619
|
const setSearchField = setField;
|
|
619
620
|
const resetQueryParams = () => {
|
|
620
621
|
setPagination(getDefaultPagination());
|
|
621
|
-
setSearchParam(void 0,
|
|
622
|
+
setSearchParam(void 0, cloneDeep(_initSearchParam));
|
|
622
623
|
};
|
|
623
624
|
return {
|
|
624
625
|
columns,
|