@ftjs/antd 0.4.0 → 0.4.2
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.js
CHANGED
|
@@ -1471,6 +1471,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1471
1471
|
const pageSize = ref(props.defaultPageSize);
|
|
1472
1472
|
async function refresh() {
|
|
1473
1473
|
var _a;
|
|
1474
|
+
current.value = 1;
|
|
1474
1475
|
await ((_a = props.onSearch) == null ? void 0 : _a.call(props));
|
|
1475
1476
|
}
|
|
1476
1477
|
const definedSlots = ["pager", "loading"];
|
|
@@ -1500,7 +1501,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1500
1501
|
getSearchInfo() {
|
|
1501
1502
|
var _a;
|
|
1502
1503
|
return ((_a = searchRef.value) == null ? void 0 : _a.getFormData()) ?? {};
|
|
1503
|
-
}
|
|
1504
|
+
},
|
|
1505
|
+
/**
|
|
1506
|
+
* 刷新表格(会重置分页)
|
|
1507
|
+
*/
|
|
1508
|
+
refresh
|
|
1504
1509
|
});
|
|
1505
1510
|
return (_ctx, _cache) => {
|
|
1506
1511
|
const _component_VxeGrid = resolveComponent("VxeGrid");
|
|
@@ -1550,7 +1555,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1550
1555
|
showLessItems: "",
|
|
1551
1556
|
total: _ctx.total,
|
|
1552
1557
|
defaultPageSize: _ctx.defaultPageSize,
|
|
1553
|
-
onChange:
|
|
1558
|
+
onChange: _cache[2] || (_cache[2] = () => {
|
|
1559
|
+
var _a;
|
|
1560
|
+
return (_a = _ctx.onSearch) == null ? void 0 : _a.call(_ctx);
|
|
1561
|
+
})
|
|
1554
1562
|
}, null, 8, ["current", "pageSize", "total", "defaultPageSize"])])) : createCommentVNode("", true)]),
|
|
1555
1563
|
loading: withCtx(() => [_ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", {
|
|
1556
1564
|
key: 0
|
|
@@ -27,7 +27,11 @@ declare const _default: <T extends Record<string, any>, S extends Record<string,
|
|
|
27
27
|
/**
|
|
28
28
|
* 获取搜索信息
|
|
29
29
|
*/
|
|
30
|
-
getSearchInfo():
|
|
30
|
+
getSearchInfo(): S;
|
|
31
|
+
/**
|
|
32
|
+
* 刷新表格(会重置分页)
|
|
33
|
+
*/
|
|
34
|
+
refresh: () => Promise<void>;
|
|
31
35
|
}>): void;
|
|
32
36
|
attrs: any;
|
|
33
37
|
slots: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ftjs/antd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vite": "^6.1.0",
|
|
31
31
|
"vite-plugin-dts": "^4.5.0",
|
|
32
32
|
"vue-tsc": "2.2.0",
|
|
33
|
-
"@ftjs/core": "0.4.
|
|
33
|
+
"@ftjs/core": "0.4.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@ant-design/icons-vue": ">=7.0.0",
|