star-horse-lowcode 2.7.63 → 2.7.65
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/.env.development +3 -0
- package/.env.production +3 -0
- package/.eslintrc-auto-import.json +77 -0
- package/.gitignore +27 -0
- package/.idea/.gitignore +5 -0
- package/.idea/MarsCodeWorkspaceAppSettings.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +7 -0
- package/.idea/modules.xml +8 -0
- package/.idea/testcode.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +4 -0
- package/.idea/workspace.xml +207 -0
- package/.npmignore +21 -0
- package/.prettierignore +26 -0
- package/README.md +1 -0
- package/auto-imports.d.ts +137 -0
- package/components.d.ts +189 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +19 -19
- package/dist/types/index.d.ts +7 -7
- package/eslint.config.js +37 -0
- package/index.html +14 -0
- package/package-lock.json +8276 -0
- package/package.json +4 -4
- package/prettier.config.js +20 -0
- package/public/logo.svg +660 -0
- package/src/App.vue +11 -0
- package/src/api/date_utils.ts +219 -0
- package/src/api/finger_utils.ts +71 -0
- package/src/api/form_utils.ts +281 -0
- package/src/api/jquery.min.js +2 -0
- package/src/api/pcas-code.json +1 -0
- package/src/api/settings.ts +81 -0
- package/src/api/star_horse_apis.ts +196 -0
- package/src/api/star_horse_utils.ts +797 -0
- package/src/api/system.ts +351 -0
- package/src/api/user_func.ts +147 -0
- package/src/api/valid_utils.ts +165 -0
- package/src/assets/css/index.scss +908 -0
- package/src/assets/icons.css +574 -0
- package/src/assets/star-horse-icons.woff +0 -0
- package/src/components/comp/ShDynamicForm.vue +160 -0
- package/src/components/comp/ShForm.vue +30 -0
- package/src/components/comp/ShTableListColumn.vue +61 -0
- package/src/components/comp/StarHorseDataSelector.vue +139 -0
- package/src/components/comp/StarHorseDataView.vue +110 -0
- package/src/components/comp/StarHorseDataViewItems.vue +61 -0
- package/src/components/comp/StarHorseDataViewTable.vue +102 -0
- package/src/components/comp/StarHorseDialog.vue +383 -0
- package/src/components/comp/StarHorseDraggable.vue +401 -0
- package/src/components/comp/StarHorseForm.vue +458 -0
- package/src/components/comp/StarHorseFormItem.vue +82 -0
- package/src/components/comp/StarHorseFormList.vue +516 -0
- package/src/components/comp/StarHorseFormTable.vue +56 -0
- package/src/components/comp/StarHorseIcon.vue +76 -0
- package/src/components/comp/StarHorseItem.vue +302 -0
- package/src/components/comp/StarHorseJsonEditor.vue +115 -0
- package/src/components/comp/StarHorsePopover.vue +66 -0
- package/src/components/comp/StarHorseSearchComp.vue +253 -0
- package/src/components/comp/StarHorseStaticTable.vue +395 -0
- package/src/components/comp/StarHorseTableColumn.vue +249 -0
- package/src/components/comp/StarHorseTableComp.vue +1193 -0
- package/src/components/comp/StarHorseTableViewColumn.vue +61 -0
- package/src/components/comp/StarHorseTree.vue +494 -0
- package/src/components/comp/index.ts +22 -0
- package/src/components/comp/items/UTableColumn.vue +65 -0
- package/src/components/comp/items/boxItem.vue +98 -0
- package/src/components/comp/items/callitem.ts +9 -0
- package/src/components/comp/items/cardItem.vue +152 -0
- package/src/components/comp/items/collapseItem.vue +134 -0
- package/src/components/comp/items/dytableItem.vue +135 -0
- package/src/components/comp/items/otherItem.vue +65 -0
- package/src/components/comp/items/tabItem.vue +155 -0
- package/src/components/comp/items/tabPanelItem.vue +110 -0
- package/src/components/comp/items/tableColumn.vue +129 -0
- package/src/components/comp/items/tableItem.vue +97 -0
- package/src/components/comp/items/tablebtn.vue +158 -0
- package/src/components/comp/items/viewBoxItem.vue +55 -0
- package/src/components/comp/items/viewCardItem.vue +47 -0
- package/src/components/comp/items/viewCollapseItem.vue +71 -0
- package/src/components/comp/items/viewDytableItem.vue +77 -0
- package/src/components/comp/items/viewOtherItem.vue +55 -0
- package/src/components/comp/items/viewTabItem.vue +77 -0
- package/src/components/comp/items/viewTabPanelItem.vue +54 -0
- package/src/components/comp/items/viewTableItem.vue +74 -0
- package/src/components/comp/selfcomp.ts +9 -0
- package/src/components/comp/utils/DataPicker.vue +302 -0
- package/src/components/comp/utils/DataTag.vue +51 -0
- package/src/components/cron/Crontab-Day.vue +230 -0
- package/src/components/cron/Crontab-Hour.vue +165 -0
- package/src/components/cron/Crontab-Min.vue +166 -0
- package/src/components/cron/Crontab-Month.vue +166 -0
- package/src/components/cron/Crontab-Result.vue +615 -0
- package/src/components/cron/Crontab-Second.vue +185 -0
- package/src/components/cron/Crontab-Week.vue +208 -0
- package/src/components/cron/Crontab-Year.vue +183 -0
- package/src/components/cron/Crontab.vue +474 -0
- package/src/components/enums/ModuleEnums.ts +10 -0
- package/src/components/enums/ServiceEnums.ts +18 -0
- package/src/components/formcomp/container/box-container.vue +162 -0
- package/src/components/formcomp/container/callitem.ts +9 -0
- package/src/components/formcomp/container/card-container.vue +170 -0
- package/src/components/formcomp/container/collapse-container.vue +133 -0
- package/src/components/formcomp/container/dytable-col.vue +448 -0
- package/src/components/formcomp/container/dytable-container.vue +57 -0
- package/src/components/formcomp/container/dytableUtils.ts +358 -0
- package/src/components/formcomp/container/group-box-container.vue +331 -0
- package/src/components/formcomp/container/index.ts +6 -0
- package/src/components/formcomp/container/tab-container.vue +153 -0
- package/src/components/formcomp/container/table-container.vue +249 -0
- package/src/components/formcomp/items/allitem.ts +9 -0
- package/src/components/formcomp/items/area-item.vue +116 -0
- package/src/components/formcomp/items/audio-item.vue +163 -0
- package/src/components/formcomp/items/autocomplete-item.vue +118 -0
- package/src/components/formcomp/items/barcode-item.vue +87 -0
- package/src/components/formcomp/items/base-json-item.vue +207 -0
- package/src/components/formcomp/items/button-item.vue +228 -0
- package/src/components/formcomp/items/cascade-item.vue +113 -0
- package/src/components/formcomp/items/checkbox-item.vue +97 -0
- package/src/components/formcomp/items/color-item.vue +70 -0
- package/src/components/formcomp/items/cron-item.vue +115 -0
- package/src/components/formcomp/items/datetime-item.vue +99 -0
- package/src/components/formcomp/items/depart-item.vue +51 -0
- package/src/components/formcomp/items/dialog-input-item.vue +207 -0
- package/src/components/formcomp/items/divider-item.vue +66 -0
- package/src/components/formcomp/items/html-item.vue +65 -0
- package/src/components/formcomp/items/htmleditor-item.vue +104 -0
- package/src/components/formcomp/items/icon-item.vue +195 -0
- package/src/components/formcomp/items/image-item.vue +247 -0
- package/src/components/formcomp/items/index.ts +44 -0
- package/src/components/formcomp/items/input-item.vue +150 -0
- package/src/components/formcomp/items/json-array-item.vue +67 -0
- package/src/components/formcomp/items/json-item.vue +66 -0
- package/src/components/formcomp/items/markdown-item.vue +77 -0
- package/src/components/formcomp/items/number-item.vue +94 -0
- package/src/components/formcomp/items/number-range-item.vue +278 -0
- package/src/components/formcomp/items/page-select-item.vue +407 -0
- package/src/components/formcomp/items/password-item.vue +71 -0
- package/src/components/formcomp/items/qrcode-item.vue +84 -0
- package/src/components/formcomp/items/radio-item.vue +112 -0
- package/src/components/formcomp/items/rate-item.vue +68 -0
- package/src/components/formcomp/items/select-item.vue +133 -0
- package/src/components/formcomp/items/signature-item.vue +216 -0
- package/src/components/formcomp/items/slider-item.vue +68 -0
- package/src/components/formcomp/items/starhorse-form-item.vue +334 -0
- package/src/components/formcomp/items/switch-item.vue +77 -0
- package/src/components/formcomp/items/tag-item.vue +77 -0
- package/src/components/formcomp/items/text-item.vue +75 -0
- package/src/components/formcomp/items/textarea-item.vue +85 -0
- package/src/components/formcomp/items/time-item.vue +77 -0
- package/src/components/formcomp/items/time-picker-item.vue +74 -0
- package/src/components/formcomp/items/transfer-item.vue +93 -0
- package/src/components/formcomp/items/tselect-item.vue +121 -0
- package/src/components/formcomp/items/unknown-item.vue +51 -0
- package/src/components/formcomp/items/upload-item.vue +189 -0
- package/src/components/formcomp/items/user-item.vue +177 -0
- package/src/components/formcomp/items/usercomp-item.vue +85 -0
- package/src/components/formcomp/items/view-markdown-item.vue +77 -0
- package/src/components/formcomp/utils/EditDataDialog.vue +67 -0
- package/src/components/formcomp/utils/FieldList.vue +125 -0
- package/src/components/formcomp/utils/ItemRelationEventUtils.ts +284 -0
- package/src/components/help.vue +31 -0
- package/src/components/menu/MenuItem.vue +95 -0
- package/src/components/menu/SubMenu.vue +68 -0
- package/src/components/menu/SubSystemMenu.vue +142 -0
- package/src/components/register.ts +24 -0
- package/src/components/system/ContentMenu.vue +260 -0
- package/src/components/system/StarHorseButtonList.vue +344 -0
- package/src/components/system/StarHorseMenu.vue +97 -0
- package/src/components/system/StarHorseSvg.vue +62 -0
- package/src/components/system/SystemComp.ts +9 -0
- package/src/components/system/index.ts +4 -0
- package/src/components/types/ApiUrls.ts +168 -0
- package/src/components/types/BtnAction.ts +51 -0
- package/src/components/types/BtnAuth.ts +43 -0
- package/src/components/types/CompInfo.ts +81 -0
- package/src/components/types/DialogProps.ts +55 -0
- package/src/components/types/DyCompField.ts +23 -0
- package/src/components/types/DynamicNode.ts +42 -0
- package/src/components/types/MenusInfo.ts +45 -0
- package/src/components/types/PageFieldInfo.ts +530 -0
- package/src/components/types/PageProps.ts +25 -0
- package/src/components/types/Params.ts +93 -0
- package/src/components/types/RuleType.ts +10 -0
- package/src/components/types/SearchProps.ts +42 -0
- package/src/components/types/ShortKey.ts +30 -0
- package/src/components/types/StarHorseType.ts +18 -0
- package/src/components/types/index.ts +15 -0
- package/src/config/element.ts +15 -0
- package/src/config/styles.ts +4 -0
- package/src/index.ts +98 -0
- package/src/install.ts +33 -0
- package/src/lang/en_US.ts +81 -0
- package/src/lang/index.ts +35 -0
- package/src/lang/zh_CN.ts +84 -0
- package/src/main.ts +57 -0
- package/src/plugins/AblesPlugin.ts +618 -0
- package/src/plugins/registerCompPlugin.ts +15 -0
- package/src/sample/test.vue +9 -0
- package/src/store/ButtonPermission.ts +101 -0
- package/src/store/ConsumerView.ts +52 -0
- package/src/store/ContinusConfig.ts +78 -0
- package/src/store/CopyerOperation.ts +74 -0
- package/src/store/DesignForm.ts +481 -0
- package/src/store/DesignPage.ts +59 -0
- package/src/store/DynamicForm.ts +241 -0
- package/src/store/GlobalConfig.ts +90 -0
- package/src/store/SelfOperation.ts +95 -0
- package/src/store/UserInfo.ts +88 -0
- package/src/store/index.ts +6 -0
- package/src/theme/localStorge.ts +16 -0
- package/src/theme/theme.ts +27 -0
- package/src/utils/FieldOperationUtils.ts +91 -0
- package/src/utils/auth.ts +83 -0
- package/src/utils/message.ts +69 -0
- package/src/utils/preview.ts +125 -0
- package/tsconfig.json +39 -0
- package/tsconfig.node.json +10 -0
- package/vite-env.d.ts +16 -0
- package/vite.config.ts +162 -0
- package/yarn.lock +4627 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
<script setup lang="ts" name="StarHorseDialog">
|
|
2
|
+
import {
|
|
3
|
+
computed,
|
|
4
|
+
onMounted,
|
|
5
|
+
PropType,
|
|
6
|
+
provide,
|
|
7
|
+
reactive,
|
|
8
|
+
ref,
|
|
9
|
+
watch,
|
|
10
|
+
} from "vue";
|
|
11
|
+
import { DialogProps } from "@/components/types/DialogProps";
|
|
12
|
+
import { i18n } from "@/lang";
|
|
13
|
+
import { UserFuncInfo } from "@/components/types/PageFieldInfo";
|
|
14
|
+
import { Config } from "@/api/settings";
|
|
15
|
+
import { compKey } from "@/api/system";
|
|
16
|
+
|
|
17
|
+
const emits = defineEmits([
|
|
18
|
+
"merge",
|
|
19
|
+
"mergeDraft",
|
|
20
|
+
"resetForm",
|
|
21
|
+
"open",
|
|
22
|
+
"closeAction",
|
|
23
|
+
]);
|
|
24
|
+
const props = defineProps({
|
|
25
|
+
dialogVisible: { type: Boolean, default: false },
|
|
26
|
+
dialogProps: { type: Object as PropType<DialogProps>, default: {} },
|
|
27
|
+
isShowReset: { type: Boolean, default: true },
|
|
28
|
+
isShowSave: { type: Boolean, default: false },
|
|
29
|
+
isShowBtnContinue: { type: Boolean, default: false },
|
|
30
|
+
source: { type: Number, default: 1 },
|
|
31
|
+
draggable: { type: Boolean, default: true },
|
|
32
|
+
boxHeight: { type: String, default: "60%" },
|
|
33
|
+
boxWidth: { type: String, default: "60%" },
|
|
34
|
+
isBatch: { type: Boolean, default: false },
|
|
35
|
+
fullScreen: { type: Boolean, default: false },
|
|
36
|
+
hideFullScreenIcon: { type: Boolean, default: false },
|
|
37
|
+
//自定义提交
|
|
38
|
+
selfFunc: { type: Boolean, default: false },
|
|
39
|
+
//自定义关闭
|
|
40
|
+
selfClose: { type: Boolean, default: false },
|
|
41
|
+
btnText: { type: String },
|
|
42
|
+
userBtn: { type: Array<UserFuncInfo>, default: [] },
|
|
43
|
+
btnTextContinue: { type: String, default: "提交并继续" },
|
|
44
|
+
title: { type: String, default: "" },
|
|
45
|
+
compSize: { type: String, default: Config.compSize },
|
|
46
|
+
});
|
|
47
|
+
let windowsType = ref<boolean>(false);
|
|
48
|
+
const _compKey = compKey;
|
|
49
|
+
watch(
|
|
50
|
+
() => props.dialogVisible,
|
|
51
|
+
(val: boolean) => {
|
|
52
|
+
windowsType.value = val;
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
immediate: true,
|
|
56
|
+
deep: true,
|
|
57
|
+
},
|
|
58
|
+
);
|
|
59
|
+
let isFullScreen = ref(props.fullScreen);
|
|
60
|
+
const dialogStyle = computed(() => {
|
|
61
|
+
return { "max-height": isFullScreen.value ? "100%" : props.boxHeight };
|
|
62
|
+
});
|
|
63
|
+
const beforeClose = () => {
|
|
64
|
+
emits("closeAction");
|
|
65
|
+
windowsType.value = false;
|
|
66
|
+
if (props.selfClose) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (props.dialogProps?.batchEditVisible || props.isBatch) {
|
|
70
|
+
props.dialogProps.batchEditVisible = false;
|
|
71
|
+
}
|
|
72
|
+
if (props.dialogProps!.viewVisible || props.source == 3) {
|
|
73
|
+
props.dialogProps!.viewVisible = false;
|
|
74
|
+
}
|
|
75
|
+
if (props.dialogProps!.editVisible) {
|
|
76
|
+
props.dialogProps!.editVisible = false;
|
|
77
|
+
}
|
|
78
|
+
if (props.dialogProps!.bakeVisible1) {
|
|
79
|
+
props.dialogProps!.bakeVisible1 = false;
|
|
80
|
+
}
|
|
81
|
+
if (props.dialogProps!.bakeVisible2) {
|
|
82
|
+
props.dialogProps!.bakeVisible2 = false;
|
|
83
|
+
}
|
|
84
|
+
if (props.dialogProps!.bakeVisible3) {
|
|
85
|
+
props.dialogProps!.bakeVisible3 = false;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
// 新增:安全调用函数的方法
|
|
89
|
+
const callFunc = (func: any) => {
|
|
90
|
+
if (typeof func === "function") {
|
|
91
|
+
func(); // 仅当 func 是函数时调用
|
|
92
|
+
} else if (typeof func === "string") {
|
|
93
|
+
// 如果 func 是字符串(方法名),可根据需要映射到实际函数(示例)
|
|
94
|
+
// const method = getCurrentInstance()?.proxy?.[func];
|
|
95
|
+
// if (method) method();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const open = () => {
|
|
99
|
+
emits("open");
|
|
100
|
+
};
|
|
101
|
+
onMounted(() => {});
|
|
102
|
+
provide("closeDialog", beforeClose);
|
|
103
|
+
const fullScreen = () => {
|
|
104
|
+
if (props.hideFullScreenIcon) return;
|
|
105
|
+
isFullScreen.value = !isFullScreen.value;
|
|
106
|
+
};
|
|
107
|
+
let clickFunction = reactive<any>({});
|
|
108
|
+
const operation = (funcName: any, type: string) => {
|
|
109
|
+
if (props.selfFunc) {
|
|
110
|
+
emits(funcName, type);
|
|
111
|
+
} else {
|
|
112
|
+
clickFunction["funcName"] = funcName;
|
|
113
|
+
clickFunction["type"] = type;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
provide("dialogOperation", clickFunction);
|
|
117
|
+
</script>
|
|
118
|
+
<template>
|
|
119
|
+
<Teleport to="body">
|
|
120
|
+
<div class="di animated animate__fadeIn">
|
|
121
|
+
<el-dialog
|
|
122
|
+
:append-to-body="false"
|
|
123
|
+
:center="false"
|
|
124
|
+
:destroy-on-close="true"
|
|
125
|
+
:close-on-click-modal="false"
|
|
126
|
+
:close-on-press-escape="false"
|
|
127
|
+
:lock-scroll="true"
|
|
128
|
+
class="dialog-settings"
|
|
129
|
+
:fullscreen="isFullScreen"
|
|
130
|
+
:show-close="false"
|
|
131
|
+
:draggable="draggable"
|
|
132
|
+
:align-center="true"
|
|
133
|
+
v-model="windowsType"
|
|
134
|
+
@close="beforeClose"
|
|
135
|
+
@open="open"
|
|
136
|
+
:width="boxWidth"
|
|
137
|
+
:style="dialogStyle"
|
|
138
|
+
>
|
|
139
|
+
<template #header="{ close }">
|
|
140
|
+
<h3 @dblclick="fullScreen">
|
|
141
|
+
{{
|
|
142
|
+
title ||
|
|
143
|
+
(source == 3
|
|
144
|
+
? i18n("dialog.viewTitle")
|
|
145
|
+
: i18n("dialog.editTitle"))
|
|
146
|
+
}}
|
|
147
|
+
</h3>
|
|
148
|
+
<div class="my-header">
|
|
149
|
+
<template v-if="!hideFullScreenIcon">
|
|
150
|
+
<el-button
|
|
151
|
+
style="
|
|
152
|
+
background: var(--star-horse-style);
|
|
153
|
+
color: var(--star-horse-white);
|
|
154
|
+
"
|
|
155
|
+
:size="compSize"
|
|
156
|
+
@click="fullScreen"
|
|
157
|
+
link
|
|
158
|
+
v-if="!!isFullScreen && draggable"
|
|
159
|
+
:title="i18n('dialog.resize')"
|
|
160
|
+
>
|
|
161
|
+
<star-horse-icon
|
|
162
|
+
icon-class="fullscreen-shrink"
|
|
163
|
+
color="var(--star-horse-white)"
|
|
164
|
+
cursor="pointer"
|
|
165
|
+
/>
|
|
166
|
+
</el-button>
|
|
167
|
+
<el-button
|
|
168
|
+
style="
|
|
169
|
+
background: var(--star-horse-style);
|
|
170
|
+
color: var(--star-horse-white);
|
|
171
|
+
"
|
|
172
|
+
:size="compSize"
|
|
173
|
+
@click="fullScreen"
|
|
174
|
+
link
|
|
175
|
+
v-if="!isFullScreen && draggable"
|
|
176
|
+
:title="i18n('dialog.fullScreen')"
|
|
177
|
+
>
|
|
178
|
+
<star-horse-icon
|
|
179
|
+
icon-class="fullscreen-expand"
|
|
180
|
+
color="var(--star-horse-white)"
|
|
181
|
+
cursor="pointer"
|
|
182
|
+
/>
|
|
183
|
+
</el-button>
|
|
184
|
+
</template>
|
|
185
|
+
<el-button
|
|
186
|
+
style="
|
|
187
|
+
background: var(--star-horse-style);
|
|
188
|
+
color: var(--star-horse-white);
|
|
189
|
+
"
|
|
190
|
+
:size="compSize"
|
|
191
|
+
@click="close"
|
|
192
|
+
link
|
|
193
|
+
:title="i18n('dialog.close')"
|
|
194
|
+
>
|
|
195
|
+
<star-horse-icon
|
|
196
|
+
icon-class="close"
|
|
197
|
+
color="var(--star-horse-white)"
|
|
198
|
+
cursor="pointer"
|
|
199
|
+
/>
|
|
200
|
+
</el-button>
|
|
201
|
+
</div>
|
|
202
|
+
</template>
|
|
203
|
+
<slot name="header"></slot>
|
|
204
|
+
<div class="shdialog">
|
|
205
|
+
<div class="dialog-body">
|
|
206
|
+
<slot></slot>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
<template #footer>
|
|
210
|
+
<span class="dialog-footer" v-if="source != 3">
|
|
211
|
+
<slot name="extend"></slot>
|
|
212
|
+
<el-button
|
|
213
|
+
@click="operation('merge', 'close')"
|
|
214
|
+
style="
|
|
215
|
+
background: var(--star-horse-style);
|
|
216
|
+
color: var(--star-horse-white);
|
|
217
|
+
"
|
|
218
|
+
:size="compSize"
|
|
219
|
+
>
|
|
220
|
+
<star-horse-icon
|
|
221
|
+
icon-class="save"
|
|
222
|
+
cursor="pointer"
|
|
223
|
+
style="color: var(--star-horse-white)"
|
|
224
|
+
/>
|
|
225
|
+
{{ btnText ?? i18n("dialog.submit") }}
|
|
226
|
+
</el-button>
|
|
227
|
+
<el-button
|
|
228
|
+
@click="operation('merge', 'continue')"
|
|
229
|
+
style="
|
|
230
|
+
background: var(--star-horse-style);
|
|
231
|
+
color: var(--star-horse-white);
|
|
232
|
+
"
|
|
233
|
+
:size="compSize"
|
|
234
|
+
v-if="isShowBtnContinue"
|
|
235
|
+
>
|
|
236
|
+
<star-horse-icon
|
|
237
|
+
icon-class="save_continue"
|
|
238
|
+
cursor="pointer"
|
|
239
|
+
style="color: var(--star-horse-white)"
|
|
240
|
+
/>
|
|
241
|
+
{{ i18n("dialog.submitContinue") }}</el-button
|
|
242
|
+
>
|
|
243
|
+
<el-button
|
|
244
|
+
@click="operation('mergeDraft', 'close')"
|
|
245
|
+
:size="compSize"
|
|
246
|
+
link
|
|
247
|
+
style="
|
|
248
|
+
background: var(--star-horse-style);
|
|
249
|
+
color: var(--star-horse-white);
|
|
250
|
+
"
|
|
251
|
+
v-if="isShowSave"
|
|
252
|
+
>
|
|
253
|
+
<star-horse-icon icon-class="short_save" cursor="pointer" />{{
|
|
254
|
+
i18n("dialog.save")
|
|
255
|
+
}}</el-button
|
|
256
|
+
>
|
|
257
|
+
<el-button
|
|
258
|
+
@click="operation('mergeDraft', 'continue')"
|
|
259
|
+
:size="compSize"
|
|
260
|
+
link
|
|
261
|
+
style="
|
|
262
|
+
background: var(--star-horse-style);
|
|
263
|
+
color: var(--star-horse-white);
|
|
264
|
+
"
|
|
265
|
+
v-if="isShowSave && isShowBtnContinue"
|
|
266
|
+
>
|
|
267
|
+
<star-horse-icon icon-class="save" cursor="pointer" />{{
|
|
268
|
+
i18n("dialog.saveContinue")
|
|
269
|
+
}}</el-button
|
|
270
|
+
>
|
|
271
|
+
<el-button
|
|
272
|
+
v-for="item in userBtn"
|
|
273
|
+
:key="_compKey(item, item.authority)"
|
|
274
|
+
@click="callFunc(item.funcName)"
|
|
275
|
+
:disabled="item.disabled ?? false"
|
|
276
|
+
:style="{
|
|
277
|
+
background: item.disabled
|
|
278
|
+
? 'var(--star-horse-disable)'
|
|
279
|
+
: 'var(--star-horse-style)',
|
|
280
|
+
color: 'var(--star-horse-white)',
|
|
281
|
+
}"
|
|
282
|
+
:size="compSize"
|
|
283
|
+
>
|
|
284
|
+
<star-horse-icon
|
|
285
|
+
:icon-class="item.icon"
|
|
286
|
+
cursor="pointer"
|
|
287
|
+
style="color: var(--star-horse-white)"
|
|
288
|
+
/>
|
|
289
|
+
{{ item.btnName }}
|
|
290
|
+
</el-button>
|
|
291
|
+
<el-button
|
|
292
|
+
@click="operation('resetForm', 'reset')"
|
|
293
|
+
:size="compSize"
|
|
294
|
+
link
|
|
295
|
+
v-if="isShowReset"
|
|
296
|
+
>
|
|
297
|
+
<star-horse-icon
|
|
298
|
+
icon-class="undo"
|
|
299
|
+
cursor="pointer"
|
|
300
|
+
style="color: var(--star-horse-style)"
|
|
301
|
+
/>
|
|
302
|
+
{{ i18n("dialog.reset") }}</el-button
|
|
303
|
+
>
|
|
304
|
+
</span>
|
|
305
|
+
<slot name="footer"></slot>
|
|
306
|
+
</template>
|
|
307
|
+
</el-dialog>
|
|
308
|
+
</div>
|
|
309
|
+
</Teleport>
|
|
310
|
+
</template>
|
|
311
|
+
<style lang="scss" scoped>
|
|
312
|
+
:deep(.el-dialog__footer) {
|
|
313
|
+
text-align: center;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.di {
|
|
317
|
+
:deep(.el-dialog) {
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-direction: column;
|
|
320
|
+
padding: unset;
|
|
321
|
+
|
|
322
|
+
.el-dialog__header {
|
|
323
|
+
flex-shrink: 0;
|
|
324
|
+
height: 40px;
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
padding: 10px;
|
|
327
|
+
background-color: var(--star-horse-style);
|
|
328
|
+
margin: 0;
|
|
329
|
+
border-bottom: var(--star-horse-shadow) 4px solid;
|
|
330
|
+
display: flex;
|
|
331
|
+
flex-direction: row;
|
|
332
|
+
color: var(--star-horse-white);
|
|
333
|
+
|
|
334
|
+
h3 {
|
|
335
|
+
flex: 1;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.my-header {
|
|
339
|
+
width: 100px;
|
|
340
|
+
display: flex;
|
|
341
|
+
justify-content: right;
|
|
342
|
+
flex-direction: row;
|
|
343
|
+
right: 10px;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.el-dialog__body {
|
|
348
|
+
flex: 1;
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.shdialog {
|
|
356
|
+
flex: 1;
|
|
357
|
+
display: inline-flex;
|
|
358
|
+
overflow-y: auto;
|
|
359
|
+
padding: 0 10px;
|
|
360
|
+
box-sizing: border-box;
|
|
361
|
+
|
|
362
|
+
&::-webkit-scrollbar {
|
|
363
|
+
width: 6px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&::-webkit-scrollbar-track {
|
|
367
|
+
background: transparent;
|
|
368
|
+
border-radius: 10px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&::-webkit-scrollbar-thumb {
|
|
372
|
+
background: #f2f2f2 !important;
|
|
373
|
+
z-index: 222;
|
|
374
|
+
border-radius: 8px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.dialog-footer {
|
|
379
|
+
display: flex;
|
|
380
|
+
justify-content: center;
|
|
381
|
+
margin-top: 10px;
|
|
382
|
+
}
|
|
383
|
+
</style>
|