@yoooloo42/joker 1.0.155 → 1.0.158
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 +9 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -22
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22636,7 +22636,6 @@ const ly0default$4 = {
|
|
|
22636
22636
|
const refresh = async _ref => {
|
|
22637
22637
|
let {
|
|
22638
22638
|
scopeThis,
|
|
22639
|
-
tableData,
|
|
22640
22639
|
message
|
|
22641
22640
|
} = _ref;
|
|
22642
22641
|
const result = await ly0request.storpro({
|
|
@@ -22649,10 +22648,10 @@ const refresh = async _ref => {
|
|
|
22649
22648
|
}
|
|
22650
22649
|
});
|
|
22651
22650
|
if (result.code === 0) {
|
|
22652
|
-
tableData
|
|
22651
|
+
unclassified.deepClone.deepMerge(scopeThis.tableData, {
|
|
22653
22652
|
data: result.data,
|
|
22654
22653
|
total: result.total
|
|
22655
|
-
};
|
|
22654
|
+
});
|
|
22656
22655
|
if (!!message) {
|
|
22657
22656
|
ElMessage('数据已刷新');
|
|
22658
22657
|
}
|
|
@@ -41996,12 +41995,12 @@ const hdl = {
|
|
|
41996
41995
|
},
|
|
41997
41996
|
pageSizeChange(pageSize) {
|
|
41998
41997
|
// 重新分页
|
|
41999
|
-
|
|
42000
|
-
|
|
41998
|
+
tableData_box.pageSize = pageSize;
|
|
41999
|
+
tableData_box.currentPage = 1;
|
|
42001
42000
|
},
|
|
42002
42001
|
currentPageChange(currentPage) {
|
|
42003
42002
|
// 修改当前页号
|
|
42004
|
-
|
|
42003
|
+
tableData_box.currentPage = currentPage;
|
|
42005
42004
|
}
|
|
42006
42005
|
};
|
|
42007
42006
|
|
|
@@ -42366,9 +42365,9 @@ return (_ctx, _cache) => {
|
|
|
42366
42365
|
createCommentVNode(" 分页 "),
|
|
42367
42366
|
createVNode(_component_el_pagination, {
|
|
42368
42367
|
total: unref(tableData_box).total,
|
|
42369
|
-
"page-size": unref(
|
|
42370
|
-
"page-sizes": [unref(
|
|
42371
|
-
"current-page": unref(
|
|
42368
|
+
"page-size": unref(tableData_box).pageSize,
|
|
42369
|
+
"page-sizes": [unref(tableData_box).pageSize],
|
|
42370
|
+
"current-page": unref(tableData_box).currentPage,
|
|
42372
42371
|
style: normalizeStyle(style.pagination),
|
|
42373
42372
|
onSizeChange: hdl.pageSizeChange,
|
|
42374
42373
|
onCurrentChange: hdl.currentPageChange,
|
|
@@ -42489,24 +42488,12 @@ var script$c = {
|
|
|
42489
42488
|
const props = __props;
|
|
42490
42489
|
|
|
42491
42490
|
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
42492
|
-
let tableData_box = props.modelValue;
|
|
42491
|
+
let tableData_box = reactive(props.modelValue);
|
|
42493
42492
|
const tableProps_box = reactive(unclassified.deepClone.deepMerge(
|
|
42494
42493
|
unclassified.deepClone.deepClone(ly0default$1.myProps),
|
|
42495
42494
|
props.myProps
|
|
42496
42495
|
));
|
|
42497
42496
|
|
|
42498
|
-
let a = reactive(props.modelValue);
|
|
42499
|
-
watch(a, function (newVal, oldVal) {
|
|
42500
|
-
|
|
42501
|
-
console.log('测试 222', newVal);
|
|
42502
|
-
|
|
42503
|
-
});
|
|
42504
|
-
watch(tableData_box, function (newVal, oldVal) {
|
|
42505
|
-
|
|
42506
|
-
console.log('测试 333', newVal);
|
|
42507
|
-
|
|
42508
|
-
});
|
|
42509
|
-
|
|
42510
42497
|
const scopeThis_box = reactive(props.scopeThis);
|
|
42511
42498
|
|
|
42512
42499
|
return (_ctx, _cache) => {
|