@wfrog/vc-ui 1.5.0 → 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.
Files changed (50) hide show
  1. package/dist/es/components/button/button.d.ts +1 -0
  2. package/dist/es/components/button/button.mjs +10 -5
  3. package/dist/es/components/cdn-tag.vue.d.ts +5 -0
  4. package/dist/es/components/choice/choice.d.ts +1 -0
  5. package/dist/es/components/choice/choice.mjs +10 -5
  6. package/dist/es/components/choice/choice.vue.d.ts +1 -0
  7. package/dist/es/components/currency/currency.d.ts +1 -0
  8. package/dist/es/components/currency/currency.mjs +6 -2
  9. package/dist/es/components/currency/currency.vue.d.ts +1 -0
  10. package/dist/es/components/daterange-picker/daterange-picker.d.ts +1 -0
  11. package/dist/es/components/daterange-picker/daterange-picker.mjs +6 -2
  12. package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +1 -0
  13. package/dist/es/components/explorer-form/explorer-form.d.ts +1 -0
  14. package/dist/es/components/explorer-form/explorer-form.mjs +7 -9
  15. package/dist/es/components/explorer-form/explorer-form.vue.d.ts +363 -2
  16. package/dist/es/components/explorer-list/explorer-list.mjs +6 -1
  17. package/dist/es/components/explorer-list/explorer-list.vue.d.ts +3 -1
  18. package/dist/es/components/explorer-tree/explorer-tree.mjs +7 -1
  19. package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +1009 -1
  20. package/dist/es/components/icon-picker/icon-picker.d.ts +2 -1
  21. package/dist/es/components/icon-picker/icon-picker.mjs +14 -6
  22. package/dist/es/components/icon-picker/icon-picker.vue.d.ts +3 -1
  23. package/dist/es/components/icon-picker/index.css +2 -2
  24. package/dist/es/components/input/index.css +1 -1
  25. package/dist/es/components/input/input.d.ts +1 -0
  26. package/dist/es/components/input/input.mjs +8 -4
  27. package/dist/es/components/input/input.vue.d.ts +1 -0
  28. package/dist/es/components/input-number/index.css +1 -1
  29. package/dist/es/components/input-number/input-number.d.ts +1 -0
  30. package/dist/es/components/input-number/input-number.mjs +8 -4
  31. package/dist/es/components/input-number/input-number.vue.d.ts +1 -0
  32. package/dist/es/components/pca-picker/pca-picker.mjs +8 -5
  33. package/dist/es/components/select/index.css +2 -2
  34. package/dist/es/components/select/select.d.ts +1 -0
  35. package/dist/es/components/select/select.mjs +8 -4
  36. package/dist/es/components/select/select.vue.d.ts +1 -0
  37. package/dist/es/components/switch/switch.mjs +6 -5
  38. package/dist/es/components/tags/tags.d.ts +1 -1
  39. package/dist/es/components/tags/tags.mjs +5 -3
  40. package/dist/es/components/tags/tags.vue.d.ts +1 -1
  41. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -2
  42. package/dist/es/components/tinymce/index.css +1 -1
  43. package/dist/es/components/tinymce/tinymce.d.ts +1 -0
  44. package/dist/es/components/tinymce/tinymce.mjs +13 -2
  45. package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
  46. package/dist/es/components/tree-picker/index.css +2 -2
  47. package/dist/es/components/tree-picker/tree-picker.mjs +8 -5
  48. package/dist/es/index.mjs +1 -1
  49. package/dist/index.css +9 -9
  50. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  export interface IIconPickerProps {
2
- modelValue: string;
2
+ modelValue: string | undefined;
3
3
  collection?: string;
4
4
  collections?: string[];
5
+ disabled?: boolean;
5
6
  }
6
7
  interface ICollectionData {
7
8
  [key: string]: {
@@ -2,8 +2,9 @@ import './index.css'
2
2
  import '../../chunk/By7FMB3I.mjs';
3
3
  import '../../chunk/BfjuZmry.mjs';
4
4
  /* empty css */
5
- import { ref, computed, watch, defineComponent, useTemplateRef, onMounted, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, isRef, Fragment, renderList, createTextVNode, toDisplayString, createBlock, useCssModule, h, onUnmounted, createCommentVNode, createSlots, mergeProps } from 'vue';
5
+ import { ref, computed, watch, defineComponent, useTemplateRef, onMounted, createElementBlock, openBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, isRef, Fragment, renderList, createTextVNode, toDisplayString, createBlock, useCssModule, h, onUnmounted, createCommentVNode, createSlots, useCssVars, mergeProps } from 'vue';
6
6
  import { promiseTimeout, useVModel } from '@vueuse/core';
7
+ import { useFormDisabled } from 'element-plus';
7
8
  import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
8
9
  import { C as Component$4 } from '../input/input.mjs';
9
10
  import { E as ElPagination } from '../../chunk/fueZ9sVu.mjs';
@@ -236,7 +237,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
236
237
  props: {
237
238
  modelValue: {},
238
239
  collection: {},
239
- collections: {}
240
+ collections: {},
241
+ disabled: { type: Boolean }
240
242
  },
241
243
  emits: ["choiced"],
242
244
  setup(__props, { emit: __emit }) {
@@ -419,12 +421,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
419
421
  props: {
420
422
  modelValue: {},
421
423
  collection: {},
422
- collections: {}
424
+ collections: {},
425
+ disabled: { type: Boolean, default: void 0 }
423
426
  },
424
427
  emits: ["update:modelValue", "change"],
425
428
  setup(__props, { emit: __emit }) {
429
+ useCssVars((_ctx) => ({
430
+ "v71d94840": !unref(formDisabled) ? "pointer" : "not-allowed"
431
+ }));
426
432
  const props = __props;
427
433
  const emits = __emit;
434
+ const formDisabled = useFormDisabled();
428
435
  const visible = ref(false);
429
436
  const panelVisible = ref(false);
430
437
  const myValue = useVModel(props, "modelValue", emits);
@@ -448,7 +455,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
448
455
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => isRef(visible) ? visible.value = $event : null),
449
456
  placement: "bottom-start",
450
457
  trigger: "click",
451
- width: "350px"
458
+ width: "350px",
459
+ disabled: unref(formDisabled)
452
460
  }, {
453
461
  reference: withCtx(() => [
454
462
  createVNode(Component$4, mergeProps({
@@ -469,12 +477,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
469
477
  unref(panelVisible) ? (openBlock(), createBlock(Panel, mergeProps({ key: 0 }, props, { onChoiced: handleChoiced }), null, 16)) : createCommentVNode("", true)
470
478
  ]),
471
479
  _: 1
472
- }, 8, ["visible"]);
480
+ }, 8, ["visible", "disabled"]);
473
481
  };
474
482
  }
475
483
  });
476
484
 
477
- /* unplugin-vue-components disabled */const input = "_input_1gamt_1";
485
+ /* unplugin-vue-components disabled */const input = "_input_yhkzo_1";
478
486
  const style0 = {
479
487
  input: input
480
488
  };
@@ -5,5 +5,7 @@ declare const _default: import('vue').DefineComponent<IIconPickerProps, {}, {},
5
5
  }, string, import('vue').PublicProps, Readonly<IIconPickerProps> & Readonly<{
6
6
  onChange?: ((value: string) => any) | undefined;
7
7
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ }>, {
9
+ disabled: boolean;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
11
  export default _default;
@@ -117,7 +117,7 @@ button._collections-button_1f8df_15 .el-icon {
117
117
  }
118
118
  ._pagination_1f8df_79 {
119
119
  justify-content: center;
120
- }._input_1gamt_1 .el-input-group__prepend {
120
+ }._input_yhkzo_1 .el-input-group__prepend {
121
121
  padding: 0 4px;
122
- cursor: pointer;
122
+ cursor: var(--v71d94840);
123
123
  }
@@ -1,6 +1,6 @@
1
1
  /* source: src/components/input/input.vue */
2
2
  div._input_1vcoq_1 {
3
- width: var(--v0dcd9101);
3
+ width: var(--v2586680e);
4
4
  display: inline-flex;
5
5
  }
6
6
  div._input_1vcoq_1._block_1vcoq_5 {
@@ -1,4 +1,5 @@
1
1
  export interface IInputProps {
2
2
  block?: boolean;
3
3
  width?: string;
4
+ disabled?: boolean;
4
5
  }
@@ -2,21 +2,24 @@ import './index.css'
2
2
  import '../../chunk/By7FMB3I.mjs';
3
3
  import { E as ElInput } from '../../chunk/CKZGL4_3.mjs';
4
4
  import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, createBlock, openBlock, normalizeClass, createSlots, withCtx, renderSlot } from 'vue';
5
+ import { useFormDisabled } from 'element-plus';
5
6
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
6
7
 
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "input",
9
10
  props: {
10
11
  block: { type: Boolean, default: false },
11
- width: {}
12
+ width: {},
13
+ disabled: { type: Boolean, default: void 0 }
12
14
  },
13
15
  setup(__props, { expose: __expose }) {
14
16
  useCssVars((_ctx) => ({
15
- "v0dcd9101": unref(myWidth)
17
+ "v2586680e": unref(myWidth)
16
18
  }));
17
19
  const props = __props;
18
20
  const $style = useCssModule();
19
21
  const inputRef = useTemplateRef("inputRef");
22
+ const formDisabled = useFormDisabled();
20
23
  const className = computed(() => ({
21
24
  [$style.input]: true,
22
25
  [$style.block]: props.block
@@ -30,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
33
  return openBlock(), createBlock(_component_ElInput, {
31
34
  ref_key: "inputRef",
32
35
  ref: inputRef,
33
- class: normalizeClass(unref(className))
36
+ class: normalizeClass(unref(className)),
37
+ disabled: unref(formDisabled)
34
38
  }, createSlots({ _: 2 }, [
35
39
  _ctx.$slots.prefix ? {
36
40
  name: "prefix",
@@ -60,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
64
  ]),
61
65
  key: "3"
62
66
  } : void 0
63
- ]), 1032, ["class"]);
67
+ ]), 1032, ["class", "disabled"]);
64
68
  };
65
69
  }
66
70
  });
@@ -824,6 +824,7 @@ declare const __VLS_component: import('vue').DefineComponent<IInputProps, {
824
824
  };
825
825
  }) | null>>;
826
826
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IInputProps> & Readonly<{}>, {
827
+ disabled: boolean;
827
828
  block: boolean;
828
829
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
829
830
  inputRef: ({
@@ -20,5 +20,5 @@ div._el-input-number_1piks_18 {
20
20
  line-height: 10px;
21
21
  }
22
22
  div._el-input-number_1piks_18 .el-input__inner {
23
- width: var(--v16e6e851);
23
+ width: var(--v233f0811);
24
24
  }
@@ -5,4 +5,5 @@ export interface IInputNumberProps {
5
5
  size?: 'large' | 'default' | 'small';
6
6
  inputNumberClass?: string;
7
7
  inputWidth?: string;
8
+ disabled?: boolean;
8
9
  }
@@ -3,6 +3,7 @@ import '../../chunk/By7FMB3I.mjs';
3
3
  import '../../chunk/CKZGL4_3.mjs';
4
4
  import { E as ElInputNumber } from '../../chunk/DX84QR5M.mjs';
5
5
  import { defineComponent, useCssVars, useSlots, useCssModule, ref, useTemplateRef, computed, watch, onUnmounted, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, renderSlot, mergeProps, isRef, createSlots, withCtx, nextTick } from 'vue';
6
+ import { useFormDisabled } from 'element-plus';
6
7
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
7
8
 
8
9
  const _hoisted_1 = {
@@ -17,12 +18,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
18
  controlsPosition: {},
18
19
  size: {},
19
20
  inputNumberClass: {},
20
- inputWidth: { default: "80px" }
21
+ inputWidth: { default: "80px" },
22
+ disabled: { type: Boolean, default: void 0 }
21
23
  },
22
24
  emits: ["update:modelValue", "change", "blur"],
23
25
  setup(__props, { emit: __emit }) {
24
26
  useCssVars((_ctx) => ({
25
- "v16e6e851": _ctx.inputWidth
27
+ "v233f0811": _ctx.inputWidth
26
28
  }));
27
29
  const props = __props;
28
30
  const emits = __emit;
@@ -30,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
32
  const $style = useCssModule();
31
33
  const visible = ref(true);
32
34
  const inputNumberRef = useTemplateRef("inputNumberRef");
35
+ const formDisabled = useFormDisabled();
33
36
  const mainClass = computed(() => {
34
37
  const className = {
35
38
  [$style["input-number"]]: true,
@@ -93,7 +96,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
96
  size: __props.size,
94
97
  class: [__props.inputNumberClass, unref($style)["el-input-number"]],
95
98
  precision: __props.precision,
96
- "controls-position": unref(myControlsPosition)
99
+ "controls-position": unref(myControlsPosition),
100
+ disabled: unref(formDisabled)
97
101
  }, _ctx.$attrs, {
98
102
  onKeydown: limitInputValue,
99
103
  onChange: handleChange,
@@ -113,7 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
117
  ]),
114
118
  key: "1"
115
119
  } : void 0
116
- ]), 1040, ["modelValue", "size", "class", "precision", "controls-position"])) : createCommentVNode("", true)
120
+ ]), 1040, ["modelValue", "size", "class", "precision", "controls-position", "disabled"])) : createCommentVNode("", true)
117
121
  ], 2);
118
122
  };
119
123
  }
@@ -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: false },
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 && !props.disabled && togglePopoverVisible(), 300);
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) || __props.disabled || unref(loadFailed),
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(--v16c5a880);
4
+ min-width: var(--v44193d28);
5
5
  }
6
6
  div._select_1fcv5_1._block_1fcv5_5 {
7
7
  display: block;
8
- width: var(--v16c5a880);
8
+ width: var(--v44193d28);
9
9
  }
@@ -3,4 +3,5 @@ export interface ISelectProps {
3
3
  block?: boolean;
4
4
  width?: string;
5
5
  options: SelectProps['options'] | string[];
6
+ disabled?: boolean;
6
7
  }
@@ -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
- "v16c5a880": unref(myWidth)
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
- }), null, 16, ["class", "options"]);
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, openBlock, unref, mergeProps, withCtx, createElementVNode, normalizeClass, createVNode } from 'vue';
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: false },
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 __props.disabled || !__props.confirm ? (openBlock(), createBlock(unref(ElSwitch), mergeProps({
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, { disabled: __props.disabled }), null, 16, ["modelValue", "class", "disabled"])) : (openBlock(), createBlock(unref(ElPopconfirm), mergeProps({
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 }), {
@@ -4,6 +4,6 @@ export interface ITagsProps {
4
4
  regexp?: RegExp;
5
5
  sameMessage?: string;
6
6
  errorMessage?: string;
7
- readonly?: boolean;
7
+ disabled?: boolean;
8
8
  valueFormat?: (val: string | number) => string | number;
9
9
  }
@@ -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, unref, mergeProps, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, isRef, withDirectives, withKeys } from 'vue';
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
- readonly: { type: Boolean, default: false },
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 __props.readonly ? (openBlock(), createBlock(_component_ElSpace, {
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
- readonly: boolean;
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: {};
@@ -1,7 +1,7 @@
1
1
  /* source: src/components/tinymce/tinymce.vue */
2
2
  ._tinymce_aa7a3_1 {
3
3
  width: 100%;
4
- height: var(--e2b40880);
4
+ height: var(--v6eb7f65f);
5
5
  }
6
6
  ._textarea_aa7a3_6 {
7
7
  z-index: -1;
@@ -7,4 +7,5 @@ export interface ITinymceProps {
7
7
  modelValue?: string;
8
8
  httpRequest?: any;
9
9
  storageKey?: string;
10
+ disabled?: boolean;
10
11
  }
@@ -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
- "e2b40880": _ctx.height
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(--v1c728f22);
15
+ min-width: var(--v60c098aa);
16
16
  }
17
17
  ._wrapper_q784j_13._block_q784j_18 {
18
18
  display: block;
19
- width: var(--v1c728f22);
19
+ width: var(--v60c098aa);
20
20
  }
21
21
  ._wrapper_q784j_13 .el-tag .el-icon {
22
22
  display: none;