@toife/vue 3.4.3 → 3.4.5
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.md +1 -3
- package/dist/components/decision-modal/decision-modal.composable.d.ts +2 -2
- package/dist/components/decision-modal/decision-modal.vue.d.ts +1 -1
- package/dist/core/features/decision-modal/decision-modal.constants.d.ts +1 -1
- package/dist/core/features/decision-modal/decision-modal.type.d.ts +3 -3
- package/dist/index.es.js +156 -156
- package/dist/index.umd.js +1 -1
- package/dist/styles/decision-modal.css +1 -1
- package/dist/styles/present.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,9 +36,7 @@ import { createToife } from "@toife/vue";
|
|
|
36
36
|
import App from "./App.vue";
|
|
37
37
|
|
|
38
38
|
const app = createApp(App);
|
|
39
|
-
app.use(createToife());
|
|
40
|
-
// or change the prefix:
|
|
41
|
-
// app.use(createToife({ prefix: "toife-" })); // → <toife-app>, <toife-button>, ...
|
|
39
|
+
app.use(createToife()); // prefix "t-" → <t-app>, <t-button>, …
|
|
42
40
|
app.mount("#app");
|
|
43
41
|
```
|
|
44
42
|
|
|
@@ -20,7 +20,7 @@ export declare const useDecisionModal: () => {
|
|
|
20
20
|
role?: string | undefined;
|
|
21
21
|
shape?: string | undefined;
|
|
22
22
|
divider?: boolean | undefined;
|
|
23
|
-
|
|
23
|
+
direction?: import('../../core').DecisionModalDirection | undefined;
|
|
24
24
|
keepalive?: boolean | undefined;
|
|
25
25
|
onClose?: ((type?: string) => void) | undefined;
|
|
26
26
|
onChoose?: ((btn?: DecisionModalButton) => void) | undefined;
|
|
@@ -40,7 +40,7 @@ export declare const useDecisionModal: () => {
|
|
|
40
40
|
role?: string | undefined;
|
|
41
41
|
shape?: string | undefined;
|
|
42
42
|
divider?: boolean | undefined;
|
|
43
|
-
|
|
43
|
+
direction?: import('../../core').DecisionModalDirection | undefined;
|
|
44
44
|
keepalive?: boolean | undefined;
|
|
45
45
|
onClose?: ((type?: string) => void) | undefined;
|
|
46
46
|
onChoose?: ((btn?: DecisionModalButton) => void) | undefined;
|
|
@@ -9,9 +9,9 @@ declare const _default: import('vue').DefineComponent<DecisionModalProps, {}, {}
|
|
|
9
9
|
role: string;
|
|
10
10
|
shape: string;
|
|
11
11
|
divider: boolean;
|
|
12
|
+
direction: import('../../core').DecisionModalDirection;
|
|
12
13
|
placement: string;
|
|
13
14
|
keepalive: boolean;
|
|
14
15
|
visible: boolean;
|
|
15
|
-
flow: import('../../core').DecisionModalFlow;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export type DecisionModalButton = {
|
|
|
6
6
|
handler?: () => void;
|
|
7
7
|
data?: unknown;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type DecisionModalDirection = "row" | "column";
|
|
10
10
|
export type DecisionModalProps = {
|
|
11
11
|
visible?: boolean;
|
|
12
12
|
title?: string;
|
|
@@ -17,7 +17,7 @@ export type DecisionModalProps = {
|
|
|
17
17
|
role?: string;
|
|
18
18
|
shape?: string;
|
|
19
19
|
divider?: boolean;
|
|
20
|
-
|
|
20
|
+
direction?: DecisionModalDirection;
|
|
21
21
|
keepalive?: boolean;
|
|
22
22
|
};
|
|
23
23
|
export type DecisionModalComposableProps = DecisionModalProps & {
|
|
@@ -35,5 +35,5 @@ export type DecisionModalAttrOptions = {
|
|
|
35
35
|
divider: boolean;
|
|
36
36
|
};
|
|
37
37
|
export type DecisionModalFooterAttrOptions = {
|
|
38
|
-
|
|
38
|
+
direction: DecisionModalDirection;
|
|
39
39
|
};
|