vft 0.0.494 → 0.0.495
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/index.css +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/super-form/index.d.ts +9 -0
- package/es/components/super-form/super-form-item.vue2.js +219 -219
- package/es/components/super-form/super-form.vue2.js +97 -95
- package/es/components/super-form/types.d.ts +4 -0
- package/es/components/super-form/use/use-form-events.d.ts +1 -0
- package/es/components/super-form/use/use-form-events.js +205 -171
- package/es/components/table/field.js +60 -55
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/table.vue.d.ts +1 -1
- package/es/components/table/types.d.ts +2 -2
- package/es/components/table/use/use-data-source.d.ts +1 -1
- package/es/components/table/use/use-data-source.js +136 -119
- package/es/components/table/use/use-loading.js +15 -13
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/super-form/index.d.ts +9 -0
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +4 -0
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.d.ts +1 -0
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.d.ts +3 -3
- package/lib/components/table/table.vue.d.ts +1 -1
- package/lib/components/table/types.d.ts +2 -2
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-data-source.d.ts +1 -1
- package/lib/components/table/use/use-loading.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/theme-style/index.css +1 -1
- package/theme-style/src/table.scss +2 -4
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
11
11
|
import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { carouselContextKey as Se, CAROUSEL_ITEM_NAME as H } from "./constants.js";
|
|
15
15
|
const L = 300, ze = (t, O, M) => {
|
|
16
16
|
const {
|
|
17
17
|
children: o,
|
|
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
|
|
|
13
13
|
import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
|
|
14
14
|
import { useAttrs as Ze, useCursor as _e } from "@vft/use";
|
|
15
15
|
import { calcTextareaHeight as he } from "./utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { useFormItem as et, useFormItemInputId as tt } from "../form/hooks/use-form-item.js";
|
|
17
|
+
import { useFormSize as at, useFormDisabled as nt } from "../form/hooks/use-form-common-props.js";
|
|
18
18
|
const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
@@ -85,9 +85,9 @@ const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
85
85
|
n.is("focus", v.value)
|
|
86
86
|
]), d = Ze({
|
|
87
87
|
excludeKeys: l(() => Object.keys(X.value))
|
|
88
|
-
}), { form: Ce, formItem: F } =
|
|
88
|
+
}), { form: Ce, formItem: F } = et(), { inputId: Y } = tt(we.props, {
|
|
89
89
|
formItemContext: F
|
|
90
|
-
}), ke =
|
|
90
|
+
}), ke = at(), x = nt(), n = ye("input"), Z = ye("textarea"), M = H(), p = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || p.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
|
|
91
91
|
icon: "icon-circle-close",
|
|
92
92
|
size: 16
|
|
93
93
|
})), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
|
|
2
2
|
import { EVENT_CODE as g } from "../../../constants/aria.js";
|
|
3
|
-
import { CHANGE_EVENT as i,
|
|
3
|
+
import { CHANGE_EVENT as i, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import { isUndefined as K } from "@vft/utils";
|
|
6
6
|
import { debugWarn as C } from "../../../utils/error.js";
|
|
@@ -12,6 +12,9 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
12
12
|
type: import("vue").PropType<string | number>;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
+
formatter: {
|
|
16
|
+
type: import("vue").PropType<(values: import("../types").Recordable) => import("../types").Recordable>;
|
|
17
|
+
};
|
|
15
18
|
showResetButton: {
|
|
16
19
|
type: import("vue").PropType<boolean>;
|
|
17
20
|
default: boolean;
|
|
@@ -191,6 +194,9 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
191
194
|
type: import("vue").PropType<string | number>;
|
|
192
195
|
default: string;
|
|
193
196
|
};
|
|
197
|
+
formatter: {
|
|
198
|
+
type: import("vue").PropType<(values: import("../types").Recordable) => import("../types").Recordable>;
|
|
199
|
+
};
|
|
194
200
|
showResetButton: {
|
|
195
201
|
type: import("vue").PropType<boolean>;
|
|
196
202
|
default: boolean;
|
|
@@ -361,6 +367,9 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
361
367
|
type: import("vue").PropType<string | number>;
|
|
362
368
|
default: string;
|
|
363
369
|
};
|
|
370
|
+
formatter: {
|
|
371
|
+
type: import("vue").PropType<(values: import("../types").Recordable) => import("../types").Recordable>;
|
|
372
|
+
};
|
|
364
373
|
showResetButton: {
|
|
365
374
|
type: import("vue").PropType<boolean>;
|
|
366
375
|
default: boolean;
|