@ithinkdt/ui 4.0.0-34 → 4.0.0-36

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/page.jsx +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.0.0-34",
3
+ "version": "4.0.0-36",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",
package/src/page.jsx CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  NButton, NCheckbox, NColorPicker, NDatePicker, NDrawer, NDrawerContent, NFlex, NInput,
5
5
  NInputNumber, NModal, NScrollbar, NSelect, NText, NUpload, useMessage,
6
6
  } from 'ithinkdt-ui'
7
- import { computed, defineComponent, h, mergeProps, shallowRef, unref } from 'vue'
7
+ import { computed, defineComponent, h, mergeProps, ref, shallowRef, unref } from 'vue'
8
8
 
9
9
  import { useDict, useDictMap } from '@ithinkdt/common/dict'
10
10
 
@@ -406,7 +406,7 @@ export function createPageFormHelper({
406
406
  return {
407
407
  renderer,
408
408
  beforeSubmit: async () => {
409
- await inst?.submit()
409
+ await inst?.value?.submit()
410
410
  await until(fileList).toMatch(list => list.every(file => !['pending', 'uploading'].includes(file.status)))
411
411
  if (fileList.value.some(file => file.status === 'error')) {
412
412
  return SimpleUpload.t('common.page.form.validate.fileErrorMessage')