@movk/nuxt 1.4.1 → 1.5.0
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/README.en.md +308 -0
- package/README.md +4 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/AutoForm.d.vue.ts +1 -1
- package/dist/runtime/components/AutoForm.vue.d.ts +1 -1
- package/dist/runtime/components/ColorChooser.d.vue.ts +1 -1
- package/dist/runtime/components/ColorChooser.vue.d.ts +1 -1
- package/dist/runtime/components/DataTable.d.vue.ts +1 -1
- package/dist/runtime/components/DataTable.vue.d.ts +1 -1
- package/dist/runtime/components/DatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/DatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/PillGroup.d.vue.ts +1 -1
- package/dist/runtime/components/PillGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Popconfirm.d.vue.ts +1 -1
- package/dist/runtime/components/Popconfirm.vue.d.ts +1 -1
- package/dist/runtime/components/SearchForm.d.vue.ts +1 -1
- package/dist/runtime/components/SearchForm.vue.d.ts +1 -1
- package/dist/runtime/components/Tree.d.vue.ts +1 -1
- package/dist/runtime/components/Tree.vue +4 -3
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- package/dist/runtime/components/input/AsPhoneNumberInput.d.vue.ts +1 -1
- package/dist/runtime/components/input/AsPhoneNumberInput.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithCharacterLimit.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithCharacterLimit.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithClear.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithClear.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithCopy.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithCopy.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithFloatingLabel.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithFloatingLabel.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithPasswordToggle.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithPasswordToggle.vue.d.ts +1 -1
- package/dist/runtime/composables/useApiFetch.d.ts +4 -1
- package/dist/runtime/composables/useApiFetch.js +14 -2
- package/dist/runtime/composables/useTheme.js +3 -3
- package/dist/runtime/domains/api/deep-to-value.d.ts +9 -0
- package/dist/runtime/domains/api/deep-to-value.js +11 -0
- package/dist/runtime/domains/api/interceptors/compose.d.ts +24 -0
- package/dist/runtime/domains/api/interceptors/compose.js +18 -0
- package/dist/runtime/domains/auto-form/controls.d.ts +11 -90
- package/dist/runtime/domains/auto-form/controls.js +0 -2
- package/dist/runtime/domains/data-table/columns/resize.d.ts +4 -0
- package/dist/runtime/domains/data-table/columns/resize.js +134 -0
- package/dist/runtime/domains/data-table/columns/resolve-data-column.js +3 -46
- package/dist/runtime/domains/data-table/columns/resolve-special-columns.js +2 -1
- package/dist/runtime/domains/data-table/columns/style.d.ts +1 -0
- package/dist/runtime/domains/data-table/columns/style.js +22 -5
- package/dist/runtime/domains/data-table/components/Pagination.d.vue.ts +1 -1
- package/dist/runtime/domains/data-table/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/domains/theme/theme-icons.d.ts +9 -0
- package/dist/runtime/domains/theme/theme-icons.js +7 -0
- package/dist/runtime/domains/tree/components/TreeToolbar.vue +1 -1
- package/dist/runtime/plugins/api.factory.js +9 -3
- package/dist/runtime/plugins/theme.js +2 -2
- package/dist/runtime/types/auto-form/zod-factory.d.ts +20 -5
- package/dist/runtime/types/components/date-picker.d.ts +3 -0
- package/dist/runtime/types/components/index.d.ts +0 -1
- package/dist/runtime/types/components/tree.d.ts +1 -0
- package/dist/runtime/vue/plugins/theme.js +2 -2
- package/dist/shared/{nuxt.CXM2nhP4.mjs → nuxt.DJKBap-S.mjs} +0 -28
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +13 -13
- package/dist/runtime/components/StarRating.d.vue.ts +0 -52
- package/dist/runtime/components/StarRating.vue +0 -238
- package/dist/runtime/components/StarRating.vue.d.ts +0 -52
- package/dist/runtime/types/components/star-rating.d.ts +0 -55
- package/dist/runtime/types/components/star-rating.js +0 -0
package/README.en.md
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
[](https://nuxt.mhaibaraai.cn/)
|
|
2
|
+
|
|
3
|
+
English | [简体中文](./README.md)
|
|
4
|
+
|
|
5
|
+
> A UI engineering toolkit built on top of Nuxt UI — Schema-driven AutoForm (Zod v4), a full-featured DataTable, standalone components and Composables. Get the complete capability set in Nuxt 4, including API integration with authentication and progress tracking; its UI, forms, tables, and theming also work directly in plain Vue + Vite projects through a Vite plugin (the API integration domain is Nuxt-only).
|
|
6
|
+
|
|
7
|
+
[](https://nuxt.mhaibaraai.cn/mcp/deeplink)
|
|
8
|
+
[](https://nuxt.mhaibaraai.cn/mcp/deeplink?ide=vscode)
|
|
9
|
+
|
|
10
|
+
[](https://www.typescriptlang.org/)
|
|
11
|
+
[](https://nuxt.com/)
|
|
12
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
13
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
14
|
+
[![License][license-src]][license-href]
|
|
15
|
+
[![Nuxt UI][nuxt-ui-src]][nuxt-ui-href]
|
|
16
|
+
|
|
17
|
+
- 📖 [Online Documentation](https://nuxt.mhaibaraai.cn)
|
|
18
|
+
|
|
19
|
+
## ✨ Features
|
|
20
|
+
|
|
21
|
+
Movk Nuxt is a UI engineering toolkit built on top of Nuxt UI, offering two ways to use it: the complete capability set with API integration in **Nuxt 4**, or its UI layer in plain **Vue + Vite** projects through a **Vite plugin**. The supported frameworks for each capability are:
|
|
22
|
+
|
|
23
|
+
- **AutoForm — Schema-driven forms** (✅ Nuxt | ✅ Vue + Vite) - Built on Zod v4 with a "define-is-render" model: a single Schema declares the data structure, validation rules, and UI configuration at once, automatically generating a complete form interface.
|
|
24
|
+
- **DataTable — Data table** (✅ Nuxt | ✅ Vue + Vite) - Wraps TanStack Table, covering data columns, special columns (selection / index / expand / actions), tree-structured data, row interactions, appearance customization, pagination, and load-more.
|
|
25
|
+
- **Standalone component library** (✅ Nuxt | ✅ Vue + Vite) - General-purpose UI components such as DatePicker, PillGroup, SearchForm, Tree, WithCopy, and ThemePicker, usable on their own without AutoForm.
|
|
26
|
+
- **Theming and Composables** (✅ Nuxt | ✅ Vue + Vite) - Non-server composition functions such as useTheme (theme read/write and export), useMessageBox (imperative dialogs), and useDateFormatter (i18n dates).
|
|
27
|
+
- **API integration system** (✅ Nuxt | ❌ Vue + Vite) - The useApiFetch / useLazyApiFetch / useClientApiFetch trio plus useUploadWithProgress / useDownloadWithProgress, providing multi-endpoint support, automatic authentication, business status-code checks, data unwrapping, Toast notifications, and progress monitoring; **depends on the Nuxt server runtime and is available in Nuxt mode only**.
|
|
28
|
+
- **Type safety** - Full TypeScript type inference, from Schema to form data, with component prop callbacks and event handler types derivable via indexed access.
|
|
29
|
+
- **AI friendly** - Built-in MCP Server and llms.txt, so components, composables, and docs can be retrieved by AI agents.
|
|
30
|
+
|
|
31
|
+
## 🚀 Getting Started
|
|
32
|
+
|
|
33
|
+
### Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# pnpm
|
|
37
|
+
pnpm add @movk/nuxt @nuxt/ui zod
|
|
38
|
+
|
|
39
|
+
# yarn
|
|
40
|
+
yarn add @movk/nuxt @nuxt/ui zod
|
|
41
|
+
|
|
42
|
+
# npm
|
|
43
|
+
npm install @movk/nuxt @nuxt/ui zod
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Nuxt
|
|
47
|
+
|
|
48
|
+
Register the module in `nuxt.config.ts`:
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
export default defineNuxtConfig({
|
|
52
|
+
modules: ['@movk/nuxt'],
|
|
53
|
+
movk: {
|
|
54
|
+
prefix: 'M' // Component prefix, defaults to 'M'
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Vue / Vite
|
|
60
|
+
|
|
61
|
+
In a plain Vue + Vite project, use the UI layer (components, theming, AutoForm, DataTable, non-server Composables) through the Vite plugin + Vue plugin. **The API integration domain is not available in this mode.**
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pnpm add @movk/nuxt @nuxt/ui zod tailwindcss vue-router
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
// vite.config.ts
|
|
69
|
+
import { defineConfig } from 'vite'
|
|
70
|
+
import vue from '@vitejs/plugin-vue'
|
|
71
|
+
import movk from '@movk/nuxt/vite'
|
|
72
|
+
|
|
73
|
+
export default defineConfig({
|
|
74
|
+
plugins: [vue(), movk()]
|
|
75
|
+
})
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
// src/main.ts
|
|
80
|
+
import './assets/css/main.css'
|
|
81
|
+
import { createApp } from 'vue'
|
|
82
|
+
import { createRouter, createWebHistory } from 'vue-router'
|
|
83
|
+
import movk from '@movk/nuxt/vue-plugin'
|
|
84
|
+
import App from './App.vue'
|
|
85
|
+
|
|
86
|
+
const router = createRouter({ routes: [], history: createWebHistory() })
|
|
87
|
+
createApp(App).use(router).use(movk).mount('#app')
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
/* src/assets/css/main.css — chains Tailwind CSS + Nuxt UI + Movk theme */
|
|
92
|
+
@import "@movk/nuxt";
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Wrap the root component in `<UApp>` (required for Toast / Tooltip / useMessageBox). See [Online Docs · Vue / Vite](https://nuxt.mhaibaraai.cn/docs/getting-started/vue).
|
|
96
|
+
|
|
97
|
+
### Basic Example
|
|
98
|
+
|
|
99
|
+
Create a simple user registration form:
|
|
100
|
+
|
|
101
|
+
```vue
|
|
102
|
+
<script setup lang="ts">
|
|
103
|
+
import type { FormSubmitEvent } from '@nuxt/ui'
|
|
104
|
+
import type { z } from 'zod'
|
|
105
|
+
|
|
106
|
+
const { afz } = useAutoForm()
|
|
107
|
+
|
|
108
|
+
// Define the Schema
|
|
109
|
+
const schema = afz.object({
|
|
110
|
+
username: afz.string().min(3).meta({ label: 'Username' }),
|
|
111
|
+
email: afz.email().meta({ label: 'Email' }),
|
|
112
|
+
age: afz.number().min(18).meta({ label: 'Age' })
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
// Type inference
|
|
116
|
+
type Schema = z.output<typeof schema>
|
|
117
|
+
|
|
118
|
+
// Form state
|
|
119
|
+
const form = ref<Partial<Schema>>({})
|
|
120
|
+
|
|
121
|
+
// Submit handler
|
|
122
|
+
async function onSubmit(event: FormSubmitEvent<Schema>) {
|
|
123
|
+
console.log('Submitted data:', event.data)
|
|
124
|
+
}
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<template>
|
|
128
|
+
<MAutoForm :schema="schema" :state="form" @submit="onSubmit" />
|
|
129
|
+
</template>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## 📦 Core Features
|
|
133
|
+
|
|
134
|
+
### Standalone Components
|
|
135
|
+
|
|
136
|
+
High-quality, ready-to-use UI components across four categories: input enhancements, forms, feedback, and advanced interactions.
|
|
137
|
+
|
|
138
|
+
### DataTable - Full-featured Data Table
|
|
139
|
+
|
|
140
|
+
`MDataTable`, wrapping TanStack Table, driven by declarative column configuration:
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
import type { DataTableColumn } from '@movk/nuxt'
|
|
144
|
+
|
|
145
|
+
const columns: DataTableColumn<Person>[] = [
|
|
146
|
+
{ type: 'selection' }, // Special column: row selection
|
|
147
|
+
{ accessorKey: 'name', header: 'Name', sortable: true, pinable: true },
|
|
148
|
+
{ accessorKey: 'salary', header: 'Salary', sortable: true, truncate: true },
|
|
149
|
+
{ type: 'actions', actions: row => [{ label: 'Edit', onClick: () => edit(row) }] }
|
|
150
|
+
]
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Supports data columns (sorting / column pinning / column resize / truncate + Tooltip / visibility), special columns (selection / index / expand / actions / grouping), tree-structured data with cascading selection, row interactions (click / expand / context menu), appearance customization, client/server-side pagination, and load-more.
|
|
154
|
+
|
|
155
|
+
### AutoForm - Schema-driven Form System
|
|
156
|
+
|
|
157
|
+
A "define-is-render" form solution based on Zod Schemas:
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
const { afz } = useAutoForm()
|
|
161
|
+
|
|
162
|
+
const schema = afz.object({
|
|
163
|
+
// Basic types
|
|
164
|
+
username: afz.string().min(3),
|
|
165
|
+
age: afz.number().min(18),
|
|
166
|
+
isActive: afz.boolean(),
|
|
167
|
+
|
|
168
|
+
// Advanced types
|
|
169
|
+
email: afz.email(),
|
|
170
|
+
birthdate: afz.calendarDate(),
|
|
171
|
+
role: afz.enum(['admin', 'user']),
|
|
172
|
+
avatar: afz.file(),
|
|
173
|
+
|
|
174
|
+
// Nested objects
|
|
175
|
+
profile: afz.object({
|
|
176
|
+
bio: afz.string(),
|
|
177
|
+
website: afz.url()
|
|
178
|
+
}),
|
|
179
|
+
|
|
180
|
+
// Arrays
|
|
181
|
+
tags: afz.array(afz.string())
|
|
182
|
+
})
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Composables
|
|
186
|
+
|
|
187
|
+
#### useDateFormatter
|
|
188
|
+
|
|
189
|
+
A powerful tool for date formatting, parsing, and range handling:
|
|
190
|
+
|
|
191
|
+
```ts
|
|
192
|
+
const { format, parse, isDateValue, formatRange } = useDateFormatter()
|
|
193
|
+
|
|
194
|
+
// Format a date
|
|
195
|
+
const formatted = format(new Date(), 'iso') // "2024-01-01"
|
|
196
|
+
|
|
197
|
+
// Parse a date string
|
|
198
|
+
const date = parse('2024-01-01', 'iso')
|
|
199
|
+
|
|
200
|
+
// Format a date range
|
|
201
|
+
const range = formatRange({ start: date1, end: date2 }, 'iso')
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
#### useAutoForm
|
|
205
|
+
|
|
206
|
+
The core logic wrapper for AutoForm:
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
const { afz, defineControl, getAutoFormMetadata } = useAutoForm()
|
|
210
|
+
|
|
211
|
+
// Create a Schema
|
|
212
|
+
const schema = afz.object({
|
|
213
|
+
username: afz.string()
|
|
214
|
+
})
|
|
215
|
+
|
|
216
|
+
// Define a custom control
|
|
217
|
+
const customControl = defineControl({
|
|
218
|
+
component: MyCustomInput,
|
|
219
|
+
controlProps: { class: 'w-full' }
|
|
220
|
+
})
|
|
221
|
+
|
|
222
|
+
// Get field metadata
|
|
223
|
+
const meta = getAutoFormMetadata(schema)
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
#### useApiFetch
|
|
227
|
+
|
|
228
|
+
An API request wrapper built on Nuxt's useFetch:
|
|
229
|
+
|
|
230
|
+
```ts
|
|
231
|
+
// Basic usage
|
|
232
|
+
const { data, pending, error } = await useApiFetch<User[]>('/users')
|
|
233
|
+
|
|
234
|
+
// POST request
|
|
235
|
+
const { data } = await useApiFetch<User>('/users', {
|
|
236
|
+
method: 'POST',
|
|
237
|
+
body: { name: 'test' },
|
|
238
|
+
toast: { successMessage: 'Created successfully' }
|
|
239
|
+
})
|
|
240
|
+
|
|
241
|
+
// Use another endpoint
|
|
242
|
+
const { data } = await useApiFetch('/users', { endpoint: 'v2' })
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
#### useUploadWithProgress
|
|
246
|
+
|
|
247
|
+
File upload with progress monitoring:
|
|
248
|
+
|
|
249
|
+
```ts
|
|
250
|
+
const { progress, uploading, upload, abort } = useUploadWithProgress()
|
|
251
|
+
|
|
252
|
+
// Upload a file
|
|
253
|
+
await upload('/api/upload', file, {
|
|
254
|
+
fieldName: 'avatar',
|
|
255
|
+
onSuccess: (response) => console.log('Upload succeeded:', response)
|
|
256
|
+
})
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
#### useDownloadWithProgress
|
|
260
|
+
|
|
261
|
+
File download with progress monitoring:
|
|
262
|
+
|
|
263
|
+
```ts
|
|
264
|
+
const { progress, downloading, download, abort } = useDownloadWithProgress()
|
|
265
|
+
|
|
266
|
+
// Download a file
|
|
267
|
+
await download('/api/export/report', {
|
|
268
|
+
filename: 'report.pdf',
|
|
269
|
+
onSuccess: (filename) => console.log('Download complete:', filename)
|
|
270
|
+
})
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
## 🏗️ Architecture Layers
|
|
274
|
+
|
|
275
|
+
Movk Nuxt adopts a clear layered architecture:
|
|
276
|
+
|
|
277
|
+
- **Core Systems** - AutoForm (Schema-driven forms), DataTable (data table)
|
|
278
|
+
- **API System** - useApiFetch / useLazyApiFetch / useClientApiFetch, useUploadWithProgress, useDownloadWithProgress, providing a complete API request solution
|
|
279
|
+
- **Standalone Components** - Standalone UI components such as DatePicker, PillGroup, SearchForm, Tree, WithCopy, and ThemePicker
|
|
280
|
+
- **Composables** - General-purpose composition functions such as useDateFormatter, useTheme, useMessageBox, and useAutoForm
|
|
281
|
+
- **Foundation** - Built on [Nuxt UI](https://ui.nuxt.com), [Zod v4](https://zod.dev), [VueUse](https://vueuse.org), and [TanStack Table](https://tanstack.com/table)
|
|
282
|
+
|
|
283
|
+
## ⚡ Tech Stack
|
|
284
|
+
|
|
285
|
+
- [Nuxt 4](https://nuxt.com/) - The Intuitive Vue Framework
|
|
286
|
+
- [Nuxt UI](https://ui.nuxt.com/) - A UI Library for Modern Web Apps
|
|
287
|
+
- [Zod v4](https://zod.dev/) - TypeScript-first schema validation
|
|
288
|
+
- [TypeScript](https://www.typescriptlang.org/) - JavaScript with syntax for types
|
|
289
|
+
- [VueUse](https://vueuse.org/) - Collection of Vue Composition Utilities
|
|
290
|
+
- [Vitest](https://vitest.dev/) - Next Generation Testing Framework
|
|
291
|
+
|
|
292
|
+
## 📄 License
|
|
293
|
+
|
|
294
|
+
[MIT](./LICENSE) License © 2024-PRESENT [YiXuan](https://github.com/mhaibaraai)
|
|
295
|
+
|
|
296
|
+
<!-- Badges -->
|
|
297
|
+
|
|
298
|
+
[npm-version-src]: https://img.shields.io/npm/v/@movk/nuxt?style=flat&colorA=080f12&colorB=1fa669
|
|
299
|
+
[npm-version-href]: https://npmjs.com/package/@movk/nuxt
|
|
300
|
+
|
|
301
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@movk/nuxt?style=flat&colorA=080f12&colorB=1fa669
|
|
302
|
+
[npm-downloads-href]: https://npmjs.com/package/@movk/nuxt
|
|
303
|
+
|
|
304
|
+
[license-src]: https://img.shields.io/github/license/mhaibaraai/movk-nuxt.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
305
|
+
[license-href]: https://github.com/mhaibaraai/movk-nuxt/blob/main/LICENSE
|
|
306
|
+
|
|
307
|
+
[nuxt-ui-src]: https://img.shields.io/badge/Nuxt%20UI-4-00DC82?style=flat&colorA=080f12
|
|
308
|
+
[nuxt-ui-href]: https://ui.nuxt.com
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
[](https://nuxt.mhaibaraai.cn/)
|
|
2
2
|
|
|
3
|
+
简体中文 | [English](./README.en.md)
|
|
4
|
+
|
|
3
5
|
> 构建在 Nuxt UI 之上的 UI 工程套件 —— Schema 驱动的 AutoForm(Zod v4)、功能完备的 DataTable、独立组件与 Composables。在 Nuxt 4 中获得含认证与进度追踪的 API 集成在内的完整能力;其 UI、表单、表格与主题亦可经 Vite 插件直接用于纯 Vue + Vite 项目(API 集成域仅 Nuxt)。
|
|
4
6
|
|
|
5
7
|
[](https://nuxt.mhaibaraai.cn/mcp/deeplink)
|
|
@@ -20,7 +22,7 @@ Movk Nuxt 是构建在 Nuxt UI 之上的 UI 工程套件,提供两种使用方
|
|
|
20
22
|
|
|
21
23
|
- **AutoForm — Schema 驱动表单**(✅ Nuxt | ✅ Vue + Vite)- 基于 Zod v4 的「定义即渲染」,一份 Schema 同时声明数据结构、验证规则和 UI 配置,自动生成完整表单界面。
|
|
22
24
|
- **DataTable — 数据表格**(✅ Nuxt | ✅ Vue + Vite)- 基于 TanStack Table 封装,覆盖数据列、特殊列(选择/索引/展开/操作)、树形数据、行交互、外观定制、分页与加载更多。
|
|
23
|
-
- **独立组件库**(✅ Nuxt | ✅ Vue + Vite)- DatePicker、
|
|
25
|
+
- **独立组件库**(✅ Nuxt | ✅ Vue + Vite)- DatePicker、PillGroup、SearchForm、Tree、WithCopy、ThemePicker 等通用 UI 组件,无需依赖 AutoForm 即可独立使用。
|
|
24
26
|
- **主题与 Composables**(✅ Nuxt | ✅ Vue + Vite)- useTheme(主题读写与导出)、useMessageBox(命令式弹窗)、useDateFormatter(国际化日期)等非服务端组合式函数。
|
|
25
27
|
- **API 集成系统**(✅ Nuxt | ❌ Vue + Vite)- useApiFetch / useLazyApiFetch / useClientApiFetch 三件套 + useUploadWithProgress / useDownloadWithProgress,提供多端点、自动认证、业务状态码检查、数据解包、Toast 提示和进度监控;**依赖 Nuxt 服务端运行时,仅 Nuxt 模式可用**。
|
|
26
28
|
- **类型安全** - 完整的 TypeScript 类型推断,从 Schema 到表单数据,组件 prop 回调与事件处理类型可索引访问派生。
|
|
@@ -274,7 +276,7 @@ Movk Nuxt 采用清晰的分层架构:
|
|
|
274
276
|
|
|
275
277
|
- **Core Systems** - AutoForm(Schema 驱动表单)、DataTable(数据表格)
|
|
276
278
|
- **API System** - useApiFetch / useLazyApiFetch / useClientApiFetch、useUploadWithProgress、useDownloadWithProgress,提供完整的 API 请求方案
|
|
277
|
-
- **Standalone Components** - DatePicker、
|
|
279
|
+
- **Standalone Components** - DatePicker、PillGroup、SearchForm、Tree、WithCopy、ThemePicker 等独立 UI 组件
|
|
278
280
|
- **Composables** - useDateFormatter、useTheme、useMessageBox、useAutoForm 等通用组合式函数
|
|
279
281
|
- **Foundation** - 基于 [Nuxt UI](https://ui.nuxt.com)、[Zod v4](https://zod.dev)、[VueUse](https://vueuse.org)、[TanStack Table](https://tanstack.com/table)
|
|
280
282
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addPlugin, defineNuxtModule, createResolver, addComponentsDir, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
import defu, { defu as defu$1 } from 'defu';
|
|
3
|
-
import { U as UI_COMPONENTS, a as addTemplates } from './shared/nuxt.
|
|
3
|
+
import { U as UI_COMPONENTS, a as addTemplates } from './shared/nuxt.DJKBap-S.mjs';
|
|
4
4
|
import { getPackageJsonMetadata } from '../dist/runtime/utils/meta.js';
|
|
5
5
|
import { kebabCase } from 'scule';
|
|
6
6
|
import { updateSiteConfig } from 'nuxt-site-config/kit';
|
|
@@ -9,7 +9,7 @@ export * from '../dist/runtime/types/index.js';
|
|
|
9
9
|
import 'node:url';
|
|
10
10
|
|
|
11
11
|
const name = "@movk/nuxt";
|
|
12
|
-
const version = "1.
|
|
12
|
+
const version = "1.5.0";
|
|
13
13
|
|
|
14
14
|
function getDefaultApiConfig(apiConfig) {
|
|
15
15
|
const publicEndpoints = {};
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <S extends z.ZodObject, T extends boolean = true, N
|
|
|
20
20
|
slots: AutoFormSlots<N extends false ? Partial<InferInput<S>> : never>;
|
|
21
21
|
emit: (evt: "error", args_0: import("@nuxt/ui").FormErrorEvent) => void;
|
|
22
22
|
}>) => import("vue").VNode & {
|
|
23
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
23
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
24
24
|
};
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <S extends z.ZodObject, T extends boolean = true, N
|
|
|
20
20
|
slots: AutoFormSlots<N extends false ? Partial<InferInput<S>> : never>;
|
|
21
21
|
emit: (evt: "error", args_0: import("@nuxt/ui").FormErrorEvent) => void;
|
|
22
22
|
}>) => import("vue").VNode & {
|
|
23
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
23
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
24
24
|
};
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: <M extends "click" | "hover">(__VLS_props: NonNullab
|
|
|
25
25
|
slots: ColorChooserSlots;
|
|
26
26
|
emit: (((evt: "clear") => void) & ((evt: "change", value: string | undefined) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: string | undefined) => void) & ((evt: "update:open", open: boolean) => void) & ((evt: "format-change", format: ColorFormat) => void)) & ((event: "update:modelValue", value: string | undefined) => void);
|
|
27
27
|
}>) => import("vue").VNode & {
|
|
28
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
28
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: <M extends "click" | "hover">(__VLS_props: NonNullab
|
|
|
25
25
|
slots: ColorChooserSlots;
|
|
26
26
|
emit: (((evt: "clear") => void) & ((evt: "change", value: string | undefined) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: string | undefined) => void) & ((evt: "update:open", open: boolean) => void) & ((evt: "format-change", format: ColorFormat) => void)) & ((event: "update:modelValue", value: string | undefined) => void);
|
|
27
27
|
}>) => import("vue").VNode & {
|
|
28
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
28
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
|
|
|
46
46
|
slots: DataTableSlots<T>;
|
|
47
47
|
emit: ((event: "update:pagination", value: PaginationState | undefined) => void) & ((event: "update:columnVisibility", value: VisibilityState | undefined) => void) & ((event: "update:columnPinning", value: ColumnPinningState | undefined) => void) & ((event: "update:columnSizing", value: ColumnSizingState | undefined) => void) & ((event: "update:rowSelection", value: RowSelectionState | undefined) => void) & ((event: "update:rowPinning", value: RowPinningState) => void) & ((event: "update:sorting", value: SortingState) => void) & ((event: "update:expanded", value: ExpandedState | undefined) => void) & ((event: "update:columnVisibilityKeys", value: string[] | undefined) => void) & ((event: "update:columnVisibilityExcludeKeys", value: string[] | undefined) => void) & ((event: "update:rowSelectionKeys", value: string[] | undefined) => void) & ((event: "update:expandedKeys", value: string[] | undefined) => void);
|
|
48
48
|
}>) => import("vue").VNode & {
|
|
49
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
49
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
50
50
|
};
|
|
51
51
|
declare const _default: typeof __VLS_export;
|
|
52
52
|
export default _default;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
|
|
|
46
46
|
slots: DataTableSlots<T>;
|
|
47
47
|
emit: ((event: "update:pagination", value: PaginationState | undefined) => void) & ((event: "update:columnVisibility", value: VisibilityState | undefined) => void) & ((event: "update:columnPinning", value: ColumnPinningState | undefined) => void) & ((event: "update:columnSizing", value: ColumnSizingState | undefined) => void) & ((event: "update:rowSelection", value: RowSelectionState | undefined) => void) & ((event: "update:rowPinning", value: RowPinningState) => void) & ((event: "update:sorting", value: SortingState) => void) & ((event: "update:expanded", value: ExpandedState | undefined) => void) & ((event: "update:columnVisibilityKeys", value: string[] | undefined) => void) & ((event: "update:columnVisibilityExcludeKeys", value: string[] | undefined) => void) & ((event: "update:rowSelectionKeys", value: string[] | undefined) => void) & ((event: "update:expandedKeys", value: string[] | undefined) => void);
|
|
48
48
|
}>) => import("vue").VNode & {
|
|
49
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
49
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
50
50
|
};
|
|
51
51
|
declare const _default: typeof __VLS_export;
|
|
52
52
|
export default _default;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: <R extends boolean, M extends boolean, P extends "cl
|
|
|
25
25
|
slots: DatePickerSlots<P>;
|
|
26
26
|
emit: (((evt: "update:modelValue", value: FormattedValue<R, M, V>) => void) & ((evt: "update:placeholder", date: DateValue) => void) & ((evt: "update:validModelValue", date: import("reka-ui").DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void) & ((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((event: "update:modelValue", value: FormattedValue<R, M, V> | undefined) => void);
|
|
27
27
|
}>) => import("vue").VNode & {
|
|
28
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
28
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: <R extends boolean, M extends boolean, P extends "cl
|
|
|
25
25
|
slots: DatePickerSlots<P>;
|
|
26
26
|
emit: (((evt: "update:modelValue", value: FormattedValue<R, M, V>) => void) & ((evt: "update:placeholder", date: DateValue) => void) & ((evt: "update:validModelValue", date: import("reka-ui").DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void) & ((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((event: "update:modelValue", value: FormattedValue<R, M, V> | undefined) => void);
|
|
27
27
|
}>) => import("vue").VNode & {
|
|
28
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
28
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <T extends PillItem, VK extends GetItemKeys<T> | und
|
|
|
22
22
|
slots: PillGroupSlots<T, VK, M>;
|
|
23
23
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", value: GetModelValue<T, VK, M, undefined>) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "select", payload: import("../types").PillSelectPayload<T>) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M, undefined>) => void)) & ((event: "update:modelValue", value: GetModelValue<T, VK, M> | undefined) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <T extends PillItem, VK extends GetItemKeys<T> | und
|
|
|
22
22
|
slots: PillGroupSlots<T, VK, M>;
|
|
23
23
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", value: GetModelValue<T, VK, M, undefined>) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "select", payload: import("../types").PillSelectPayload<T>) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M, undefined>) => void)) & ((event: "update:modelValue", value: GetModelValue<T, VK, M> | undefined) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -19,7 +19,7 @@ declare const __VLS_export: <M extends "click" | "hover">(__VLS_props: NonNullab
|
|
|
19
19
|
slots: PopconfirmSlots<"click" | "hover">;
|
|
20
20
|
emit: ((evt: "error", error: unknown) => void) & ((evt: "cancel") => void) & ((evt: "confirm") => void);
|
|
21
21
|
}>) => import("vue").VNode & {
|
|
22
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
22
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -19,7 +19,7 @@ declare const __VLS_export: <M extends "click" | "hover">(__VLS_props: NonNullab
|
|
|
19
19
|
slots: PopconfirmSlots<"click" | "hover">;
|
|
20
20
|
emit: ((evt: "error", error: unknown) => void) & ((evt: "cancel") => void) & ((evt: "confirm") => void);
|
|
21
21
|
}>) => import("vue").VNode & {
|
|
22
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
22
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -32,7 +32,7 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
|
|
|
32
32
|
slots: SearchFormSlots<S>;
|
|
33
33
|
emit: (((evt: "error", event: import("@nuxt/ui").FormErrorEvent) => void) & ((evt: "clear", state: Partial<InferInput<S>>) => void) & ((evt: "reset", state: Partial<InferInput<S>>) => void) & ((evt: "expand", expanded: boolean) => void) & ((evt: "update:expanded", expanded: boolean) => void)) & (((event: "update:modelValue", value: Partial<InferInput<S>>) => void) & ((event: "update:expanded", value: boolean | undefined) => void));
|
|
34
34
|
}>) => import("vue").VNode & {
|
|
35
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
35
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
36
36
|
};
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
38
38
|
export default _default;
|
|
@@ -32,7 +32,7 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
|
|
|
32
32
|
slots: SearchFormSlots<S>;
|
|
33
33
|
emit: (((evt: "error", event: import("@nuxt/ui").FormErrorEvent) => void) & ((evt: "clear", state: Partial<InferInput<S>>) => void) & ((evt: "reset", state: Partial<InferInput<S>>) => void) & ((evt: "expand", expanded: boolean) => void) & ((evt: "update:expanded", expanded: boolean) => void)) & (((event: "update:modelValue", value: Partial<InferInput<S>>) => void) & ((event: "update:expanded", value: boolean | undefined) => void));
|
|
34
34
|
}>) => import("vue").VNode & {
|
|
35
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
35
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
36
36
|
};
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
38
38
|
export default _default;
|
|
@@ -33,7 +33,7 @@ declare const __VLS_export: <T extends TreeItem[] = TreeItem[], M extends boolea
|
|
|
33
33
|
selection: import("../types").TreeSelectionResult<T[number]>;
|
|
34
34
|
}) => void) & ((evt: "update:modelValue", val: M extends true ? T[number][] : T[number]) => void) & ((evt: "update:expanded", val: string[]) => void) & ((evt: "update:search", value: string) => void)) & (((event: "update:modelValue", value: (M extends true ? T[number][] : T[number]) | undefined) => void) & ((event: "update:expanded", value: string[]) => void) & ((event: "update:search", value: string) => void) & ((event: "update:selectedKeys", value: string[] | undefined) => void));
|
|
35
35
|
}>) => import("vue").VNode & {
|
|
36
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
36
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
37
37
|
};
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -38,7 +38,8 @@ const props = defineProps({
|
|
|
38
38
|
loadChildren: { type: Function, required: false },
|
|
39
39
|
toolbar: { type: Boolean, required: false },
|
|
40
40
|
checkable: { type: Boolean, required: false },
|
|
41
|
-
ui: { type: Object, required: false }
|
|
41
|
+
ui: { type: Object, required: false },
|
|
42
|
+
class: { type: null, required: false }
|
|
42
43
|
});
|
|
43
44
|
const emit = defineEmits(["update:modelValue", "update:expanded", "update:search", "change"]);
|
|
44
45
|
defineSlots();
|
|
@@ -275,7 +276,7 @@ defineExpose({
|
|
|
275
276
|
</script>
|
|
276
277
|
|
|
277
278
|
<template>
|
|
278
|
-
<div :class="extraUi.container">
|
|
279
|
+
<div :class="extraUi.container" data-slot="container">
|
|
279
280
|
<slot
|
|
280
281
|
v-if="props.toolbar || props.searchable || slots.toolbar"
|
|
281
282
|
name="toolbar"
|
|
@@ -314,7 +315,7 @@ defineExpose({
|
|
|
314
315
|
</TreeToolbar>
|
|
315
316
|
</slot>
|
|
316
317
|
|
|
317
|
-
<div v-if="isEmpty" :class="extraUi.empty">
|
|
318
|
+
<div v-if="isEmpty" :class="extraUi.empty" data-slot="empty">
|
|
318
319
|
<slot name="empty">
|
|
319
320
|
无匹配结果
|
|
320
321
|
</slot>
|
|
@@ -33,7 +33,7 @@ declare const __VLS_export: <T extends TreeItem[] = TreeItem[], M extends boolea
|
|
|
33
33
|
selection: import("../types").TreeSelectionResult<T[number]>;
|
|
34
34
|
}) => void) & ((evt: "update:modelValue", val: M extends true ? T[number][] : T[number]) => void) & ((evt: "update:expanded", val: string[]) => void) & ((evt: "update:search", value: string) => void)) & (((event: "update:modelValue", value: (M extends true ? T[number][] : T[number]) | undefined) => void) & ((event: "update:expanded", value: string[]) => void) & ((event: "update:search", value: string) => void) & ((event: "update:selectedKeys", value: string[] | undefined) => void));
|
|
35
35
|
}>) => import("vue").VNode & {
|
|
36
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
36
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
37
37
|
};
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
21
21
|
slots: OmitByKey<InputSlots, "leading">;
|
|
22
22
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
23
23
|
}>) => import("vue").VNode & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
25
|
};
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
21
21
|
slots: OmitByKey<InputSlots, "leading">;
|
|
22
22
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
23
23
|
}>) => import("vue").VNode & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
25
|
};
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
21
21
|
slots: OmitByKey<InputSlots, "trailing">;
|
|
22
22
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
23
23
|
}>) => import("vue").VNode & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
25
|
};
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
21
21
|
slots: OmitByKey<InputSlots, "trailing">;
|
|
22
22
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
23
23
|
}>) => import("vue").VNode & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
25
|
};
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
22
22
|
slots: OmitByKey<InputSlots, "trailing">;
|
|
23
23
|
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
22
22
|
slots: OmitByKey<InputSlots, "trailing">;
|
|
23
23
|
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
|
|
|
22
22
|
slots: OmitByKey<InputSlots, "trailing">;
|
|
23
23
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|