@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.cjs.js
CHANGED
|
@@ -22640,7 +22640,6 @@ const ly0default$4 = {
|
|
|
22640
22640
|
const refresh = async _ref => {
|
|
22641
22641
|
let {
|
|
22642
22642
|
scopeThis,
|
|
22643
|
-
tableData,
|
|
22644
22643
|
message
|
|
22645
22644
|
} = _ref;
|
|
22646
22645
|
const result = await ly0request$1.storpro({
|
|
@@ -22653,10 +22652,10 @@ const refresh = async _ref => {
|
|
|
22653
22652
|
}
|
|
22654
22653
|
});
|
|
22655
22654
|
if (result.code === 0) {
|
|
22656
|
-
tableData
|
|
22655
|
+
unclassified.deepClone.deepMerge(scopeThis.tableData, {
|
|
22657
22656
|
data: result.data,
|
|
22658
22657
|
total: result.total
|
|
22659
|
-
};
|
|
22658
|
+
});
|
|
22660
22659
|
if (!!message) {
|
|
22661
22660
|
elementPlus.ElMessage('数据已刷新');
|
|
22662
22661
|
}
|
|
@@ -42000,12 +41999,12 @@ const hdl = {
|
|
|
42000
41999
|
},
|
|
42001
42000
|
pageSizeChange(pageSize) {
|
|
42002
42001
|
// 重新分页
|
|
42003
|
-
|
|
42004
|
-
|
|
42002
|
+
tableData_box.pageSize = pageSize;
|
|
42003
|
+
tableData_box.currentPage = 1;
|
|
42005
42004
|
},
|
|
42006
42005
|
currentPageChange(currentPage) {
|
|
42007
42006
|
// 修改当前页号
|
|
42008
|
-
|
|
42007
|
+
tableData_box.currentPage = currentPage;
|
|
42009
42008
|
}
|
|
42010
42009
|
};
|
|
42011
42010
|
|
|
@@ -42370,9 +42369,9 @@ return (_ctx, _cache) => {
|
|
|
42370
42369
|
vue.createCommentVNode(" 分页 "),
|
|
42371
42370
|
vue.createVNode(_component_el_pagination, {
|
|
42372
42371
|
total: vue.unref(tableData_box).total,
|
|
42373
|
-
"page-size": vue.unref(
|
|
42374
|
-
"page-sizes": [vue.unref(
|
|
42375
|
-
"current-page": vue.unref(
|
|
42372
|
+
"page-size": vue.unref(tableData_box).pageSize,
|
|
42373
|
+
"page-sizes": [vue.unref(tableData_box).pageSize],
|
|
42374
|
+
"current-page": vue.unref(tableData_box).currentPage,
|
|
42376
42375
|
style: vue.normalizeStyle(style.pagination),
|
|
42377
42376
|
onSizeChange: hdl.pageSizeChange,
|
|
42378
42377
|
onCurrentChange: hdl.currentPageChange,
|
|
@@ -42493,24 +42492,12 @@ var script$c = {
|
|
|
42493
42492
|
const props = __props;
|
|
42494
42493
|
|
|
42495
42494
|
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
42496
|
-
let tableData_box = props.modelValue;
|
|
42495
|
+
let tableData_box = vue.reactive(props.modelValue);
|
|
42497
42496
|
const tableProps_box = vue.reactive(unclassified.deepClone.deepMerge(
|
|
42498
42497
|
unclassified.deepClone.deepClone(ly0default$1.myProps),
|
|
42499
42498
|
props.myProps
|
|
42500
42499
|
));
|
|
42501
42500
|
|
|
42502
|
-
let a = vue.reactive(props.modelValue);
|
|
42503
|
-
vue.watch(a, function (newVal, oldVal) {
|
|
42504
|
-
|
|
42505
|
-
console.log('测试 222', newVal);
|
|
42506
|
-
|
|
42507
|
-
});
|
|
42508
|
-
vue.watch(tableData_box, function (newVal, oldVal) {
|
|
42509
|
-
|
|
42510
|
-
console.log('测试 333', newVal);
|
|
42511
|
-
|
|
42512
|
-
});
|
|
42513
|
-
|
|
42514
42501
|
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
42515
42502
|
|
|
42516
42503
|
return (_ctx, _cache) => {
|