sohelp-eleplus 1.1.1-8.beta.1
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 +35 -0
- package/cache/DictCache.js +58 -0
- package/cache/ModuleCache.js +322 -0
- package/components.js +46 -0
- package/core-export.js +4 -0
- package/http/CrudHttp.js +115 -0
- package/http/DictHttp.js +12 -0
- package/http/ModuleHttp.js +68 -0
- package/http/SohelpHttp.js +125 -0
- package/index.js +6 -0
- package/installer.js +8 -0
- package/lang/en_US.js +4 -0
- package/lang/zh_CN.js +4 -0
- package/lang/zh_TW.js +4 -0
- package/package.json +9 -0
- package/sohelp-ace-editor/index.vue +198 -0
- package/sohelp-application-select/index.vue +15 -0
- package/sohelp-autocode/index.vue +53 -0
- package/sohelp-calendar-view/index.vue +11 -0
- package/sohelp-card-view/index.vue +11 -0
- package/sohelp-condition/index.vue +210 -0
- package/sohelp-cry-input/index.vue +64 -0
- package/sohelp-date/index.vue +27 -0
- package/sohelp-datetime/index.vue +44 -0
- package/sohelp-datetime-picker/index.vue +86 -0
- package/sohelp-datetime-range/index.vue +59 -0
- package/sohelp-dict/index.vue +206 -0
- package/sohelp-dict/props.js +68 -0
- package/sohelp-drawer/index.vue +50 -0
- package/sohelp-drop-card/index.vue +94 -0
- package/sohelp-drop-card/props.js +68 -0
- package/sohelp-dyn-select/index.vue +99 -0
- package/sohelp-dyn-select/props.js +67 -0
- package/sohelp-dyn-tree/index.vue +82 -0
- package/sohelp-dyn-tree-select/index.vue +114 -0
- package/sohelp-entity-form/index.vue +524 -0
- package/sohelp-entity-grid/index.vue +30 -0
- package/sohelp-file-upload/index.vue +218 -0
- package/sohelp-filter-scheme/components/condition.vue +102 -0
- package/sohelp-filter-scheme/components/filter.vue +45 -0
- package/sohelp-filter-scheme/components/keywords.vue +15 -0
- package/sohelp-filter-scheme/components/scheme.vue +49 -0
- package/sohelp-filter-scheme/index.vue +113 -0
- package/sohelp-grid/SohelpGridConfig.js~ +408 -0
- package/sohelp-grid/components/filter-condition-item.vue +298 -0
- package/sohelp-grid/index.vue +1965 -0
- package/sohelp-grid/js/ConditionType.js +101 -0
- package/sohelp-grid/js/DefaultGridOptions.js +145 -0
- package/sohelp-grid/js/DefaultProps.js +27 -0
- package/sohelp-grid/js/SohelpConfigFunction.js +0 -0
- package/sohelp-grid/js/SohelpGridConfig.js +101 -0
- package/sohelp-grid/js/useSohelpGridConfig.js +525 -0
- package/sohelp-grid-select/index.vue +245 -0
- package/sohelp-grid-view/filter/config/grid-filter-condition.vue +221 -0
- package/sohelp-grid-view/filter/config/grid-filter-config.vue +27 -0
- package/sohelp-grid-view/filter/config/grid-filter-field.vue +378 -0
- package/sohelp-grid-view/filter/config/grid-filter-keywords.vue +310 -0
- package/sohelp-grid-view/filter/config/grid-filter-list.vue +313 -0
- package/sohelp-grid-view/filter/config/grid-filter-scheme.vue +264 -0
- package/sohelp-grid-view/filter/config/grid-filter-sort.vue +310 -0
- package/sohelp-grid-view/filter/config/index.vue +206 -0
- package/sohelp-grid-view/filter/filter-form.vue +446 -0
- package/sohelp-grid-view/filter/filter-toolbar.vue +110 -0
- package/sohelp-grid-view/filter/index.vue +160 -0
- package/sohelp-grid-view/index.vue +379 -0
- package/sohelp-grid-view-select/index.vue +141 -0
- package/sohelp-group-view/index.vue +11 -0
- package/sohelp-icon-select/icons/AnalysisOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ApplicationOutlined.vue +21 -0
- package/sohelp-icon-select/icons/AppstoreAddOutlined.vue +28 -0
- package/sohelp-icon-select/icons/AppstoreOutlined.vue +30 -0
- package/sohelp-icon-select/icons/ArrowDown.vue +21 -0
- package/sohelp-icon-select/icons/ArrowDownOutlined.vue +20 -0
- package/sohelp-icon-select/icons/ArrowLeft.vue +21 -0
- package/sohelp-icon-select/icons/ArrowLeftOutlined.vue +20 -0
- package/sohelp-icon-select/icons/ArrowRight.vue +21 -0
- package/sohelp-icon-select/icons/ArrowRightOutlined.vue +20 -0
- package/sohelp-icon-select/icons/ArrowUp.vue +21 -0
- package/sohelp-icon-select/icons/ArrowUpOutlined.vue +20 -0
- package/sohelp-icon-select/icons/BellOutlined.vue +21 -0
- package/sohelp-icon-select/icons/BookOutlined.vue +21 -0
- package/sohelp-icon-select/icons/CalendarOutlined.vue +19 -0
- package/sohelp-icon-select/icons/CaretDownFilled.vue +13 -0
- package/sohelp-icon-select/icons/CaretUpFilled.vue +13 -0
- package/sohelp-icon-select/icons/CheckCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/CheckCircleOutlined.vue +23 -0
- package/sohelp-icon-select/icons/CheckOutlined.vue +20 -0
- package/sohelp-icon-select/icons/CityOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ClockCircleOutlined.vue +23 -0
- package/sohelp-icon-select/icons/CloseCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/CloseCircleOutlined.vue +22 -0
- package/sohelp-icon-select/icons/CloseOutlined.vue +20 -0
- package/sohelp-icon-select/icons/CloudUploadOutlined.vue +23 -0
- package/sohelp-icon-select/icons/ClusterOutlined.vue +21 -0
- package/sohelp-icon-select/icons/CodeOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ColumnHeightOutlined.vue +18 -0
- package/sohelp-icon-select/icons/CompassOutlined.vue +22 -0
- package/sohelp-icon-select/icons/CompressOutlined.vue +23 -0
- package/sohelp-icon-select/icons/ConnectionOutlined.vue +24 -0
- package/sohelp-icon-select/icons/ControlOutlined.vue +27 -0
- package/sohelp-icon-select/icons/CopyOutlined.vue +22 -0
- package/sohelp-icon-select/icons/CpuOutlined.vue +22 -0
- package/sohelp-icon-select/icons/DashboardOutlined.vue +26 -0
- package/sohelp-icon-select/icons/DatabaseOutlined.vue +22 -0
- package/sohelp-icon-select/icons/DeleteOutlined.vue +22 -0
- package/sohelp-icon-select/icons/DesktopOutlined.vue +19 -0
- package/sohelp-icon-select/icons/DownloadOutlined.vue +21 -0
- package/sohelp-icon-select/icons/DragOutlined.vue +22 -0
- package/sohelp-icon-select/icons/EditOutlined.vue +21 -0
- package/sohelp-icon-select/icons/EllipsisOutlined.vue +15 -0
- package/sohelp-icon-select/icons/EnvironmentOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ExclamationCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/ExpandOutlined.vue +23 -0
- package/sohelp-icon-select/icons/FileOutlined.vue +22 -0
- package/sohelp-icon-select/icons/FilterFilled.vue +15 -0
- package/sohelp-icon-select/icons/FolderAddOutlined.vue +20 -0
- package/sohelp-icon-select/icons/FolderOutlined.vue +19 -0
- package/sohelp-icon-select/icons/FormOutlined.vue +20 -0
- package/sohelp-icon-select/icons/FullscreenExitOutlined.vue +16 -0
- package/sohelp-icon-select/icons/FullscreenOutlined.vue +16 -0
- package/sohelp-icon-select/icons/FundOutlined.vue +20 -0
- package/sohelp-icon-select/icons/GlobalOutlined.vue +15 -0
- package/sohelp-icon-select/icons/HolderOutlined.vue +18 -0
- package/sohelp-icon-select/icons/HomeOutlined.vue +19 -0
- package/sohelp-icon-select/icons/IdcardOutlined.vue +25 -0
- package/sohelp-icon-select/icons/InfoCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/LinkOutlined.vue +15 -0
- package/sohelp-icon-select/icons/LoadingDotOutlined.vue +21 -0
- package/sohelp-icon-select/icons/LoadingOutlined.vue +19 -0
- package/sohelp-icon-select/icons/LockOutlined.vue +21 -0
- package/sohelp-icon-select/icons/LogOutlined.vue +22 -0
- package/sohelp-icon-select/icons/LogoutOutlined.vue +22 -0
- package/sohelp-icon-select/icons/MailOutlined.vue +19 -0
- package/sohelp-icon-select/icons/MenuFoldOutlined.vue +17 -0
- package/sohelp-icon-select/icons/MenuUnfoldOutlined.vue +17 -0
- package/sohelp-icon-select/icons/MessageOutlined.vue +22 -0
- package/sohelp-icon-select/icons/MinusCircleOutlined.vue +22 -0
- package/sohelp-icon-select/icons/MobileOutlined.vue +20 -0
- package/sohelp-icon-select/icons/MoonOutlined.vue +21 -0
- package/sohelp-icon-select/icons/MoreOutlined.vue +15 -0
- package/sohelp-icon-select/icons/PauseFilled.vue +14 -0
- package/sohelp-icon-select/icons/PieChartOutlined.vue +20 -0
- package/sohelp-icon-select/icons/PlayFilled.vue +13 -0
- package/sohelp-icon-select/icons/PlusCircleOutlined.vue +22 -0
- package/sohelp-icon-select/icons/PlusOutlined.vue +19 -0
- package/sohelp-icon-select/icons/ProtectOutlined.vue +21 -0
- package/sohelp-icon-select/icons/QuestionCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/QuestionCircleOutlined.vue +25 -0
- package/sohelp-icon-select/icons/ReloadOutlined.vue +22 -0
- package/sohelp-icon-select/icons/SearchOutlined.vue +21 -0
- package/sohelp-icon-select/icons/SettingOutlined.vue +24 -0
- package/sohelp-icon-select/icons/ShoppingOutlined.vue +19 -0
- package/sohelp-icon-select/icons/SortOutlined.vue +21 -0
- package/sohelp-icon-select/icons/StarFilled.vue +15 -0
- package/sohelp-icon-select/icons/StepBackwardFilled.vue +17 -0
- package/sohelp-icon-select/icons/StepForwardFilled.vue +17 -0
- package/sohelp-icon-select/icons/SuitcaseOutlined.vue +19 -0
- package/sohelp-icon-select/icons/SunOutlined.vue +29 -0
- package/sohelp-icon-select/icons/SwapOutlined.vue +21 -0
- package/sohelp-icon-select/icons/SyncOutlined.vue +21 -0
- package/sohelp-icon-select/icons/TableOutlined.vue +19 -0
- package/sohelp-icon-select/icons/TagOutlined.vue +20 -0
- package/sohelp-icon-select/icons/TimerOutlined.vue +22 -0
- package/sohelp-icon-select/icons/UndoOutlined.vue +22 -0
- package/sohelp-icon-select/icons/UnlockOutlined.vue +21 -0
- package/sohelp-icon-select/icons/UploadOutlined.vue +21 -0
- package/sohelp-icon-select/icons/UserOutlined.vue +21 -0
- package/sohelp-icon-select/icons/VerticalAlignMiddleOutlined.vue +15 -0
- package/sohelp-icon-select/icons/VerticalLeftOutlined.vue +13 -0
- package/sohelp-icon-select/icons/VerticalRightOutlined.vue +13 -0
- package/sohelp-icon-select/icons/WarningOutlined.vue +21 -0
- package/sohelp-icon-select/icons/ZoomInOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ZoomOutOutlined.vue +22 -0
- package/sohelp-icon-select/icons/index.js +106 -0
- package/sohelp-icon-select/icons/index.ts +106 -0
- package/sohelp-icon-select/index.vue +95 -0
- package/sohelp-icon-select/vxeui-icon.js +90 -0
- package/sohelp-image-upload/index.vue +286 -0
- package/sohelp-input/index.vue +39 -0
- package/sohelp-modal/index.vue +72 -0
- package/sohelp-module/index.vue +54 -0
- package/sohelp-module/useModalManager.js +89 -0
- package/sohelp-module/useSohelpModule.js +64 -0
- package/sohelp-number-input/index.vue +32 -0
- package/sohelp-number-range/index.vue +135 -0
- package/sohelp-org-select/index.vue +30 -0
- package/sohelp-org-tree/index.vue +18 -0
- package/sohelp-org-tree-select/index.vue +93 -0
- package/sohelp-org-user-tree/index.vue +26 -0
- package/sohelp-org-user-tree-select/index.vue +11 -0
- package/sohelp-pagination/index.vue +11 -0
- package/sohelp-power/index.vue +105 -0
- package/sohelp-pro-form/components/pro-form-footer.vue +44 -0
- package/sohelp-pro-form/components/pro-form-item.vue +1133 -0
- package/sohelp-pro-form/index.vue +257 -0
- package/sohelp-pro-form/util.js +140 -0
- package/sohelp-pro-layout/index.vue +11 -0
- package/sohelp-pro-table/index.vue +14 -0
- package/sohelp-process/index.vue +216 -0
- package/sohelp-rate/index.vue +56 -0
- package/sohelp-rate/props.js +71 -0
- package/sohelp-relation/index.vue +11 -0
- package/sohelp-rich-text/index.vue +242 -0
- package/sohelp-rich-text/util.js +231 -0
- package/sohelp-richtext/index.vue +10 -0
- package/sohelp-role-select/index.vue +33 -0
- package/sohelp-search/components/search-config.vue +0 -0
- package/sohelp-search/index.vue +49 -0
- package/sohelp-search-pro-form/index.vue +11 -0
- package/sohelp-select/index.vue +120 -0
- package/sohelp-split-panel/index.vue +15 -0
- package/sohelp-switch/index.vue +56 -0
- package/sohelp-table/index.vue +151 -0
- package/sohelp-tenant-select/index.vue +128 -0
- package/sohelp-text/index.vue +14 -0
- package/sohelp-textarea-input/index.vue +36 -0
- package/sohelp-time/index.vue +10 -0
- package/sohelp-tree/index.vue +37 -0
- package/sohelp-tree-select/index.vue +18 -0
- package/sohelp-user-select/index.vue +44 -0
- package/sohelp-user-select/index.vue~ +53 -0
- package/sohelp-user-select/props.js +71 -0
- package/sohelp-user-tag/index.vue +12 -0
- package/sohelp-user-tree/index.vue +11 -0
- package/sohelp-vform-drawer/index.vue +40 -0
- package/sohelp-vform-eleplus/favicon.ico +0 -0
- package/sohelp-vform-eleplus/index.vue +297 -0
- package/sohelp-vform-eleplus/preview.html +91 -0
- package/sohelp-vform-eleplus/render.es.js +72433 -0
- package/sohelp-vform-eleplus/render.style.css +16 -0
- package/sohelp-vform-eleplus/render.umd.js +57 -0
- package/sohelp-vform-eleplus/tinymce/langs/zh_CN.js +462 -0
- package/sohelp-vform-eleplus/tinymce/langs/zh_TW.js +419 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/dark/content.css +72 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/dark/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/default/content.css +67 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/default/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/document/content.css +72 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/document/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/writer/content.css +68 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/writer/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.css +732 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.inline.css +726 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.css +3047 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.css +714 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.inline.css +726 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.css +3047 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/sohelp-vform-modal/index.vue +41 -0
- package/sohelp-vform-select/index.vue +11 -0
- package/sohelp-vform-vant/favicon.ico +0 -0
- package/sohelp-vform-vant/render.es.js +14608 -0
- package/sohelp-vform-vant/render.style.css +1 -0
- package/sohelp-vform-vant/render.umd.js +22 -0
- package/sohelp-vxe-grid/DefaultGridOptions.js +90 -0
- package/sohelp-vxe-grid/DefaultProps.js +27 -0
- package/sohelp-vxe-grid/SohelpGridConfig.js +143 -0
- package/sohelp-vxe-grid/index.vue +475 -0
- package/sohelp-vxe-grid-select/index.vue +148 -0
- package/sohelp-vxe-table/index.vue +184 -0
- package/sohelp-workflow/index.vue +495 -0
- package/sohelp-workflow/nodeWrap.vue +53 -0
- package/sohelp-workflow/nodes/addNode.vue +27 -0
- package/sohelp-workflow/nodes/approver.vue +125 -0
- package/sohelp-workflow/nodes/branch.vue +434 -0
- package/sohelp-workflow/nodes/promoter.vue +80 -0
- package/sohelp-workflow/nodes/send.vue +95 -0
- package/sohelp-workflow-drawer/components/approval-modal.vue +182 -0
- package/sohelp-workflow-drawer/components/draw-box.vue +141 -0
- package/sohelp-workflow-drawer/components/form.vue +78 -0
- package/sohelp-workflow-drawer/components/table.vue +153 -0
- package/sohelp-workflow-drawer/components/timeline.vue +189 -0
- package/sohelp-workflow-drawer/components/workflow.vue +68 -0
- package/sohelp-workflow-drawer/index.vue +311 -0
- package/sohelp-workflow-drawer/js/index.js +119 -0
- package/utils/ProFormConvertUtil.js +76 -0
- package/utils/core.js +310 -0
- package/utils/use-form-data.js +48 -0
- package/utils/use-mobile.js +43 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sohelp-image-upload">
|
|
3
|
+
<vxe-upload
|
|
4
|
+
ref="vxeUploadRef"
|
|
5
|
+
v-model="fileList"
|
|
6
|
+
:upload-method="uploadMethod"
|
|
7
|
+
:before-remove-method="beforeRemoveMethod"
|
|
8
|
+
:before-download-method="beforeDownloadMethod"
|
|
9
|
+
:autoHiddenButton="!multiple"
|
|
10
|
+
show-download-button
|
|
11
|
+
mode="image"
|
|
12
|
+
:urlMode="true"
|
|
13
|
+
:showProgress="true"
|
|
14
|
+
:showButtonText="false"
|
|
15
|
+
:pasteToUpload="true"
|
|
16
|
+
:multiple="multiple"
|
|
17
|
+
:singleMode="!multiple"
|
|
18
|
+
:readonly="readonly"
|
|
19
|
+
:imageConfig="imageConfig"
|
|
20
|
+
:limitCount="limitCount"
|
|
21
|
+
:limitSize="limitSize"
|
|
22
|
+
:imageTypes="imageTypes"
|
|
23
|
+
:progressText="'{percent}%'"
|
|
24
|
+
:moreConfig="moreConfig"
|
|
25
|
+
></vxe-upload>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script setup>
|
|
30
|
+
import { ref, watch } from 'vue';
|
|
31
|
+
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
32
|
+
import { SohelpHttp } from '../core-export';
|
|
33
|
+
import { VxeUI } from 'vxe-pc-ui';
|
|
34
|
+
|
|
35
|
+
const modelValue = defineModel('modelValue');
|
|
36
|
+
/**
|
|
37
|
+
* 支持本地数据
|
|
38
|
+
* @type {ModelRef<Object | any[] | undefined, string>}
|
|
39
|
+
*/
|
|
40
|
+
const data = defineModel('data', { type: [Object, Array], default: () => [] });
|
|
41
|
+
|
|
42
|
+
const imagePath = `${SohelpHttp.getBaseUrl()}/engine/web/file/image?id=`;
|
|
43
|
+
const props = defineProps({
|
|
44
|
+
/**
|
|
45
|
+
* 是否只读
|
|
46
|
+
*/
|
|
47
|
+
readonly: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* 支持异步数据源
|
|
53
|
+
*/
|
|
54
|
+
datasource: {
|
|
55
|
+
type: Function,
|
|
56
|
+
default: () => {}
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* 支持多个图片上传,默认单个图片
|
|
60
|
+
*/
|
|
61
|
+
multiple: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* 单次上传9个图片
|
|
67
|
+
*/
|
|
68
|
+
limitCount: {
|
|
69
|
+
type: Number,
|
|
70
|
+
default: 9
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* 每张图片不超过10M
|
|
74
|
+
*/
|
|
75
|
+
limitSize: {
|
|
76
|
+
type: Number,
|
|
77
|
+
default: 10 //10Mb
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* 支持上传图片的类型
|
|
81
|
+
*/
|
|
82
|
+
imageTypes: {
|
|
83
|
+
type: Object,
|
|
84
|
+
default: () => {
|
|
85
|
+
return ['jpg', 'jpeg', 'png', 'webp', 'bmp', 'gif'];
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* 图片参数配置
|
|
90
|
+
*/
|
|
91
|
+
imageConfig: {
|
|
92
|
+
type: Object,
|
|
93
|
+
default: () => {
|
|
94
|
+
return {
|
|
95
|
+
width: 30,
|
|
96
|
+
height: 26
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
moreConfig: {
|
|
101
|
+
type: Object,
|
|
102
|
+
default: () => {
|
|
103
|
+
return {
|
|
104
|
+
maxCount: 1,
|
|
105
|
+
layout: 'horizontal'
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
const emit = defineEmits(['update:modelValue', 'update:data']);
|
|
112
|
+
|
|
113
|
+
const vxeUploadRef = ref(null);
|
|
114
|
+
const fileList = ref([]);
|
|
115
|
+
const originList = ref([]);
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 下载
|
|
119
|
+
* @param param0
|
|
120
|
+
*/
|
|
121
|
+
const beforeDownloadMethod = async ({ option }) => {
|
|
122
|
+
try {
|
|
123
|
+
const blob = await fetch(option.url).then((response) => response.blob());
|
|
124
|
+
await VxeUI.saveFile({
|
|
125
|
+
filename: option.name,
|
|
126
|
+
content: blob
|
|
127
|
+
});
|
|
128
|
+
VxeUI.modal.message({
|
|
129
|
+
content: '下载成功',
|
|
130
|
+
status: 'success'
|
|
131
|
+
});
|
|
132
|
+
} catch (e) {
|
|
133
|
+
VxeUI.modal.message({
|
|
134
|
+
content: '下载失败',
|
|
135
|
+
status: 'error'
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return false;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @param param0 删除
|
|
144
|
+
*/
|
|
145
|
+
const beforeRemoveMethod = async ({ option }) => {
|
|
146
|
+
try {
|
|
147
|
+
if (!option || !option.url || typeof option.url !== 'string') {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
await ElMessageBox.confirm('确定要删除图片吗?', '系统提示', {
|
|
152
|
+
type: 'warning',
|
|
153
|
+
draggable: false
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
const urlObj = new URL(option.url);
|
|
157
|
+
const id = urlObj.searchParams.get('id');
|
|
158
|
+
|
|
159
|
+
if (!id) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const res = await SohelpHttp.post('/engine/web/file/delete', { id: id });
|
|
164
|
+
|
|
165
|
+
if (res.meta.success) {
|
|
166
|
+
ElMessage.success(res.meta.message);
|
|
167
|
+
originList.value = originList.value.filter((item) => item.id !== id);
|
|
168
|
+
modelValue.value = '';
|
|
169
|
+
return true;
|
|
170
|
+
} else {
|
|
171
|
+
ElMessage.error(res.meta.message);
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
} catch (e) {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* 上传
|
|
181
|
+
*/
|
|
182
|
+
const uploadMethod = async ({ file }) => {
|
|
183
|
+
const formData = new FormData();
|
|
184
|
+
formData.append('files', file);
|
|
185
|
+
|
|
186
|
+
const res = await SohelpHttp.post('/engine/web/file/upload', formData);
|
|
187
|
+
if (res.meta.success && res.data.length > 0) {
|
|
188
|
+
originList.value.push({
|
|
189
|
+
name: file.name,
|
|
190
|
+
id: res.data[0]
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
modelValue.value = res.data[0];
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
url: imagePath + res.data[0],
|
|
197
|
+
name: file.name
|
|
198
|
+
};
|
|
199
|
+
} else {
|
|
200
|
+
ElMessage.error(res.meta.message);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
watch(
|
|
205
|
+
() => modelValue.value,
|
|
206
|
+
(val) => {
|
|
207
|
+
if (val && val !== '0' && val !== 0) {
|
|
208
|
+
const arr = Array.isArray(val) ? val : [val];
|
|
209
|
+
const v = Array.isArray(data.value) ? data.value : [data.value];
|
|
210
|
+
originList.value = arr.map((item) => {
|
|
211
|
+
const filename = v?.find((row) => row?.id === item)?.filename || '';
|
|
212
|
+
return {
|
|
213
|
+
id: item,
|
|
214
|
+
name: filename,
|
|
215
|
+
url: imagePath + item
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
fileList.value = originList.value;
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
immediate: true
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
</script>
|
|
226
|
+
|
|
227
|
+
<script>
|
|
228
|
+
export default {
|
|
229
|
+
name: 'SohelpImageUpload'
|
|
230
|
+
};
|
|
231
|
+
</script>
|
|
232
|
+
<style scoped lang="scss">
|
|
233
|
+
.sohelp-image-upload {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-wrap: nowrap;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
height: 100%;
|
|
238
|
+
box-sizing: border-box;
|
|
239
|
+
|
|
240
|
+
:deep(.vxe-upload) {
|
|
241
|
+
height: 100%;
|
|
242
|
+
|
|
243
|
+
.vxe-upload--image-wrapper {
|
|
244
|
+
height: 100%;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.vxe-upload--image-list {
|
|
248
|
+
height: 100%;
|
|
249
|
+
display: flex;
|
|
250
|
+
gap: 5px;
|
|
251
|
+
|
|
252
|
+
.vxe-upload--image-over-more {
|
|
253
|
+
padding: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.vxe-upload--image-action {
|
|
257
|
+
padding: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.vxe-upload--image-item {
|
|
261
|
+
padding: 0;
|
|
262
|
+
display: flex;
|
|
263
|
+
|
|
264
|
+
.vxe-upload--image-item-box {
|
|
265
|
+
img {
|
|
266
|
+
min-width: 100%;
|
|
267
|
+
min-height: 100%;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.vxe-upload--image-item-btn-wrapper {
|
|
272
|
+
width: 12px;
|
|
273
|
+
height: 12px;
|
|
274
|
+
overflow: hidden;
|
|
275
|
+
top: -3px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.vxe-upload--image-item-remove-btn {
|
|
279
|
+
width: 12px;
|
|
280
|
+
height: 12px;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-input
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
v-model="modelValue"
|
|
5
|
+
clearable
|
|
6
|
+
ref="inputRef"
|
|
7
|
+
:disabled="$attrs?.disabled || $attrs?.readonly"
|
|
8
|
+
>
|
|
9
|
+
<template v-for="(_, slot) in $slots" #[slot]="slotProps">
|
|
10
|
+
<slot :name="slot" v-bind="slotProps" />
|
|
11
|
+
</template>
|
|
12
|
+
</el-input>
|
|
13
|
+
</template>
|
|
14
|
+
<script setup>
|
|
15
|
+
import { nextTick, onMounted, ref } from 'vue';
|
|
16
|
+
|
|
17
|
+
const emit = defineEmits(['update:modelValue']);
|
|
18
|
+
const modelValue = defineModel('modelValue');
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
autoFocus: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const inputRef = ref(null);
|
|
27
|
+
onMounted(() => {
|
|
28
|
+
nextTick(() => {
|
|
29
|
+
if (props.autoFocus) {
|
|
30
|
+
inputRef.value.focus();
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
</script>
|
|
35
|
+
<script>
|
|
36
|
+
export default {
|
|
37
|
+
name: 'SohelpInput'
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ele-modal v-bind="$attrs" v-model="modelValue">
|
|
3
|
+
<template #header>
|
|
4
|
+
<div class="modal-header">
|
|
5
|
+
<slot name="header">
|
|
6
|
+
{{ $attrs.title }}
|
|
7
|
+
</slot>
|
|
8
|
+
<div class="right">
|
|
9
|
+
<slot name="setting"></slot>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<!-- 主内容插槽 -->
|
|
15
|
+
<slot></slot>
|
|
16
|
+
<!-- 底部插槽 -->
|
|
17
|
+
|
|
18
|
+
<template #footer>
|
|
19
|
+
<slot name="footer" v-if="showFooter">
|
|
20
|
+
<el-button type="primary" @click="confirm">确认</el-button>
|
|
21
|
+
<el-button @click="cancel">关闭</el-button>
|
|
22
|
+
</slot>
|
|
23
|
+
</template>
|
|
24
|
+
</ele-modal>
|
|
25
|
+
</template>
|
|
26
|
+
<script setup>
|
|
27
|
+
const modelValue = defineModel('modelValue', { type: Boolean, default: false });
|
|
28
|
+
const emit = defineEmits('confirm', 'cancel');
|
|
29
|
+
const props = defineProps({
|
|
30
|
+
showFooter: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const confirm = () => {
|
|
37
|
+
emit('confirm');
|
|
38
|
+
};
|
|
39
|
+
const cancel = () => {
|
|
40
|
+
modelValue.value = false;
|
|
41
|
+
emit('cancel');
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const show = () => {
|
|
45
|
+
modelValue.value = true;
|
|
46
|
+
};
|
|
47
|
+
const close = () => {
|
|
48
|
+
modelValue.value = false;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
defineExpose({
|
|
52
|
+
show,
|
|
53
|
+
close
|
|
54
|
+
});
|
|
55
|
+
</script>
|
|
56
|
+
<script>
|
|
57
|
+
export default {
|
|
58
|
+
name: 'SohelpModal'
|
|
59
|
+
};
|
|
60
|
+
</script>
|
|
61
|
+
<style scoped lang="scss">
|
|
62
|
+
.modal-header {
|
|
63
|
+
display: flex;
|
|
64
|
+
|
|
65
|
+
.right {
|
|
66
|
+
margin-left: auto;
|
|
67
|
+
padding: 0 10px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 动态渲染多个el-modal -->
|
|
3
|
+
<sohelp-modal
|
|
4
|
+
maxable
|
|
5
|
+
multiple
|
|
6
|
+
resizable
|
|
7
|
+
v-for="[id, modal] in modals"
|
|
8
|
+
:key="id"
|
|
9
|
+
v-model="modal.visible"
|
|
10
|
+
v-bind="modal"
|
|
11
|
+
@close="closeModal(id)"
|
|
12
|
+
:bodyStyle="{ padding: 0, height: '100%', minHeight: '60vh', }"
|
|
13
|
+
:showFooter="false"
|
|
14
|
+
class="module-modal"
|
|
15
|
+
>
|
|
16
|
+
<sohelp-vform :refid="id" v-model="modal.params" v-model:data="modal.params" ref="vformRefs" moduleType="modal"></sohelp-vform>
|
|
17
|
+
</sohelp-modal>
|
|
18
|
+
|
|
19
|
+
<!-- 动态渲染多个el-drawer -->
|
|
20
|
+
<sohelp-drawer
|
|
21
|
+
v-for="[id, drawer] in drawers"
|
|
22
|
+
:key="id"
|
|
23
|
+
v-model="drawer.visible"
|
|
24
|
+
v-bind="drawer"
|
|
25
|
+
@close="closeDrawer(id)"
|
|
26
|
+
:bodyStyle="{ padding: 0, height: '100%', overflow: 'auto'}"
|
|
27
|
+
>
|
|
28
|
+
<sohelp-vform :refid="id" v-model="drawer.params.modelValue" v-model:data="drawer.params.data" moduleType="drawer"></sohelp-vform>
|
|
29
|
+
</sohelp-drawer>
|
|
30
|
+
</template>
|
|
31
|
+
<script>
|
|
32
|
+
export default {
|
|
33
|
+
name: 'SohelpModule'
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
36
|
+
<script setup>
|
|
37
|
+
import SohelpModal from '../sohelp-modal/index.vue';
|
|
38
|
+
import SohelpDrawer from '../sohelp-drawer/index.vue';
|
|
39
|
+
import SohelpVform from '../sohelp-vform-eleplus/index.vue';
|
|
40
|
+
import useModalManager from './useModalManager';
|
|
41
|
+
import { ref } from 'vue';
|
|
42
|
+
|
|
43
|
+
const { modals, drawers, openModal, closeModal, openDrawer, closeDrawer } = useModalManager();
|
|
44
|
+
const vformRefs = ref(null);
|
|
45
|
+
|
|
46
|
+
defineExpose({
|
|
47
|
+
openModal,
|
|
48
|
+
closeModal,
|
|
49
|
+
openDrawer,
|
|
50
|
+
closeDrawer
|
|
51
|
+
});
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ref } from 'vue'
|
|
2
|
+
|
|
3
|
+
export default function useModalManager() {
|
|
4
|
+
// 存储所有模态框实例
|
|
5
|
+
const modals = ref(new Map())
|
|
6
|
+
// 存储所有抽屉实例
|
|
7
|
+
const drawers = ref(new Map())
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 打开模态框
|
|
11
|
+
* @param refid 模块地址
|
|
12
|
+
* @param params 数据对象
|
|
13
|
+
* @param props 属性
|
|
14
|
+
*/
|
|
15
|
+
const openModal = (refid,params={}, props = {}) => {
|
|
16
|
+
modals.value.set(refid, {
|
|
17
|
+
visible: true,
|
|
18
|
+
...props,
|
|
19
|
+
params:{...params}
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 关闭对话框
|
|
25
|
+
* @param refid 模块地址
|
|
26
|
+
*/
|
|
27
|
+
const closeModal = (refid) => {
|
|
28
|
+
if (modals.value.has(refid)) {
|
|
29
|
+
modals.value.set(refid, {
|
|
30
|
+
...modals.value.get(refid),
|
|
31
|
+
visible: false
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 打开抽屉
|
|
38
|
+
* @param refid 模块地址
|
|
39
|
+
* @param params 数据对象
|
|
40
|
+
* @param props 属性
|
|
41
|
+
*/
|
|
42
|
+
const openDrawer = (refid, params={},props = {}) => {
|
|
43
|
+
drawers.value.set(refid, {
|
|
44
|
+
visible: true,
|
|
45
|
+
...props,
|
|
46
|
+
params:{...params}
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 关闭抽屉
|
|
52
|
+
* @param refid 模块地址
|
|
53
|
+
*/
|
|
54
|
+
const closeDrawer = (refid) => {
|
|
55
|
+
if (drawers.value.has(refid)) {
|
|
56
|
+
drawers.value.set(refid, {
|
|
57
|
+
...drawers.value.get(refid),
|
|
58
|
+
visible: false
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 获取模态框状态
|
|
65
|
+
* @param refid 模块地址
|
|
66
|
+
*/
|
|
67
|
+
const getModalState = (refid) => {
|
|
68
|
+
return modals.value.get(refid) || { visible: false }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 获取抽屉状态
|
|
73
|
+
* @param refid 模块地址
|
|
74
|
+
*/
|
|
75
|
+
const getDrawerState = (refid) => {
|
|
76
|
+
return drawers.value.get(refid) || { visible: false }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
modals,
|
|
81
|
+
drawers,
|
|
82
|
+
openModal,
|
|
83
|
+
closeModal,
|
|
84
|
+
openDrawer,
|
|
85
|
+
closeDrawer,
|
|
86
|
+
getModalState,
|
|
87
|
+
getDrawerState
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { usePageTab } from "@/utils/use-page-tab";
|
|
2
|
+
|
|
3
|
+
function objectToUrlParams(obj) {
|
|
4
|
+
if (!obj) {
|
|
5
|
+
return "";
|
|
6
|
+
}
|
|
7
|
+
return "&" + Object.keys(obj)
|
|
8
|
+
.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`)
|
|
9
|
+
.join("&");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function useSohelpModule(sohelpModuleRef, push){
|
|
13
|
+
return {
|
|
14
|
+
/**
|
|
15
|
+
* 打开抽屉
|
|
16
|
+
* @param refid 模块地址
|
|
17
|
+
* @param params 参数
|
|
18
|
+
* @param props 属性
|
|
19
|
+
*/
|
|
20
|
+
openDrawer: (refid, params = {}, props = {}) => {
|
|
21
|
+
sohelpModuleRef.value.openDrawer(refid, params, props);
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
*打开对话框
|
|
25
|
+
* @param refid 模块地址
|
|
26
|
+
* @param params
|
|
27
|
+
* @param props
|
|
28
|
+
*/
|
|
29
|
+
openModal: (refid, params = {}, props = {}, callback) => {
|
|
30
|
+
sohelpModuleRef.value.openModal(refid, params, props, callback);
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* 关闭对话框
|
|
34
|
+
* @param refid 模块地址
|
|
35
|
+
*/
|
|
36
|
+
closeModal: (refid) => {
|
|
37
|
+
sohelpModuleRef.value.closeModal(refid);
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* 关闭抽屉
|
|
41
|
+
* @param refid 模块地址
|
|
42
|
+
*/
|
|
43
|
+
closeDrawer: (refid) => {
|
|
44
|
+
sohelpModuleRef.value.closeDrawer(refid);
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* 打开标签页
|
|
48
|
+
* @param refid 模块地址
|
|
49
|
+
* @param params 数据对象
|
|
50
|
+
*/
|
|
51
|
+
openTab: (refid, params) => {
|
|
52
|
+
delete params.refid;
|
|
53
|
+
push(`/vform?refid=${refid}${objectToUrlParams(params)}`);
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* 关闭标签页
|
|
57
|
+
* @param refid 模块地址
|
|
58
|
+
*/
|
|
59
|
+
closeTab: (refid) => {
|
|
60
|
+
const { finishPageTab, setPageTabTitle, addPageTab } = usePageTab();
|
|
61
|
+
finishPageTab();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-input-number
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
controls-position="right"
|
|
5
|
+
ref="inputRef"
|
|
6
|
+
:disabled="$attrs?.disabled || $attrs?.readonly"
|
|
7
|
+
></el-input-number>
|
|
8
|
+
</template>
|
|
9
|
+
<script setup>
|
|
10
|
+
import { nextTick, onMounted, ref } from 'vue';
|
|
11
|
+
|
|
12
|
+
const props = defineProps({
|
|
13
|
+
autoFocus: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const inputRef = ref(null);
|
|
20
|
+
onMounted(() => {
|
|
21
|
+
nextTick(() => {
|
|
22
|
+
if (props.autoFocus) {
|
|
23
|
+
inputRef.value.focus();
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
</script>
|
|
28
|
+
<script>
|
|
29
|
+
export default {
|
|
30
|
+
name: 'SohelpNumberInput'
|
|
31
|
+
};
|
|
32
|
+
</script>
|