@yoooloo42/joker 1.0.157 → 1.0.159
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.cjs.js +30 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -20
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22638,6 +22638,7 @@ const refresh = async _ref => {
|
|
|
22638
22638
|
scopeThis,
|
|
22639
22639
|
message
|
|
22640
22640
|
} = _ref;
|
|
22641
|
+
scopeThis.tableProps.table.loading.visible = true;
|
|
22641
22642
|
const result = await ly0request.storpro({
|
|
22642
22643
|
storproName: scopeThis.storpro.refresh,
|
|
22643
22644
|
data: {
|
|
@@ -22647,6 +22648,7 @@ const refresh = async _ref => {
|
|
|
22647
22648
|
page: scopeThis.query && scopeThis.query.currentPage ? scopeThis.query.currentPage : 1
|
|
22648
22649
|
}
|
|
22649
22650
|
});
|
|
22651
|
+
scopeThis.tableProps.table.loading.visible = false;
|
|
22650
22652
|
if (result.code === 0) {
|
|
22651
22653
|
unclassified.deepClone.deepMerge(scopeThis.tableData, {
|
|
22652
22654
|
data: result.data,
|
|
@@ -41995,12 +41997,12 @@ const hdl = {
|
|
|
41995
41997
|
},
|
|
41996
41998
|
pageSizeChange(pageSize) {
|
|
41997
41999
|
// 重新分页
|
|
41998
|
-
|
|
41999
|
-
|
|
42000
|
+
tableData_box.pageSize = pageSize;
|
|
42001
|
+
tableData_box.currentPage = 1;
|
|
42000
42002
|
},
|
|
42001
42003
|
currentPageChange(currentPage) {
|
|
42002
42004
|
// 修改当前页号
|
|
42003
|
-
|
|
42005
|
+
tableData_box.currentPage = currentPage;
|
|
42004
42006
|
}
|
|
42005
42007
|
};
|
|
42006
42008
|
|
|
@@ -42345,19 +42347,19 @@ return (_ctx, _cache) => {
|
|
|
42345
42347
|
[_directive_loading, unref(tableProps_box).table.loading.visible],
|
|
42346
42348
|
[
|
|
42347
42349
|
_directive_loading,
|
|
42348
|
-
unref(tableProps_box).table.loading.
|
|
42350
|
+
unref(tableProps_box).table.loading.text,
|
|
42349
42351
|
void 0,
|
|
42350
42352
|
{ text: true }
|
|
42351
42353
|
],
|
|
42352
42354
|
[
|
|
42353
42355
|
_directive_loading,
|
|
42354
|
-
|
|
42356
|
+
unref(tableProps_box).table.loading.spinner,
|
|
42355
42357
|
void 0,
|
|
42356
42358
|
{ spinner: true }
|
|
42357
42359
|
],
|
|
42358
42360
|
[
|
|
42359
42361
|
_directive_loading,
|
|
42360
|
-
unref(tableProps_box).table.loading.
|
|
42362
|
+
unref(tableProps_box).table.loading.background,
|
|
42361
42363
|
void 0,
|
|
42362
42364
|
{ background: true }
|
|
42363
42365
|
]
|
|
@@ -42365,9 +42367,9 @@ return (_ctx, _cache) => {
|
|
|
42365
42367
|
createCommentVNode(" 分页 "),
|
|
42366
42368
|
createVNode(_component_el_pagination, {
|
|
42367
42369
|
total: unref(tableData_box).total,
|
|
42368
|
-
"page-size": unref(
|
|
42369
|
-
"page-sizes": [unref(
|
|
42370
|
-
"current-page": unref(
|
|
42370
|
+
"page-size": unref(tableData_box).pageSize,
|
|
42371
|
+
"page-sizes": [unref(tableData_box).pageSize],
|
|
42372
|
+
"current-page": unref(tableData_box).currentPage,
|
|
42371
42373
|
style: normalizeStyle(style.pagination),
|
|
42372
42374
|
onSizeChange: hdl.pageSizeChange,
|
|
42373
42375
|
onCurrentChange: hdl.currentPageChange,
|
|
@@ -42455,17 +42457,19 @@ var ly0default$1 = {
|
|
|
42455
42457
|
excel: {
|
|
42456
42458
|
fileName: "table-to-excel.xlsx" // 另存excel文件名}
|
|
42457
42459
|
}
|
|
42458
|
-
},
|
|
42459
|
-
query: {
|
|
42460
|
-
// 查询体
|
|
42461
|
-
sort: {
|
|
42462
|
-
label: "",
|
|
42463
|
-
order: ""
|
|
42464
|
-
},
|
|
42465
|
-
pageSize: 10,
|
|
42466
|
-
currentPage: 1
|
|
42467
42460
|
}
|
|
42468
|
-
}
|
|
42461
|
+
},
|
|
42462
|
+
modelValue: {
|
|
42463
|
+
data: [],
|
|
42464
|
+
total: 0,
|
|
42465
|
+
sort: {
|
|
42466
|
+
label: "",
|
|
42467
|
+
order: ""
|
|
42468
|
+
},
|
|
42469
|
+
pageSize: 10,
|
|
42470
|
+
currentPage: 1
|
|
42471
|
+
}
|
|
42472
|
+
};
|
|
42469
42473
|
|
|
42470
42474
|
var script$c = {
|
|
42471
42475
|
__name: 'Index',
|
|
@@ -42488,7 +42492,13 @@ var script$c = {
|
|
|
42488
42492
|
const props = __props;
|
|
42489
42493
|
|
|
42490
42494
|
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
42491
|
-
let tableData_box = reactive(props.modelValue
|
|
42495
|
+
let tableData_box = reactive(unclassified.deepClone.deepMerge(props.modelValue, {
|
|
42496
|
+
data: props.modelValue.data ?? ly0default$1.modelValue.data,
|
|
42497
|
+
total: props.modelValue.total ?? ly0default$1.modelValue.total,
|
|
42498
|
+
sort: props.modelValue.sort ?? ly0default$1.modelValue.sort,
|
|
42499
|
+
pageSize: props.modelValue.pageSize ?? ly0default$1.modelValue.pageSize,
|
|
42500
|
+
currentPage: props.modelValue.currentPage ?? ly0default$1.modelValue.currentPage,
|
|
42501
|
+
}));
|
|
42492
42502
|
const tableProps_box = reactive(unclassified.deepClone.deepMerge(
|
|
42493
42503
|
unclassified.deepClone.deepClone(ly0default$1.myProps),
|
|
42494
42504
|
props.myProps
|