star-horse-lowcode 2.7.65 → 2.7.67
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/README.md +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +597 -188
- package/dist/types/index.d.ts +30 -0
- package/package.json +3 -3
- package/.env.development +0 -3
- package/.env.production +0 -3
- package/.eslintrc-auto-import.json +0 -77
- package/.gitignore +0 -27
- package/.idea/.gitignore +0 -5
- package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/modules.xml +0 -8
- package/.idea/testcode.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/watcherTasks.xml +0 -4
- package/.idea/workspace.xml +0 -207
- package/.npmignore +0 -21
- package/.prettierignore +0 -26
- package/auto-imports.d.ts +0 -137
- package/components.d.ts +0 -189
- package/eslint.config.js +0 -37
- package/index.html +0 -14
- package/package-lock.json +0 -8276
- package/prettier.config.js +0 -20
- package/public/logo.svg +0 -660
- package/src/App.vue +0 -11
- package/src/api/date_utils.ts +0 -219
- package/src/api/finger_utils.ts +0 -71
- package/src/api/form_utils.ts +0 -281
- package/src/api/jquery.min.js +0 -2
- package/src/api/pcas-code.json +0 -1
- package/src/api/settings.ts +0 -81
- package/src/api/star_horse_apis.ts +0 -196
- package/src/api/star_horse_utils.ts +0 -797
- package/src/api/system.ts +0 -351
- package/src/api/user_func.ts +0 -147
- package/src/api/valid_utils.ts +0 -165
- package/src/assets/css/index.scss +0 -908
- package/src/assets/icons.css +0 -574
- package/src/assets/star-horse-icons.woff +0 -0
- package/src/components/comp/ShDynamicForm.vue +0 -160
- package/src/components/comp/ShForm.vue +0 -30
- package/src/components/comp/ShTableListColumn.vue +0 -61
- package/src/components/comp/StarHorseDataSelector.vue +0 -139
- package/src/components/comp/StarHorseDataView.vue +0 -110
- package/src/components/comp/StarHorseDataViewItems.vue +0 -61
- package/src/components/comp/StarHorseDataViewTable.vue +0 -102
- package/src/components/comp/StarHorseDialog.vue +0 -383
- package/src/components/comp/StarHorseDraggable.vue +0 -401
- package/src/components/comp/StarHorseForm.vue +0 -458
- package/src/components/comp/StarHorseFormItem.vue +0 -82
- package/src/components/comp/StarHorseFormList.vue +0 -516
- package/src/components/comp/StarHorseFormTable.vue +0 -56
- package/src/components/comp/StarHorseIcon.vue +0 -76
- package/src/components/comp/StarHorseItem.vue +0 -302
- package/src/components/comp/StarHorseJsonEditor.vue +0 -115
- package/src/components/comp/StarHorsePopover.vue +0 -66
- package/src/components/comp/StarHorseSearchComp.vue +0 -253
- package/src/components/comp/StarHorseStaticTable.vue +0 -395
- package/src/components/comp/StarHorseTableColumn.vue +0 -249
- package/src/components/comp/StarHorseTableComp.vue +0 -1193
- package/src/components/comp/StarHorseTableViewColumn.vue +0 -61
- package/src/components/comp/StarHorseTree.vue +0 -494
- package/src/components/comp/index.ts +0 -22
- package/src/components/comp/items/UTableColumn.vue +0 -65
- package/src/components/comp/items/boxItem.vue +0 -98
- package/src/components/comp/items/callitem.ts +0 -9
- package/src/components/comp/items/cardItem.vue +0 -152
- package/src/components/comp/items/collapseItem.vue +0 -134
- package/src/components/comp/items/dytableItem.vue +0 -135
- package/src/components/comp/items/otherItem.vue +0 -65
- package/src/components/comp/items/tabItem.vue +0 -155
- package/src/components/comp/items/tabPanelItem.vue +0 -110
- package/src/components/comp/items/tableColumn.vue +0 -129
- package/src/components/comp/items/tableItem.vue +0 -97
- package/src/components/comp/items/tablebtn.vue +0 -158
- package/src/components/comp/items/viewBoxItem.vue +0 -55
- package/src/components/comp/items/viewCardItem.vue +0 -47
- package/src/components/comp/items/viewCollapseItem.vue +0 -71
- package/src/components/comp/items/viewDytableItem.vue +0 -77
- package/src/components/comp/items/viewOtherItem.vue +0 -55
- package/src/components/comp/items/viewTabItem.vue +0 -77
- package/src/components/comp/items/viewTabPanelItem.vue +0 -54
- package/src/components/comp/items/viewTableItem.vue +0 -74
- package/src/components/comp/selfcomp.ts +0 -9
- package/src/components/comp/utils/DataPicker.vue +0 -302
- package/src/components/comp/utils/DataTag.vue +0 -51
- package/src/components/cron/Crontab-Day.vue +0 -230
- package/src/components/cron/Crontab-Hour.vue +0 -165
- package/src/components/cron/Crontab-Min.vue +0 -166
- package/src/components/cron/Crontab-Month.vue +0 -166
- package/src/components/cron/Crontab-Result.vue +0 -615
- package/src/components/cron/Crontab-Second.vue +0 -185
- package/src/components/cron/Crontab-Week.vue +0 -208
- package/src/components/cron/Crontab-Year.vue +0 -183
- package/src/components/cron/Crontab.vue +0 -474
- package/src/components/enums/ModuleEnums.ts +0 -10
- package/src/components/enums/ServiceEnums.ts +0 -18
- package/src/components/formcomp/container/box-container.vue +0 -162
- package/src/components/formcomp/container/callitem.ts +0 -9
- package/src/components/formcomp/container/card-container.vue +0 -170
- package/src/components/formcomp/container/collapse-container.vue +0 -133
- package/src/components/formcomp/container/dytable-col.vue +0 -448
- package/src/components/formcomp/container/dytable-container.vue +0 -57
- package/src/components/formcomp/container/dytableUtils.ts +0 -358
- package/src/components/formcomp/container/group-box-container.vue +0 -331
- package/src/components/formcomp/container/index.ts +0 -6
- package/src/components/formcomp/container/tab-container.vue +0 -153
- package/src/components/formcomp/container/table-container.vue +0 -249
- package/src/components/formcomp/items/allitem.ts +0 -9
- package/src/components/formcomp/items/area-item.vue +0 -116
- package/src/components/formcomp/items/audio-item.vue +0 -163
- package/src/components/formcomp/items/autocomplete-item.vue +0 -118
- package/src/components/formcomp/items/barcode-item.vue +0 -87
- package/src/components/formcomp/items/base-json-item.vue +0 -207
- package/src/components/formcomp/items/button-item.vue +0 -228
- package/src/components/formcomp/items/cascade-item.vue +0 -113
- package/src/components/formcomp/items/checkbox-item.vue +0 -97
- package/src/components/formcomp/items/color-item.vue +0 -70
- package/src/components/formcomp/items/cron-item.vue +0 -115
- package/src/components/formcomp/items/datetime-item.vue +0 -99
- package/src/components/formcomp/items/depart-item.vue +0 -51
- package/src/components/formcomp/items/dialog-input-item.vue +0 -207
- package/src/components/formcomp/items/divider-item.vue +0 -66
- package/src/components/formcomp/items/html-item.vue +0 -65
- package/src/components/formcomp/items/htmleditor-item.vue +0 -104
- package/src/components/formcomp/items/icon-item.vue +0 -195
- package/src/components/formcomp/items/image-item.vue +0 -247
- package/src/components/formcomp/items/index.ts +0 -44
- package/src/components/formcomp/items/input-item.vue +0 -150
- package/src/components/formcomp/items/json-array-item.vue +0 -67
- package/src/components/formcomp/items/json-item.vue +0 -66
- package/src/components/formcomp/items/markdown-item.vue +0 -77
- package/src/components/formcomp/items/number-item.vue +0 -94
- package/src/components/formcomp/items/number-range-item.vue +0 -278
- package/src/components/formcomp/items/page-select-item.vue +0 -407
- package/src/components/formcomp/items/password-item.vue +0 -71
- package/src/components/formcomp/items/qrcode-item.vue +0 -84
- package/src/components/formcomp/items/radio-item.vue +0 -112
- package/src/components/formcomp/items/rate-item.vue +0 -68
- package/src/components/formcomp/items/select-item.vue +0 -133
- package/src/components/formcomp/items/signature-item.vue +0 -216
- package/src/components/formcomp/items/slider-item.vue +0 -68
- package/src/components/formcomp/items/starhorse-form-item.vue +0 -334
- package/src/components/formcomp/items/switch-item.vue +0 -77
- package/src/components/formcomp/items/tag-item.vue +0 -77
- package/src/components/formcomp/items/text-item.vue +0 -75
- package/src/components/formcomp/items/textarea-item.vue +0 -85
- package/src/components/formcomp/items/time-item.vue +0 -77
- package/src/components/formcomp/items/time-picker-item.vue +0 -74
- package/src/components/formcomp/items/transfer-item.vue +0 -93
- package/src/components/formcomp/items/tselect-item.vue +0 -121
- package/src/components/formcomp/items/unknown-item.vue +0 -51
- package/src/components/formcomp/items/upload-item.vue +0 -189
- package/src/components/formcomp/items/user-item.vue +0 -177
- package/src/components/formcomp/items/usercomp-item.vue +0 -85
- package/src/components/formcomp/items/view-markdown-item.vue +0 -77
- package/src/components/formcomp/utils/EditDataDialog.vue +0 -67
- package/src/components/formcomp/utils/FieldList.vue +0 -125
- package/src/components/formcomp/utils/ItemRelationEventUtils.ts +0 -284
- package/src/components/help.vue +0 -31
- package/src/components/menu/MenuItem.vue +0 -95
- package/src/components/menu/SubMenu.vue +0 -68
- package/src/components/menu/SubSystemMenu.vue +0 -142
- package/src/components/register.ts +0 -24
- package/src/components/system/ContentMenu.vue +0 -260
- package/src/components/system/StarHorseButtonList.vue +0 -344
- package/src/components/system/StarHorseMenu.vue +0 -97
- package/src/components/system/StarHorseSvg.vue +0 -62
- package/src/components/system/SystemComp.ts +0 -9
- package/src/components/system/index.ts +0 -4
- package/src/components/types/ApiUrls.ts +0 -168
- package/src/components/types/BtnAction.ts +0 -51
- package/src/components/types/BtnAuth.ts +0 -43
- package/src/components/types/CompInfo.ts +0 -81
- package/src/components/types/DialogProps.ts +0 -55
- package/src/components/types/DyCompField.ts +0 -23
- package/src/components/types/DynamicNode.ts +0 -42
- package/src/components/types/MenusInfo.ts +0 -45
- package/src/components/types/PageFieldInfo.ts +0 -530
- package/src/components/types/PageProps.ts +0 -25
- package/src/components/types/Params.ts +0 -93
- package/src/components/types/RuleType.ts +0 -10
- package/src/components/types/SearchProps.ts +0 -42
- package/src/components/types/ShortKey.ts +0 -30
- package/src/components/types/StarHorseType.ts +0 -18
- package/src/components/types/index.ts +0 -15
- package/src/config/element.ts +0 -15
- package/src/config/styles.ts +0 -4
- package/src/index.ts +0 -98
- package/src/install.ts +0 -33
- package/src/lang/en_US.ts +0 -81
- package/src/lang/index.ts +0 -35
- package/src/lang/zh_CN.ts +0 -84
- package/src/main.ts +0 -57
- package/src/plugins/AblesPlugin.ts +0 -618
- package/src/plugins/registerCompPlugin.ts +0 -15
- package/src/sample/test.vue +0 -9
- package/src/store/ButtonPermission.ts +0 -101
- package/src/store/ConsumerView.ts +0 -52
- package/src/store/ContinusConfig.ts +0 -78
- package/src/store/CopyerOperation.ts +0 -74
- package/src/store/DesignForm.ts +0 -481
- package/src/store/DesignPage.ts +0 -59
- package/src/store/DynamicForm.ts +0 -241
- package/src/store/GlobalConfig.ts +0 -90
- package/src/store/SelfOperation.ts +0 -95
- package/src/store/UserInfo.ts +0 -88
- package/src/store/index.ts +0 -6
- package/src/theme/localStorge.ts +0 -16
- package/src/theme/theme.ts +0 -27
- package/src/utils/FieldOperationUtils.ts +0 -91
- package/src/utils/auth.ts +0 -83
- package/src/utils/message.ts +0 -69
- package/src/utils/preview.ts +0 -125
- package/tsconfig.json +0 -39
- package/tsconfig.node.json +0 -10
- package/vite-env.d.ts +0 -16
- package/vite.config.ts +0 -162
- package/yarn.lock +0 -4627
|
@@ -1,383 +0,0 @@
|
|
|
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>
|