@dazhicheng/ui 1.6.42 → 1.6.44

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.
@@ -9,15 +9,10 @@ function V(n) {
9
9
  return Math.max(o - 1, 1);
10
10
  });
11
11
  B(
12
- [
13
- () => n.showCollapseButton,
14
- g,
15
- () => {
16
- var e;
17
- return (e = n.schema) == null ? void 0 : e.length;
18
- },
19
- () => h.value
20
- ],
12
+ [() => n.showCollapseButton, g, () => {
13
+ var e;
14
+ return (e = n.schema) == null ? void 0 : e.length;
15
+ }, () => h.value],
21
16
  async ([e, a, o, t], m) => {
22
17
  var l;
23
18
  if (!e || !t)
@@ -0,0 +1,3 @@
1
+ import { SuspenseBoundary } from 'vue';
2
+ export declare function queueEffectWithSuspense(fn: any | any[], suspense: SuspenseBoundary | null): void;
3
+ export declare const isSuspense: (type: any) => boolean;
@@ -0,0 +1,10 @@
1
+ import { isArray as t } from "../../../node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js";
2
+ import { queuePostFlushCb as s } from "vue";
3
+ function r(e, i) {
4
+ i && i.pendingBranch ? t(e) ? i.effects.push(...e) : i.effects.push(e) : s(e);
5
+ }
6
+ const u = (e) => e.__isSuspense;
7
+ export {
8
+ u as isSuspense,
9
+ r as queueEffectWithSuspense
10
+ };
@@ -0,0 +1,2 @@
1
+ import { ComponentInternalInstance, VNode } from 'vue';
2
+ export declare function isAsyncWrapper(i: ComponentInternalInstance | VNode): boolean;
@@ -0,0 +1,6 @@
1
+ function e(r) {
2
+ return !!r.type.__asyncLoader;
3
+ }
4
+ export {
5
+ e as isAsyncWrapper
6
+ };
@@ -0,0 +1,2 @@
1
+ import { ConcreteComponent } from 'vue';
2
+ export declare function getComponentName(Component: ConcreteComponent, includeInferred?: boolean): string | false | undefined;
@@ -0,0 +1,7 @@
1
+ import { isFunction as r } from "../../../node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js";
2
+ function m(a, e = !0) {
3
+ return r(a) ? a.displayName || a.name : a.name || e && a.__name;
4
+ }
5
+ export {
6
+ m as getComponentName
7
+ };
@@ -0,0 +1,5 @@
1
+ import { ComponentInternalInstance } from 'vue';
2
+ export type ComponentRenderContext = {
3
+ [key: string]: any;
4
+ _: ComponentInternalInstance;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { ComponentInternalInstance } from 'vue';
2
+ export declare const devtoolsComponentAdded: (component: ComponentInternalInstance) => void;
@@ -0,0 +1,17 @@
1
+ export declare enum ErrorCodes {
2
+ SETUP_FUNCTION = 0,
3
+ RENDER_FUNCTION = 1,
4
+ WATCH_GETTER = 2,
5
+ WATCH_CALLBACK = 3,
6
+ WATCH_CLEANUP = 4,
7
+ NATIVE_EVENT_HANDLER = 5,
8
+ COMPONENT_EVENT_HANDLER = 6,
9
+ VNODE_HOOK = 7,
10
+ DIRECTIVE_HOOK = 8,
11
+ TRANSITION_HOOK = 9,
12
+ APP_ERROR_HANDLER = 10,
13
+ APP_WARN_HANDLER = 11,
14
+ FUNCTION_REF = 12,
15
+ ASYNC_COMPONENT_LOADER = 13,
16
+ SCHEDULER = 14
17
+ }
@@ -0,0 +1,4 @@
1
+ var _ = /* @__PURE__ */ ((N) => (N[N.SETUP_FUNCTION = 0] = "SETUP_FUNCTION", N[N.RENDER_FUNCTION = 1] = "RENDER_FUNCTION", N[N.WATCH_GETTER = 2] = "WATCH_GETTER", N[N.WATCH_CALLBACK = 3] = "WATCH_CALLBACK", N[N.WATCH_CLEANUP = 4] = "WATCH_CLEANUP", N[N.NATIVE_EVENT_HANDLER = 5] = "NATIVE_EVENT_HANDLER", N[N.COMPONENT_EVENT_HANDLER = 6] = "COMPONENT_EVENT_HANDLER", N[N.VNODE_HOOK = 7] = "VNODE_HOOK", N[N.DIRECTIVE_HOOK = 8] = "DIRECTIVE_HOOK", N[N.TRANSITION_HOOK = 9] = "TRANSITION_HOOK", N[N.APP_ERROR_HANDLER = 10] = "APP_ERROR_HANDLER", N[N.APP_WARN_HANDLER = 11] = "APP_WARN_HANDLER", N[N.FUNCTION_REF = 12] = "FUNCTION_REF", N[N.ASYNC_COMPONENT_LOADER = 13] = "ASYNC_COMPONENT_LOADER", N[N.SCHEDULER = 14] = "SCHEDULER", N))(_ || {});
2
+ export {
3
+ _ as ErrorCodes
4
+ };
@@ -0,0 +1,32 @@
1
+ import { ComponentInternalInstance, RendererElement, RendererNode, RendererOptions, SuspenseBoundary, VNode, VNodeArrayChildren, queuePostFlushCb } from 'vue';
2
+ import { queueEffectWithSuspense } from './Suspense';
3
+ export type RendererInternals<HostNode = RendererNode, HostElement = RendererElement> = {
4
+ p: PatchFn;
5
+ um: UnmountFn;
6
+ r: RemoveFn;
7
+ m: MoveFn;
8
+ mt: MountComponentFn;
9
+ mc: MountChildrenFn;
10
+ pc: PatchChildrenFn;
11
+ pbc: PatchBlockChildrenFn;
12
+ n: NextFn;
13
+ o: RendererOptions<HostNode, HostElement>;
14
+ };
15
+ type PatchFn = (n1: VNode | null, // null means this is a mount
16
+ n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void;
17
+ type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
18
+ type RemoveFn = (vnode: VNode) => void;
19
+ type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
20
+ export declare enum MoveType {
21
+ ENTER = 0,
22
+ LEAVE = 1,
23
+ REORDER = 2
24
+ }
25
+ export type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
26
+ type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
27
+ type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean) => void;
28
+ type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
29
+ type NextFn = (vnode: VNode) => RendererNode | null;
30
+ export declare const queuePostRenderEffect: typeof queuePostFlushCb | typeof queueEffectWithSuspense;
31
+ export type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
32
+ export {};
@@ -0,0 +1,8 @@
1
+ import "vue";
2
+ import { queueEffectWithSuspense as t } from "./Suspense.js";
3
+ var R = /* @__PURE__ */ ((E) => (E[E.ENTER = 0] = "ENTER", E[E.LEAVE = 1] = "LEAVE", E[E.REORDER = 2] = "REORDER", E))(R || {});
4
+ const f = t;
5
+ export {
6
+ R as MoveType,
7
+ f as queuePostRenderEffect
8
+ };
@@ -0,0 +1,13 @@
1
+ export declare enum ShapeFlags {
2
+ ELEMENT = 1,
3
+ FUNCTIONAL_COMPONENT = 2,
4
+ STATEFUL_COMPONENT = 4,
5
+ TEXT_CHILDREN = 8,
6
+ ARRAY_CHILDREN = 16,
7
+ SLOTS_CHILDREN = 32,
8
+ TELEPORT = 64,
9
+ SUSPENSE = 128,
10
+ COMPONENT_SHOULD_KEEP_ALIVE = 256,
11
+ COMPONENT_KEPT_ALIVE = 512,
12
+ COMPONENT = 6
13
+ }
@@ -0,0 +1,6 @@
1
+ import { ComponentInternalInstance, VNode } from 'vue';
2
+ type VNodeMountHook = (vnode: VNode) => void;
3
+ type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
4
+ export type VNodeHook = VNodeMountHook | VNodeUpdateHook | VNodeMountHook[] | VNodeUpdateHook[];
5
+ export declare function invokeVNodeHook(hook: VNodeHook, instance: ComponentInternalInstance | null, vnode: VNode, prevVNode?: VNode | null): void;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { callWithAsyncErrorHandling as l } from "vue";
2
+ import { ErrorCodes as t } from "./errorHandling.js";
3
+ function c(o, r, n, i = null) {
4
+ l(o, r, t.VNODE_HOOK, [n, i]);
5
+ }
6
+ export {
7
+ c as invokeVNodeHook
8
+ };
@@ -0,0 +1,26 @@
1
+ import { VNode, VNodeProps } from 'vue';
2
+ type MatchPattern = string | RegExp | Array<string | RegExp>;
3
+ export type TtKeepAliveProps = {
4
+ include?: MatchPattern;
5
+ exclude?: MatchPattern;
6
+ max?: number | string;
7
+ includeKey?: MatchPattern;
8
+ excludeKey?: MatchPattern;
9
+ };
10
+ export type TtKeepAliveExposed = {
11
+ /** 精确删除指定缓存 key 对应的页面实例。 */
12
+ remove: (key: string | number | symbol) => void;
13
+ /** 清空当前 KeepAlive 的全部缓存实例。 */
14
+ clear: () => void;
15
+ };
16
+ export declare const TtKeepAlive: {
17
+ __isKeepAlive: true;
18
+ new (): {
19
+ $props: VNodeProps & TtKeepAliveProps;
20
+ $slots: {
21
+ default: () => VNode[];
22
+ };
23
+ $exposed: TtKeepAliveExposed;
24
+ };
25
+ };
26
+ export {};
@@ -0,0 +1,139 @@
1
+ import { isArray as z, isString as L, invokeArrayFns as I } from "../../node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js";
2
+ import { getCurrentInstance as P, watch as k, onMounted as W, onUpdated as j, onBeforeUnmount as G, isVNode as J, cloneVNode as O, setTransitionHooks as Q } from "vue";
3
+ import { isAsyncWrapper as X } from "./core/apiAsyncComponent.js";
4
+ import { getComponentName as w } from "./core/component.js";
5
+ import { MoveType as H, queuePostRenderEffect as v } from "./core/renderer.js";
6
+ import { isSuspense as Y } from "./core/Suspense.js";
7
+ import { invokeVNodeHook as M } from "./core/vnode.js";
8
+ const Z = {
9
+ name: "TtKeepAlive",
10
+ // Marker for special handling inside the renderer. We are not using a ===
11
+ // check directly on KeepAlive in the renderer, because importing it directly
12
+ // would prevent it from being tree-shaken.
13
+ __isKeepAlive: !0,
14
+ props: {
15
+ include: [String, RegExp, Array],
16
+ exclude: [String, RegExp, Array],
17
+ max: [String, Number],
18
+ includeKey: [String, RegExp, Array],
19
+ excludeKey: [String, RegExp, Array]
20
+ },
21
+ setup(o, { slots: r, expose: y }) {
22
+ const d = P(), E = d.ctx, a = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Set();
23
+ let u = null;
24
+ const f = d.suspense, {
25
+ renderer: {
26
+ p: U,
27
+ m: N,
28
+ um: B,
29
+ o: { createElement: D }
30
+ }
31
+ } = E, q = D("div");
32
+ E.activate = (e, n, t, i, c) => {
33
+ const s = e.component;
34
+ N(e, n, t, H.ENTER, f), U(
35
+ s.vnode,
36
+ e,
37
+ n,
38
+ t,
39
+ s,
40
+ f,
41
+ i,
42
+ e.slotScopeIds,
43
+ c
44
+ ), v(() => {
45
+ s.isDeactivated = !1, s.a && I(s.a);
46
+ const g = e.props && e.props.onVnodeMounted;
47
+ g && M(g, s.parent, e);
48
+ }, f);
49
+ }, E.deactivate = (e) => {
50
+ const n = e.component;
51
+ N(e, q, null, H.LEAVE, f), v(() => {
52
+ n.da && I(n.da);
53
+ const t = e.props && e.props.onVnodeUnmounted;
54
+ t && M(t, n.parent, e), n.isDeactivated = !0;
55
+ }, f);
56
+ };
57
+ function K(e) {
58
+ C(e), B(e, d, f, !0);
59
+ }
60
+ function V(e) {
61
+ a.forEach((n, t) => {
62
+ const i = w(n.type);
63
+ i && (!e || !e(i)) && m(t);
64
+ });
65
+ }
66
+ function R(e) {
67
+ a.forEach((n, t) => {
68
+ (!e || !e(t)) && m(t);
69
+ });
70
+ }
71
+ function m(e) {
72
+ const n = a.get(e);
73
+ !u || n.type !== u.type ? K(n) : u && C(u), a.delete(e), p.delete(e);
74
+ }
75
+ y({ remove: (e) => {
76
+ a.has(e) && m(e);
77
+ }, clear: () => {
78
+ a.forEach((e, n) => m(n));
79
+ } }), k(
80
+ () => [o.include, o.exclude],
81
+ ([e, n]) => {
82
+ e && V((t) => l(e, t)), n && V((t) => !l(n, t));
83
+ },
84
+ // prune post-render after `current` has been updated
85
+ { flush: "post", deep: !0 }
86
+ ), k(
87
+ () => [o.includeKey, o.excludeKey],
88
+ ([e, n]) => {
89
+ e && e.length && R((t) => typeof t == "string" && l(e, t)), n && n.length && R((t) => typeof t != "string" || !l(n, t));
90
+ },
91
+ // prune post-render after `current` has been updated
92
+ { flush: "post", deep: !0 }
93
+ );
94
+ let h = null;
95
+ const T = () => {
96
+ h != null && a.set(h, F(d.subTree));
97
+ };
98
+ return W(T), j(T), G(() => {
99
+ a.forEach((e) => {
100
+ const { subTree: n, suspense: t } = d, i = F(n);
101
+ if (e.type === i.type) {
102
+ C(i);
103
+ const c = i.component.da;
104
+ c && v(c, t);
105
+ return;
106
+ }
107
+ K(e);
108
+ });
109
+ }), () => {
110
+ if (h = null, !r.default) return null;
111
+ const e = r.default(), n = e[0];
112
+ if (e.length > 1)
113
+ return u = null, e;
114
+ if (!J(n) || !(n.shapeFlag & 4) && !(n.shapeFlag & 128))
115
+ return u = null, n;
116
+ let t = F(n);
117
+ const i = t.type, c = w(
118
+ X(t) ? t.type.__asyncResolved || {} : i
119
+ ), s = t.key == null ? i : t.key, { include: g, exclude: _, includeKey: x, excludeKey: A, max: b } = o;
120
+ if (g && (!c || !l(g, c)) || _ && c && l(_, c) || x && x.length && (typeof s != "string" || !l(x, s)) || A && A.length && typeof s == "string" && l(A, s))
121
+ return u = t, n;
122
+ const S = a.get(s);
123
+ return t.el && (t = O(t), n.shapeFlag & 128 && (n.ssContent = t)), h = s, S ? (t.el = S.el, t.component = S.component, t.transition && Q(t, t.transition), t.shapeFlag |= 512, p.delete(s), p.add(s)) : (p.add(s), b && p.size > Number.parseInt(b, 10) && m(p.values().next().value || "")), t.shapeFlag |= 256, u = t, Y(n.type) ? n : t;
124
+ };
125
+ }
126
+ }, ce = Z;
127
+ function l(o, r) {
128
+ return z(o) ? o.some((y) => l(y, r)) : L(o) ? o.split(",").includes(r) : o.test ? o.test(r) : !1;
129
+ }
130
+ function C(o) {
131
+ let r = o.shapeFlag;
132
+ r & 256 && (r -= 256), r & 512 && (r -= 512), o.shapeFlag = r;
133
+ }
134
+ function F(o) {
135
+ return o.shapeFlag & 128 ? o.ssContent : o;
136
+ }
137
+ export {
138
+ ce as TtKeepAlive
139
+ };
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export * from './components/tt-log';
24
24
  export * from './components/tt-panel-select';
25
25
  export * from './components/tt-radio-group';
26
26
  export * from './components/tt-input-textarea';
27
+ export * from './components/tt-keep-alive';
27
28
  export { useFormSchemasLink, type FieldOnChangeContext, type FieldSchemaConfig, type FormScene, type FormSchemasLinkBuilder, type SelectOption, type UseFormSchemasLinkFieldConfig, type UseFormSchemasLinkOptions, type UseFormSchemasLinkResult, } from './hooks/useFormSchemasLink';
28
29
  export { useDataPermissionOptions } from './hooks/useDataPermissionOptions';
29
30
  export { useBasicDataOptions } from './hooks/useBasicDataOptions';
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import { TtAddButton as so } from "./components/tt-button/index.js";
3
3
  import { TtCheckbox as a } from "./components/tt-checkbox/index.js";
4
4
  import { TtEmpty as f } from "./components/tt-empty/index.js";
5
5
  import { addComponent as s, setConfig as i } from "./components/tt-form/index.js";
6
- import { TtFormItemErrorTooltip as d } from "./components/tt-form-item-error-tooltip/index.js";
7
- import { TtIcon as l, TtAddIcon as u, TtSubIcon as x } from "./components/tt-icon/index.js";
6
+ import { TtFormItemErrorTooltip as l } from "./components/tt-form-item-error-tooltip/index.js";
7
+ import { TtIcon as d, TtAddIcon as u, TtSubIcon as x } from "./components/tt-icon/index.js";
8
8
  import { TtImage as T } from "./components/tt-image/index.js";
9
9
  import { RenderDrawer as n } from "./components/tt-drawer/index.js";
10
10
  import { RenderModal as c } from "./components/tt-modal/index.js";
@@ -19,7 +19,7 @@ import { setup as P } from "./hooks/useSetup.js";
19
19
  import { TtLog as R } from "./components/tt-log/index.js";
20
20
  import { TtPanelSelect as S } from "./components/tt-panel-select/index.js";
21
21
  import { TtRadioGroup as h } from "./components/tt-radio-group/index.js";
22
- import { TtInputTextarea as F } from "./components/tt-input-textarea/index.js";
22
+ import { TtInputTextarea as A } from "./components/tt-input-textarea/index.js";
23
23
  import { setXHR as xo } from "./utils/xhr.js";
24
24
  /* empty css */
25
25
  /* empty css */
@@ -30,47 +30,48 @@ import { default as no } from "./components/tt-area/TtArea.vue.js";
30
30
  import { useModalForm as go } from "./components/tt-modal-form/useModalForm.js";
31
31
  import { TtLoading as bo } from "./components/tt-loading/index.js";
32
32
  import { TtTable as Oo, TtTableAction as Po, TtTableButton as Ro } from "./components/tt-table/index.js";
33
- import { getFileUrlOss as ho, getPostSignatureForObsUploadHuaweiOss as Fo, getPostSignatureForOssUploadOss as Ao } from "./api/oss.js";
34
- import { useFormSchemasLink as Co } from "./hooks/useFormSchemasLink.js";
35
- import { useDataPermissionOptions as Uo } from "./hooks/useDataPermissionOptions.js";
36
- import { useBasicDataOptions as Eo } from "./hooks/useBasicDataOptions.js";
37
- import { usePanelSelectSchemas as vo } from "./hooks/usePanelSelectSchemas.js";
38
- import { CODES as No, GROUP_BY as Go } from "./hooks/basicDataCodes.js";
39
- import { useFormat as Ho } from "./hooks/useFormat.js";
40
- import { useLoading as _o } from "./hooks/useLoading.js";
41
- import { useScreenshotOss as jo } from "./hooks/useScreenshotOss.js";
42
- import { createUppercaseInputProps as Xo, toUppercaseInputValue as Yo, uppercaseInputProps as Zo } from "./utils/uppercaseInput.js";
43
- import { setupDrawer as A } from "./components/tt-drawer/src/index.js";
44
- import { useShowDrawer as Jo } from "./components/tt-drawer/src/index.js";
33
+ import { getFileUrlOss as ho, getPostSignatureForObsUploadHuaweiOss as Ao, getPostSignatureForOssUploadOss as Fo } from "./api/oss.js";
34
+ import { TtKeepAlive as Co } from "./components/tt-keep-alive/index.js";
35
+ import { useFormSchemasLink as Uo } from "./hooks/useFormSchemasLink.js";
36
+ import { useDataPermissionOptions as Eo } from "./hooks/useDataPermissionOptions.js";
37
+ import { useBasicDataOptions as Bo } from "./hooks/useBasicDataOptions.js";
38
+ import { usePanelSelectSchemas as No } from "./hooks/usePanelSelectSchemas.js";
39
+ import { CODES as ko, GROUP_BY as Ho } from "./hooks/basicDataCodes.js";
40
+ import { useFormat as _o } from "./hooks/useFormat.js";
41
+ import { useLoading as jo } from "./hooks/useLoading.js";
42
+ import { useScreenshotOss as Ko } from "./hooks/useScreenshotOss.js";
43
+ import { createUppercaseInputProps as Yo, toUppercaseInputValue as Zo, uppercaseInputProps as qo } from "./utils/uppercaseInput.js";
44
+ import { setupDrawer as F } from "./components/tt-drawer/src/index.js";
45
+ import { useShowDrawer as Qo } from "./components/tt-drawer/src/index.js";
45
46
  import { setupModal as I } from "./components/tt-modal/src/index.js";
46
- import { useShowModal as Qo } from "./components/tt-modal/src/index.js";
47
- import { default as or } from "./directives/disabled-tip/index.js";
48
- import { default as er } from "./directives/auto-tip/index.js";
49
- import { showTtDrawer as mr, useDrawerRender as pr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
50
- import { useDrawerResizable as fr } from "./components/tt-drawer/src/hooks/useResizable.js";
51
- import { showTtModal as ir, useModalRender as dr } from "./components/tt-modal/src/hooks/useModalRender.js";
52
- import { closeAllTtModal as ur, closeTtModal as xr, openTtModal as Tr, ttModal as nr } from "./components/tt-modal/src/utils/modal-service.js";
53
- import { default as gr } from "./directives/dialog-resize/index.js";
47
+ import { useShowModal as or } from "./components/tt-modal/src/index.js";
48
+ import { default as er } from "./directives/disabled-tip/index.js";
49
+ import { default as mr } from "./directives/auto-tip/index.js";
50
+ import { showTtDrawer as ar, useDrawerRender as fr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
51
+ import { useDrawerResizable as ir } from "./components/tt-drawer/src/hooks/useResizable.js";
52
+ import { showTtModal as dr, useModalRender as ur } from "./components/tt-modal/src/hooks/useModalRender.js";
53
+ import { closeAllTtModal as Tr, closeTtModal as nr, openTtModal as cr, ttModal as gr } from "./components/tt-modal/src/utils/modal-service.js";
54
+ import { default as br } from "./directives/dialog-resize/index.js";
54
55
  import * as to from "zod";
55
- import { useGroupForm as br } from "./components/tt-form/src/group-form/useGroupForm.js";
56
- import { COMPONENT_MAP as Or } from "./components/tt-form/src/config.js";
57
- import { useForm as Rr } from "./components/tt-form/src/useForm.js";
58
- import { TtImageViewer as hr } from "./components/tt-image/src/components/ImageViewer.js";
59
- import { vTtLoading as Ar } from "./components/tt-loading/src/directive.js";
60
- import { Loading as Cr } from "./components/tt-loading/src/service.js";
61
- import { useTableContext as Ur, useTableFormContext as Lr } from "./components/tt-table/src/hooks/useTableContext.js";
62
- import { useTableFormRender as Br, useTableRender as vr } from "./components/tt-table/src/hooks/useTableRender.js";
63
- import { ttUploadProps as Nr } from "./components/tt-upload/src/typing.js";
56
+ import { useGroupForm as Or } from "./components/tt-form/src/group-form/useGroupForm.js";
57
+ import { COMPONENT_MAP as Rr } from "./components/tt-form/src/config.js";
58
+ import { useForm as hr } from "./components/tt-form/src/useForm.js";
59
+ import { TtImageViewer as Fr } from "./components/tt-image/src/components/ImageViewer.js";
60
+ import { vTtLoading as Cr } from "./components/tt-loading/src/directive.js";
61
+ import { Loading as Ur } from "./components/tt-loading/src/service.js";
62
+ import { useTableContext as Er, useTableFormContext as vr } from "./components/tt-table/src/hooks/useTableContext.js";
63
+ import { useTableFormRender as zr, useTableRender as Nr } from "./components/tt-table/src/hooks/useTableRender.js";
64
+ import { ttUploadProps as kr } from "./components/tt-upload/src/typing.js";
64
65
  const C = [
65
66
  p,
66
67
  n,
67
68
  c,
68
- l,
69
+ d,
69
70
  g,
70
71
  f,
71
72
  M,
72
73
  a,
73
- d,
74
+ l,
74
75
  T,
75
76
  b,
76
77
  w,
@@ -80,12 +81,12 @@ const C = [
80
81
  R,
81
82
  S,
82
83
  h,
83
- F
84
+ A
84
85
  ], D = (o) => {
85
86
  C.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
86
87
  const t = e[r], m = r.replace(/([A-Z])/g, "-$1").toLowerCase();
87
88
  o.directive(m, t);
88
- }), A(o), I(o);
89
+ }), F(o), I(o);
89
90
  };
90
91
  function mo(o) {
91
92
  s(o == null ? void 0 : o.components), i(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
@@ -104,10 +105,10 @@ const po = {
104
105
  setup: P
105
106
  };
106
107
  export {
107
- No as CODES,
108
- Or as COMPONENT_MAP,
109
- Go as GROUP_BY,
110
- Cr as Loading,
108
+ ko as CODES,
109
+ Rr as COMPONENT_MAP,
110
+ Ho as GROUP_BY,
111
+ Ur as Loading,
111
112
  n as RenderDrawer,
112
113
  c as RenderModal,
113
114
  so as TtAddButton,
@@ -117,10 +118,11 @@ export {
117
118
  p as TtButton,
118
119
  a as TtCheckbox,
119
120
  f as TtEmpty,
120
- l as TtIcon,
121
+ d as TtIcon,
121
122
  T as TtImage,
122
- hr as TtImageViewer,
123
- F as TtInputTextarea,
123
+ Fr as TtImageViewer,
124
+ A as TtInputTextarea,
125
+ Co as TtKeepAlive,
124
126
  bo as TtLoading,
125
127
  R as TtLog,
126
128
  lo as TtModal,
@@ -135,47 +137,47 @@ export {
135
137
  M as TtText,
136
138
  b as TtUpload,
137
139
  s as addComponent,
138
- er as autoTip,
139
- ur as closeAllTtModal,
140
- xr as closeTtModal,
141
- Xo as createUppercaseInputProps,
140
+ mr as autoTip,
141
+ Tr as closeAllTtModal,
142
+ nr as closeTtModal,
143
+ Yo as createUppercaseInputProps,
142
144
  po as default,
143
- gr as dialogResize,
144
- or as disabledTip,
145
+ br as dialogResize,
146
+ er as disabledTip,
145
147
  mo as formAdapter,
146
148
  ho as getFileUrlOss,
147
- Fo as getPostSignatureForObsUploadHuaweiOss,
148
- Ao as getPostSignatureForOssUploadOss,
149
- Tr as openTtModal,
149
+ Ao as getPostSignatureForObsUploadHuaweiOss,
150
+ Fo as getPostSignatureForOssUploadOss,
151
+ cr as openTtModal,
150
152
  i as setConfig,
151
153
  xo as setXHR,
152
- A as setupDrawer,
154
+ F as setupDrawer,
153
155
  I as setupModal,
154
- mr as showTtDrawer,
155
- ir as showTtModal,
156
- Yo as toUppercaseInputValue,
157
- nr as ttModal,
158
- Nr as ttUploadProps,
159
- Zo as uppercaseInputProps,
160
- Eo as useBasicDataOptions,
161
- Uo as useDataPermissionOptions,
162
- pr as useDrawerRender,
163
- fr as useDrawerResizable,
164
- Rr as useForm,
165
- Co as useFormSchemasLink,
166
- Ho as useFormat,
167
- br as useGroupForm,
168
- _o as useLoading,
156
+ ar as showTtDrawer,
157
+ dr as showTtModal,
158
+ Zo as toUppercaseInputValue,
159
+ gr as ttModal,
160
+ kr as ttUploadProps,
161
+ qo as uppercaseInputProps,
162
+ Bo as useBasicDataOptions,
163
+ Eo as useDataPermissionOptions,
164
+ fr as useDrawerRender,
165
+ ir as useDrawerResizable,
166
+ hr as useForm,
167
+ Uo as useFormSchemasLink,
168
+ _o as useFormat,
169
+ Or as useGroupForm,
170
+ jo as useLoading,
169
171
  go as useModalForm,
170
- dr as useModalRender,
171
- vo as usePanelSelectSchemas,
172
- jo as useScreenshotOss,
173
- Jo as useShowDrawer,
174
- Qo as useShowModal,
175
- Ur as useTableContext,
176
- Lr as useTableFormContext,
177
- Br as useTableFormRender,
178
- vr as useTableRender,
179
- Ar as vTtLoading,
172
+ ur as useModalRender,
173
+ No as usePanelSelectSchemas,
174
+ Ko as useScreenshotOss,
175
+ Qo as useShowDrawer,
176
+ or as useShowModal,
177
+ Er as useTableContext,
178
+ vr as useTableFormContext,
179
+ zr as useTableFormRender,
180
+ Nr as useTableRender,
181
+ Cr as vTtLoading,
180
182
  to as z
181
183
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @vue/shared v3.5.34
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ process.env.NODE_ENV !== "production" && Object.freeze({});
7
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
8
+ const t = Array.isArray, n = (e) => typeof e == "function", s = (e) => typeof e == "string", c = (e, ...o) => {
9
+ for (let r = 0; r < e.length; r++)
10
+ e[r](...o);
11
+ };
12
+ export {
13
+ c as invokeArrayFns,
14
+ t as isArray,
15
+ n as isFunction,
16
+ s as isString
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.6.42",
3
+ "version": "1.6.44",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -83,6 +83,7 @@
83
83
  "@types/lodash": "4.17.23",
84
84
  "@types/lodash-es": "^4.17.12",
85
85
  "@types/sortablejs": "^1.15.9",
86
+ "@vue/shared": "3.5.34",
86
87
  "rollup-plugin-visualizer": "^7.0.1",
87
88
  "sass": "^1.97.3",
88
89
  "tailwindcss": "4.1.18",