@ithinkdt/ui 4.0.0-33 → 4.0.0-34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.0.0-33",
3
+ "version": "4.0.0-34",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",
@@ -63,7 +63,7 @@
63
63
  "sortablejs": "^1.15.6",
64
64
  "@types/sortablejs": "^1.15.8",
65
65
  "nanoid": "^5.1.6",
66
- "@ithinkdt/common": "^4.0.0-33"
66
+ "@ithinkdt/common": "^4.0.0-34"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@ithinkdt/page": ">=4.0",
@@ -1,4 +1,4 @@
1
- import { debouncedWatch, useCurrentElement, useElementSize } from '@vueuse/core'
1
+ import { useCurrentElement, useElementSize, watchDebounced } from '@vueuse/core'
2
2
  import { NButton, NFlex, NForm, NFormItem, NGi, NGrid, NIcon, NText, NTooltip, formProps } from 'ithinkdt-ui'
3
3
  import { defineComponent, ref, toRaw, toValue } from 'vue'
4
4
 
@@ -59,7 +59,7 @@ export const DataForm = /* @__PURE__ */ defineComponent({
59
59
 
60
60
  const cols = ref()
61
61
  const { width } = useElementSize(useCurrentElement())
62
- debouncedWatch([gridRef, width], () => {
62
+ watchDebounced([gridRef, width], () => {
63
63
  cols.value = undefined
64
64
  setTimeout(() => {
65
65
  cols.value = gridRef.value?.responsiveCols || undefined
@@ -1,4 +1,4 @@
1
- import { asyncComputed } from '@vueuse/core'
1
+ import { computedAsync } from '@vueuse/core'
2
2
  import { NText } from 'ithinkdt-ui'
3
3
  import { defineComponent, inject, unref } from 'vue'
4
4
 
@@ -23,7 +23,7 @@ export const AppLogo = /* @__PURE__ */ defineComponent({
23
23
  },
24
24
  },
25
25
  setup(props, { slots }) {
26
- const src = asyncComputed(() => (typeof props.src === 'function' ? props.src() : props.src))
26
+ const src = computedAsync(() => (typeof props.src === 'function' ? props.src() : props.src))
27
27
  const collapsed2 = inject(COLLAPSED_INJECTION_KEY, false)
28
28
  return () => {
29
29
  let { name, collapsed, center, link } = props