@yoooloo42/joker 1.0.158 → 1.0.160

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.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,
@@ -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.visible ? unref(tableProps_box).table.loading.text : '',
42350
+ unref(tableProps_box).table.loading.text,
42349
42351
  void 0,
42350
42352
  { text: true }
42351
42353
  ],
42352
42354
  [
42353
42355
  _directive_loading,
42354
- unref(tableProps_box).table.loading.visible ? unref(tableProps_box).table.loading.spinner : '',
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.visible ? unref(tableProps_box).table.loading.background : '',
42362
+ unref(tableProps_box).table.loading.background,
42361
42363
  void 0,
42362
42364
  { background: true }
42363
42365
  ]
@@ -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,11 +42492,8 @@ var script$c = {
42488
42492
  const props = __props;
42489
42493
 
42490
42494
  // 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
42491
- let tableData_box = reactive(props.modelValue);
42492
- const tableProps_box = reactive(unclassified.deepClone.deepMerge(
42493
- unclassified.deepClone.deepClone(ly0default$1.myProps),
42494
- props.myProps
42495
- ));
42495
+ let tableData_box = reactive(unclassified.deepClone.deepMerge(props.modelValue, ly0default$1.modelValue));
42496
+ const tableProps_box = reactive(unclassified.deepClone.deepMerge(props.myProps, ly0default$1.myProps));
42496
42497
 
42497
42498
  const scopeThis_box = reactive(props.scopeThis);
42498
42499