@yoooloo42/joker 1.0.158 → 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 CHANGED
@@ -22642,6 +22642,7 @@ const refresh = async _ref => {
22642
22642
  scopeThis,
22643
22643
  message
22644
22644
  } = _ref;
22645
+ scopeThis.tableProps.table.loading.visible = true;
22645
22646
  const result = await ly0request$1.storpro({
22646
22647
  storproName: scopeThis.storpro.refresh,
22647
22648
  data: {
@@ -22651,6 +22652,7 @@ const refresh = async _ref => {
22651
22652
  page: scopeThis.query && scopeThis.query.currentPage ? scopeThis.query.currentPage : 1
22652
22653
  }
22653
22654
  });
22655
+ scopeThis.tableProps.table.loading.visible = false;
22654
22656
  if (result.code === 0) {
22655
22657
  unclassified.deepClone.deepMerge(scopeThis.tableData, {
22656
22658
  data: result.data,
@@ -42349,19 +42351,19 @@ return (_ctx, _cache) => {
42349
42351
  [_directive_loading, vue.unref(tableProps_box).table.loading.visible],
42350
42352
  [
42351
42353
  _directive_loading,
42352
- vue.unref(tableProps_box).table.loading.visible ? vue.unref(tableProps_box).table.loading.text : '',
42354
+ vue.unref(tableProps_box).table.loading.text,
42353
42355
  void 0,
42354
42356
  { text: true }
42355
42357
  ],
42356
42358
  [
42357
42359
  _directive_loading,
42358
- vue.unref(tableProps_box).table.loading.visible ? vue.unref(tableProps_box).table.loading.spinner : '',
42360
+ vue.unref(tableProps_box).table.loading.spinner,
42359
42361
  void 0,
42360
42362
  { spinner: true }
42361
42363
  ],
42362
42364
  [
42363
42365
  _directive_loading,
42364
- vue.unref(tableProps_box).table.loading.visible ? vue.unref(tableProps_box).table.loading.background : '',
42366
+ vue.unref(tableProps_box).table.loading.background,
42365
42367
  void 0,
42366
42368
  { background: true }
42367
42369
  ]
@@ -42459,17 +42461,19 @@ var ly0default$1 = {
42459
42461
  excel: {
42460
42462
  fileName: "table-to-excel.xlsx" // 另存excel文件名}
42461
42463
  }
42462
- },
42463
- query: {
42464
- // 查询体
42465
- sort: {
42466
- label: "",
42467
- order: ""
42468
- },
42469
- pageSize: 10,
42470
- currentPage: 1
42471
42464
  }
42472
- }};
42465
+ },
42466
+ modelValue: {
42467
+ data: [],
42468
+ total: 0,
42469
+ sort: {
42470
+ label: "",
42471
+ order: ""
42472
+ },
42473
+ pageSize: 10,
42474
+ currentPage: 1
42475
+ }
42476
+ };
42473
42477
 
42474
42478
  var script$c = {
42475
42479
  __name: 'Index',
@@ -42492,7 +42496,13 @@ var script$c = {
42492
42496
  const props = __props;
42493
42497
 
42494
42498
  // 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
42495
- let tableData_box = vue.reactive(props.modelValue);
42499
+ let tableData_box = vue.reactive(unclassified.deepClone.deepMerge(props.modelValue, {
42500
+ data: props.modelValue.data ?? ly0default$1.modelValue.data,
42501
+ total: props.modelValue.total ?? ly0default$1.modelValue.total,
42502
+ sort: props.modelValue.sort ?? ly0default$1.modelValue.sort,
42503
+ pageSize: props.modelValue.pageSize ?? ly0default$1.modelValue.pageSize,
42504
+ currentPage: props.modelValue.currentPage ?? ly0default$1.modelValue.currentPage,
42505
+ }));
42496
42506
  const tableProps_box = vue.reactive(unclassified.deepClone.deepMerge(
42497
42507
  unclassified.deepClone.deepClone(ly0default$1.myProps),
42498
42508
  props.myProps