Update API doc

pull/7366/head
GitHub Actions Bot 2025-03-04 07:05:22 +00:00
parent c0441ef4ea
commit d55109551c
10 changed files with 261 additions and 292 deletions

View File

@ -8247,7 +8247,7 @@
"name": "iconPos",
"optional": true,
"readonly": false,
"type": "\"left\" | \"right\" | \"top\" | \"bottom\"",
"type": "HintedString<\"left\" | \"right\" | \"top\" | \"bottom\">",
"default": "left",
"description": "Position of the icon."
},
@ -8367,7 +8367,7 @@
"name": "size",
"optional": true,
"readonly": false,
"type": "\"small\" | \"large\"",
"type": "HintedString<\"small\" | \"large\">",
"default": "",
"description": "Defines the size of the button."
},
@ -8375,7 +8375,7 @@
"name": "variant",
"optional": true,
"readonly": false,
"type": "\"outlined\" | \"text\" | \"link\"",
"type": "HintedString<\"outlined\" | \"text\" | \"link\">",
"default": "undefined",
"description": "Specifies the variant of the component."
},

View File

@ -23,6 +23,7 @@ My new Nuxt module for doing amazing things.
## Features
<!-- Highlight some of the features your module provide here -->
- ⛰ &nbsp;Foo
- 🚠 &nbsp;Bar
- 🌲 &nbsp;Baz
@ -37,7 +38,6 @@ npx nuxi module add my-module
That's it! You can now use My Module in your Nuxt app ✨
## Contribution
<details>
@ -69,16 +69,13 @@ That's it! You can now use My Module in your Nuxt app ✨
</details>
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
[npm-version-href]: https://npmjs.com/package/my-module
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
[npm-downloads-href]: https://npm.chart.dev/my-module
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
[license-href]: https://npmjs.com/package/my-module
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com

View File

@ -1,15 +1,15 @@
import { fileURLToPath } from 'node:url'
import { describe, it, expect } from 'vitest'
import { setup, $fetch } from '@nuxt/test-utils/e2e'
import { fileURLToPath } from 'node:url';
import { describe, it, expect } from 'vitest';
import { setup, $fetch } from '@nuxt/test-utils/e2e';
describe('ssr', async () => {
await setup({
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)),
})
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url))
});
it('renders the index page', async () => {
// Get response to a server-rendered page with `$fetch`.
const html = await $fetch('/')
expect(html).toContain('<div>basic</div>')
})
})
const html = await $fetch('/');
expect(html).toContain('<div>basic</div>');
});
});

View File

@ -1,7 +1,5 @@
import MyModule from '../../../src/module'
import MyModule from '../../../src/module';
export default defineNuxtConfig({
modules: [
MyModule,
],
})
modules: [MyModule]
});

File diff suppressed because it is too large Load Diff