@wfrog/vc-ui 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/button/button.d.ts +1 -0
- package/dist/es/components/button/button.mjs +10 -5
- package/dist/es/components/cdn-tag.vue.d.ts +5 -0
- package/dist/es/components/choice/choice.d.ts +1 -0
- package/dist/es/components/choice/choice.mjs +10 -5
- package/dist/es/components/choice/choice.vue.d.ts +1 -0
- package/dist/es/components/currency/currency.d.ts +1 -0
- package/dist/es/components/currency/currency.mjs +6 -2
- package/dist/es/components/currency/currency.vue.d.ts +1 -0
- package/dist/es/components/daterange-picker/daterange-picker.d.ts +1 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +6 -2
- package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +1 -0
- package/dist/es/components/explorer-form/explorer-form.d.ts +1 -0
- package/dist/es/components/explorer-form/explorer-form.mjs +7 -9
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +363 -2
- package/dist/es/components/icon-picker/icon-picker.d.ts +2 -1
- package/dist/es/components/icon-picker/icon-picker.mjs +14 -6
- package/dist/es/components/icon-picker/icon-picker.vue.d.ts +3 -1
- package/dist/es/components/icon-picker/index.css +2 -2
- package/dist/es/components/input/index.css +1 -1
- package/dist/es/components/input/input.d.ts +1 -0
- package/dist/es/components/input/input.mjs +8 -4
- package/dist/es/components/input/input.vue.d.ts +1 -0
- package/dist/es/components/input-number/index.css +1 -1
- package/dist/es/components/input-number/input-number.d.ts +1 -0
- package/dist/es/components/input-number/input-number.mjs +8 -4
- package/dist/es/components/input-number/input-number.vue.d.ts +1 -0
- package/dist/es/components/pca-picker/pca-picker.mjs +8 -5
- package/dist/es/components/select/index.css +2 -2
- package/dist/es/components/select/select.d.ts +1 -0
- package/dist/es/components/select/select.mjs +8 -4
- package/dist/es/components/select/select.vue.d.ts +1 -0
- package/dist/es/components/switch/switch.mjs +6 -5
- package/dist/es/components/tags/tags.d.ts +1 -1
- package/dist/es/components/tags/tags.mjs +5 -3
- package/dist/es/components/tags/tags.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -2
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +13 -2
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/index.css +2 -2
- package/dist/es/components/tree-picker/tree-picker.mjs +8 -5
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +9 -9
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ declare const __VLS_component: import('vue').DefineComponent<IInputNumberProps,
|
|
|
21
21
|
onChange?: ((currentValue: number, oldValue: number) => any) | undefined;
|
|
22
22
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
+
disabled: boolean;
|
|
24
25
|
precision: number;
|
|
25
26
|
inputWidth: string;
|
|
26
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -9,6 +9,7 @@ import '../../chunk/DSt2uDNE.mjs';
|
|
|
9
9
|
import '../../chunk/BL8WhaLp.mjs';
|
|
10
10
|
import '../../chunk/D_Mvdscy.mjs';
|
|
11
11
|
import { defineComponent, inject, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, provide, useSlots, ref, watch, onMounted, createElementBlock, createCommentVNode, createElementVNode, unref, nextTick, onBeforeUnmount, createTextVNode, toDisplayString, shallowRef, toRefs, Fragment, createVNode, renderList, useTemplateRef, mergeProps, isRef, useCssModule } from 'vue';
|
|
12
|
+
import { useFormDisabled } from 'element-plus';
|
|
12
13
|
import { useInject, useProvide } from '../../use/useStore/index.mjs';
|
|
13
14
|
import { i as injectConfig } from '../config-provider/config-provider2.mjs';
|
|
14
15
|
import { isClient, useEventListener, useStorage, useVModel, useToggle, onClickOutside, useThrottleFn } from '@vueuse/core';
|
|
@@ -1261,7 +1262,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1261
1262
|
excludeIds: { default: () => [71, 81, 82] },
|
|
1262
1263
|
nameKey: { default: "n" },
|
|
1263
1264
|
modelValue: {},
|
|
1264
|
-
disabled: { type: Boolean, default:
|
|
1265
|
+
disabled: { type: Boolean, default: void 0 },
|
|
1265
1266
|
multiple: { type: Boolean },
|
|
1266
1267
|
placeholder: { default: "请选择" },
|
|
1267
1268
|
loadingText: { default: "加载数据源中..." },
|
|
@@ -1276,6 +1277,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1276
1277
|
const props = __props;
|
|
1277
1278
|
const emits = __emit;
|
|
1278
1279
|
const myValue = useVModel(props, "modelValue", emits);
|
|
1280
|
+
const formDisabled = useFormDisabled();
|
|
1279
1281
|
const { pcaBaseUrl, crosProxy } = injectConfig();
|
|
1280
1282
|
const [popoverVisible, togglePopoverVisible] = useToggle();
|
|
1281
1283
|
const $style = useCssModule();
|
|
@@ -1318,7 +1320,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1318
1320
|
}
|
|
1319
1321
|
});
|
|
1320
1322
|
const selectClassName = computed(() => ({ [$style["is-active"]]: popoverVisible.value }));
|
|
1321
|
-
const handleSelectClick = useThrottleFn(() => !loading.value && !
|
|
1323
|
+
const handleSelectClick = useThrottleFn(() => !loading.value && !formDisabled.value && togglePopoverVisible(), 300);
|
|
1322
1324
|
function handleKeyup(event) {
|
|
1323
1325
|
keyword.value = event.target.value;
|
|
1324
1326
|
}
|
|
@@ -1397,7 +1399,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1397
1399
|
ref: popoverRef,
|
|
1398
1400
|
visible: unref(popoverVisible),
|
|
1399
1401
|
placement: "bottom",
|
|
1400
|
-
"popper-class": unref($style).popover
|
|
1402
|
+
"popper-class": unref($style).popover,
|
|
1403
|
+
disabled: unref(formDisabled)
|
|
1401
1404
|
}, {
|
|
1402
1405
|
reference: withCtx(() => [
|
|
1403
1406
|
createElementVNode("div", {
|
|
@@ -1413,7 +1416,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1413
1416
|
"collapse-tags": "",
|
|
1414
1417
|
"collapse-tags-tooltip": "",
|
|
1415
1418
|
clearable: "",
|
|
1416
|
-
disabled: unref(loading) ||
|
|
1419
|
+
disabled: unref(loading) || unref(formDisabled) || unref(loadFailed),
|
|
1417
1420
|
loading: unref(loading),
|
|
1418
1421
|
options: unref(optionData),
|
|
1419
1422
|
props: unref(cascaderProps),
|
|
@@ -1440,7 +1443,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1440
1443
|
], 2)
|
|
1441
1444
|
]),
|
|
1442
1445
|
_: 1
|
|
1443
|
-
}, 8, ["visible", "popper-class"]);
|
|
1446
|
+
}, 8, ["visible", "popper-class", "disabled"]);
|
|
1444
1447
|
};
|
|
1445
1448
|
}
|
|
1446
1449
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* source: src/components/select/select.vue */
|
|
2
2
|
div._select_1fcv5_1 {
|
|
3
3
|
width: unset;
|
|
4
|
-
min-width: var(--
|
|
4
|
+
min-width: var(--v44193d28);
|
|
5
5
|
}
|
|
6
6
|
div._select_1fcv5_1._block_1fcv5_5 {
|
|
7
7
|
display: block;
|
|
8
|
-
width: var(--
|
|
8
|
+
width: var(--v44193d28);
|
|
9
9
|
}
|
|
@@ -5,6 +5,7 @@ import { E as ElSelect } from '../../chunk/DQi1QPak.mjs';
|
|
|
5
5
|
import '../../chunk/D_Mvdscy.mjs';
|
|
6
6
|
import '../../chunk/BfjuZmry.mjs';
|
|
7
7
|
import { defineComponent, useCssVars, unref, computed, useCssModule, createBlock, openBlock, mergeProps } from 'vue';
|
|
8
|
+
import { useFormDisabled } from 'element-plus';
|
|
8
9
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
9
10
|
|
|
10
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,13 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
props: {
|
|
13
14
|
block: { type: Boolean, default: false },
|
|
14
15
|
width: { default: "" },
|
|
15
|
-
options: {}
|
|
16
|
+
options: {},
|
|
17
|
+
disabled: { type: Boolean, default: void 0 }
|
|
16
18
|
},
|
|
17
19
|
setup(__props) {
|
|
18
20
|
useCssVars((_ctx) => ({
|
|
19
|
-
"
|
|
21
|
+
"v44193d28": unref(myWidth)
|
|
20
22
|
}));
|
|
21
23
|
const props = __props;
|
|
24
|
+
const formDisabled = useFormDisabled();
|
|
22
25
|
const myOptions = computed(() => {
|
|
23
26
|
if (Array.isArray(props.options) && typeof props.options[0] === "string") {
|
|
24
27
|
return props.options.map((item) => ({ label: item, value: item }));
|
|
@@ -37,8 +40,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
40
|
const _component_ElSelect = ElSelect;
|
|
38
41
|
return openBlock(), createBlock(_component_ElSelect, mergeProps({ "collapse-tags": "" }, _ctx.$attrs, {
|
|
39
42
|
class: unref(className),
|
|
40
|
-
options: unref(myOptions)
|
|
41
|
-
|
|
43
|
+
options: unref(myOptions),
|
|
44
|
+
disabled: unref(formDisabled)
|
|
45
|
+
}), null, 16, ["class", "options", "disabled"]);
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISelectProps } from './select';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<ISelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ISelectProps> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
3
4
|
width: string;
|
|
4
5
|
block: boolean;
|
|
5
6
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, useTemplateRef, computed, onMounted, createBlock,
|
|
3
|
-
import { ElSwitch, ElPopconfirm } from 'element-plus';
|
|
2
|
+
import { defineComponent, useTemplateRef, computed, onMounted, createBlock, unref, openBlock, mergeProps, withCtx, createElementVNode, normalizeClass, createVNode } from 'vue';
|
|
3
|
+
import { useFormDisabled, ElSwitch, ElPopconfirm } from 'element-plus';
|
|
4
4
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
5
5
|
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: {},
|
|
10
10
|
confirmTitle: { default: "确认切换吗?" },
|
|
11
|
-
disabled: { type: Boolean, default:
|
|
11
|
+
disabled: { type: Boolean, default: void 0 },
|
|
12
12
|
className: { default: "" },
|
|
13
13
|
confirm: { type: Boolean, default: false },
|
|
14
14
|
confirmProps: {}
|
|
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emits = __emit;
|
|
20
20
|
const mainRef = useTemplateRef("mainRef");
|
|
21
|
+
const formDisabled = useFormDisabled();
|
|
21
22
|
function getSwitchEle() {
|
|
22
23
|
if (!mainRef.value) {
|
|
23
24
|
return;
|
|
@@ -36,12 +37,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
37
|
});
|
|
37
38
|
});
|
|
38
39
|
return (_ctx, _cache) => {
|
|
39
|
-
return
|
|
40
|
+
return unref(formDisabled) || !__props.confirm ? (openBlock(), createBlock(unref(ElSwitch), mergeProps({
|
|
40
41
|
key: 0,
|
|
41
42
|
modelValue: myValue.value,
|
|
42
43
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => myValue.value = $event),
|
|
43
44
|
class: __props.className
|
|
44
|
-
}, _ctx.$attrs, {
|
|
45
|
+
}, _ctx.$attrs, { disable: "" }), null, 16, ["modelValue", "class"])) : (openBlock(), createBlock(unref(ElPopconfirm), mergeProps({
|
|
45
46
|
key: 1,
|
|
46
47
|
title: __props.confirmTitle
|
|
47
48
|
}, props.confirmProps, { onConfirm: handleConfirm }), {
|
|
@@ -6,7 +6,8 @@ import { E as ElAlert } from '../../chunk/CGhekNBa.mjs';
|
|
|
6
6
|
import { E as ElInput } from '../../chunk/CKZGL4_3.mjs';
|
|
7
7
|
import { E as ElSpace } from '../../chunk/w7VqVeWU.mjs';
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { defineComponent, ref, computed, watch, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList,
|
|
9
|
+
import { defineComponent, ref, computed, watch, createBlock, unref, openBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, isRef, withDirectives, withKeys } from 'vue';
|
|
10
|
+
import { useFormDisabled } from 'element-plus';
|
|
10
11
|
import Draggable from 'vuedraggable-es-fix';
|
|
11
12
|
import { C as Component$1 } from '../button/button.mjs';
|
|
12
13
|
import { E as ElTag } from '../../chunk/DhGcJR5p.mjs';
|
|
@@ -40,13 +41,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
regexp: { default: () => /\S+/ },
|
|
41
42
|
sameMessage: { default: "内容重复了" },
|
|
42
43
|
errorMessage: { default: "" },
|
|
43
|
-
|
|
44
|
+
disabled: { type: Boolean, default: void 0 },
|
|
44
45
|
valueFormat: { type: Function, default: (val) => val }
|
|
45
46
|
},
|
|
46
47
|
emits: ["update:modelValue", "change", "dragStart", "dragEnd"],
|
|
47
48
|
setup(__props, { emit: __emit }) {
|
|
48
49
|
const props = __props;
|
|
49
50
|
const emits = __emit;
|
|
51
|
+
const formDisabled = useFormDisabled();
|
|
50
52
|
const errorVisible = ref(false);
|
|
51
53
|
const createVisible = ref(false);
|
|
52
54
|
const currentTag = ref("");
|
|
@@ -170,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
172
|
const _component_ElInput = ElInput;
|
|
171
173
|
const _component_ElAlert = ElAlert;
|
|
172
174
|
const _component_ElPopover = ElPopover;
|
|
173
|
-
return
|
|
175
|
+
return unref(formDisabled) ? (openBlock(), createBlock(_component_ElSpace, {
|
|
174
176
|
key: 0,
|
|
175
177
|
wrap: ""
|
|
176
178
|
}, {
|
|
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<ITagsProps, {}, {}, {}, {}
|
|
|
10
10
|
onDragStart?: ((event: any) => any) | undefined;
|
|
11
11
|
onDragEnd?: ((event: any) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
|
|
13
|
+
disabled: boolean;
|
|
14
14
|
valueFormat: (val: string | number) => string | number;
|
|
15
15
|
limit: number;
|
|
16
16
|
regexp: RegExp;
|
|
@@ -12,6 +12,7 @@ declare function __VLS_template(): {
|
|
|
12
12
|
$props: {
|
|
13
13
|
readonly block?: boolean | undefined;
|
|
14
14
|
readonly width?: string | undefined;
|
|
15
|
+
readonly disabled?: boolean | undefined;
|
|
15
16
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
16
17
|
$attrs: {
|
|
17
18
|
[x: string]: unknown;
|
|
@@ -840,6 +841,7 @@ declare function __VLS_template(): {
|
|
|
840
841
|
};
|
|
841
842
|
}) | null>>;
|
|
842
843
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
844
|
+
disabled: boolean;
|
|
843
845
|
block: boolean;
|
|
844
846
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
845
847
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -862,8 +864,9 @@ declare function __VLS_template(): {
|
|
|
862
864
|
$nextTick: typeof import('vue').nextTick;
|
|
863
865
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
864
866
|
} & Readonly<{
|
|
867
|
+
disabled: boolean;
|
|
865
868
|
block: boolean;
|
|
866
|
-
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | "block"> & import('vue').ShallowUnwrapRef<{
|
|
869
|
+
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | ("disabled" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
867
870
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
868
871
|
$: import('vue').ComponentInternalInstance;
|
|
869
872
|
$data: {};
|
|
@@ -1301,6 +1304,7 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
1301
1304
|
$props: {
|
|
1302
1305
|
readonly block?: boolean | undefined;
|
|
1303
1306
|
readonly width?: string | undefined;
|
|
1307
|
+
readonly disabled?: boolean | undefined;
|
|
1304
1308
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1305
1309
|
$attrs: {
|
|
1306
1310
|
[x: string]: unknown;
|
|
@@ -2129,6 +2133,7 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
2129
2133
|
};
|
|
2130
2134
|
}) | null>>;
|
|
2131
2135
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
2136
|
+
disabled: boolean;
|
|
2132
2137
|
block: boolean;
|
|
2133
2138
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
2134
2139
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -2151,8 +2156,9 @@ declare const __VLS_component: import('vue').DefineComponent<IThousandInputProps
|
|
|
2151
2156
|
$nextTick: typeof import('vue').nextTick;
|
|
2152
2157
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
2153
2158
|
} & Readonly<{
|
|
2159
|
+
disabled: boolean;
|
|
2154
2160
|
block: boolean;
|
|
2155
|
-
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | "block"> & import('vue').ShallowUnwrapRef<{
|
|
2161
|
+
}> & Omit<Readonly<import('../input/input').IInputProps> & Readonly<{}>, "inputRef" | ("disabled" | "block")> & import('vue').ShallowUnwrapRef<{
|
|
2156
2162
|
inputRef: Readonly<globalThis.ShallowRef<({
|
|
2157
2163
|
$: import('vue').ComponentInternalInstance;
|
|
2158
2164
|
$data: {};
|
|
@@ -5,6 +5,7 @@ import { defineComponent, useCssVars, shallowRef, ref, computed, watch, onMounte
|
|
|
5
5
|
import { useDark } from '@vueuse/core';
|
|
6
6
|
import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
|
|
7
7
|
import '../../chunk/D9iEroQw.mjs';
|
|
8
|
+
import { useFormDisabled } from 'element-plus';
|
|
8
9
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
9
10
|
|
|
10
11
|
const mini = {
|
|
@@ -47,15 +48,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
height: { default: "360px" },
|
|
48
49
|
modelValue: { default: "" },
|
|
49
50
|
httpRequest: { default: void 0 },
|
|
50
|
-
storageKey: { default: "vc-dark" }
|
|
51
|
+
storageKey: { default: "vc-dark" },
|
|
52
|
+
disabled: { type: Boolean, default: void 0 }
|
|
51
53
|
},
|
|
52
54
|
emits: ["update:modelValue"],
|
|
53
55
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
54
56
|
useCssVars((_ctx) => ({
|
|
55
|
-
"
|
|
57
|
+
"v6eb7f65f": _ctx.height
|
|
56
58
|
}));
|
|
57
59
|
const props = __props;
|
|
58
60
|
const emits = __emit;
|
|
61
|
+
const formDisabled = useFormDisabled();
|
|
59
62
|
const isDark = useDark({ storageKey: props.storageKey });
|
|
60
63
|
const Tinymce = shallowRef();
|
|
61
64
|
const loading = ref(false);
|
|
@@ -103,6 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
106
|
suffix: ".min",
|
|
104
107
|
branding: false,
|
|
105
108
|
// 显示tinymce徽标
|
|
109
|
+
readonly: formDisabled.value,
|
|
106
110
|
init_instance_callback: (editor) => {
|
|
107
111
|
if (props.modelValue) {
|
|
108
112
|
editor.setContent(props.modelValue);
|
|
@@ -127,6 +131,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
131
|
tinymceDestory();
|
|
128
132
|
tinymceInit();
|
|
129
133
|
}, { deep: true });
|
|
134
|
+
watch(formDisabled, (val) => {
|
|
135
|
+
if (!Tinymce.value) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const tinymce = Tinymce.value.get(props.id);
|
|
139
|
+
tinymce.setMode(val ? "readonly" : "design");
|
|
140
|
+
});
|
|
130
141
|
onMounted(() => tinymceInit());
|
|
131
142
|
onBeforeUnmount(() => {
|
|
132
143
|
tinymceWatch.stop();
|
|
@@ -10,6 +10,7 @@ declare const _default: import('vue').DefineComponent<ITinymceProps, {
|
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<ITinymceProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
+
disabled: boolean;
|
|
13
14
|
id: string;
|
|
14
15
|
width: string;
|
|
15
16
|
height: string;
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
._wrapper_q784j_13 {
|
|
13
13
|
display: inline-block;
|
|
14
14
|
width: unset;
|
|
15
|
-
min-width: var(--
|
|
15
|
+
min-width: var(--v60c098aa);
|
|
16
16
|
}
|
|
17
17
|
._wrapper_q784j_13._block_q784j_18 {
|
|
18
18
|
display: block;
|
|
19
|
-
width: var(--
|
|
19
|
+
width: var(--v60c098aa);
|
|
20
20
|
}
|
|
21
21
|
._wrapper_q784j_13 .el-tag .el-icon {
|
|
22
22
|
display: none;
|
|
@@ -10,6 +10,7 @@ import '../../chunk/DSt2uDNE.mjs';
|
|
|
10
10
|
import '../../chunk/BL8WhaLp.mjs';
|
|
11
11
|
import '../../chunk/D_Mvdscy.mjs';
|
|
12
12
|
import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, ref, createBlock, openBlock, withCtx, createElementVNode, normalizeClass, createVNode, mergeProps, isRef, createTextVNode, toDisplayString, nextTick } from 'vue';
|
|
13
|
+
import { useFormDisabled } from 'element-plus';
|
|
13
14
|
import { useVModel, useToggle, useThrottleFn, onClickOutside } from '@vueuse/core';
|
|
14
15
|
import { E as ElPopover } from '../../chunk/DQK0ezHm.mjs';
|
|
15
16
|
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
@@ -19,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
20
|
props: {
|
|
20
21
|
emptyText: {},
|
|
21
22
|
placeholder: { default: "请选择" },
|
|
22
|
-
disabled: { type: Boolean, default:
|
|
23
|
+
disabled: { type: Boolean, default: void 0 },
|
|
23
24
|
multiple: { type: Boolean, default: false },
|
|
24
25
|
modelValue: {},
|
|
25
26
|
options: { default: () => [] },
|
|
@@ -32,13 +33,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
emits: ["update:modelValue", "change"],
|
|
33
34
|
setup(__props, { emit: __emit }) {
|
|
34
35
|
useCssVars((_ctx) => ({
|
|
35
|
-
"
|
|
36
|
+
"v60c098aa": unref(myWidth)
|
|
36
37
|
}));
|
|
37
38
|
const props = __props;
|
|
38
39
|
const emits = __emit;
|
|
39
40
|
const myValue = useVModel(props, "modelValue", emits);
|
|
40
41
|
const [popoverVisible, togglePopoverVisible] = useToggle();
|
|
41
|
-
const
|
|
42
|
+
const formDisabled = useFormDisabled();
|
|
43
|
+
const handleSelectClick = useThrottleFn(() => !formDisabled.value && togglePopoverVisible(), 300);
|
|
42
44
|
const cascaderProps = computed(() => ({
|
|
43
45
|
label: props.props.label || "label",
|
|
44
46
|
value: props.props.value || "value",
|
|
@@ -107,7 +109,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
109
|
filterable: __props.filterable,
|
|
108
110
|
props: unref(cascaderProps),
|
|
109
111
|
class: [unref(selectClassName), unref($style).cascader],
|
|
110
|
-
"popper-class": { [unref($style)["cascader-popover"]]: !__props.filterable || !unref(keyword), [unref($style)["cascader-panel"]]: !!unref(keyword) }
|
|
112
|
+
"popper-class": { [unref($style)["cascader-popover"]]: !__props.filterable || !unref(keyword), [unref($style)["cascader-panel"]]: !!unref(keyword) },
|
|
113
|
+
disabled: unref(formDisabled)
|
|
111
114
|
}, _ctx.$attrs, {
|
|
112
115
|
onClear: clear,
|
|
113
116
|
onBlur: _cache[4] || (_cache[4] = ($event) => keyword.value = "")
|
|
@@ -116,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
119
|
createTextVNode(toDisplayString(__props.filterEmptyText), 1)
|
|
117
120
|
]),
|
|
118
121
|
_: 1
|
|
119
|
-
}, 16, ["modelValue", "options", "placeholder", "filterable", "props", "class", "popper-class"])
|
|
122
|
+
}, 16, ["modelValue", "options", "placeholder", "filterable", "props", "class", "popper-class", "disabled"])
|
|
120
123
|
], 34)
|
|
121
124
|
]),
|
|
122
125
|
default: withCtx(() => [
|
package/dist/es/index.mjs
CHANGED
|
@@ -147,7 +147,7 @@ const __vite_glob_0_46 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
|
|
|
147
147
|
default: _sfc_main$8
|
|
148
148
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
149
149
|
|
|
150
|
-
const version = "1.5.
|
|
150
|
+
const version = "1.5.2";
|
|
151
151
|
|
|
152
152
|
const modules = /* #__PURE__ */ Object.assign({"./components/awesome-icon/awesome-icon.vue": __vite_glob_0_0,"./components/backbottom/backbottom.vue": __vite_glob_0_1,"./components/button/button.vue": __vite_glob_0_2,"./components/chat-container/chat-container.vue": __vite_glob_0_3,"./components/choice-boolean/choice-boolean.vue": __vite_glob_0_4,"./components/choice/choice.vue": __vite_glob_0_5,"./components/color-switcher/color-switcher.vue": __vite_glob_0_6,"./components/config-provider/config-provider.vue": __vite_glob_0_7,"./components/cropper/cropper.vue": __vite_glob_0_8,"./components/currency/currency.vue": __vite_glob_0_9,"./components/dark-switcher/dark-switcher.vue": __vite_glob_0_10,"./components/daterange-picker/daterange-picker.vue": __vite_glob_0_11,"./components/dialog-camera-upload/dialog-camera-upload.vue": __vite_glob_0_12,"./components/dialog-map-point/dialog-map-point.vue": __vite_glob_0_13,"./components/dialog-upload-images/dialog-upload-images.vue": __vite_glob_0_14,"./components/dialog/dialog.vue": __vite_glob_0_15,"./components/drag-verify/drag-verify.vue": __vite_glob_0_16,"./components/drawer/drawer.vue": __vite_glob_0_17,"./components/easy-pagination/easy-pagination.vue": __vite_glob_0_18,"./components/el-icon/el-icon.vue": __vite_glob_0_19,"./components/explorer-column-table/explorer-column-table.vue": __vite_glob_0_20,"./components/explorer-container/explorer-container.vue": __vite_glob_0_21,"./components/explorer-filter/explorer-filter.vue": __vite_glob_0_22,"./components/explorer-footer/explorer-footer.vue": __vite_glob_0_23,"./components/explorer-form/explorer-form.vue": __vite_glob_0_24,"./components/explorer-list/explorer-list.vue": __vite_glob_0_25,"./components/explorer-panel/explorer-panel.vue": __vite_glob_0_26,"./components/explorer-query/explorer-query.vue": __vite_glob_0_27,"./components/explorer-table/explorer-table.vue": __vite_glob_0_28,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_29,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_30,"./components/explorer/explorer.vue": __vite_glob_0_31,"./components/flag/flag.vue": __vite_glob_0_32,"./components/icon-picker/icon-picker.vue": __vite_glob_0_33,"./components/icon/icon.vue": __vite_glob_0_34,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_35,"./components/image/image.vue": __vite_glob_0_36,"./components/input-number/input-number.vue": __vite_glob_0_37,"./components/input/input.vue": __vite_glob_0_38,"./components/pca-picker/pca-picker.vue": __vite_glob_0_39,"./components/qr-code/qr-code.vue": __vite_glob_0_40,"./components/screenfull/screenfull.vue": __vite_glob_0_41,"./components/scrollbar/scrollbar.vue": __vite_glob_0_42,"./components/select/select.vue": __vite_glob_0_43,"./components/single-player/single-player.vue": __vite_glob_0_44,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_45,"./components/splitter/splitter.vue": __vite_glob_0_46,"./components/svg-icon/svg-icon.vue": __vite_glob_0_47,"./components/switch/switch.vue": __vite_glob_0_48,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_49,"./components/tags/tags.vue": __vite_glob_0_50,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_51,"./components/thousand-input/thousand-input.vue": __vite_glob_0_52,"./components/tinymce/tinymce.vue": __vite_glob_0_53,"./components/tree-picker/tree-picker.vue": __vite_glob_0_54,"./components/upload-file/upload-file.vue": __vite_glob_0_55});
|
|
153
153
|
const upper = (_, letter) => letter.toUpperCase();
|
package/dist/index.css
CHANGED
|
@@ -1021,9 +1021,9 @@ button._collections-button_1f8df_15 .el-icon {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
._pagination_1f8df_79 {
|
|
1023
1023
|
justify-content: center;
|
|
1024
|
-
}.
|
|
1024
|
+
}._input_yhkzo_1 .el-input-group__prepend {
|
|
1025
1025
|
padding: 0 4px;
|
|
1026
|
-
cursor:
|
|
1026
|
+
cursor: var(--v71d94840);
|
|
1027
1027
|
}
|
|
1028
1028
|
/* source: src/components/iconify-icon/iconify-icon.vue */
|
|
1029
1029
|
._icon_1v0e5_1 {
|
|
@@ -1078,11 +1078,11 @@ div._el-input-number_1piks_18 {
|
|
|
1078
1078
|
line-height: 10px;
|
|
1079
1079
|
}
|
|
1080
1080
|
div._el-input-number_1piks_18 .el-input__inner {
|
|
1081
|
-
width: var(--
|
|
1081
|
+
width: var(--v233f0811);
|
|
1082
1082
|
}
|
|
1083
1083
|
/* source: src/components/input/input.vue */
|
|
1084
1084
|
div._input_1vcoq_1 {
|
|
1085
|
-
width: var(--
|
|
1085
|
+
width: var(--v2586680e);
|
|
1086
1086
|
display: inline-flex;
|
|
1087
1087
|
}
|
|
1088
1088
|
div._input_1vcoq_1._block_1vcoq_5 {
|
|
@@ -1255,11 +1255,11 @@ div._input_1vcoq_1._block_1vcoq_5 {
|
|
|
1255
1255
|
/* source: src/components/select/select.vue */
|
|
1256
1256
|
div._select_1fcv5_1 {
|
|
1257
1257
|
width: unset;
|
|
1258
|
-
min-width: var(--
|
|
1258
|
+
min-width: var(--v44193d28);
|
|
1259
1259
|
}
|
|
1260
1260
|
div._select_1fcv5_1._block_1fcv5_5 {
|
|
1261
1261
|
display: block;
|
|
1262
|
-
width: var(--
|
|
1262
|
+
width: var(--v44193d28);
|
|
1263
1263
|
}
|
|
1264
1264
|
/* source: src/components/single-player/single-player.vue */
|
|
1265
1265
|
.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px;align-items:center;display:flex;height:32px;width:100%}.el-slider__runway{background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);cursor:pointer;flex:1;height:var(--el-slider-height);position:relative}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{background-color:var(--el-slider-main-bg-color);border-bottom-left-radius:var(--el-slider-border-radius);border-top-left-radius:var(--el-slider-border-radius);height:var(--el-slider-height);position:absolute}.el-slider__button-wrapper{background-color:transparent;height:var(--el-slider-button-wrapper-size);line-height:normal;outline:none;position:absolute;text-align:center;top:var(--el-slider-button-wrapper-offset);transform:translateX(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--el-slider-button-wrapper-size);z-index:1}.el-slider__button-wrapper:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{background-color:var(--el-color-white);border:2px solid var(--el-slider-main-bg-color);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--el-slider-button-size);transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:var(--el-slider-button-size)}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{background-color:var(--el-slider-stop-bg-color);border-radius:var(--el-border-radius-circle);height:var(--el-slider-height);position:absolute;transform:translateX(-50%);width:var(--el-slider-height)}.el-slider__marks{height:100%;left:12px;top:0;width:18px}.el-slider__marks-text{color:var(--el-color-info);font-size:14px;margin-top:15px;position:absolute;transform:translateX(-50%);white-space:pre}.el-slider.is-vertical{display:inline-flex;flex:0;height:100%;position:relative;width:auto}.el-slider.is-vertical .el-slider__runway{height:100%;margin:0 16px;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__bar{border-radius:0 0 3px 3px;height:auto;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__button-wrapper{left:var(--el-slider-button-wrapper-offset);top:auto;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{left:15px;margin-top:0;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}._main_15lus_1 {
|
|
@@ -1457,7 +1457,7 @@ span._draggable_1tp7v_5 > * {
|
|
|
1457
1457
|
/* source: src/components/tinymce/tinymce.vue */
|
|
1458
1458
|
._tinymce_aa7a3_1 {
|
|
1459
1459
|
width: 100%;
|
|
1460
|
-
height: var(--
|
|
1460
|
+
height: var(--v6eb7f65f);
|
|
1461
1461
|
}
|
|
1462
1462
|
._textarea_aa7a3_6 {
|
|
1463
1463
|
z-index: -1;
|
|
@@ -1477,11 +1477,11 @@ span._draggable_1tp7v_5 > * {
|
|
|
1477
1477
|
._wrapper_q784j_13 {
|
|
1478
1478
|
display: inline-block;
|
|
1479
1479
|
width: unset;
|
|
1480
|
-
min-width: var(--
|
|
1480
|
+
min-width: var(--v60c098aa);
|
|
1481
1481
|
}
|
|
1482
1482
|
._wrapper_q784j_13._block_q784j_18 {
|
|
1483
1483
|
display: block;
|
|
1484
|
-
width: var(--
|
|
1484
|
+
width: var(--v60c098aa);
|
|
1485
1485
|
}
|
|
1486
1486
|
._wrapper_q784j_13 .el-tag .el-icon {
|
|
1487
1487
|
display: none;
|