@xizs/nuxt-antui 0.0.35 → 0.0.37

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.
@@ -10,6 +10,12 @@ export const Drawer = (el) => {
10
10
  console.log('aaaaaa')
11
11
  control.close = () => {
12
12
  open.value = false
13
+ setTimeout(() => {
14
+ render(null, container) // 卸载组件
15
+ if (container.parentNode) {
16
+ container.parentNode.removeChild(container) // 移除 DOM
17
+ }
18
+ }, 1000);
13
19
  }
14
20
  return () => h(el, {
15
21
  open: open.value, // 等价于 v-model:open
package/nuxt.config.ts CHANGED
@@ -2,7 +2,6 @@ import tailwindcss from '@tailwindcss/vite'
2
2
  import { fileURLToPath } from 'url'
3
3
  import { dirname, join } from 'path'
4
4
  const currentDir = dirname(fileURLToPath(import.meta.url))
5
- console.log(currentDir)
6
5
 
7
6
  // https://nuxt.com/docs/api/configuration/nuxt-config
8
7
  export default defineNuxtConfig({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xizs/nuxt-antui",
3
3
  "type": "module",
4
- "version": "0.0.35",
4
+ "version": "0.0.37",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",