hy-dispatch-ui-v3 0.1.0 → 0.1.2
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/tailwind.css +186 -45
- package/es/bussiness/index.mjs +0 -1
- package/es/components/appButton/appButton.vue.mjs +133 -0
- package/es/components/appButton/index.mjs +6 -0
- package/es/components/appButton/style/appButton.scss +289 -0
- package/es/components/appConfigProvider/appConfigProvider.vue.mjs +91 -0
- package/es/components/appConfigProvider/index.mjs +6 -0
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +105 -60
- package/es/components/appConfirmDialog/appConfirmMethod.mjs +49 -27
- package/es/components/appConfirmDialog/index.mjs +0 -1
- package/es/components/appDatePicker/appDatePicker.vue.mjs +0 -1
- package/es/components/appDatePicker/index.mjs +0 -1
- package/es/components/appForm/appForm.vue.mjs +64 -67
- package/es/components/appForm/index.mjs +0 -1
- package/es/components/appForm/js/index.mjs +0 -1
- package/es/components/appForm/js/useAppForm.mjs +0 -1
- package/es/components/appForm/style/appForm.scss +1 -1
- package/es/components/{svgIcon/svgIcon.vue.mjs → appIcon/appIcon.vue.mjs} +4 -5
- package/es/components/appIcon/index.mjs +6 -0
- package/es/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
- package/es/components/{svgIcon/iconBox.vue.mjs → appIconBox/appIconBox.vue.mjs} +6 -7
- package/es/components/appIconBox/index.mjs +6 -0
- package/es/components/appIconBox/style/appIconBox.scss +27 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs +18 -11
- package/es/components/appOrgCascader/index.mjs +0 -1
- package/es/components/appSearch/appSearch.vue.mjs +2 -6
- package/es/components/appSearch/index.mjs +0 -1
- package/es/components/appSearch/js/index.mjs +5 -6
- package/es/components/appSearch/js/useAppSearch.mjs +0 -1
- package/es/components/appSearch/style/appSearch.scss +17 -11
- package/es/components/appTable/appTable.vue.mjs +57 -32
- package/es/components/appTable/cpns/columnSelect.vue.mjs +87 -123
- package/es/components/appTable/cpns/columnSelectItem.vue.mjs +5 -0
- package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +167 -0
- package/es/components/appTable/index.mjs +0 -1
- package/es/components/appTable/js/index.mjs +9 -8
- package/es/components/appTable/js/search.mjs +6 -6
- package/es/components/appTable/js/useAppTable.mjs +6 -3
- package/es/components/appTable/style/appTable.scss +20 -11
- package/es/components/appTooltip/appTooltip.vue.mjs +0 -1
- package/es/components/appTooltip/index.mjs +0 -1
- package/es/components/appUserAvatar/appUserAvatar.vue.mjs +136 -0
- package/es/components/appUserAvatar/index.mjs +6 -0
- package/es/components/appUserAvatar/style/appUserAvatar.scss +33 -0
- package/es/components/index.mjs +5 -2
- package/es/config/index.mjs +0 -1
- package/es/constants/index.mjs +0 -1
- package/es/constants/keys.mjs +0 -1
- package/es/hooks/index.mjs +4 -3
- package/es/hooks/useApi.mjs +20 -5
- package/es/hooks/useGlobalConfig.mjs +19 -10
- package/es/hooks/useLocale.mjs +1 -2
- package/es/hooks/useMixins.mjs +0 -1
- package/es/{store/maintain.mjs → hooks/useResizeHandler.mjs} +29 -44
- package/es/hooks/useUserAvatarMap.mjs +9 -0
- package/es/index.mjs +9 -6
- package/es/locale/{en_US.mjs → en.mjs} +8 -5
- package/es/locale/index.mjs +2 -3
- package/es/locale/zh_CN.mjs +6 -3
- package/es/make-installer.mjs +2 -8
- package/es/static/hy-svg-icons.mjs +11 -0
- package/es/style/element/element.scss +16313 -0
- package/es/style/element/index.scss +932 -0
- package/es/style/index.scss +37 -0
- package/es/style/theme.scss +18 -120
- package/es/utils/adaptive.mjs +0 -1
- package/es/utils/bus.mjs +0 -1
- package/es/utils/crypto.mjs +0 -1
- package/es/utils/date.mjs +0 -1
- package/es/utils/handler.mjs +0 -1
- package/es/utils/index.mjs +0 -1
- package/es/utils/is.mjs +0 -1
- package/es/version.mjs +1 -2
- package/lib/bussiness/index.js +0 -1
- package/lib/components/appButton/appButton.vue.js +137 -0
- package/lib/components/appButton/index.js +11 -0
- package/lib/components/appButton/style/appButton.scss +289 -0
- package/lib/components/appConfigProvider/appConfigProvider.vue.js +114 -0
- package/lib/components/appConfigProvider/index.js +11 -0
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +103 -58
- package/lib/components/appConfirmDialog/appConfirmMethod.js +48 -26
- package/lib/components/appConfirmDialog/index.js +0 -1
- package/lib/components/appDatePicker/appDatePicker.vue.js +0 -1
- package/lib/components/appDatePicker/index.js +0 -1
- package/lib/components/appForm/appForm.vue.js +61 -64
- package/lib/components/appForm/index.js +0 -1
- package/lib/components/appForm/js/index.js +0 -1
- package/lib/components/appForm/js/useAppForm.js +0 -1
- package/lib/components/appForm/style/appForm.scss +1 -1
- package/lib/components/{svgIcon/svgIcon.vue.js → appIcon/appIcon.vue.js} +4 -5
- package/lib/components/appIcon/index.js +11 -0
- package/lib/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
- package/lib/components/{svgIcon/iconBox.vue.js → appIconBox/appIconBox.vue.js} +6 -7
- package/lib/components/appIconBox/index.js +11 -0
- package/lib/components/appIconBox/style/appIconBox.scss +27 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js +18 -11
- package/lib/components/appOrgCascader/index.js +0 -1
- package/lib/components/appSearch/appSearch.vue.js +2 -6
- package/lib/components/appSearch/index.js +0 -1
- package/lib/components/appSearch/js/index.js +5 -6
- package/lib/components/appSearch/js/useAppSearch.js +0 -1
- package/lib/components/appSearch/style/appSearch.scss +17 -11
- package/lib/components/appTable/appTable.vue.js +56 -31
- package/lib/components/appTable/cpns/columnSelect.vue.js +86 -122
- package/lib/components/appTable/cpns/columnSelectItem.vue.js +9 -0
- package/lib/components/appTable/cpns/columnSelectItem.vue2.js +171 -0
- package/lib/components/appTable/index.js +0 -1
- package/lib/components/appTable/js/index.js +9 -7
- package/lib/components/appTable/js/search.js +6 -6
- package/lib/components/appTable/js/useAppTable.js +6 -3
- package/lib/components/appTable/style/appTable.scss +20 -11
- package/lib/components/appTooltip/appTooltip.vue.js +0 -1
- package/lib/components/appTooltip/index.js +0 -1
- package/lib/components/appUserAvatar/appUserAvatar.vue.js +140 -0
- package/lib/components/appUserAvatar/index.js +11 -0
- package/lib/components/appUserAvatar/style/appUserAvatar.scss +33 -0
- package/lib/components/index.js +24 -18
- package/lib/config/index.js +0 -1
- package/lib/constants/index.js +0 -1
- package/lib/constants/keys.js +0 -1
- package/lib/hooks/index.js +8 -2
- package/lib/hooks/useApi.js +19 -3
- package/lib/hooks/useGlobalConfig.js +21 -11
- package/lib/hooks/useLocale.js +1 -2
- package/lib/hooks/useMixins.js +0 -1
- package/lib/{store/maintain.js → hooks/useResizeHandler.js} +29 -44
- package/lib/hooks/useUserAvatarMap.js +12 -0
- package/lib/index.js +37 -28
- package/lib/locale/{en_US.js → en.js} +8 -5
- package/lib/locale/index.js +3 -4
- package/lib/locale/zh_CN.js +6 -3
- package/lib/make-installer.js +1 -7
- package/lib/static/hy-svg-icons.js +13 -0
- package/lib/style/element/element.scss +16313 -0
- package/lib/style/element/index.scss +932 -0
- package/lib/style/index.scss +37 -0
- package/lib/style/theme.scss +18 -120
- package/lib/utils/adaptive.js +0 -1
- package/lib/utils/bus.js +0 -1
- package/lib/utils/crypto.js +0 -1
- package/lib/utils/date.js +0 -1
- package/lib/utils/handler.js +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/is.js +0 -1
- package/lib/version.js +1 -2
- package/package.json +17 -7
- package/es/bussiness/index.mjs.map +0 -1
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs.map +0 -1
- package/es/components/appConfirmDialog/appConfirmMethod.mjs.map +0 -1
- package/es/components/appConfirmDialog/index.mjs.map +0 -1
- package/es/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
- package/es/components/appDatePicker/appDatePicker.vue.mjs.map +0 -1
- package/es/components/appDatePicker/index.mjs.map +0 -1
- package/es/components/appForm/appForm.vue.mjs.map +0 -1
- package/es/components/appForm/index.mjs.map +0 -1
- package/es/components/appForm/js/index.mjs.map +0 -1
- package/es/components/appForm/js/useAppForm.mjs.map +0 -1
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs.map +0 -1
- package/es/components/appOrgCascader/index.mjs.map +0 -1
- package/es/components/appSearch/appSearch.vue.mjs.map +0 -1
- package/es/components/appSearch/index.mjs.map +0 -1
- package/es/components/appSearch/js/index.mjs.map +0 -1
- package/es/components/appSearch/js/useAppSearch.mjs.map +0 -1
- package/es/components/appTable/appTable.vue.mjs.map +0 -1
- package/es/components/appTable/cpns/columnSelect.vue.mjs.map +0 -1
- package/es/components/appTable/index.mjs.map +0 -1
- package/es/components/appTable/js/index.mjs.map +0 -1
- package/es/components/appTable/js/search.mjs.map +0 -1
- package/es/components/appTable/js/useAppTable.mjs.map +0 -1
- package/es/components/appTooltip/appTooltip.vue.mjs.map +0 -1
- package/es/components/appTooltip/index.mjs.map +0 -1
- package/es/components/index.mjs.map +0 -1
- package/es/components/svgIcon/iconBox.vue.mjs.map +0 -1
- package/es/components/svgIcon/index.mjs +0 -9
- package/es/components/svgIcon/index.mjs.map +0 -1
- package/es/components/svgIcon/style/iconBox.scss +0 -13
- package/es/components/svgIcon/svgIcon.vue.mjs.map +0 -1
- package/es/config/index.mjs.map +0 -1
- package/es/constants/index.mjs.map +0 -1
- package/es/constants/keys.mjs.map +0 -1
- package/es/hooks/index.mjs.map +0 -1
- package/es/hooks/useApi.mjs.map +0 -1
- package/es/hooks/useGlobalConfig.mjs.map +0 -1
- package/es/hooks/useLocale.mjs.map +0 -1
- package/es/hooks/useMixins.mjs.map +0 -1
- package/es/index.mjs.map +0 -1
- package/es/locale/en_US.mjs.map +0 -1
- package/es/locale/index.mjs.map +0 -1
- package/es/locale/zh_CN.mjs.map +0 -1
- package/es/make-installer.mjs.map +0 -1
- package/es/store/index.mjs +0 -7
- package/es/store/index.mjs.map +0 -1
- package/es/store/maintain.mjs.map +0 -1
- package/es/utils/adaptive.mjs.map +0 -1
- package/es/utils/bus.mjs.map +0 -1
- package/es/utils/crypto.mjs.map +0 -1
- package/es/utils/date.mjs.map +0 -1
- package/es/utils/handler.mjs.map +0 -1
- package/es/utils/index.mjs.map +0 -1
- package/es/utils/is.mjs.map +0 -1
- package/es/version.mjs.map +0 -1
- package/lib/bussiness/index.js.map +0 -1
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js.map +0 -1
- package/lib/components/appConfirmDialog/appConfirmMethod.js.map +0 -1
- package/lib/components/appConfirmDialog/index.js.map +0 -1
- package/lib/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
- package/lib/components/appDatePicker/appDatePicker.vue.js.map +0 -1
- package/lib/components/appDatePicker/index.js.map +0 -1
- package/lib/components/appForm/appForm.vue.js.map +0 -1
- package/lib/components/appForm/index.js.map +0 -1
- package/lib/components/appForm/js/index.js.map +0 -1
- package/lib/components/appForm/js/useAppForm.js.map +0 -1
- package/lib/components/appOrgCascader/appOrgCascader.vue.js.map +0 -1
- package/lib/components/appOrgCascader/index.js.map +0 -1
- package/lib/components/appSearch/appSearch.vue.js.map +0 -1
- package/lib/components/appSearch/index.js.map +0 -1
- package/lib/components/appSearch/js/index.js.map +0 -1
- package/lib/components/appSearch/js/useAppSearch.js.map +0 -1
- package/lib/components/appTable/appTable.vue.js.map +0 -1
- package/lib/components/appTable/cpns/columnSelect.vue.js.map +0 -1
- package/lib/components/appTable/index.js.map +0 -1
- package/lib/components/appTable/js/index.js.map +0 -1
- package/lib/components/appTable/js/search.js.map +0 -1
- package/lib/components/appTable/js/useAppTable.js.map +0 -1
- package/lib/components/appTooltip/appTooltip.vue.js.map +0 -1
- package/lib/components/appTooltip/index.js.map +0 -1
- package/lib/components/index.js.map +0 -1
- package/lib/components/svgIcon/iconBox.vue.js.map +0 -1
- package/lib/components/svgIcon/index.js +0 -15
- package/lib/components/svgIcon/index.js.map +0 -1
- package/lib/components/svgIcon/style/iconBox.scss +0 -13
- package/lib/components/svgIcon/svgIcon.vue.js.map +0 -1
- package/lib/config/index.js.map +0 -1
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/keys.js.map +0 -1
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useApi.js.map +0 -1
- package/lib/hooks/useGlobalConfig.js.map +0 -1
- package/lib/hooks/useLocale.js.map +0 -1
- package/lib/hooks/useMixins.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/locale/en_US.js.map +0 -1
- package/lib/locale/index.js.map +0 -1
- package/lib/locale/zh_CN.js.map +0 -1
- package/lib/make-installer.js.map +0 -1
- package/lib/store/index.js +0 -10
- package/lib/store/index.js.map +0 -1
- package/lib/store/maintain.js.map +0 -1
- package/lib/utils/adaptive.js.map +0 -1
- package/lib/utils/bus.js.map +0 -1
- package/lib/utils/crypto.js.map +0 -1
- package/lib/utils/date.js.map +0 -1
- package/lib/utils/handler.js.map +0 -1
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/is.js.map +0 -1
- package/lib/version.js.map +0 -1
|
@@ -1,42 +1,66 @@
|
|
|
1
1
|
import { unref, createVNode, render } from 'vue';
|
|
2
|
+
import { defaultAxios } from '../../hooks/useApi.mjs';
|
|
3
|
+
import { AppConfigProvider } from '../appConfigProvider/index.mjs';
|
|
2
4
|
import _sfc_main from './appConfirmDialog.vue.mjs';
|
|
3
|
-
import {
|
|
5
|
+
import { useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
|
|
4
6
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
7
|
|
|
6
8
|
function appConfirmMethod(config) {
|
|
7
|
-
|
|
8
|
-
const currentConfig = {
|
|
9
|
+
let container = document.createDocumentFragment();
|
|
10
|
+
const currentConfig = {
|
|
11
|
+
...config,
|
|
12
|
+
onHide: () => {
|
|
13
|
+
destroy();
|
|
14
|
+
}
|
|
15
|
+
};
|
|
9
16
|
let confirmDialogInstance = null;
|
|
10
17
|
function render$1(props) {
|
|
18
|
+
const globalConfig = useGlobalConfig();
|
|
19
|
+
const {
|
|
20
|
+
locale = "zhCn",
|
|
21
|
+
api = defaultAxios,
|
|
22
|
+
...args
|
|
23
|
+
} = unref(globalConfig) || {};
|
|
11
24
|
const vm = createVNode(_sfc_main, props);
|
|
12
|
-
|
|
25
|
+
const configProvider = createVNode(
|
|
26
|
+
AppConfigProvider,
|
|
27
|
+
{
|
|
28
|
+
locale,
|
|
29
|
+
api,
|
|
30
|
+
...args
|
|
31
|
+
},
|
|
32
|
+
() => [vm]
|
|
33
|
+
);
|
|
34
|
+
render(configProvider, container);
|
|
13
35
|
return vm;
|
|
14
36
|
}
|
|
15
|
-
function destroy() {
|
|
16
|
-
confirmDialogInstance
|
|
17
|
-
|
|
37
|
+
async function destroy() {
|
|
38
|
+
if (confirmDialogInstance) {
|
|
39
|
+
confirmDialogInstance.component.exposed.close();
|
|
40
|
+
}
|
|
41
|
+
if (container) {
|
|
42
|
+
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
43
|
+
render(null, container);
|
|
44
|
+
}
|
|
45
|
+
container = null;
|
|
46
|
+
confirmDialogInstance = null;
|
|
18
47
|
}
|
|
19
48
|
confirmDialogInstance = render$1(currentConfig);
|
|
20
49
|
confirmDialogInstance.component.exposed.show();
|
|
21
50
|
return destroy;
|
|
22
51
|
}
|
|
23
|
-
_sfc_main.tip =
|
|
24
|
-
|
|
25
|
-
const globalConfig = getGlobalConfig();
|
|
26
|
-
const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
|
|
52
|
+
_sfc_main.tip = (props) => {
|
|
53
|
+
const { t } = useLocale();
|
|
27
54
|
return appConfirmMethod({
|
|
28
|
-
showCancel: false,
|
|
29
|
-
submitText: t("confirmDialog.haveKnown"),
|
|
30
55
|
dialogTitle: t("confirmDialog.prompt"),
|
|
31
56
|
title: t("confirmDialog.prompt"),
|
|
32
57
|
content: t("confirmDialog.content"),
|
|
58
|
+
showCancel: false,
|
|
33
59
|
...props
|
|
34
60
|
});
|
|
35
61
|
};
|
|
36
|
-
_sfc_main.confirm =
|
|
37
|
-
|
|
38
|
-
const globalConfig = getGlobalConfig();
|
|
39
|
-
const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
|
|
62
|
+
_sfc_main.confirm = (props) => {
|
|
63
|
+
const { t } = useLocale();
|
|
40
64
|
return appConfirmMethod({
|
|
41
65
|
dialogTitle: t("confirmDialog.prompt"),
|
|
42
66
|
title: t("confirmDialog.prompt"),
|
|
@@ -44,30 +68,28 @@ _sfc_main.confirm = function(props) {
|
|
|
44
68
|
...props
|
|
45
69
|
});
|
|
46
70
|
};
|
|
47
|
-
_sfc_main.warning =
|
|
48
|
-
|
|
49
|
-
const globalConfig = getGlobalConfig();
|
|
50
|
-
const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
|
|
71
|
+
_sfc_main.warning = (props) => {
|
|
72
|
+
const { t } = useLocale();
|
|
51
73
|
return appConfirmMethod({
|
|
52
74
|
dialogTitle: t("confirmDialog.riskWarning"),
|
|
53
75
|
title: t("confirmDialog.prompt"),
|
|
54
76
|
titleClass: "text-warning",
|
|
55
77
|
content: t("confirmDialog.content"),
|
|
78
|
+
iconColor: "rgb(var(--hy-warning))",
|
|
56
79
|
...props
|
|
57
80
|
});
|
|
58
81
|
};
|
|
59
|
-
_sfc_main.danger =
|
|
60
|
-
|
|
61
|
-
const globalConfig = getGlobalConfig();
|
|
62
|
-
const { t } = useLocale((_a = unref(globalConfig)) == null ? void 0 : _a.locale);
|
|
82
|
+
_sfc_main.danger = (props) => {
|
|
83
|
+
const { t } = useLocale();
|
|
63
84
|
return appConfirmMethod({
|
|
64
85
|
dialogTitle: t("confirmDialog.dangerousOperation"),
|
|
65
|
-
titleClass: "text-
|
|
86
|
+
titleClass: "text-danger",
|
|
66
87
|
title: t("confirmDialog.prompt"),
|
|
67
88
|
content: t("confirmDialog.content"),
|
|
89
|
+
submitType: "danger",
|
|
90
|
+
iconColor: "rgb(var(--hy-danger))",
|
|
68
91
|
...props
|
|
69
92
|
});
|
|
70
93
|
};
|
|
71
94
|
|
|
72
95
|
export { _sfc_main as default };
|
|
73
|
-
//# sourceMappingURL=appConfirmMethod.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList,
|
|
2
|
-
import { ElForm, ElFormItem, ElInput, ElSelect, ElRadioGroup, ElCheckboxGroup
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, renderSlot, toDisplayString, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { ElForm, ElFormItem, ElPopover, ElInput, ElSelect, ElRadioGroup, ElCheckboxGroup } from 'element-plus';
|
|
3
|
+
import { AppIcon } from '../appIcon/index.mjs';
|
|
4
4
|
import _sfc_main$1 from '../appDatePicker/appDatePicker.vue.mjs';
|
|
5
|
-
import { columnShowHandler, columnItemStyle, renderText, isDisabled
|
|
5
|
+
import { columnShowHandler, columnItemStyle, isRequired, renderText, isDisabled } from './js/index.mjs';
|
|
6
6
|
import { resetAppFormValue } from './js/useAppForm.mjs';
|
|
7
7
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
8
8
|
import { isArray, isNumber } from '../../utils/is.mjs';
|
|
@@ -130,73 +130,71 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
130
130
|
prop: unref(isArray)(column.field) ? column.field[0] : column.field,
|
|
131
131
|
style: normalizeStyle(unref(columnItemStyle)(props, column))
|
|
132
132
|
}, {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
{
|
|
141
|
-
key: 1,
|
|
142
|
-
class: "text-main"
|
|
143
|
-
},
|
|
144
|
-
toDisplayString(column.label),
|
|
145
|
-
1
|
|
146
|
-
/* TEXT */
|
|
147
|
-
)),
|
|
148
|
-
unref(isRequired)(props, column) ? (openBlock(), createElementBlock("span", {
|
|
149
|
-
key: 2,
|
|
150
|
-
class: "label-required"
|
|
151
|
-
})) : createCommentVNode("v-if", true),
|
|
152
|
-
column.help ? (openBlock(), createBlock(
|
|
153
|
-
unref(ElPopover),
|
|
154
|
-
{
|
|
155
|
-
key: 3,
|
|
156
|
-
placement: "bottom-start",
|
|
157
|
-
"popper-class": "popover_echarts w-[200px]",
|
|
158
|
-
trigger: "hover"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
reference: withCtx(() => [
|
|
162
|
-
createElementVNode("div", { class: "flex items-center" }, [
|
|
163
|
-
createVNode(unref(SvgIcon), {
|
|
164
|
-
"svg-name": "help",
|
|
165
|
-
"class-name": "!w-3 !h-3 ml-1 svgBox"
|
|
166
|
-
}),
|
|
167
|
-
createTextVNode(
|
|
168
|
-
" " + toDisplayString(unref(t)("hy.help")),
|
|
169
|
-
1
|
|
170
|
-
/* TEXT */
|
|
171
|
-
)
|
|
172
|
-
])
|
|
173
|
-
]),
|
|
174
|
-
default: withCtx(() => [
|
|
133
|
+
default: withCtx(() => {
|
|
134
|
+
var _a;
|
|
135
|
+
return [
|
|
136
|
+
createCommentVNode(" \u8868\u5355\u9879label "),
|
|
137
|
+
createElementVNode("div", { class: "w-full flex justify-between text-main" }, [
|
|
138
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
139
|
+
renderSlot(_ctx.$slots, column.labelSlot, { column }, () => [
|
|
175
140
|
createElementVNode(
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
toDisplayString(
|
|
141
|
+
"span",
|
|
142
|
+
{ class: "text-main" },
|
|
143
|
+
toDisplayString(column.label),
|
|
179
144
|
1
|
|
180
145
|
/* TEXT */
|
|
181
146
|
)
|
|
182
147
|
]),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
148
|
+
unref(isRequired)(props, column) ? (openBlock(), createElementBlock("span", {
|
|
149
|
+
key: 0,
|
|
150
|
+
class: "label-required"
|
|
151
|
+
})) : createCommentVNode("v-if", true),
|
|
152
|
+
column.help ? (openBlock(), createBlock(
|
|
153
|
+
unref(ElPopover),
|
|
154
|
+
{
|
|
155
|
+
key: 1,
|
|
156
|
+
placement: "bottom-start",
|
|
157
|
+
"popper-class": "popover_echarts w-[200px]",
|
|
158
|
+
trigger: "hover"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
reference: withCtx(() => [
|
|
162
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
163
|
+
createVNode(unref(AppIcon), {
|
|
164
|
+
"svg-name": "help",
|
|
165
|
+
"class-name": "!w-3 !h-3 ml-1 svgBox"
|
|
166
|
+
}),
|
|
167
|
+
createTextVNode(
|
|
168
|
+
" " + toDisplayString(unref(t)("hy.help")),
|
|
169
|
+
1
|
|
170
|
+
/* TEXT */
|
|
171
|
+
)
|
|
172
|
+
])
|
|
173
|
+
]),
|
|
174
|
+
default: withCtx(() => [
|
|
175
|
+
createElementVNode(
|
|
176
|
+
"div",
|
|
177
|
+
null,
|
|
178
|
+
toDisplayString(unref(funRunHandler)(column.help)),
|
|
179
|
+
1
|
|
180
|
+
/* TEXT */
|
|
181
|
+
)
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
/* DYNAMIC */
|
|
185
|
+
},
|
|
186
|
+
1024
|
|
187
|
+
/* DYNAMIC_SLOTS */
|
|
188
|
+
)) : createCommentVNode("v-if", true)
|
|
189
|
+
]),
|
|
190
|
+
column.rightSlot && _ctx.$slots[column.rightSlot] ? (openBlock(), createElementBlock("div", {
|
|
191
|
+
key: 0,
|
|
192
|
+
class: "ml-2"
|
|
193
|
+
}, [
|
|
194
|
+
renderSlot(_ctx.$slots, column.rightSlot)
|
|
195
|
+
])) : createCommentVNode("v-if", true)
|
|
196
|
+
]),
|
|
197
|
+
createCommentVNode(" \u8868\u5355\u7EC4\u4EF6 "),
|
|
200
198
|
column.readonly || __props.readonly || !column.type && !column.slot ? (openBlock(), createElementBlock(
|
|
201
199
|
"span",
|
|
202
200
|
{ key: 0 },
|
|
@@ -328,4 +326,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
328
326
|
});
|
|
329
327
|
|
|
330
328
|
export { _sfc_main as default };
|
|
331
|
-
//# sourceMappingURL=appForm.vue.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode } from 'vue';
|
|
2
2
|
|
|
3
|
-
import "./style/
|
|
3
|
+
import "./style/appIcon.scss";
|
|
4
4
|
|
|
5
5
|
const __default__ = defineComponent({
|
|
6
|
-
name: "
|
|
6
|
+
name: "AppIcon"
|
|
7
7
|
});
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
9
9
|
props: {
|
|
@@ -26,9 +26,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
26
26
|
const iconName = computed(() => `#${props.prefix}${props.svgName}`);
|
|
27
27
|
const svgClass = computed(() => {
|
|
28
28
|
if (props.className) {
|
|
29
|
-
return "
|
|
29
|
+
return "app-icon " + props.className || "";
|
|
30
30
|
} else {
|
|
31
|
-
return "
|
|
31
|
+
return "app-icon";
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
return (_ctx, _cache) => {
|
|
@@ -44,4 +44,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
export { _sfc_main as default };
|
|
47
|
-
//# sourceMappingURL=svgIcon.vue.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, createSlots, withCtx, createElementVNode, normalizeStyle, normalizeClass, renderSlot } from 'vue';
|
|
2
2
|
import { ElTooltip } from 'element-plus';
|
|
3
|
-
import
|
|
3
|
+
import { AppIcon } from '../appIcon/index.mjs';
|
|
4
4
|
|
|
5
|
-
import "./style/
|
|
5
|
+
import "./style/appIconBox.scss";
|
|
6
6
|
|
|
7
7
|
const __default__ = defineComponent({
|
|
8
|
-
name: "
|
|
8
|
+
name: "AppIconBox"
|
|
9
9
|
});
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
11
11
|
props: {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
52
52
|
};
|
|
53
53
|
});
|
|
54
54
|
return (_ctx, _cache) => {
|
|
55
|
-
return openBlock(), createElementBlock("div", { class: "icon-box" }, [
|
|
55
|
+
return openBlock(), createElementBlock("div", { class: "app-icon-box" }, [
|
|
56
56
|
createVNode(unref(ElTooltip), {
|
|
57
57
|
"open-delay": 500,
|
|
58
58
|
class: "item",
|
|
@@ -65,11 +65,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
65
65
|
createElementVNode(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
|
-
class: normalizeClass(["icon-box-content clickBox", __props.className]),
|
|
68
|
+
class: normalizeClass(["app-icon-box-content clickBox", __props.className]),
|
|
69
69
|
style: normalizeStyle(style.value)
|
|
70
70
|
},
|
|
71
71
|
[
|
|
72
|
-
createVNode(
|
|
72
|
+
createVNode(unref(AppIcon), {
|
|
73
73
|
prefix: __props.prefix,
|
|
74
74
|
"svg-name": __props.svgName,
|
|
75
75
|
style: { width: "100%", height: "100%" }
|
|
@@ -96,4 +96,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
export { _sfc_main as default };
|
|
99
|
-
//# sourceMappingURL=iconBox.vue.mjs.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.app-icon-box {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
& + & {
|
|
5
|
+
margin-left: 12px;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.app-icon-box-content {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
padding: 5px;
|
|
14
|
+
user-select: none;
|
|
15
|
+
color: rgb(var(--hy-main));
|
|
16
|
+
border-radius: 100%;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
background:
|
|
19
|
+
radial-gradient(
|
|
20
|
+
142% 47% at 50% 119%,
|
|
21
|
+
rgb(var(--hy-theme), 0.5) 0%,
|
|
22
|
+
rgb(var(--hy-theme), 0) 100%
|
|
23
|
+
),
|
|
24
|
+
rgb(var(--hy-background-3));
|
|
25
|
+
border: 1px solid rgb(var(--hy-auxiliary), 0.5);
|
|
26
|
+
box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
|
|
27
|
+
}
|
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
90
90
|
return target == null ? void 0 : target.companyName;
|
|
91
91
|
});
|
|
92
92
|
function getCascaderData() {
|
|
93
|
-
api.post("organization/orgTreeSimple").then((res) => {
|
|
93
|
+
unref(api).post("organization/orgTreeSimple").then((res) => {
|
|
94
94
|
handlerData(res.data);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
@@ -140,15 +140,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
140
140
|
if (props.defaultGetData) {
|
|
141
141
|
getCascaderData();
|
|
142
142
|
}
|
|
143
|
-
watch(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
watch(
|
|
144
|
+
() => props.options,
|
|
145
|
+
() => {
|
|
146
|
+
var _a;
|
|
147
|
+
if ((_a = props.options) == null ? void 0 : _a.length) {
|
|
148
|
+
handlerData(props.options);
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{ immediate: true, deep: true }
|
|
152
|
+
);
|
|
153
|
+
watch(
|
|
154
|
+
modelValue,
|
|
155
|
+
() => {
|
|
156
|
+
setDefaultValue(modelValue.value);
|
|
157
|
+
},
|
|
158
|
+
{ immediate: true, deep: true }
|
|
159
|
+
);
|
|
152
160
|
return (_ctx, _cache) => {
|
|
153
161
|
return openBlock(), createElementBlock("div", { class: "relative" }, [
|
|
154
162
|
__props.contentType ? (openBlock(), createElementBlock("div", {
|
|
@@ -226,4 +234,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
226
234
|
});
|
|
227
235
|
|
|
228
236
|
export { _sfc_main as default };
|
|
229
|
-
//# sourceMappingURL=appOrgCascader.vue.mjs.map
|
|
@@ -74,10 +74,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
74
74
|
return keySet.size;
|
|
75
75
|
});
|
|
76
76
|
const appClass = computed(() => {
|
|
77
|
-
return [
|
|
78
|
-
props.class,
|
|
79
|
-
{ "app-search-hidden": props.hidden }
|
|
80
|
-
].filter(Boolean);
|
|
77
|
+
return [props.class, { "app-search-hidden": props.hidden }].filter(Boolean);
|
|
81
78
|
});
|
|
82
79
|
const containerStyle = computed(() => {
|
|
83
80
|
const style = {};
|
|
@@ -240,7 +237,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
240
237
|
default: withCtx(() => {
|
|
241
238
|
var _a, _b, _c;
|
|
242
239
|
return [
|
|
243
|
-
createElementVNode("div", { class: "flex bg-
|
|
240
|
+
createElementVNode("div", { class: "flex bg-background-2 rounded" }, [
|
|
244
241
|
createElementVNode(
|
|
245
242
|
"div",
|
|
246
243
|
{
|
|
@@ -405,4 +402,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
405
402
|
});
|
|
406
403
|
|
|
407
404
|
export { _sfc_main as default };
|
|
408
|
-
//# sourceMappingURL=appSearch.vue.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
2
|
import { ref, watch, nextTick, unref } from 'vue';
|
|
3
|
-
import { useMaintainStore } from '../../../store/maintain.mjs';
|
|
4
3
|
import { isEmpty, isArray, isBoolean, isFunction, isNumber, isString } from '../../../utils/is.mjs';
|
|
4
|
+
import { useResizeHandler } from '../../../hooks/useResizeHandler.mjs';
|
|
5
5
|
|
|
6
6
|
function columnItemStyle(props, column) {
|
|
7
7
|
const { width } = column;
|
|
@@ -42,10 +42,10 @@ function isEmptyValue(e) {
|
|
|
42
42
|
return isEmpty(e) || isArray(e) && !e.length;
|
|
43
43
|
}
|
|
44
44
|
function useShrink(props, templateRef) {
|
|
45
|
+
const { addResize, removeResize } = useResizeHandler();
|
|
46
|
+
const resizeExpandKey = /* @__PURE__ */ Symbol("appSearchExpand");
|
|
45
47
|
const isExpand = ref(false);
|
|
46
48
|
const containerHeight = ref(getContainerPickUpHeight());
|
|
47
|
-
const maintainStore = useMaintainStore();
|
|
48
|
-
const resizeExpandKey = /* @__PURE__ */ Symbol("appSearchExpand");
|
|
49
49
|
function getContainerPickUpHeight() {
|
|
50
50
|
switch (props.size) {
|
|
51
51
|
case "large":
|
|
@@ -71,7 +71,7 @@ function useShrink(props, templateRef) {
|
|
|
71
71
|
() => {
|
|
72
72
|
nextTick(() => {
|
|
73
73
|
shrinkResizeHandler();
|
|
74
|
-
|
|
74
|
+
addResize(resizeExpandKey, shrinkResizeHandler);
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
77
|
{ immediate: true, deep: true }
|
|
@@ -82,7 +82,7 @@ function useShrink(props, templateRef) {
|
|
|
82
82
|
switchShrink,
|
|
83
83
|
shrinkResizeHandler,
|
|
84
84
|
shrinkDestroy() {
|
|
85
|
-
|
|
85
|
+
removeResize(resizeExpandKey);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
}
|
|
@@ -111,4 +111,3 @@ function timeRangeHandler(column, options) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export { columnItemInputStyle, columnItemStyle, columnShowHandler, isDisabled, isEmptyValue, timeRangeHandler, useShrink };
|
|
114
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.app-search {
|
|
2
2
|
border-radius: 4px;
|
|
3
|
-
border: 1px solid var(--border);
|
|
4
|
-
background-color: var(--background);
|
|
3
|
+
border: 1px solid rgb(var(--hy-border));
|
|
4
|
+
background-color: rgb(var(--hy-background));
|
|
5
5
|
padding: 12px 6px 16px 20px;
|
|
6
6
|
opacity: 1;
|
|
7
7
|
transition: all 0.3s linear;
|
|
@@ -13,10 +13,16 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
.app-search-header {
|
|
16
|
-
|
|
16
|
+
height: 16px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
color: rgb(var(--hy-main));
|
|
21
|
+
margin-bottom: 16px;
|
|
17
22
|
transition: all 0.3s linear;
|
|
18
23
|
&.app-search-header-hidden {
|
|
19
|
-
|
|
24
|
+
height: 0;
|
|
25
|
+
margin-bottom: 0px;
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
.app-search-form {
|
|
@@ -28,26 +34,26 @@
|
|
|
28
34
|
flex-wrap: wrap;
|
|
29
35
|
gap: 16px;
|
|
30
36
|
position: relative;
|
|
31
|
-
.el-form-item {
|
|
37
|
+
.hy-el-form-item {
|
|
32
38
|
margin-bottom: 0;
|
|
33
39
|
&.hidden {
|
|
34
40
|
display: none;
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
|
-
.el-input,
|
|
38
|
-
.el-date-editor {
|
|
43
|
+
.hy-el-input,
|
|
44
|
+
.hy-el-date-editor {
|
|
39
45
|
--el-input-bg-color: transparent;
|
|
40
46
|
--el-input-border: none;
|
|
41
47
|
--el-border-color: transparent;
|
|
42
48
|
--el-input-border-color: transparent;
|
|
43
|
-
--el-input-text-color: var(--main);
|
|
49
|
+
--el-input-text-color: rgb(var(--hy-main));
|
|
44
50
|
--el-input-border-radius: 0px 4px 4px 0px;
|
|
45
|
-
--el-input-hover-border-color: var(--theme);
|
|
51
|
+
--el-input-hover-border-color: rgb(var(--hy-theme));
|
|
46
52
|
}
|
|
47
|
-
.el-select {
|
|
53
|
+
.hy-el-select {
|
|
48
54
|
--el-border-color: transparent;
|
|
49
55
|
--el-fill-color-blank: transparent;
|
|
50
56
|
--el-border-radius-base: 0px 4px 4px 0px;
|
|
51
|
-
--el-border-color-hover: var(--theme);
|
|
57
|
+
--el-border-color-hover: rgb(var(--hy-theme));
|
|
52
58
|
}
|
|
53
59
|
}
|