@wfrog/vc-ui 1.6.0 → 1.7.0
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/es/chunk/{BL8WhaLp.mjs → 39c07jh1.mjs} +1 -1
- package/dist/es/chunk/{CbYM6R_O.mjs → 3jDcB2xo.mjs} +6 -6
- package/dist/es/chunk/{DhGcJR5p.mjs → B11niAKN.mjs} +1 -1
- package/dist/es/chunk/{fueZ9sVu.mjs → B7FqhrtI.mjs} +4 -4
- package/dist/es/chunk/{B3GxuXVE.mjs → BAqSLB3Y.mjs} +1 -1
- package/dist/es/chunk/{CGhekNBa.mjs → BBXZ8dk4.mjs} +1 -1
- package/dist/es/chunk/{DYKOYbzT.mjs → BL-J8gO7.mjs} +5 -5
- package/dist/es/chunk/{Cg-Krnly.mjs → BQVjODp4.mjs} +1 -1
- package/dist/es/chunk/{D6nWUATi.mjs → B_RyUSJF.mjs} +13 -13
- package/dist/es/chunk/{DSt2uDNE.mjs → BqMf3xBl.mjs} +2 -2
- package/dist/es/chunk/{DQK0ezHm.mjs → BzqDqZOf.mjs} +3 -3
- package/dist/es/chunk/{BxibBO68.mjs → C-HMX6-e.mjs} +6 -6
- package/dist/es/chunk/{CboHfRXN.mjs → C2kaTl08.mjs} +2 -2
- package/dist/es/chunk/{D1MHFKtN.mjs → C6xZotC7.mjs} +1 -1
- package/dist/es/chunk/{F2ph6lWu.mjs → CFYABm3t.mjs} +6 -6
- package/dist/es/chunk/{DQi1QPak.mjs → CPW-P7zz.mjs} +8 -8
- package/dist/es/chunk/{DViraU6I.mjs → CROtrCmM.mjs} +1 -1
- package/dist/es/chunk/{CqTa_Vd-.mjs → CSZw6Ko2.mjs} +2 -2
- package/dist/es/chunk/{CwXV7M2F.mjs → CaA5lDme.mjs} +2 -2
- package/dist/es/chunk/Cb0n0U19.mjs +2199 -0
- package/dist/es/chunk/{CKZGL4_3.mjs → CdG7Eqv2.mjs} +3 -3
- package/dist/es/chunk/{BfjuZmry.mjs → D1Ki7NcP.mjs} +2 -2
- package/dist/es/chunk/{DTbnchOm.mjs → D5u7KBz_.mjs} +1 -1
- package/dist/es/chunk/{DX84QR5M.mjs → DYhJTpil.mjs} +3 -3
- package/dist/es/chunk/{D_Mvdscy.mjs → Dh_zpmSz.mjs} +2 -2
- package/dist/es/chunk/{D6m3vWpc.mjs → DrC4SmEj.mjs} +1 -1
- package/dist/es/chunk/{DAIuzoFs.mjs → DutTJaGc.mjs} +1 -1
- package/dist/es/chunk/{w7VqVeWU.mjs → RgWmId3R.mjs} +1 -1
- package/dist/es/chunk/{CQz3lhyS.mjs → UUVoNfr4.mjs} +1 -1
- package/dist/es/chunk/{D7CQDxqy.mjs → tJuysXfp.mjs} +2 -2
- package/dist/es/components/backbottom/backbottom.mjs +1 -1
- package/dist/es/components/button/button.mjs +4 -4
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/color-switcher/color-switcher.mjs +5 -5
- package/dist/es/components/cropper/cropper.mjs +6 -6
- package/dist/es/components/currency/currency.mjs +3 -3
- package/dist/es/components/daterange-picker/daterange-picker.mjs +9 -9
- package/dist/es/components/dialog/dialog.d.ts +1 -0
- package/dist/es/components/dialog/dialog.mjs +23 -17
- package/dist/es/components/dialog/dialog.vue.d.ts +3 -1
- package/dist/es/components/dialog/index.css +22 -17
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +8 -8
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +2 -2
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +4 -4
- package/dist/es/components/document.vue.d.ts +14 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +1 -1
- package/dist/es/components/drawer/drawer.mjs +5 -5
- package/dist/es/components/easy-pagination/easy-pagination.mjs +1 -1
- package/dist/es/components/example-wrapper.vue.d.ts +19 -0
- package/dist/es/components/explorer/explorer.mjs +2 -2
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +4 -4
- package/dist/es/components/explorer-container/explorer-container.mjs +5 -5
- package/dist/es/components/explorer-container/index.css +7 -5
- package/dist/es/components/explorer-dialog-form/explorer-dialog-form.d.ts +23 -0
- package/dist/es/components/explorer-dialog-form/explorer-dialog-form.mjs +157 -0
- package/dist/es/components/explorer-dialog-form/explorer-dialog-form.vue.d.ts +584 -0
- package/dist/es/components/explorer-dialog-form/index.css +6 -0
- package/dist/es/components/explorer-dialog-form/index.d.ts +4 -0
- package/dist/es/components/explorer-dialog-form/index.mjs +6 -0
- package/dist/es/components/explorer-filter/explorer-filter.mjs +4 -4
- package/dist/es/components/explorer-footer/explorer-footer.d.ts +1 -0
- package/dist/es/components/explorer-footer/explorer-footer.mjs +28 -15
- package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +2 -0
- package/dist/es/components/explorer-footer/index.css +3 -3
- package/dist/es/components/explorer-form/explorer-form.d.ts +7 -6
- package/dist/es/components/explorer-form/explorer-form.mjs +37 -57
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +194 -6
- package/dist/es/components/explorer-form/index.css +9 -7
- package/dist/es/components/explorer-list/explorer-list.d.ts +1 -0
- package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
- package/dist/es/components/explorer-panel/explorer-panel.mjs +2 -2
- package/dist/es/components/explorer-query/explorer-query.mjs +10 -2203
- package/dist/es/components/explorer-query/index.css +1 -1
- package/dist/es/components/explorer-table/explorer-table.d.ts +4 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +22 -9
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +3 -0
- package/dist/es/components/explorer-tools/explorer-tools.mjs +7 -7
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +1 -0
- package/dist/es/components/explorer-tree/explorer-tree.mjs +15 -14
- package/dist/es/components/explorer-tree/index.css +18 -14
- package/dist/es/components/icon-picker/icon-picker.mjs +9 -9
- package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
- package/dist/es/components/image/image.mjs +4 -4
- package/dist/es/components/input/input.mjs +3 -3
- package/dist/es/components/input-number/input-number.mjs +4 -4
- package/dist/es/components/pca-picker/pca-picker.mjs +12 -12
- package/dist/es/components/screenfull/screenfull.mjs +3 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +3 -3
- package/dist/es/components/select/select.mjs +5 -5
- package/dist/es/components/single-player/single-player.mjs +6 -6
- package/dist/es/components/splitter-panel/splitter-panel.mjs +2 -2
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +8 -8
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.mjs +2 -2
- package/dist/es/components/tinymce/tinymce.mjs +3 -3
- package/dist/es/components/tree-picker/tree-picker.mjs +9 -9
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.mjs +38 -36
- package/dist/global.d.ts +1 -0
- package/dist/index.css +67 -47
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import { b as buildProps, u as useNamespace } from '../../chunk/By7FMB3I.mjs';
|
|
3
|
-
import { d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay } from '../../chunk/
|
|
4
|
-
import { E as ElScrollbar } from '../../chunk/
|
|
3
|
+
import { d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay } from '../../chunk/CFYABm3t.mjs';
|
|
4
|
+
import { E as ElScrollbar } from '../../chunk/Dh_zpmSz.mjs';
|
|
5
5
|
import { computed, ref, watch, onBeforeUnmount, defineComponent, useSlots, createBlock, openBlock, unref, withCtx, createVNode, Transition, withDirectives, createElementVNode, mergeProps, withModifiers, createElementBlock, createCommentVNode, normalizeClass, renderSlot, toDisplayString, normalizeStyle, vShow, useCssVars, isRef, createTextVNode } from 'vue';
|
|
6
6
|
import { C as Component$1 } from '../button/button.mjs';
|
|
7
7
|
import { useWindowSize, clamp, useEventListener, useVModel } from '@vueuse/core';
|
|
8
8
|
import { Close } from '@element-plus/icons-vue';
|
|
9
|
-
import { b as ElTeleport, d as ElFocusTrap } from '../../chunk/
|
|
10
|
-
import { E as ElIcon } from '../../chunk/
|
|
11
|
-
import { a as addUnit } from '../../chunk/
|
|
9
|
+
import { b as ElTeleport, d as ElFocusTrap } from '../../chunk/D1Ki7NcP.mjs';
|
|
10
|
+
import { E as ElIcon } from '../../chunk/C6xZotC7.mjs';
|
|
11
|
+
import { a as addUnit } from '../../chunk/UUVoNfr4.mjs';
|
|
12
12
|
import { _ as _export_sfc, w as withInstall } from '../../chunk/dN0VcQc2.mjs';
|
|
13
13
|
import { u as useDeprecated } from '../../chunk/yuIXvUxc.mjs';
|
|
14
14
|
import { u as useLocale } from '../../chunk/CJ0afvkJ.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
-
import { E as ElButton } from '../../chunk/
|
|
3
|
+
import { E as ElButton } from '../../chunk/CSZw6Ko2.mjs';
|
|
4
4
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
5
5
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
6
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {
|
|
5
|
+
direction: string;
|
|
6
|
+
}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -56,9 +56,9 @@ const cssModules = {
|
|
|
56
56
|
};
|
|
57
57
|
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
58
58
|
|
|
59
|
-
const
|
|
59
|
+
const __vite_glob_0_32 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
60
60
|
__proto__: null,
|
|
61
61
|
default: Component
|
|
62
62
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
63
63
|
|
|
64
|
-
export { Component as C,
|
|
64
|
+
export { Component as C, __vite_glob_0_32 as _ };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
-
import { E as ElTable, a as ElTableColumn } from '../../chunk/
|
|
4
|
-
import {
|
|
3
|
+
import { E as ElTable, a as ElTableColumn } from '../../chunk/C-HMX6-e.mjs';
|
|
4
|
+
import { a as ElCheckbox } from '../../chunk/BqMf3xBl.mjs';
|
|
5
5
|
/* empty css */
|
|
6
|
-
import '../../chunk/
|
|
7
|
-
import '../../chunk/
|
|
6
|
+
import '../../chunk/D1Ki7NcP.mjs';
|
|
7
|
+
import '../../chunk/Dh_zpmSz.mjs';
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, createBlock, openBlock, normalizeClass, unref, withCtx, createVNode, createCommentVNode, createElementVNode } from 'vue';
|
|
10
10
|
import { C as Component$1 } from '../choice/choice.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
3
|
+
import { v as vLoading } from '../../chunk/CaA5lDme.mjs';
|
|
4
4
|
import { defineComponent, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createCommentVNode, createBlock, renderSlot, createTextVNode, toDisplayString, withCtx } from 'vue';
|
|
5
5
|
import { C as Component$1 } from '../iconify-icon/iconify-icon.mjs';
|
|
6
6
|
import { C as Component$2 } from '../scrollbar/scrollbar.mjs';
|
|
@@ -54,12 +54,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
/* unplugin-vue-components disabled */const header = "
|
|
58
|
-
const icon = "
|
|
57
|
+
/* unplugin-vue-components disabled */const header = "_header_4odhg_8";
|
|
58
|
+
const icon = "_icon_4odhg_26";
|
|
59
59
|
const style0 = {
|
|
60
|
-
"explorer-container": "_explorer-
|
|
60
|
+
"explorer-container": "_explorer-container_4odhg_1",
|
|
61
61
|
header: header,
|
|
62
|
-
"header-container": "_header-
|
|
62
|
+
"header-container": "_header-container_4odhg_22",
|
|
63
63
|
icon: icon
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* source: src/components/explorer-container/explorer-container.vue */
|
|
2
|
-
._explorer-
|
|
2
|
+
._explorer-container_4odhg_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
flex-grow: 1;
|
|
6
6
|
height: 100px;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
._header_4odhg_8 {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: space-between;
|
|
@@ -18,9 +18,11 @@
|
|
|
18
18
|
flex-wrap: wrap;
|
|
19
19
|
row-gap: 8px;
|
|
20
20
|
}
|
|
21
|
-
._header-
|
|
22
|
-
font-size:
|
|
21
|
+
._header-container_4odhg_22 {
|
|
22
|
+
font-size: var(--el-font-size-medium);
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
._icon_4odhg_26 {
|
|
25
25
|
margin-right: 4px;
|
|
26
|
+
font-size: 1.1em;
|
|
27
|
+
transform: translateY(1px);
|
|
26
28
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormProps } from 'element-plus';
|
|
2
|
+
import { Reactive } from 'vue';
|
|
3
|
+
export interface IExplorerDialogFormProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
editing?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
form: Reactive<{
|
|
12
|
+
fields: Record<string, any>;
|
|
13
|
+
rules?: Record<string, any>;
|
|
14
|
+
}>;
|
|
15
|
+
formProps?: Partial<FormProps>;
|
|
16
|
+
labelPosition?: FormProps['labelPosition'];
|
|
17
|
+
}
|
|
18
|
+
export interface IExplorerDialogFormEmits {
|
|
19
|
+
(e: 'update:visible', visible: boolean): void;
|
|
20
|
+
(e: 'cancel'): void;
|
|
21
|
+
(e: 'edit'): void;
|
|
22
|
+
(e: 'save', data: Record<string, any>): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
import { v as vLoading } from '../../chunk/CaA5lDme.mjs';
|
|
4
|
+
import { E as ElForm } from '../../chunk/Cb0n0U19.mjs';
|
|
5
|
+
import { defineComponent, useTemplateRef, ref, watch, onUnmounted, createBlock, openBlock, mergeProps, unref, isRef, withCtx, withDirectives, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, toDisplayString } from 'vue';
|
|
6
|
+
import { C as Component$2 } from '../button/button.mjs';
|
|
7
|
+
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
8
|
+
import { C as Component$3 } from '../iconify-icon/iconify-icon.mjs';
|
|
9
|
+
import { useVModel } from '@vueuse/core';
|
|
10
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
11
|
+
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "explorer-dialog-form",
|
|
14
|
+
props: {
|
|
15
|
+
title: {},
|
|
16
|
+
icon: { default: "fluent:form-48-regular" },
|
|
17
|
+
visible: { type: Boolean },
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
editable: { type: Boolean, default: true },
|
|
20
|
+
editing: { type: Boolean, default: true },
|
|
21
|
+
loading: { type: Boolean, default: false },
|
|
22
|
+
form: {},
|
|
23
|
+
formProps: {},
|
|
24
|
+
labelPosition: { default: "top" }
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:visible", "cancel", "edit", "save"],
|
|
27
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emits = __emit;
|
|
30
|
+
const myVisible = useVModel(props, "visible", emits);
|
|
31
|
+
const formRef = useTemplateRef("formRef");
|
|
32
|
+
const isEditing = ref(false);
|
|
33
|
+
function handleCancel() {
|
|
34
|
+
myVisible.value = false;
|
|
35
|
+
emits("cancel");
|
|
36
|
+
}
|
|
37
|
+
async function handleSave() {
|
|
38
|
+
const valid = await formRef.value.validate();
|
|
39
|
+
if (!valid) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
emits("save", props.form.fields);
|
|
43
|
+
}
|
|
44
|
+
function handleEdit() {
|
|
45
|
+
isEditing.value = true;
|
|
46
|
+
emits("edit");
|
|
47
|
+
}
|
|
48
|
+
const visibleWatch = watch(myVisible, (val) => {
|
|
49
|
+
if (!val) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
isEditing.value = props.editing ?? true;
|
|
53
|
+
}, { immediate: true });
|
|
54
|
+
__expose({ formRef });
|
|
55
|
+
onUnmounted(() => {
|
|
56
|
+
visibleWatch.stop();
|
|
57
|
+
});
|
|
58
|
+
return (_ctx, _cache) => {
|
|
59
|
+
const _component_ElForm = ElForm;
|
|
60
|
+
const _directive_loading = vLoading;
|
|
61
|
+
return openBlock(), createBlock(Component$1, mergeProps({
|
|
62
|
+
modelValue: unref(myVisible),
|
|
63
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myVisible) ? myVisible.value = $event : null)
|
|
64
|
+
}, _ctx.$attrs), {
|
|
65
|
+
title: withCtx(({ close }) => [
|
|
66
|
+
createElementVNode("div", {
|
|
67
|
+
class: normalizeClass(_ctx.$style["header-container"])
|
|
68
|
+
}, [
|
|
69
|
+
__props.icon ? (openBlock(), createBlock(Component$3, {
|
|
70
|
+
key: 0,
|
|
71
|
+
name: __props.icon,
|
|
72
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
73
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
74
|
+
renderSlot(_ctx.$slots, "title", { close }, () => [
|
|
75
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
76
|
+
])
|
|
77
|
+
], 2)
|
|
78
|
+
]),
|
|
79
|
+
footer: withCtx(() => [
|
|
80
|
+
renderSlot(_ctx.$slots, "action"),
|
|
81
|
+
unref(isEditing) ? (openBlock(), createBlock(Component$2, {
|
|
82
|
+
key: 0,
|
|
83
|
+
loading: __props.loading,
|
|
84
|
+
icon: { name: "Close" },
|
|
85
|
+
onClick: handleCancel
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
88
|
+
createTextVNode("取消", -1)
|
|
89
|
+
])]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
92
|
+
unref(isEditing) ? (openBlock(), createBlock(Component$2, {
|
|
93
|
+
key: 1,
|
|
94
|
+
loading: __props.loading,
|
|
95
|
+
icon: { name: "Check" },
|
|
96
|
+
type: "primary",
|
|
97
|
+
onClick: handleSave
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
100
|
+
createTextVNode("保存", -1)
|
|
101
|
+
])]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
104
|
+
__props.editable && !unref(isEditing) ? (openBlock(), createBlock(Component$2, {
|
|
105
|
+
key: 2,
|
|
106
|
+
loading: __props.loading,
|
|
107
|
+
icon: { name: "EditPen" },
|
|
108
|
+
type: "primary",
|
|
109
|
+
onClick: handleEdit
|
|
110
|
+
}, {
|
|
111
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
112
|
+
createTextVNode("编辑", -1)
|
|
113
|
+
])]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["loading"])) : createCommentVNode("", true)
|
|
116
|
+
]),
|
|
117
|
+
default: withCtx(() => [
|
|
118
|
+
withDirectives((openBlock(), createBlock(_component_ElForm, mergeProps({
|
|
119
|
+
ref_key: "formRef",
|
|
120
|
+
ref: formRef,
|
|
121
|
+
"require-asterisk-position": "right",
|
|
122
|
+
"label-position": __props.labelPosition,
|
|
123
|
+
disabled: __props.disabled || !unref(isEditing)
|
|
124
|
+
}, __props.formProps, {
|
|
125
|
+
model: __props.form.fields,
|
|
126
|
+
rules: __props.form.rules
|
|
127
|
+
}), {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
renderSlot(_ctx.$slots, "default")
|
|
130
|
+
]),
|
|
131
|
+
_: 3
|
|
132
|
+
}, 16, ["label-position", "disabled", "model", "rules"])), [
|
|
133
|
+
[_directive_loading, __props.loading]
|
|
134
|
+
])
|
|
135
|
+
]),
|
|
136
|
+
_: 3
|
|
137
|
+
}, 16, ["modelValue"]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
/* unplugin-vue-components disabled */const icon = "_icon_uetpd_1";
|
|
143
|
+
const style0 = {
|
|
144
|
+
icon: icon
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const cssModules = {
|
|
148
|
+
"$style": style0
|
|
149
|
+
};
|
|
150
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
151
|
+
|
|
152
|
+
const __vite_glob_0_22 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
153
|
+
__proto__: null,
|
|
154
|
+
default: Component
|
|
155
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
156
|
+
|
|
157
|
+
export { Component as C, __vite_glob_0_22 as _ };
|