@fastkit/vui 0.16.9 → 0.16.11
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/dist/vui.d.ts +29 -25
- package/dist/vui.mjs +10 -2
- package/dist/vui.mjs.map +1 -1
- package/package.json +4 -4
- package/src/plugin.tsx +14 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.11",
|
|
4
4
|
"description": "A simple, extensible UI kit for Vue applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fastkit",
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"@fastkit/rules": "0.13.1",
|
|
55
55
|
"@fastkit/stylebase": "0.13.0",
|
|
56
56
|
"@fastkit/tiny-logger": "0.13.1",
|
|
57
|
-
"@fastkit/vue-action": "0.2.
|
|
57
|
+
"@fastkit/vue-action": "0.2.3",
|
|
58
58
|
"@fastkit/vue-app-layout": "0.14.2",
|
|
59
59
|
"@fastkit/vue-body-scroll-lock": "0.1.3",
|
|
60
60
|
"@fastkit/vue-click-outside": "0.1.3",
|
|
61
61
|
"@fastkit/vue-color-scheme": "0.14.2",
|
|
62
|
-
"@fastkit/vue-form-control": "0.15.
|
|
62
|
+
"@fastkit/vue-form-control": "0.15.4",
|
|
63
63
|
"@fastkit/vue-keyboard": "0.1.1",
|
|
64
64
|
"@fastkit/vue-loading": "0.14.3",
|
|
65
65
|
"@fastkit/vue-location": "0.1.3",
|
|
66
66
|
"@fastkit/vue-media-match": "0.13.7",
|
|
67
67
|
"@fastkit/vue-resize": "0.1.3",
|
|
68
68
|
"@fastkit/vue-scroller": "0.14.2",
|
|
69
|
-
"@fastkit/vue-stack": "0.15.
|
|
69
|
+
"@fastkit/vue-stack": "0.15.9",
|
|
70
70
|
"@fastkit/vue-transitions": "0.1.4",
|
|
71
71
|
"@fastkit/vue-utils": "0.14.1"
|
|
72
72
|
},
|
package/src/plugin.tsx
CHANGED
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
installVueStackPlugin,
|
|
11
11
|
VueStackServiceOptions,
|
|
12
12
|
} from '@fastkit/vue-stack';
|
|
13
|
+
import {
|
|
14
|
+
installVueFormPlugin,
|
|
15
|
+
VueFormServiceOptions,
|
|
16
|
+
} from '@fastkit/vue-form-control';
|
|
13
17
|
import { installBodyScrollLockDirective } from '@fastkit/vue-body-scroll-lock';
|
|
14
18
|
import { installClickOutsideDirective } from '@fastkit/vue-click-outside';
|
|
15
19
|
import { installResizeDirective } from '@fastkit/vue-resize';
|
|
@@ -22,10 +26,12 @@ export interface VuiPluginStackOptions extends VueStackServiceOptions {}
|
|
|
22
26
|
|
|
23
27
|
export interface VuiPluginOptions extends VuiServiceOptions {
|
|
24
28
|
stack?: VuiPluginStackOptions;
|
|
29
|
+
form?: VueFormServiceOptions;
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
export interface RawVuiPluginOptions extends RawVuiServiceOptions {
|
|
28
33
|
stack?: VuiPluginStackOptions;
|
|
34
|
+
form?: VueFormServiceOptions;
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
export function mergeVuiPluginOptions(
|
|
@@ -40,6 +46,12 @@ export function mergeVuiPluginOptions(
|
|
|
40
46
|
...override.stack,
|
|
41
47
|
};
|
|
42
48
|
}
|
|
49
|
+
if (override.form) {
|
|
50
|
+
merged.form = {
|
|
51
|
+
...merged.form,
|
|
52
|
+
...override.form,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
43
55
|
return merged;
|
|
44
56
|
}
|
|
45
57
|
|
|
@@ -51,15 +63,14 @@ declare module 'vue' {
|
|
|
51
63
|
|
|
52
64
|
export class VuiPlugin {
|
|
53
65
|
static install(app: App, opts: VuiPluginOptions) {
|
|
54
|
-
const { colorScheme, stack } = opts;
|
|
66
|
+
const { colorScheme, stack, form } = opts;
|
|
55
67
|
|
|
56
68
|
// ColorScheme
|
|
57
69
|
const vueColorSchemePlugin = new VueColorSchemePlugin(colorScheme);
|
|
58
70
|
app.use(vueColorSchemePlugin);
|
|
59
71
|
|
|
60
|
-
// Stack
|
|
61
72
|
installVueStackPlugin(app, stack);
|
|
62
|
-
|
|
73
|
+
installVueFormPlugin(app, form);
|
|
63
74
|
installVueAppLayout(app);
|
|
64
75
|
installBodyScrollLockDirective(app);
|
|
65
76
|
installClickOutsideDirective(app);
|