@dazhicheng/ui 1.5.198 → 1.5.201
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/api/dataTypeContext.js +17 -0
- package/dist/assets/img/empty_images/no_data.png.js +4 -0
- package/dist/assets/img/empty_images/search.png.js +4 -0
- package/dist/assets/img/image_status/develop.png.js +4 -0
- package/dist/assets/img/image_status/loading.gif.js +4 -0
- package/dist/assets/img/image_status/loading_fail.png.js +4 -0
- package/dist/assets/img/image_status/no_network.png.js +4 -0
- package/dist/assets/img/image_status/no_permission.png.js +4 -0
- package/dist/assets/svg/action_more.svg.js +4 -0
- package/dist/assets/svg/close.svg.js +4 -0
- package/dist/assets/svg/item_error.svg.js +4 -0
- package/dist/assets/svg/paixu-jiangxu.svg.js +4 -0
- package/dist/assets/svg/paixu-moren.svg.js +4 -0
- package/dist/assets/svg/paixu-shengxu.svg.js +4 -0
- package/dist/assets/svg/quanping.svg.js +4 -0
- package/dist/assets/svg/suoxiao.svg.js +4 -0
- package/dist/components/tt-api-component/index.js +7 -0
- package/dist/components/tt-api-component/index.vue.js +7 -0
- package/dist/components/tt-api-component/index.vue2.js +199 -0
- package/dist/components/tt-area/TtArea.vue.js +7 -0
- package/dist/components/tt-area/TtArea.vue2.js +36 -0
- package/dist/components/tt-button/components/AddButton.vue.js +24 -0
- package/dist/components/tt-button/components/AddButton.vue2.js +4 -0
- package/dist/components/tt-button/index.js +9 -0
- package/dist/components/tt-button/index.vue.js +7 -0
- package/dist/components/tt-button/index.vue2.js +68 -0
- package/dist/components/tt-checkbox/index.js +7 -0
- package/dist/components/tt-checkbox/index.vue.js +77 -0
- package/dist/components/tt-checkbox/index.vue2.js +4 -0
- package/dist/components/tt-drawer/index.js +14 -0
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +156 -0
- package/dist/components/tt-drawer/src/RenderDrawer.vue3.js +5 -0
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +56 -0
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue3.js +5 -0
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +7 -0
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +21 -0
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.js +124 -0
- package/dist/components/tt-drawer/src/hooks/useResizable.js +98 -0
- package/dist/components/tt-drawer/src/index.js +17 -0
- package/dist/components/tt-drawer/src/props.js +72 -0
- package/dist/components/tt-drawer/src/utils/drawer-api.js +191 -0
- package/dist/components/tt-empty/index.js +34 -0
- package/dist/components/tt-form/index.js +65 -0
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +38 -0
- package/dist/components/tt-form/src/components/ExpandableArrow.vue3.js +5 -0
- package/dist/components/tt-form/src/components/FormActions.vue2.js +177 -0
- package/dist/components/tt-form/src/components/FormActions.vue3.js +5 -0
- package/dist/components/tt-form/src/components/FormElInput.vue.js +80 -0
- package/dist/components/tt-form/src/components/FormElInput.vue2.js +4 -0
- package/dist/components/tt-form/src/components/Slot.js +28 -0
- package/dist/components/tt-form/src/config.js +57 -0
- package/dist/components/tt-form/src/form/FormControl.vue.js +16 -0
- package/dist/components/tt-form/src/form/FormControl.vue2.js +4 -0
- package/dist/components/tt-form/src/form/FormDescription.vue.js +21 -0
- package/dist/components/tt-form/src/form/FormDescription.vue2.js +4 -0
- package/dist/components/tt-form/src/form/FormItem.vue.js +20 -0
- package/dist/components/tt-form/src/form/FormItem.vue2.js +4 -0
- package/dist/components/tt-form/src/form/FormLabel.vue.js +19 -0
- package/dist/components/tt-form/src/form/FormLabel.vue2.js +4 -0
- package/dist/components/tt-form/src/form/FormMessage.vue.js +18 -0
- package/dist/components/tt-form/src/form/FormMessage.vue2.js +4 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +30 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue2.js +4 -0
- package/dist/components/tt-form/src/form/RenderContent.vue.js +31 -0
- package/dist/components/tt-form/src/form/RenderContent.vue2.js +4 -0
- package/dist/components/tt-form/src/form/injectionKeys.js +4 -0
- package/dist/components/tt-form/src/form/useFormField.js +24 -0
- package/dist/components/tt-form/src/form-render/FormField.vue.js +4 -0
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +346 -0
- package/dist/components/tt-form/src/form-render/FormFieldContact.js +54 -0
- package/dist/components/tt-form/src/form-render/FormLabel.vue.js +4 -0
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +102 -0
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +195 -0
- package/dist/components/tt-form/src/form-render/array-register/props.js +47 -0
- package/dist/components/tt-form/src/form-render/array-register/utils.js +12 -0
- package/dist/components/tt-form/src/form-render/context.js +15 -0
- package/dist/components/tt-form/src/form-render/dependencies.js +51 -0
- package/dist/components/tt-form/src/form-render/expandable.js +46 -0
- package/dist/components/tt-form/src/form-render/form.vue2.js +197 -0
- package/dist/components/tt-form/src/form-render/form.vue3.js +5 -0
- package/dist/components/tt-form/src/form-render/helper.js +22 -0
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +10 -0
- package/dist/components/tt-form/src/formApi.js +790 -0
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +223 -0
- package/dist/components/tt-form/src/group-form/GroupForm.vue3.js +5 -0
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +278 -0
- package/dist/components/tt-form/src/group-form/GroupSection.vue3.js +5 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +153 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue3.js +5 -0
- package/dist/components/tt-form/src/group-form/groupFormApi.js +700 -0
- package/dist/components/tt-form/src/group-form/lazyContext.js +38 -0
- package/dist/components/tt-form/src/group-form/useGroupForm.js +83 -0
- package/dist/components/tt-form/src/group-form/utils.js +106 -0
- package/dist/components/tt-form/src/hooks/useArrayRegistry.js +22 -0
- package/dist/components/tt-form/src/hooks/useFieldArray.js +137 -0
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +33 -0
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +81 -0
- package/dist/components/tt-form/src/index.vue2.js +149 -0
- package/dist/components/tt-form/src/index.vue3.js +5 -0
- package/dist/components/tt-form/src/shared/createContext.js +14 -0
- package/dist/components/tt-form/src/shared/global-state.js +22 -0
- package/dist/components/tt-form/src/shared/zod-defaults.js +47 -0
- package/dist/components/tt-form/src/types/forms.js +6 -0
- package/dist/components/tt-form/src/useForm.js +28 -0
- package/dist/components/tt-form/src/useFormContext.js +320 -0
- package/dist/components/tt-form/src/utils/array-path.js +18 -0
- package/dist/components/tt-form-item-error-tooltip/index.js +9 -0
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +183 -0
- package/dist/components/tt-form-item-error-tooltip/index.vue3.js +5 -0
- package/dist/components/tt-icon/components/AddIcon.vue.js +28 -0
- package/dist/components/tt-icon/components/AddIcon.vue2.js +4 -0
- package/dist/components/tt-icon/components/SubIcon.vue.js +28 -0
- package/dist/components/tt-icon/components/SubIcon.vue2.js +4 -0
- package/dist/components/tt-icon/index.js +11 -0
- package/dist/components/tt-icon/index.vue.js +8 -0
- package/dist/components/tt-icon/index.vue2.js +115 -0
- package/dist/components/tt-image/index.js +9 -0
- package/dist/components/tt-image/src/components/ImageViewer.js +41 -0
- package/dist/components/tt-image/tt-image.js +55 -0
- package/dist/components/tt-loading/index.js +8 -0
- package/dist/components/tt-loading/src/directive.js +51 -0
- package/dist/components/tt-loading/src/loading.vue.js +7 -0
- package/dist/components/tt-loading/src/loading.vue2.js +75 -0
- package/dist/components/tt-loading/src/service.js +79 -0
- package/dist/components/tt-log/index.js +7 -0
- package/dist/components/tt-log/index.vue.js +30 -0
- package/dist/components/tt-log/index.vue2.js +4 -0
- package/dist/components/tt-modal/index.js +14 -0
- package/dist/components/tt-modal/src/RenderModal.vue.js +310 -0
- package/dist/components/tt-modal/src/RenderModal.vue3.js +5 -0
- package/dist/components/tt-modal/src/components/ModalFooter.vue.js +7 -0
- package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +74 -0
- package/dist/components/tt-modal/src/components/ModalHeader.vue.js +7 -0
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +22 -0
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +48 -0
- package/dist/components/tt-modal/src/components/ModalWrapper.vue2.js +4 -0
- package/dist/components/tt-modal/src/hooks/useModalRender.js +131 -0
- package/dist/components/tt-modal/src/index.js +17 -0
- package/dist/components/tt-modal/src/props.js +75 -0
- package/dist/components/tt-modal/src/utils/modal-api.js +200 -0
- package/dist/components/tt-modal/src/utils/modal-stack.js +28 -0
- package/dist/components/tt-modal-form/hooks/useModalFormSlot.js +22 -0
- package/dist/components/tt-modal-form/index.vue.js +178 -0
- package/dist/components/tt-modal-form/index.vue2.js +4 -0
- package/dist/components/tt-modal-form/useModalForm.js +30 -0
- package/dist/components/tt-nav-anchor/index.js +8 -0
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +234 -0
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue3.js +5 -0
- package/dist/components/tt-nav-anchor/src/constants.js +4 -0
- package/dist/components/tt-panel-select/index.js +7 -0
- package/dist/components/tt-panel-select/src/common.js +4 -0
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +56 -0
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue2.js +4 -0
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +277 -0
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue2.js +4 -0
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +108 -0
- package/dist/components/tt-panel-select/src/components/PanelRight.vue2.js +4 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +184 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +91 -0
- package/dist/components/tt-panel-select/src/index.vue.js +386 -0
- package/dist/components/tt-panel-select/src/index.vue2.js +4 -0
- package/dist/components/tt-select/index.js +8 -0
- package/dist/components/tt-select/src/Select.vue.js +315 -0
- package/dist/components/tt-select/src/Select.vue3.js +5 -0
- package/dist/components/tt-select/src/components/SelectTable.vue.js +86 -0
- package/dist/components/tt-select/src/components/SelectTable.vue3.js +5 -0
- package/dist/components/tt-select/src/components/Table.vue.js +307 -0
- package/dist/components/tt-select/src/components/Table.vue3.js +5 -0
- package/dist/components/tt-select/src/const.js +19 -0
- package/dist/components/tt-select/src/hooks/useDataSource.js +196 -0
- package/dist/components/tt-select/src/hooks/useGrid.js +97 -0
- package/dist/components/tt-select/src/hooks/useKeyboard.js +63 -0
- package/dist/components/tt-select/src/hooks/usePagination.js +45 -0
- package/dist/components/tt-select/src/hooks/useSelect.js +100 -0
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +345 -0
- package/dist/components/tt-select/src/props.js +201 -0
- package/dist/components/tt-select/src/utils/index.js +16 -0
- package/dist/components/tt-table/index.js +33 -0
- package/dist/components/tt-table/src/Table.vue.js +623 -0
- package/dist/components/tt-table/src/Table.vue3.js +5 -0
- package/dist/components/tt-table/src/TableForm.vue.js +317 -0
- package/dist/components/tt-table/src/TableForm.vue2.js +4 -0
- package/dist/components/tt-table/src/componentMap.js +4 -0
- package/dist/components/tt-table/src/components/RowContext.js +24 -0
- package/dist/components/tt-table/src/components/TableAction.vue.js +222 -0
- package/dist/components/tt-table/src/components/TableAction.vue2.js +4 -0
- package/dist/components/tt-table/src/components/TableButtons.js +117 -0
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +233 -0
- package/dist/components/tt-table/src/components/TableColumnModal.vue3.js +5 -0
- package/dist/components/tt-table/src/components/TableToobalTools.vue.js +87 -0
- package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +4 -0
- package/dist/components/tt-table/src/emits.js +15 -0
- package/dist/components/tt-table/src/hooks/useCellArea.js +15 -0
- package/dist/components/tt-table/src/hooks/useColumns.js +275 -0
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +53 -0
- package/dist/components/tt-table/src/hooks/useDataSource.js +224 -0
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +64 -0
- package/dist/components/tt-table/src/hooks/usePagination.js +44 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.js +84 -0
- package/dist/components/tt-table/src/hooks/useTableContext.js +20 -0
- package/dist/components/tt-table/src/hooks/useTableEvent.js +197 -0
- package/dist/components/tt-table/src/hooks/useTableForm.js +60 -0
- package/dist/components/tt-table/src/hooks/useTableRender.js +33 -0
- package/dist/components/tt-table/src/hooks/useTableSlot.js +17 -0
- package/dist/components/tt-table/src/props.js +482 -0
- package/dist/components/tt-table/src/toolProps.js +30 -0
- package/dist/components/tt-table/src/utils/context.js +17 -0
- package/dist/components/tt-table/src/utils/table-api.js +386 -0
- package/dist/components/tt-table/src/utils/table-form-api.js +122 -0
- package/dist/components/tt-text/index.js +7 -0
- package/dist/components/tt-text/index.vue.js +7 -0
- package/dist/components/tt-text/index.vue2.js +73 -0
- package/dist/components/tt-upload/index.js +9 -0
- package/dist/components/tt-upload/src/TtUpload.vue.js +305 -0
- package/dist/components/tt-upload/src/TtUpload.vue2.js +4 -0
- package/dist/components/tt-upload/src/typing.js +107 -0
- package/dist/directives/auto-tip/index.js +62 -0
- package/dist/directives/dialog-resize/index.js +49 -0
- package/dist/directives/dialog-resize/use-css-variable.js +44 -0
- package/dist/directives/dialog-resize/use-draggable.js +35 -0
- package/dist/directives/dialog-resize/use-fullscreen.js +38 -0
- package/dist/directives/dialog-resize/use-parse-translate.js +9 -0
- package/dist/directives/dialog-resize/use-resizer.js +37 -0
- package/dist/directives/disabled-tip/index.js +78 -0
- package/dist/directives/index.js +8 -0
- package/dist/hooks/useDataPermissionOptions.js +142 -0
- package/dist/hooks/useFormSchemasLink.js +261 -0
- package/dist/hooks/useFormat.js +44 -0
- package/dist/hooks/useLoading.js +22 -0
- package/dist/hooks/useScreenshotOss.js +69 -0
- package/dist/hooks/useSetup.js +59 -0
- package/dist/index.js +142 -60274
- package/dist/plugins/default/renderCellContent.js +58 -0
- package/dist/plugins/vxeTable/switchStatus.js +91 -0
- package/dist/plugins.js +4 -146
- package/dist/style.css +1 -1
- package/dist/utils/xhr.js +8 -0
- package/package.json +5 -3
- package/dist/index-NG5FNCLD.js +0 -3430
- package/dist/index.modern-4Cf3dcJP.js +0 -3069
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { defineComponent as v, useSlots as x, useAttrs as S, createElementBlock as n, openBlock as o, Fragment as w, createVNode as f, createBlock as s, unref as r, withCtx as C, mergeProps as d, resolveDynamicComponent as b, renderSlot as m, normalizeClass as B, h as i } from "vue";
|
|
2
|
+
import { Icon as F } from "@iconify/vue";
|
|
3
|
+
import { createReusableTemplate as T } from "@vueuse/core";
|
|
4
|
+
const A = ["innerHTML"], H = ["title"], _ = /* @__PURE__ */ v({
|
|
5
|
+
name: "TtIcon",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
icon: {},
|
|
10
|
+
isSymbol: { type: Boolean, default: !1 },
|
|
11
|
+
isCustomSvg: { type: Boolean, default: !1 },
|
|
12
|
+
title: {},
|
|
13
|
+
iconFont: {},
|
|
14
|
+
isImg: { type: Boolean, default: !1 },
|
|
15
|
+
size: { default: 16 },
|
|
16
|
+
disabled: { type: Boolean, default: !1 },
|
|
17
|
+
class: {},
|
|
18
|
+
color: {}
|
|
19
|
+
},
|
|
20
|
+
emits: ["click"],
|
|
21
|
+
setup(p, { emit: h }) {
|
|
22
|
+
const e = p, y = h, c = x(), l = S(), [$, a] = T();
|
|
23
|
+
function u() {
|
|
24
|
+
e.disabled || y("click");
|
|
25
|
+
}
|
|
26
|
+
function g() {
|
|
27
|
+
return i("i", {
|
|
28
|
+
...l,
|
|
29
|
+
class: `iconfont ${e.iconFont}`,
|
|
30
|
+
style: {
|
|
31
|
+
fontSize: `${e.size}px`,
|
|
32
|
+
width: `${e.size}px`,
|
|
33
|
+
height: `${e.size}px`,
|
|
34
|
+
lineHeight: `${e.size}px`,
|
|
35
|
+
color: e.color
|
|
36
|
+
},
|
|
37
|
+
title: e.title
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function z() {
|
|
41
|
+
return i(
|
|
42
|
+
"svg",
|
|
43
|
+
{
|
|
44
|
+
...l,
|
|
45
|
+
color: e.color,
|
|
46
|
+
style: {
|
|
47
|
+
display: "inline",
|
|
48
|
+
width: `${e.size}px`,
|
|
49
|
+
height: `${e.size}px`,
|
|
50
|
+
overflow: "hidden",
|
|
51
|
+
verticalAlign: "-0.15em",
|
|
52
|
+
fill: "currentcolor"
|
|
53
|
+
},
|
|
54
|
+
"aria-hidden": "true"
|
|
55
|
+
},
|
|
56
|
+
[
|
|
57
|
+
i("use", {
|
|
58
|
+
"xlink:href": `#${e.icon}`
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function k() {
|
|
64
|
+
return i(F, {
|
|
65
|
+
...l,
|
|
66
|
+
icon: e.icon || "",
|
|
67
|
+
title: e.title,
|
|
68
|
+
width: e.size,
|
|
69
|
+
style: {
|
|
70
|
+
fontSize: `${e.size}`,
|
|
71
|
+
color: e.color
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function I() {
|
|
76
|
+
return i("img", {
|
|
77
|
+
...l,
|
|
78
|
+
src: e.icon,
|
|
79
|
+
alt: e.title,
|
|
80
|
+
style: {
|
|
81
|
+
width: `${e.size}px`,
|
|
82
|
+
height: `${e.size}px`
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return (t, D) => (o(), n(w, null, [
|
|
87
|
+
f(r($), null, {
|
|
88
|
+
default: C(() => [
|
|
89
|
+
e.isCustomSvg ? (o(), n("i", d({
|
|
90
|
+
key: 0,
|
|
91
|
+
class: "iconSvg inline-flex",
|
|
92
|
+
style: `fill:currentColor;width:${t.size}px;height:${t.size}px;`
|
|
93
|
+
}, t.$attrs, { innerHTML: t.icon }), null, 16, A)) : e.isImg ? (o(), s(I, { key: 1 })) : (o(), s(b(t.isSymbol ? z : t.iconFont ? g : k), { key: 2 }))
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}),
|
|
97
|
+
c.default || c.prefix ? (o(), n("div", d({
|
|
98
|
+
key: 0,
|
|
99
|
+
class: ["flex items-center", [{ "cursor-not-allowed": e.disabled }, e.class]],
|
|
100
|
+
title: e.title
|
|
101
|
+
}, t.$attrs, { onClick: u }), [
|
|
102
|
+
m(t.$slots, "prefix", {}, void 0, !0),
|
|
103
|
+
f(r(a)),
|
|
104
|
+
m(t.$slots, "default", {}, void 0, !0)
|
|
105
|
+
], 16, H)) : (o(), s(r(a), {
|
|
106
|
+
key: 1,
|
|
107
|
+
class: B([{ "cursor-not-allowed": e.disabled }, e.class]),
|
|
108
|
+
onClick: u
|
|
109
|
+
}, null, 8, ["class"]))
|
|
110
|
+
], 64));
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
export {
|
|
114
|
+
_ as default
|
|
115
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as n, ref as u, computed as p, createVNode as o, Fragment as r, mergeProps as f } from "vue";
|
|
2
|
+
import { withInstall as w } from "@dazhicheng/utils";
|
|
3
|
+
import { imageViewerEmits as c, imageViewerProps as g, ElImageViewer as d } from "element-plus";
|
|
4
|
+
import v from "xe-utils";
|
|
5
|
+
const C = w(/* @__PURE__ */ n({
|
|
6
|
+
name: "TtImageViewer",
|
|
7
|
+
props: {
|
|
8
|
+
...g,
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示
|
|
11
|
+
*/
|
|
12
|
+
visible: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: {
|
|
18
|
+
...c,
|
|
19
|
+
"update:visible": (e) => !0
|
|
20
|
+
},
|
|
21
|
+
setup(e, {
|
|
22
|
+
emit: i,
|
|
23
|
+
expose: s
|
|
24
|
+
}) {
|
|
25
|
+
const l = u(), a = () => {
|
|
26
|
+
i("update:visible", !e.visible), i("close");
|
|
27
|
+
}, m = p(() => v.omit(e, ["visible"]));
|
|
28
|
+
return s({
|
|
29
|
+
elImageViewerRef: l
|
|
30
|
+
}), () => o(r, null, [e.visible ? o(d, f(m.value, {
|
|
31
|
+
ref: l,
|
|
32
|
+
onClose: a,
|
|
33
|
+
onSwitch: (t) => i("switch", t),
|
|
34
|
+
onRotate: (t) => i("rotate", t)
|
|
35
|
+
}), null) : o(r, null, null)]);
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
export {
|
|
39
|
+
C as TtImageViewer,
|
|
40
|
+
C as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as f, ref as g, computed as s, createVNode as l, mergeProps as c } from "vue";
|
|
2
|
+
import { imageEmits as p, imageProps as u, ElImage as d } from "element-plus";
|
|
3
|
+
import P from "xe-utils";
|
|
4
|
+
import h from "../../assets/img/empty_images/no_data.png.js";
|
|
5
|
+
import w from "../../assets/img/empty_images/search.png.js";
|
|
6
|
+
import I from "../../assets/img/image_status/develop.png.js";
|
|
7
|
+
import E from "../../assets/img/image_status/loading.gif.js";
|
|
8
|
+
import N from "../../assets/img/image_status/loading_fail.png.js";
|
|
9
|
+
import S from "../../assets/img/image_status/no_network.png.js";
|
|
10
|
+
import v from "../../assets/img/image_status/no_permission.png.js";
|
|
11
|
+
const C = {
|
|
12
|
+
"no-network": S,
|
|
13
|
+
develop: I,
|
|
14
|
+
loading: E,
|
|
15
|
+
"loading-fail": N,
|
|
16
|
+
"no-data": h,
|
|
17
|
+
"no-permission": v,
|
|
18
|
+
"no-search": w
|
|
19
|
+
}, M = /* @__PURE__ */ f({
|
|
20
|
+
name: "TtImage",
|
|
21
|
+
props: {
|
|
22
|
+
...u,
|
|
23
|
+
/** image 图片的 集中状态 */
|
|
24
|
+
status: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: !1,
|
|
27
|
+
default: ""
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: p,
|
|
31
|
+
slots: Object,
|
|
32
|
+
setup(t, {
|
|
33
|
+
emit: o,
|
|
34
|
+
slots: a,
|
|
35
|
+
expose: n
|
|
36
|
+
}) {
|
|
37
|
+
const e = g(), m = s(() => t.status ? C[t.status] : t.src), i = s(() => P.omit(t, ["status", "src"]));
|
|
38
|
+
return n({
|
|
39
|
+
elImageRef: e
|
|
40
|
+
}), () => l(d, c(i.value, {
|
|
41
|
+
src: m.value,
|
|
42
|
+
ref: e,
|
|
43
|
+
onLoad: (r) => o("load", r),
|
|
44
|
+
onError: (r) => o("error", r),
|
|
45
|
+
onSwitch: (r) => o("switch", r),
|
|
46
|
+
onClose: () => o("close"),
|
|
47
|
+
onShow: () => o("show")
|
|
48
|
+
}), {
|
|
49
|
+
...a
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
M as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { isBoolean as n, isObject as u, isNull as r } from "@dazhicheng/utils";
|
|
2
|
+
import { createApp as f } from "vue";
|
|
3
|
+
import v from "./loading.vue.js";
|
|
4
|
+
const s = /* @__PURE__ */ new WeakMap(), p = ["relative", "absolute", "fixed", "sticky"];
|
|
5
|
+
function c(t, e = {}) {
|
|
6
|
+
const i = document.createElement("div"), l = { ...e };
|
|
7
|
+
delete l.visible;
|
|
8
|
+
const o = f(v, {
|
|
9
|
+
...l,
|
|
10
|
+
visible: !0,
|
|
11
|
+
// 组件始终可见,通过DOM操作控制显示隐藏
|
|
12
|
+
fullscreen: !1
|
|
13
|
+
});
|
|
14
|
+
return o.mount(i), {
|
|
15
|
+
targetEl: t,
|
|
16
|
+
loadingEl: i.firstElementChild,
|
|
17
|
+
app: o,
|
|
18
|
+
visible: !1,
|
|
19
|
+
// 初始状态为不可见
|
|
20
|
+
originalPosition: getComputedStyle(t).position,
|
|
21
|
+
options: e
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function a(t, e, i) {
|
|
25
|
+
if (e === t.visible && !i)
|
|
26
|
+
return;
|
|
27
|
+
const { targetEl: l, loadingEl: o } = t;
|
|
28
|
+
e ? (p.includes(getComputedStyle(l).position) || (l.style.position = "relative"), l.appendChild(o), t.visible = !0) : (o.parentNode && o.parentNode.removeChild(o), l.style.position === "relative" && t.originalPosition !== "relative" && (l.style.position = t.originalPosition), t.visible = !1), i && Object.assign(t.options, i);
|
|
29
|
+
}
|
|
30
|
+
const E = {
|
|
31
|
+
mounted(t, e) {
|
|
32
|
+
let i = {}, l = !1;
|
|
33
|
+
n(e.value) ? l = e.value : u(e.value) && !r(e.value) ? (i = { ...e.value }, l = i.visible ?? !1, delete i.visible) : l = !!e.value;
|
|
34
|
+
const o = c(t, i);
|
|
35
|
+
s.set(t, o), l && a(o, !0);
|
|
36
|
+
},
|
|
37
|
+
updated(t, e) {
|
|
38
|
+
const i = s.get(t);
|
|
39
|
+
if (!i) return;
|
|
40
|
+
let l = {}, o = !1;
|
|
41
|
+
n(e.value) ? o = e.value : u(e.value) && !r(e.value) ? (l = { ...e.value }, o = l.visible ?? !1, delete l.visible) : o = !!e.value, a(i, o, l);
|
|
42
|
+
},
|
|
43
|
+
unmounted(t) {
|
|
44
|
+
const e = s.get(t);
|
|
45
|
+
e && (a(e, !1), e.app.unmount(), s.delete(t));
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
E as default,
|
|
50
|
+
E as vTtLoading
|
|
51
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as s, computed as r, createBlock as c, openBlock as o, Transition as d, withCtx as f, createElementBlock as n, createCommentVNode as a, normalizeStyle as u, normalizeClass as g, createElementVNode as m, createVNode as p, unref as y, toDisplayString as h } from "vue";
|
|
2
|
+
import { TtIcon as x } from "../../tt-icon/index.js";
|
|
3
|
+
const v = { class: "tt-loading__spinner" }, _ = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "tt-loading__text"
|
|
6
|
+
}, k = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
|
|
7
|
+
<style>
|
|
8
|
+
.spinner { transform-origin: 20px 20px; animation: rotate 1.6s linear infinite; }
|
|
9
|
+
.dot { fill: var(--theme-color); animation: fade 1.6s infinite; }
|
|
10
|
+
.dot:nth-child(1) { animation-delay: 0s; }
|
|
11
|
+
.dot:nth-child(2) { animation-delay: 0.5s; }
|
|
12
|
+
.dot:nth-child(3) { animation-delay: 1s; }
|
|
13
|
+
.dot:nth-child(4) { animation-delay: 1.5s; }
|
|
14
|
+
@keyframes rotate { 100% { transform: rotate(360deg); } }
|
|
15
|
+
@keyframes fade { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
|
|
16
|
+
</style>
|
|
17
|
+
<g class="spinner">
|
|
18
|
+
<circle class="dot" cx="20" cy="8" r="4"/>
|
|
19
|
+
<circle class="dot" cx="32" cy="20" r="4"/>
|
|
20
|
+
<circle class="dot" cx="20" cy="32" r="4"/>
|
|
21
|
+
<circle class="dot" cx="8" cy="20" r="4"/>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>`, z = /* @__PURE__ */ s({
|
|
24
|
+
name: "TtLoading",
|
|
25
|
+
inheritAttrs: !1,
|
|
26
|
+
__name: "loading",
|
|
27
|
+
props: {
|
|
28
|
+
visible: { type: Boolean, default: !1 },
|
|
29
|
+
fullscreen: { type: Boolean, default: !1 },
|
|
30
|
+
text: { default: "" },
|
|
31
|
+
svg: { default: "" },
|
|
32
|
+
icon: {},
|
|
33
|
+
background: { default: "rgba(255, 255, 255, 0.8)" },
|
|
34
|
+
zIndex: { default: 99 },
|
|
35
|
+
textColor: { default: "#606266" },
|
|
36
|
+
spinnerColor: { default: "#409eff" }
|
|
37
|
+
},
|
|
38
|
+
setup(l) {
|
|
39
|
+
const t = l, i = r(() => ({
|
|
40
|
+
backgroundColor: t.background,
|
|
41
|
+
zIndex: t.fullscreen ? "9999999" : t.zIndex,
|
|
42
|
+
"--tt-loading-spinner-color": t.spinnerColor,
|
|
43
|
+
"--tt-loading-text-color": t.textColor
|
|
44
|
+
}));
|
|
45
|
+
return (e, C) => (o(), c(d, {
|
|
46
|
+
name: "tt-loading-fade",
|
|
47
|
+
appear: ""
|
|
48
|
+
}, {
|
|
49
|
+
default: f(() => [
|
|
50
|
+
e.visible ? (o(), n("div", {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: g(["tt-loading", {
|
|
53
|
+
"tt-loading--fullscreen": e.fullscreen,
|
|
54
|
+
"tt-loading--absolute": !e.fullscreen
|
|
55
|
+
}]),
|
|
56
|
+
style: u(i.value)
|
|
57
|
+
}, [
|
|
58
|
+
m("div", v, [
|
|
59
|
+
p(y(x), {
|
|
60
|
+
"is-custom-svg": "",
|
|
61
|
+
icon: e.svg || k,
|
|
62
|
+
size: 52,
|
|
63
|
+
class: "tt-loading__circular"
|
|
64
|
+
}, null, 8, ["icon"])
|
|
65
|
+
]),
|
|
66
|
+
e.text ? (o(), n("p", _, h(e.text), 1)) : a("", !0)
|
|
67
|
+
], 6)) : a("", !0)
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
z as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ref as c, defineComponent as v, h as b, createApp as y } from "vue";
|
|
2
|
+
import C from "./loading.vue.js";
|
|
3
|
+
const x = ["relative", "absolute", "fixed", "sticky"];
|
|
4
|
+
function f(o = {}) {
|
|
5
|
+
const {
|
|
6
|
+
target: n,
|
|
7
|
+
fullscreen: s = !n,
|
|
8
|
+
text: p = "",
|
|
9
|
+
visible: m = !0,
|
|
10
|
+
...g
|
|
11
|
+
} = o;
|
|
12
|
+
let e, l = "";
|
|
13
|
+
if (n) {
|
|
14
|
+
if (typeof n == "string") {
|
|
15
|
+
if (e = document.querySelector(n), !e)
|
|
16
|
+
throw new Error(`Loading target element not found: ${n}`);
|
|
17
|
+
} else
|
|
18
|
+
e = n;
|
|
19
|
+
l = getComputedStyle(e).position;
|
|
20
|
+
} else
|
|
21
|
+
e = document.body;
|
|
22
|
+
const a = c(p), d = c(m), r = document.createElement("div"), h = v({
|
|
23
|
+
name: "LoadingWrapper",
|
|
24
|
+
setup() {
|
|
25
|
+
return {
|
|
26
|
+
textRef: a,
|
|
27
|
+
visibleRef: d
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
render() {
|
|
31
|
+
return b(C, {
|
|
32
|
+
...g,
|
|
33
|
+
text: this.textRef,
|
|
34
|
+
visible: this.visibleRef,
|
|
35
|
+
fullscreen: s
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}), u = y(h);
|
|
39
|
+
return u.mount(r), !s && e !== document.body ? (x.includes(l) || (e.style.position = "relative"), e.appendChild(r.firstElementChild)) : document.body.appendChild(r.firstElementChild), {
|
|
40
|
+
close() {
|
|
41
|
+
const t = r.firstElementChild;
|
|
42
|
+
t != null && t.parentNode && t.parentNode.removeChild(t), !s && e !== document.body && e.style.position === "relative" && l !== "relative" && (e.style.position = l), u.unmount();
|
|
43
|
+
},
|
|
44
|
+
setText(t) {
|
|
45
|
+
a.value = t;
|
|
46
|
+
},
|
|
47
|
+
setVisible(t) {
|
|
48
|
+
d.value = t;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
let i = null;
|
|
53
|
+
const R = {
|
|
54
|
+
/**
|
|
55
|
+
* 显示loading
|
|
56
|
+
*/
|
|
57
|
+
show(o = {}) {
|
|
58
|
+
return f(o);
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* 显示全屏loading
|
|
62
|
+
*/
|
|
63
|
+
showFullscreen(o = {}) {
|
|
64
|
+
return i && i.close(), i = f({
|
|
65
|
+
...o,
|
|
66
|
+
fullscreen: !0
|
|
67
|
+
}), i;
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* 关闭全屏loading
|
|
71
|
+
*/
|
|
72
|
+
hideFullscreen() {
|
|
73
|
+
i && (i.close(), i = null);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
R as Loading,
|
|
78
|
+
R as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as n, openBlock as a, unref as e, mergeProps as p } from "vue";
|
|
2
|
+
import { useDesign as c } from "@dazhicheng/hooks";
|
|
3
|
+
import { useTableRender as f } from "@dazhicheng-ui/components/tt-table";
|
|
4
|
+
const _ = /* @__PURE__ */ s({
|
|
5
|
+
name: "TtLog",
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
tableProps: { default: () => ({}) }
|
|
9
|
+
},
|
|
10
|
+
setup(t) {
|
|
11
|
+
const o = t, { prefixCls: r } = c("log"), [i] = f({
|
|
12
|
+
autoHeight: !0,
|
|
13
|
+
showPager: !0,
|
|
14
|
+
showToolbar: !1,
|
|
15
|
+
showSetting: !1,
|
|
16
|
+
columns: [
|
|
17
|
+
{ field: "id", title: "日志ID" },
|
|
18
|
+
{ field: "operateType", title: "操作类型" },
|
|
19
|
+
{ field: "rizhi_content", title: "操作人" },
|
|
20
|
+
{ field: "rizhi_content", title: "操作内容", width: 300 },
|
|
21
|
+
{ field: "rizhi_content", title: "操作时间" }
|
|
22
|
+
],
|
|
23
|
+
...o.tableProps
|
|
24
|
+
});
|
|
25
|
+
return (l, u) => (a(), n(e(i), p({ class: e(r) }, l.$attrs), null, 16, ["class"]));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_ as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { withInstall as o } from "@dazhicheng/utils";
|
|
2
|
+
import t from "./src/RenderModal.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import "@tanstack/vue-store";
|
|
5
|
+
import "vue";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "@dazhicheng-ui/hooks/useSetup";
|
|
9
|
+
const r = o(t), e = r;
|
|
10
|
+
export {
|
|
11
|
+
r as RenderModal,
|
|
12
|
+
e as TtModal,
|
|
13
|
+
r as default
|
|
14
|
+
};
|