hy-dispatch-ui-v3 0.2.52 → 0.2.53

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.
@@ -159,7 +159,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
159
159
  async function onSubmitHandler() {
160
160
  const res = await batchTableFormRef.value.validate();
161
161
  if (props.uploadType === "custom") {
162
- return { ...res, result: res.total === res.success };
162
+ const dataSource = batchTableFormRef.value.getTableDataSource();
163
+ onTableSubmitHandler({
164
+ ...res,
165
+ result: res.total === res.success,
166
+ dataSource
167
+ });
163
168
  } else {
164
169
  batchTableFormRef.value.submitDataSource();
165
170
  }
@@ -297,6 +297,7 @@ const useAppTreeWrapper = (hy) => {
297
297
  hy.disableSelectionMap.value = map;
298
298
  }
299
299
  function refreshData() {
300
+ hy.loading.value = true;
300
301
  emits("on-refreshData");
301
302
  }
302
303
  function setRenderStatus(data) {
@@ -191,7 +191,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
191
191
  singleRemovalFn,
192
192
  setCheckedKeys,
193
193
  setChecked,
194
- getSelectedDataList
194
+ getSelectedDataList,
195
+ refreshData
195
196
  });
196
197
  return (_ctx, _cache) => {
197
198
  const _directive_loading = resolveDirective("loading");
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.51";
1
+ const version = "0.2.52";
2
2
 
3
3
  export { version };
@@ -163,7 +163,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
163
163
  async function onSubmitHandler() {
164
164
  const res = await batchTableFormRef.value.validate();
165
165
  if (props.uploadType === "custom") {
166
- return { ...res, result: res.total === res.success };
166
+ const dataSource = batchTableFormRef.value.getTableDataSource();
167
+ onTableSubmitHandler({
168
+ ...res,
169
+ result: res.total === res.success,
170
+ dataSource
171
+ });
167
172
  } else {
168
173
  batchTableFormRef.value.submitDataSource();
169
174
  }
@@ -299,6 +299,7 @@ const useAppTreeWrapper = (hy) => {
299
299
  hy.disableSelectionMap.value = map;
300
300
  }
301
301
  function refreshData() {
302
+ hy.loading.value = true;
302
303
  emits("on-refreshData");
303
304
  }
304
305
  function setRenderStatus(data) {
@@ -195,7 +195,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
195
195
  singleRemovalFn,
196
196
  setCheckedKeys,
197
197
  setChecked,
198
- getSelectedDataList
198
+ getSelectedDataList,
199
+ refreshData
199
200
  });
200
201
  return (_ctx, _cache) => {
201
202
  const _directive_loading = vue.resolveDirective("loading");
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.2.51";
3
+ const version = "0.2.52";
4
4
 
5
5
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-dispatch-ui-v3",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "scripts": {