@koi-design/uxd-ui 13.1.9 → 13.2.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/uxd-ui.esm.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @koi-design/uxd-ui@3.1.9 */
1
+ /*! @koi-design/uxd-ui@3.2.0 */
2
2
 
3
3
  import { defineComponent, reactive, watch, provide, inject, computed, onMounted, ref, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, withDirectives, vShow, createBlock, resolveDynamicComponent, createCommentVNode, toRaw, resolveComponent, Transition, withCtx, createVNode, toDisplayString, isVNode, Comment as Comment$1, Fragment, Text as Text$1, h, shallowRef, toRef, nextTick, onUpdated, onUnmounted, cloneVNode, Teleport, toRefs, withModifiers, mergeProps, renderList, onBeforeUpdate, createTextVNode, watchEffect, onActivated, onDeactivated, normalizeProps, guardReactiveProps, createStaticVNode, withKeys, TransitionGroup, createApp, onBeforeMount } from 'vue';
4
4
  import { URoundClose, USolidCheckmarkCircle, USolidCloseCircle, USolidAlertCircle, USolidInfoCircle, ULineLoading, URoundSearch, URoundCloseCircle, URoundEyeOpen, URoundEyeOff, URoundCheck, ULineEnter, ULineUp, ULineDown, ULineRight, ULineMenu, URoundDown, USolidCheck, USolidRemove, UColorfulEmpty, ULineSearch, ULineLeft, USolidDown, ULineSortRight, ULineLeftDouble, ULineRightDouble, URoundCalendar, ULineShrink, ULineMagnify, ULineRefreshLeft, ULineRefreshRight, ULineScreenOpen, ULineScaleToOriginal, USolidCaretLeft, USolidCaretRight, ULineUnfold, ULinePack, ULinePicture, ULineAlertCircle, USolidStar, UColorfulNotFound, UColorfulStatisticsEmpty, UColorfulMessageEmpty, USolidFilter, USolidCaretUp, USolidCaretDown, ULineCanDrag, ULineAdd, URoundTime, ULineText, ULineDelete, USolidHelpCircle, URoundHelpCircle, ULineInfoCircle, ULineCheckmarkCircle } from '@koi-design/uxd-icon';
@@ -43992,6 +43992,10 @@ const _hoisted_2$1 = {
43992
43992
  const _sfc_main$1 = {
43993
43993
  __name: "MentionsSelect",
43994
43994
  props: {
43995
+ emptyTip: {
43996
+ type: String,
43997
+ default: ""
43998
+ },
43995
43999
  options: {
43996
44000
  type: Array,
43997
44001
  default: () => []
@@ -44081,7 +44085,7 @@ const _sfc_main$1 = {
44081
44085
  _: 3
44082
44086
  })
44083
44087
  ], 2),
44084
- showNoData.value ? (openBlock(), createElementBlock("div", _hoisted_2$1, "\u6682\u65E0\u53EF\u9009\u9879")) : createCommentVNode("v-if", true)
44088
+ showNoData.value ? (openBlock(), createElementBlock("div", _hoisted_2$1, toDisplayString(__props.emptyTip), 1)) : createCommentVNode("v-if", true)
44085
44089
  ], 2);
44086
44090
  };
44087
44091
  }
@@ -44101,6 +44105,7 @@ const _sfc_main = defineComponent({
44101
44105
  styleMap: { default: () => ({}) },
44102
44106
  config: { default: () => ({}) },
44103
44107
  resizable: { type: Boolean, default: false },
44108
+ optEmptyTip: { default: "" },
44104
44109
  prefix: { default: "uui" },
44105
44110
  triggerSign: { default: () => ["@"] },
44106
44111
  mentionClass: { default: "mention" },
@@ -44528,9 +44533,10 @@ const _sfc_main = defineComponent({
44528
44533
  const startY = e.clientY;
44529
44534
  const startHeight = (_b = (_a = editorWrap.value) == null ? void 0 : _a.offsetHeight) != null ? _b : 100;
44530
44535
  const handleMouseMove = (moveEvent) => {
44536
+ var _a2;
44531
44537
  const deltaY = moveEvent.clientY - startY;
44532
44538
  const newHeight = startHeight + deltaY;
44533
- const minHeight = 100;
44539
+ const minHeight = (_a2 = props.minHeight) != null ? _a2 : 40;
44534
44540
  resizedHeight.value = Math.max(minHeight, newHeight);
44535
44541
  };
44536
44542
  const handleMouseUp = () => {
@@ -44574,6 +44580,7 @@ const _sfc_main = defineComponent({
44574
44580
  }, [
44575
44581
  state.measuring ? (openBlock(), createElementBlock("div", _hoisted_2, [
44576
44582
  createVNode(MentionsSelect, {
44583
+ "empty-tip": _ctx.optEmptyTip,
44577
44584
  prefix: prefixCls.value,
44578
44585
  options: options.value,
44579
44586
  onClose: handleClose
@@ -44582,7 +44589,7 @@ const _sfc_main = defineComponent({
44582
44589
  renderSlot(_ctx.$slots, "label", { data })
44583
44590
  ]),
44584
44591
  _: 3
44585
- }, 8, ["prefix", "options"])
44592
+ }, 8, ["empty-tip", "prefix", "options"])
44586
44593
  ])) : createCommentVNode("v-if", true)
44587
44594
  ], 2),
44588
44595
  _ctx.resizable ? (openBlock(), createElementBlock("div", {
package/uxd-ui.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @koi-design/uxd-ui@3.1.9 */
1
+ /*! @koi-design/uxd-ui@3.2.0 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('@koi-design/uxd-icon')) :
@@ -43995,6 +43995,10 @@
43995
43995
  const _sfc_main$1 = {
43996
43996
  __name: "MentionsSelect",
43997
43997
  props: {
43998
+ emptyTip: {
43999
+ type: String,
44000
+ default: ""
44001
+ },
43998
44002
  options: {
43999
44003
  type: Array,
44000
44004
  default: () => []
@@ -44084,7 +44088,7 @@
44084
44088
  _: 3
44085
44089
  })
44086
44090
  ], 2),
44087
- showNoData.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, "\u6682\u65E0\u53EF\u9009\u9879")) : vue.createCommentVNode("v-if", true)
44091
+ showNoData.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, vue.toDisplayString(__props.emptyTip), 1)) : vue.createCommentVNode("v-if", true)
44088
44092
  ], 2);
44089
44093
  };
44090
44094
  }
@@ -44104,6 +44108,7 @@
44104
44108
  styleMap: { default: () => ({}) },
44105
44109
  config: { default: () => ({}) },
44106
44110
  resizable: { type: Boolean, default: false },
44111
+ optEmptyTip: { default: "" },
44107
44112
  prefix: { default: "uui" },
44108
44113
  triggerSign: { default: () => ["@"] },
44109
44114
  mentionClass: { default: "mention" },
@@ -44531,9 +44536,10 @@
44531
44536
  const startY = e.clientY;
44532
44537
  const startHeight = (_b = (_a = editorWrap.value) == null ? void 0 : _a.offsetHeight) != null ? _b : 100;
44533
44538
  const handleMouseMove = (moveEvent) => {
44539
+ var _a2;
44534
44540
  const deltaY = moveEvent.clientY - startY;
44535
44541
  const newHeight = startHeight + deltaY;
44536
- const minHeight = 100;
44542
+ const minHeight = (_a2 = props.minHeight) != null ? _a2 : 40;
44537
44543
  resizedHeight.value = Math.max(minHeight, newHeight);
44538
44544
  };
44539
44545
  const handleMouseUp = () => {
@@ -44577,6 +44583,7 @@
44577
44583
  }, [
44578
44584
  state.measuring ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
44579
44585
  vue.createVNode(MentionsSelect, {
44586
+ "empty-tip": _ctx.optEmptyTip,
44580
44587
  prefix: prefixCls.value,
44581
44588
  options: options.value,
44582
44589
  onClose: handleClose
@@ -44585,7 +44592,7 @@
44585
44592
  vue.renderSlot(_ctx.$slots, "label", { data })
44586
44593
  ]),
44587
44594
  _: 3
44588
- }, 8, ["prefix", "options"])
44595
+ }, 8, ["empty-tip", "prefix", "options"])
44589
44596
  ])) : vue.createCommentVNode("v-if", true)
44590
44597
  ], 2),
44591
44598
  _ctx.resizable ? (vue.openBlock(), vue.createElementBlock("div", {