@amaoaaaaa/search-table 0.2.0 → 0.2.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/SearchTable/types.d.ts +7 -7
- package/dist/search-table.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +9 -1
|
@@ -88,11 +88,11 @@ export interface PageResp<T = any> {
|
|
|
88
88
|
/**
|
|
89
89
|
* 请求是否成功
|
|
90
90
|
*/
|
|
91
|
-
success
|
|
91
|
+
success?: boolean;
|
|
92
92
|
/**
|
|
93
93
|
* 错误代码-0为成功
|
|
94
94
|
*/
|
|
95
|
-
code
|
|
95
|
+
code?: number;
|
|
96
96
|
/**
|
|
97
97
|
* 错误信息
|
|
98
98
|
*/
|
|
@@ -104,21 +104,21 @@ export interface PageResp<T = any> {
|
|
|
104
104
|
/**
|
|
105
105
|
* 开始索引
|
|
106
106
|
*/
|
|
107
|
-
offset
|
|
107
|
+
offset?: number;
|
|
108
108
|
/**
|
|
109
109
|
* 每页数量
|
|
110
110
|
*/
|
|
111
|
-
limit
|
|
111
|
+
limit?: number;
|
|
112
112
|
/**
|
|
113
113
|
* 元素总数
|
|
114
114
|
*/
|
|
115
|
-
totalCount
|
|
115
|
+
totalCount?: number;
|
|
116
116
|
/**
|
|
117
117
|
* 当前页数(从1开始)
|
|
118
118
|
*/
|
|
119
|
-
currPageIndex
|
|
119
|
+
currPageIndex?: number;
|
|
120
120
|
/**
|
|
121
121
|
* 总页数
|
|
122
122
|
*/
|
|
123
|
-
pageCount
|
|
123
|
+
pageCount?: number;
|
|
124
124
|
}
|
package/dist/search-table.js
CHANGED
|
@@ -686,7 +686,7 @@ const Kt = q({ name: "ri-delete-back2-line", render: Mt }), _t = { class: "flex
|
|
|
686
686
|
...k,
|
|
687
687
|
limit: w.value.pageSize,
|
|
688
688
|
offset: m
|
|
689
|
-
}, y = o.searchParamsHandler ? o.searchParamsHandler(i) : i, { data: R = [], totalCount: G } = await o.fetchFn(y, {
|
|
689
|
+
}, y = o.searchParamsHandler ? o.searchParamsHandler(i) : i, { data: R = [], totalCount: G = 0 } = await o.fetchFn(y, {
|
|
690
690
|
signal: P.signal
|
|
691
691
|
});
|
|
692
692
|
T.value = R, J.value = m, w.value.total = G, await le(() => {
|
|
@@ -886,7 +886,7 @@ const Kt = q({ name: "ri-delete-back2-line", render: Mt }), _t = { class: "flex
|
|
|
886
886
|
])
|
|
887
887
|
]));
|
|
888
888
|
}
|
|
889
|
-
}), Qt = /* @__PURE__ */ Ve(Nt, [["__scopeId", "data-v-
|
|
889
|
+
}), Qt = /* @__PURE__ */ Ve(Nt, [["__scopeId", "data-v-d86abf08"]]);
|
|
890
890
|
export {
|
|
891
891
|
wt as ProTable,
|
|
892
892
|
Qt as SearchTable
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fixed{position:fixed}.\!m-0{margin:0!important}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-\[23px\]{height:23px}.h-full{height:100%}.\!w-\[260px\]{width:260px!important}.w-\[150px\]{width:150px}.w-\[164px\]{width:164px}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-x-0{-moz-column-gap:0px;column-gap:0px}.gap-x-0\.5{-moz-column-gap:.125rem;column-gap:.125rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.border-t{border-top-width:1px}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-\[--el-color-primary\]{color:var(--el-color-primary)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-100{transition-duration:.1s}.hover\:text-\[--el-color-primary\]:hover{color:var(--el-color-primary)}[data-v-476baef5] .pro-table{--el-table-header-bg-color: #f7f8fa;--el-table-header-text-color: var(--el-text-color-regular);--el-table-text-color: var(--el-text-color-primary)}[data-v-476baef5] .pro-table thead th{font-weight:400}[data-v-
|
|
1
|
+
.fixed{position:fixed}.\!m-0{margin:0!important}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-\[23px\]{height:23px}.h-full{height:100%}.\!w-\[260px\]{width:260px!important}.w-\[150px\]{width:150px}.w-\[164px\]{width:164px}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-x-0{-moz-column-gap:0px;column-gap:0px}.gap-x-0\.5{-moz-column-gap:.125rem;column-gap:.125rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.border-t{border-top-width:1px}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-\[--el-color-primary\]{color:var(--el-color-primary)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-100{transition-duration:.1s}.hover\:text-\[--el-color-primary\]:hover{color:var(--el-color-primary)}[data-v-476baef5] .pro-table{--el-table-header-bg-color: #f7f8fa;--el-table-header-text-color: var(--el-text-color-regular);--el-table-text-color: var(--el-text-color-primary)}[data-v-476baef5] .pro-table thead th{font-weight:400}[data-v-d86abf08] .el-table .el-table-column--selection.el-table__cell{display:flex;align-items:center;justify-content:center}[data-v-d86abf08] .el-button>span{gap:0 4px}.el-pagination[data-v-d86abf08] .el-pagination__sizes .el-select{width:110px}
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaoaaaaa/search-table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "基于 Element Plus 的搜索表格组件,支持分页、排序、筛选、跨页勾选等功能",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/amaoaaaaa/search-table#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/amaoaaaaa/search-table.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/amaoaaaaa/search-table/issues"
|
|
14
|
+
},
|
|
7
15
|
"author": "amaoaaaaa",
|
|
8
16
|
"keywords": [
|
|
9
17
|
"vue3",
|