vue-devui 1.3.4-alpha.3 → 1.3.4-alpha.4

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/vue-devui.es.js CHANGED
@@ -968,14 +968,14 @@ const AlertCloseIcon = () => createVNode("svg", {
968
968
  }, [createVNode("path", {
969
969
  "d": "M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z"
970
970
  }, null)])])]);
971
- const ns$l = useNamespace("alert");
971
+ const ns$k = useNamespace("alert");
972
972
  const AlertTypeIcon = (props) => createVNode("svg", {
973
973
  "width": "16px",
974
974
  "height": "16px",
975
975
  "viewBox": "0 0 16 16",
976
976
  "version": "1.1",
977
977
  "xmlns": "http://www.w3.org/2000/svg",
978
- "class": [ns$l.e("icon"), props.type === "danger" ? ns$l.em("icon", "error") : ns$l.em("icon", props.type)]
978
+ "class": [ns$k.e("icon"), props.type === "danger" ? ns$k.em("icon", "error") : ns$k.em("icon", props.type)]
979
979
  }, [(() => {
980
980
  switch (props.type) {
981
981
  case "success":
@@ -7740,9 +7740,9 @@ var OverlayInstall = {
7740
7740
  const POPPER_TRIGGER_TOKEN = Symbol("popper-trigger");
7741
7741
  const isString$1 = (val) => typeof val === "string";
7742
7742
  const isObject$7 = (val) => val !== null && typeof val === "object";
7743
- const ns$k = useNamespace("popper-trigger");
7743
+ const ns$j = useNamespace("popper-trigger");
7744
7744
  function wrapContent(content2) {
7745
- return h("span", { class: ns$k.b() }, content2);
7745
+ return h("span", { class: ns$j.b() }, content2);
7746
7746
  }
7747
7747
  function getFirstValidChild(nodes) {
7748
7748
  for (const child of nodes) {
@@ -7927,10 +7927,10 @@ function usePopoverEvent(props, visible, origin) {
7927
7927
  });
7928
7928
  return { placement, handlePositionChange, onMouseenter, onMouseleave };
7929
7929
  }
7930
- const ns$j = useNamespace("popover");
7930
+ const ns$i = useNamespace("popover");
7931
7931
  function SuccessIcon$3() {
7932
7932
  return createVNode("svg", {
7933
- "class": [ns$j.e("icon"), ns$j.em("icon", "success")],
7933
+ "class": [ns$i.e("icon"), ns$i.em("icon", "success")],
7934
7934
  "viewBox": "0 0 16 16",
7935
7935
  "version": "1.1",
7936
7936
  "xmlns": "http://www.w3.org/2000/svg"
@@ -7954,7 +7954,7 @@ function SuccessIcon$3() {
7954
7954
  }
7955
7955
  function WarningIcon$2() {
7956
7956
  return createVNode("svg", {
7957
- "class": [ns$j.e("icon"), ns$j.em("icon", "warning")],
7957
+ "class": [ns$i.e("icon"), ns$i.em("icon", "warning")],
7958
7958
  "viewBox": "0 0 16 16",
7959
7959
  "version": "1.1",
7960
7960
  "xmlns": "http://www.w3.org/2000/svg"
@@ -7971,7 +7971,7 @@ function WarningIcon$2() {
7971
7971
  }
7972
7972
  function InfoIcon$2() {
7973
7973
  return createVNode("svg", {
7974
- "class": [ns$j.e("icon"), ns$j.em("icon", "info")],
7974
+ "class": [ns$i.e("icon"), ns$i.em("icon", "info")],
7975
7975
  "viewBox": "0 0 16 16",
7976
7976
  "version": "1.1",
7977
7977
  "xmlns": "http://www.w3.org/2000/svg"
@@ -7992,7 +7992,7 @@ function InfoIcon$2() {
7992
7992
  }
7993
7993
  function ErrorIcon$3() {
7994
7994
  return createVNode("svg", {
7995
- "class": [ns$j.e("icon"), ns$j.em("icon", "error")],
7995
+ "class": [ns$i.e("icon"), ns$i.em("icon", "error")],
7996
7996
  "width": "16px",
7997
7997
  "height": "16px",
7998
7998
  "viewBox": "0 0 16 16",
@@ -11768,12 +11768,12 @@ var CarouselInstall = {
11768
11768
  app.component(CarouselItem.name, CarouselItem);
11769
11769
  }
11770
11770
  };
11771
- const ns$i = useNamespace("cascader");
11771
+ const ns$h = useNamespace("cascader");
11772
11772
  const useRootClassName = (props, menuShow) => {
11773
11773
  return computed(() => ({
11774
- [`${ns$i.b()} ${ns$i.e("dropdown")} ${ns$i.em("dropdown", "animation")}`]: true,
11775
- [ns$i.em("dropdown", "open")]: menuShow.value,
11776
- [ns$i.e("disbaled")]: props.disabled
11774
+ [`${ns$h.b()} ${ns$h.e("dropdown")} ${ns$h.em("dropdown", "animation")}`]: true,
11775
+ [ns$h.em("dropdown", "open")]: menuShow.value,
11776
+ [ns$h.e("disbaled")]: props.disabled
11777
11777
  }));
11778
11778
  };
11779
11779
  const useListClassName = (props) => {
@@ -11782,7 +11782,7 @@ const useListClassName = (props) => {
11782
11782
  const isActive = ((_a = itemProps == null ? void 0 : itemProps.valueCache) == null ? void 0 : _a[props.ulIndex]) === ((_b = props.cascaderItem) == null ? void 0 : _b.value);
11783
11783
  const isDisabled = (_c = props.cascaderItem) == null ? void 0 : _c.disabled;
11784
11784
  return computed(() => ({
11785
- [`${ns$i.e("li")} dropdown-item`]: true,
11785
+ [`${ns$h.e("li")} dropdown-item`]: true,
11786
11786
  "leaf-active": isActive,
11787
11787
  disabled: isDisabled
11788
11788
  }));
@@ -11791,13 +11791,13 @@ const useUlClassName = (props) => {
11791
11791
  return computed(() => {
11792
11792
  var _a;
11793
11793
  return {
11794
- [ns$i.e("ul")]: true,
11795
- [ns$i.e("drop-no-data")]: ((_a = props == null ? void 0 : props.cascaderItems) == null ? void 0 : _a.length) === 0
11794
+ [ns$h.e("ul")]: true,
11795
+ [ns$h.e("drop-no-data")]: ((_a = props == null ? void 0 : props.cascaderItems) == null ? void 0 : _a.length) === 0
11796
11796
  };
11797
11797
  });
11798
11798
  };
11799
11799
  const dropdownOpenClass = (status2) => {
11800
- return status2 ? `${ns$i.e("drop-menu-wrapper")}` : "";
11800
+ return status2 ? `${ns$h.e("drop-menu-wrapper")}` : "";
11801
11801
  };
11802
11802
  const useRootStyle = (props) => {
11803
11803
  return {
@@ -11871,8 +11871,7 @@ const cascaderProps = {
11871
11871
  default: () => true
11872
11872
  },
11873
11873
  size: {
11874
- type: String,
11875
- default: "md"
11874
+ type: String
11876
11875
  }
11877
11876
  };
11878
11877
  const cascaderulProps = {
@@ -13602,17 +13601,17 @@ const tabsProps = {
13602
13601
  default: "top"
13603
13602
  }
13604
13603
  };
13605
- const ns$h = useNamespace("tabs");
13604
+ const ns$g = useNamespace("tabs");
13606
13605
  function useTabNavRender(props, data) {
13607
13606
  const { cssClass, tabPosition, customWidth } = toRefs(props);
13608
13607
  const ulClasses = computed(() => ({
13609
- [ns$h.e("nav")]: true,
13610
- [ns$h.em("nav", props.type)]: true,
13608
+ [ns$g.e("nav")]: true,
13609
+ [ns$g.em("nav", props.type)]: true,
13611
13610
  [cssClass.value]: Boolean(cssClass.value),
13612
- [ns$h.em("nav", "top")]: tabPosition.value === "top",
13613
- [ns$h.em("nav", "right")]: tabPosition.value === "right",
13614
- [ns$h.em("nav", "bottom")]: tabPosition.value === "bottom",
13615
- [ns$h.em("nav", "left")]: tabPosition.value === "left"
13611
+ [ns$g.em("nav", "top")]: tabPosition.value === "top",
13612
+ [ns$g.em("nav", "right")]: tabPosition.value === "right",
13613
+ [ns$g.em("nav", "bottom")]: tabPosition.value === "bottom",
13614
+ [ns$g.em("nav", "left")]: tabPosition.value === "left"
13616
13615
  }));
13617
13616
  const aClasses = computed(() => ({
13618
13617
  ["custom-width"]: Boolean(customWidth.value)
@@ -13850,7 +13849,7 @@ var TabNav = defineComponent({
13850
13849
  };
13851
13850
  }
13852
13851
  });
13853
- const ns$g = useNamespace("tabs");
13852
+ const ns$f = useNamespace("tabs");
13854
13853
  function useTabsEvent(ctx2) {
13855
13854
  const onUpdateModelValue = (value) => {
13856
13855
  ctx2.emit("update:modelValue", value);
@@ -13871,8 +13870,8 @@ function useTabsEvent(ctx2) {
13871
13870
  }
13872
13871
  function useTabsRender(props) {
13873
13872
  const tabsClasses = computed(() => ({
13874
- [ns$g.b()]: true,
13875
- [ns$g.m(props.tabPosition)]: true
13873
+ [ns$f.b()]: true,
13874
+ [ns$f.m(props.tabPosition)]: true
13876
13875
  }));
13877
13876
  return { tabsClasses };
13878
13877
  }
@@ -18764,8 +18763,7 @@ const timePickerProps = {
18764
18763
  default: true
18765
18764
  },
18766
18765
  size: {
18767
- type: String,
18768
- default: "md"
18766
+ type: String
18769
18767
  },
18770
18768
  readonly: {
18771
18769
  type: Boolean,
@@ -21013,15 +21011,15 @@ function useKeydown(props, ctx2) {
21013
21011
  document.removeEventListener("keydown", handleKeydown);
21014
21012
  });
21015
21013
  }
21016
- const ns$f = useNamespace("fullscreen");
21014
+ const ns$e = useNamespace("fullscreen");
21017
21015
  const launchNormalFullscreen = (targetElement, props) => {
21018
- targetElement.classList.add(ns$f.b());
21016
+ targetElement.classList.add(ns$e.b());
21019
21017
  if (props.zIndex) {
21020
21018
  targetElement.setAttribute("style", `z-index: ${props.zIndex}`);
21021
21019
  }
21022
21020
  };
21023
21021
  const exitNormalFullscreen = (targetElement) => {
21024
- targetElement.classList.remove(ns$f.b());
21022
+ targetElement.classList.remove(ns$e.b());
21025
21023
  targetElement.style.zIndex = "";
21026
21024
  };
21027
21025
  const launchImmersiveFullScreen = async (docElement) => {
@@ -21051,10 +21049,10 @@ const exitImmersiveFullScreen = async (doc) => {
21051
21049
  return await (fullscreenExit == null ? void 0 : fullscreenExit.then(() => !!document.fullscreenElement));
21052
21050
  };
21053
21051
  const addFullScreenStyle = () => {
21054
- document.getElementsByTagName("html")[0].classList.add(ns$f.e("html"));
21052
+ document.getElementsByTagName("html")[0].classList.add(ns$e.e("html"));
21055
21053
  };
21056
21054
  const removeFullScreenStyle = () => {
21057
- document.getElementsByTagName("html")[0].classList.remove(ns$f.e("html"));
21055
+ document.getElementsByTagName("html")[0].classList.remove(ns$e.e("html"));
21058
21056
  };
21059
21057
  function useFullscreen(props, slotElement, ctx2) {
21060
21058
  const { modelValue, mode } = toRefs(props);
@@ -22468,8 +22466,7 @@ const inputNumberProps = {
22468
22466
  default: -Infinity
22469
22467
  },
22470
22468
  size: {
22471
- type: String,
22472
- default: "md"
22469
+ type: String
22473
22470
  },
22474
22471
  modelValue: {
22475
22472
  type: Number
@@ -22482,10 +22479,10 @@ const inputNumberProps = {
22482
22479
  default: ""
22483
22480
  }
22484
22481
  };
22485
- const ns$e = useNamespace("input-number");
22482
+ const ns$d = useNamespace("input-number");
22486
22483
  function IncIcon() {
22487
22484
  return createVNode("svg", {
22488
- "class": ns$e.e("icon-arrow"),
22485
+ "class": ns$d.e("icon-arrow"),
22489
22486
  "width": "1em",
22490
22487
  "height": "1em",
22491
22488
  "viewBox": "0 0 16 16",
@@ -22503,7 +22500,7 @@ function IncIcon() {
22503
22500
  }
22504
22501
  function DecIcon() {
22505
22502
  return createVNode("svg", {
22506
- "class": ns$e.e("icon-arrow"),
22503
+ "class": ns$d.e("icon-arrow"),
22507
22504
  "width": "1em",
22508
22505
  "height": "1em",
22509
22506
  "viewBox": "0 0 16 16",
@@ -22519,26 +22516,28 @@ function DecIcon() {
22519
22516
  "fill-rule": "nonzero"
22520
22517
  }, null)])]);
22521
22518
  }
22522
- const ns$d = useNamespace("input-number");
22519
+ const ns$c = useNamespace("input-number");
22523
22520
  function useRender$1(props, ctx2) {
22521
+ const formContext = inject(FORM_TOKEN, void 0);
22524
22522
  const _a = ctx2.attrs, { style, class: customClass } = _a, otherAttrs = __objRest(_a, ["style", "class"]);
22525
22523
  const customStyle = { style };
22524
+ const inputNumberSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
22526
22525
  const wrapClass = computed(() => [
22527
22526
  {
22528
- [ns$d.b()]: true,
22529
- [ns$d.m(props.size)]: true
22527
+ [ns$c.b()]: true,
22528
+ [ns$c.m(inputNumberSize.value)]: true
22530
22529
  },
22531
22530
  customClass
22532
22531
  ]);
22533
22532
  const controlButtonsClass = computed(() => ({
22534
- [ns$d.e("control-buttons")]: true,
22533
+ [ns$c.e("control-buttons")]: true,
22535
22534
  disabled: props.disabled
22536
22535
  }));
22537
22536
  const inputWrapClass = computed(() => ({
22538
- [ns$d.e("input-wrap")]: true
22537
+ [ns$c.e("input-wrap")]: true
22539
22538
  }));
22540
22539
  const inputInnerClass = computed(() => ({
22541
- [ns$d.e("input-box")]: true,
22540
+ [ns$c.e("input-box")]: true,
22542
22541
  disabled: props.disabled
22543
22542
  }));
22544
22543
  return { wrapClass, customStyle, otherAttrs, controlButtonsClass, inputWrapClass, inputInnerClass };
@@ -23324,12 +23323,12 @@ var MentionInstall = {
23324
23323
  const elements = [];
23325
23324
  let parents = [];
23326
23325
  const defaultIndent = ref(24);
23327
- const ns$c = useNamespace("menu");
23326
+ const ns$b = useNamespace("menu");
23328
23327
  const subNs$2 = useNamespace("submenu");
23329
- const menuClass = ns$c.b();
23330
- const menuItemHorizontalWrapper = `${ns$c.b()}-item-horizontal-wrapper`;
23331
- const menuItemSelect$1 = `${ns$c.b()}-item-select`;
23332
- const menuActiveParent = `${ns$c.b()}-active-parent`;
23328
+ const menuClass = ns$b.b();
23329
+ const menuItemHorizontalWrapper = `${ns$b.b()}-item-horizontal-wrapper`;
23330
+ const menuItemSelect$1 = `${ns$b.b()}-item-select`;
23331
+ const menuActiveParent = `${ns$b.b()}-active-parent`;
23333
23332
  function setDefaultIndent(indent) {
23334
23333
  defaultIndent.value = indent;
23335
23334
  }
@@ -23354,7 +23353,7 @@ function addLayer() {
23354
23353
  continue;
23355
23354
  } else {
23356
23355
  if (shiftItem.tagName === "DIV") {
23357
- if (shiftItem.classList.contains(`${ns$c.b()}-item-vertical-wrapper`) || shiftItem.classList.contains(`${subNs$2.b()}-menu-item-vertical-wrapper`)) {
23356
+ if (shiftItem.classList.contains(`${ns$b.b()}-item-vertical-wrapper`) || shiftItem.classList.contains(`${subNs$2.b()}-menu-item-vertical-wrapper`)) {
23358
23357
  const parent = shiftItem.parentElement;
23359
23358
  stack.unshift(...Array.from(shiftItem.children));
23360
23359
  if (parent == null ? void 0 : parent.classList.contains(menuClass)) {
@@ -23405,7 +23404,7 @@ function getRoot(path) {
23405
23404
  let rootElement = null;
23406
23405
  for (let i = 0; i < paths.length; i++) {
23407
23406
  const p = paths[i];
23408
- if ((_a = p == null ? void 0 : p.classList) == null ? void 0 : _a.contains(`${ns$c.b()}-horizontal`)) {
23407
+ if ((_a = p == null ? void 0 : p.classList) == null ? void 0 : _a.contains(`${ns$b.b()}-horizontal`)) {
23409
23408
  rootElement = p;
23410
23409
  }
23411
23410
  }
@@ -23484,7 +23483,7 @@ const menuItemProps = {
23484
23483
  type: [String, Object]
23485
23484
  }
23486
23485
  };
23487
- const ns$b = useNamespace("menu");
23486
+ const ns$a = useNamespace("menu");
23488
23487
  function initSelect(defaultSelectKeys, keys2, isMultiple, disabled) {
23489
23488
  const isSelect = ref(false);
23490
23489
  if (!isMultiple) {
@@ -23505,9 +23504,9 @@ function initSelect(defaultSelectKeys, keys2, isMultiple, disabled) {
23505
23504
  function addActiveParent(ele) {
23506
23505
  var _a, _b;
23507
23506
  let cur = ele.parentElement;
23508
- while (!cur.classList.contains(ns$b.b())) {
23507
+ while (!cur.classList.contains(ns$a.b())) {
23509
23508
  if (((_a = cur.firstElementChild) == null ? void 0 : _a.tagName) === "DIV") {
23510
- (_b = cur == null ? void 0 : cur.firstElementChild) == null ? void 0 : _b.classList.add(`${ns$b.b()}-active-parent`);
23509
+ (_b = cur == null ? void 0 : cur.firstElementChild) == null ? void 0 : _b.classList.add(`${ns$a.b()}-active-parent`);
23511
23510
  }
23512
23511
  cur = cur.parentElement;
23513
23512
  }
@@ -23523,25 +23522,25 @@ function changeRoute(props, router, useRouter, key) {
23523
23522
  }
23524
23523
  return void 0;
23525
23524
  }
23526
- const ns$a = useNamespace("menu");
23525
+ const ns$9 = useNamespace("menu");
23527
23526
  function useClick(e) {
23528
23527
  const paths = e.path;
23529
23528
  for (let i = 0; i < paths.length; i++) {
23530
23529
  const path = paths[i];
23531
- if (path.classList.contains(`${ns$a.b()}-horizontal`)) {
23530
+ if (path.classList.contains(`${ns$9.b()}-horizontal`)) {
23532
23531
  break;
23533
- } else if (path.classList.contains(`${ns$a.b()}-item-horizontal-wrapper`)) {
23532
+ } else if (path.classList.contains(`${ns$9.b()}-item-horizontal-wrapper`)) {
23534
23533
  continue;
23535
23534
  } else {
23536
23535
  if (path.tagName !== "SPAN") {
23537
- path.classList.add(`${ns$a.b()}-item-select`);
23536
+ path.classList.add(`${ns$9.b()}-item-select`);
23538
23537
  }
23539
23538
  }
23540
23539
  }
23541
23540
  }
23542
- const ns$9 = useNamespace("menu");
23543
- const menuItemSelect = `${ns$9.b()}-item-select`;
23544
- const menuItemDisabled = `${ns$9.b()}-item-disabled`;
23541
+ const ns$8 = useNamespace("menu");
23542
+ const menuItemSelect = `${ns$8.b()}-item-select`;
23543
+ const menuItemDisabled = `${ns$8.b()}-item-disabled`;
23545
23544
  var MenuItem = defineComponent({
23546
23545
  name: "DMenuItem",
23547
23546
  props: menuItemProps,
@@ -23564,8 +23563,8 @@ var MenuItem = defineComponent({
23564
23563
  const useRouter = inject("useRouter");
23565
23564
  const router = instance == null ? void 0 : instance.appContext.config.globalProperties.$router;
23566
23565
  const classObject = computed(() => ({
23567
- [`${ns$9.b()}-item`]: true,
23568
- [`${ns$9.b()}-item-isCollapsed`]: isCollapsed.value,
23566
+ [`${ns$8.b()}-item`]: true,
23567
+ [`${ns$8.b()}-item-isCollapsed`]: isCollapsed.value,
23569
23568
  [menuItemSelect]: isSelect.value,
23570
23569
  [menuItemDisabled]: disabled.value
23571
23570
  }));
@@ -23625,11 +23624,11 @@ var MenuItem = defineComponent({
23625
23624
  }
23626
23625
  if (mode.value === "horizontal") {
23627
23626
  const ul = (_a2 = ele.parentElement) == null ? void 0 : _a2.parentElement;
23628
- ul == null ? void 0 : ul.classList.add(`${ns$9.b()}-active-parent`);
23627
+ ul == null ? void 0 : ul.classList.add(`${ns$8.b()}-active-parent`);
23629
23628
  }
23630
23629
  };
23631
23630
  const icons = createVNode("span", {
23632
- "class": `${ns$9.b()}-icon`
23631
+ "class": `${ns$8.b()}-icon`
23633
23632
  }, [(_b = (_a = ctx2.slots).icon) == null ? void 0 : _b.call(_a)]);
23634
23633
  const menuItems = ref(null);
23635
23634
  watch(disabled, () => {
@@ -23646,7 +23645,7 @@ var MenuItem = defineComponent({
23646
23645
  let oldPadding = "";
23647
23646
  const ele = menuItems.value;
23648
23647
  if (mode.value === "vertical") {
23649
- if ((_b2 = (_a2 = ele.parentElement) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b2.classList.contains(ns$9.b())) {
23648
+ if ((_b2 = (_a2 = ele.parentElement) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b2.classList.contains(ns$8.b())) {
23650
23649
  isLayer1.value = true;
23651
23650
  if (isLayer1.value) {
23652
23651
  ele.style.paddingRight = ``;
@@ -23676,7 +23675,7 @@ var MenuItem = defineComponent({
23676
23675
  });
23677
23676
  return () => {
23678
23677
  return mode.value === "vertical" ? createVNode("div", {
23679
- "class": `${ns$9.b()}-item-vertical-wrapper`
23678
+ "class": `${ns$8.b()}-item-vertical-wrapper`
23680
23679
  }, [createVNode("li", {
23681
23680
  "class": classObject.value,
23682
23681
  "onClick": onClick,
@@ -23810,10 +23809,10 @@ const subMenuProps = {
23810
23809
  default: false
23811
23810
  }
23812
23811
  };
23813
- const ns$8 = useNamespace("menu");
23812
+ const ns$7 = useNamespace("menu");
23814
23813
  const subNs$1 = useNamespace("submenu");
23815
- const menuItemHorizontalWrapperHidden = `${ns$8.b()}-item-horizontal-wrapper-hidden`;
23816
- const menuItemHorizontalWrapperShow = `${ns$8.b()}-item-horizontal-wrapper-show`;
23814
+ const menuItemHorizontalWrapperHidden = `${ns$7.b()}-item-horizontal-wrapper-hidden`;
23815
+ const menuItemHorizontalWrapperShow = `${ns$7.b()}-item-horizontal-wrapper-show`;
23817
23816
  function useShowSubMenu(eventName, e, wrapper) {
23818
23817
  const target = e.currentTarget;
23819
23818
  const targetParent = target.parentElement;
@@ -23821,7 +23820,7 @@ function useShowSubMenu(eventName, e, wrapper) {
23821
23820
  wrapper.style.padding = `0 20px !important`;
23822
23821
  if (eventName === "mouseenter") {
23823
23822
  if ((targetParent == null ? void 0 : targetParent.tagName) === "DIV") {
23824
- wrapper.classList.add(`${ns$8.b()}-item-horizontal-wrapper-level`);
23823
+ wrapper.classList.add(`${ns$7.b()}-item-horizontal-wrapper-level`);
23825
23824
  const { width } = target.getClientRects()[0];
23826
23825
  wrapper.style.top = `0px`;
23827
23826
  wrapper.style.left = `${width}px`;
@@ -23834,7 +23833,7 @@ function useShowSubMenu(eventName, e, wrapper) {
23834
23833
  for (let i = 0; i < wrapperChildren.length; i++) {
23835
23834
  const ul = wrapperChildren[i];
23836
23835
  if (ul.tagName === "UL" && ul.classList.contains(subNs$1.b())) {
23837
- const levelUlWrapper = ul.getElementsByClassName(`${ns$8.b()}-item-horizontal-wrapper`)[0];
23836
+ const levelUlWrapper = ul.getElementsByClassName(`${ns$7.b()}-item-horizontal-wrapper`)[0];
23838
23837
  ul.addEventListener("mouseenter", (ev) => {
23839
23838
  ev.stopPropagation();
23840
23839
  useShowSubMenu("mouseenter", ev, levelUlWrapper);
@@ -23855,7 +23854,7 @@ function useShowSubMenu(eventName, e, wrapper) {
23855
23854
  wrapper.classList.add(menuItemHorizontalWrapperHidden);
23856
23855
  }
23857
23856
  }
23858
- const ns$7 = useNamespace("menu");
23857
+ const ns$6 = useNamespace("menu");
23859
23858
  const subNs = useNamespace("submenu");
23860
23859
  const subMenuClass = subNs.b();
23861
23860
  var SubMenu = defineComponent({
@@ -23980,7 +23979,7 @@ var SubMenu = defineComponent({
23980
23979
  "style": `padding: 0 ${indent}px`,
23981
23980
  "ref": title
23982
23981
  }, [createVNode("span", {
23983
- "class": `${ns$7.b()}-icon`
23982
+ "class": `${ns$6.b()}-icon`
23984
23983
  }, [(_b = (_a = ctx2.slots) == null ? void 0 : _a.icon) == null ? void 0 : _b.call(_a)]), withDirectives(createVNode("span", {
23985
23984
  "class": `${subMenuClass}-title-content`
23986
23985
  }, [props.title]), [[vShow, !isCollapsed.value]]), withDirectives(createVNode("i", {
@@ -23990,7 +23989,7 @@ var SubMenu = defineComponent({
23990
23989
  "is-opened": isOpen.value
23991
23990
  }
23992
23991
  }, null), [[vShow, !isCollapsed.value && key !== "overflowContainer"]])]), isHorizontal ? withDirectives(createVNode("div", {
23993
- "class": `${ns$7.b()}-item-horizontal-wrapper ${ns$7.b()}-item-horizontal-wrapper-hidden`,
23992
+ "class": `${ns$6.b()}-item-horizontal-wrapper ${ns$6.b()}-item-horizontal-wrapper-hidden`,
23994
23993
  "ref": wrapper
23995
23994
  }, [(_d = (_c = ctx2.slots).default) == null ? void 0 : _d.call(_c)]), [[vShow, !props.disabled]]) : createVNode(MenuTransition, null, {
23996
23995
  default: () => {
@@ -24268,12 +24267,12 @@ const messageProps = {
24268
24267
  type: Function
24269
24268
  }
24270
24269
  };
24271
- const ns$6 = useNamespace("message");
24270
+ const ns$5 = useNamespace("message");
24272
24271
  function SuccessIcon$1() {
24273
24272
  return createVNode("svg", {
24274
24273
  "viewBox": "0 0 1024 1024",
24275
24274
  "xmlns": "http://www.w3.org/2000/svg",
24276
- "class": ns$6.e("icon")
24275
+ "class": ns$5.e("icon")
24277
24276
  }, [createVNode("path", {
24278
24277
  "fill": "currentColor",
24279
24278
  "d": "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"
@@ -24283,7 +24282,7 @@ function WarningIcon$1() {
24283
24282
  return createVNode("svg", {
24284
24283
  "viewBox": "0 0 1024 1024",
24285
24284
  "xmlns": "http://www.w3.org/2000/svg",
24286
- "class": ns$6.e("icon")
24285
+ "class": ns$5.e("icon")
24287
24286
  }, [createVNode("path", {
24288
24287
  "fill": "currentColor",
24289
24288
  "d": "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"
@@ -24293,7 +24292,7 @@ function InfoIcon$1() {
24293
24292
  return createVNode("svg", {
24294
24293
  "viewBox": "0 0 1024 1024",
24295
24294
  "xmlns": "http://www.w3.org/2000/svg",
24296
- "class": ns$6.e("icon")
24295
+ "class": ns$5.e("icon")
24297
24296
  }, [createVNode("path", {
24298
24297
  "fill": "currentColor",
24299
24298
  "d": "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
@@ -24303,7 +24302,7 @@ function ErrorIcon$1() {
24303
24302
  return createVNode("svg", {
24304
24303
  "viewBox": "0 0 1024 1024",
24305
24304
  "xmlns": "http://www.w3.org/2000/svg",
24306
- "class": ns$6.e("icon")
24305
+ "class": ns$5.e("icon")
24307
24306
  }, [createVNode("path", {
24308
24307
  "fill": "currentColor",
24309
24308
  "d": "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"
@@ -25068,7 +25067,7 @@ var Close = defineComponent({
25068
25067
  }, null)]);
25069
25068
  }
25070
25069
  });
25071
- const ns$5 = useNamespace("notification");
25070
+ const ns$4 = useNamespace("notification");
25072
25071
  const XLINK = {
25073
25072
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
25074
25073
  };
@@ -25096,7 +25095,7 @@ function SuccessIcon() {
25096
25095
  "fill": "white"
25097
25096
  }, [createVNode("use", XLINK_HREF$1, null)]), createVNode("use", mergeProps({
25098
25097
  "id": "Mask",
25099
- "class": ns$5.e("image-success-path")
25098
+ "class": ns$4.e("image-success-path")
25100
25099
  }, XLINK_HREF$1), null)])]);
25101
25100
  }
25102
25101
  function WarningIcon() {
@@ -25112,10 +25111,10 @@ function WarningIcon() {
25112
25111
  "fill": "none",
25113
25112
  "fill-rule": "evenodd"
25114
25113
  }, [createVNode("path", {
25115
- "class": ns$5.e("warning-outer"),
25114
+ "class": ns$4.e("warning-outer"),
25116
25115
  "d": "M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506, 15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049, 0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071, 0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"
25117
25116
  }, null), createVNode("path", {
25118
- "class": ns$5.e("warning-inner"),
25117
+ "class": ns$4.e("warning-inner"),
25119
25118
  "stroke-width": "0.3",
25120
25119
  "fill-rule": "nonzero",
25121
25120
  "d": "M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"
@@ -25135,7 +25134,7 @@ function InfoIcon() {
25135
25134
  "fill": "none",
25136
25135
  "fill-rule": "evenodd"
25137
25136
  }, [createVNode("path", {
25138
- "class": ns$5.e("image-info-path"),
25137
+ "class": ns$4.e("image-info-path"),
25139
25138
  "d": "M7,13 L7,6 L9,6 L9,13 L7,13 Z M7,5 L7,3 L9,3 L9,5 L7,5 Z",
25140
25139
  "id": "info"
25141
25140
  }, null)])]);
@@ -25161,7 +25160,7 @@ function ErrorIcon() {
25161
25160
  "fill": "white"
25162
25161
  }, [createVNode("use", XLINK_HREF$1, null)]), createVNode("use", mergeProps({
25163
25162
  "id": "Mask",
25164
- "class": ns$5.e("image-error-path")
25163
+ "class": ns$4.e("image-error-path")
25165
25164
  }, XLINK_HREF$1), null)])]);
25166
25165
  }
25167
25166
  var TypeIcon = defineComponent({
@@ -28760,8 +28759,7 @@ var RippleInstall = {
28760
28759
  };
28761
28760
  const searchProps = {
28762
28761
  size: {
28763
- type: String,
28764
- default: "md"
28762
+ type: String
28765
28763
  },
28766
28764
  placeholder: {
28767
28765
  type: String,
@@ -28808,25 +28806,26 @@ const searchProps = {
28808
28806
  default: void 0
28809
28807
  }
28810
28808
  };
28811
- const SIZE_CLASS = {
28812
- lg: "lg",
28813
- md: "md",
28814
- sm: "sm"
28815
- };
28816
- const ICON_POSITION = {
28817
- right: "right",
28818
- left: "left"
28819
- };
28820
- const ns$4 = useNamespace("search");
28821
- const getRootClass = (props, isFocus) => {
28822
- return computed(() => ({
28823
- [ns$4.b()]: true,
28824
- [ns$4.m("focus")]: isFocus.value,
28825
- [ns$4.m("disabled")]: props.disabled,
28826
- [ns$4.m("no-border")]: props.noBorder,
28827
- [ns$4.m(props.size)]: SIZE_CLASS[props.size],
28828
- [ns$4.m(props.iconPosition)]: ICON_POSITION[props.iconPosition]
28809
+ const useSearchClass = (props, isFocus) => {
28810
+ const formContext = inject(FORM_TOKEN, void 0);
28811
+ const ICON_POSITION = {
28812
+ right: "right",
28813
+ left: "left"
28814
+ };
28815
+ const ns2 = useNamespace("search");
28816
+ const searchSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
28817
+ const rootClass = computed(() => ({
28818
+ [ns2.b()]: true,
28819
+ [ns2.m("focus")]: isFocus.value,
28820
+ [ns2.m("disabled")]: props.disabled,
28821
+ [ns2.m("no-border")]: props.noBorder,
28822
+ [ns2.m(searchSize.value)]: !!searchSize.value,
28823
+ [ns2.m(props.iconPosition)]: ICON_POSITION[props.iconPosition]
28829
28824
  }));
28825
+ return {
28826
+ rootClass,
28827
+ searchSize
28828
+ };
28830
28829
  };
28831
28830
  const keywordsHandles = (ctx2, props) => {
28832
28831
  const keywords = ref("");
@@ -28901,7 +28900,10 @@ var DSearch = defineComponent({
28901
28900
  const t = createI18nTranslate("DSearch", app);
28902
28901
  const ns2 = useNamespace("search");
28903
28902
  const isFocus = ref(false);
28904
- const rootClasses = getRootClass(props, isFocus);
28903
+ const {
28904
+ rootClass,
28905
+ searchSize
28906
+ } = useSearchClass(props, isFocus);
28905
28907
  const {
28906
28908
  keywords,
28907
28909
  clearIconShow,
@@ -28927,7 +28929,7 @@ var DSearch = defineComponent({
28927
28929
  };
28928
28930
  return () => {
28929
28931
  const inputProps2 = {
28930
- size: props.size,
28932
+ size: searchSize.value,
28931
28933
  disabled: props.disabled,
28932
28934
  autoFocus: props.autoFocus,
28933
28935
  modelValue: keywords.value,
@@ -28938,7 +28940,7 @@ var DSearch = defineComponent({
28938
28940
  onBlur
28939
28941
  };
28940
28942
  return createVNode("label", {
28941
- "class": rootClasses.value
28943
+ "class": rootClass.value
28942
28944
  }, [props.iconPosition === "left" && createVNode("div", {
28943
28945
  "class": ns2.e("icon"),
28944
28946
  "onClick": onClickHandle
@@ -33955,8 +33957,7 @@ const timeSelectProps = {
33955
33957
  default: ""
33956
33958
  },
33957
33959
  size: {
33958
- type: String,
33959
- default: "md"
33960
+ type: String
33960
33961
  },
33961
33962
  "onUpdate:modelValue": {
33962
33963
  type: Function
@@ -38732,7 +38733,7 @@ const installs = [
38732
38733
  VirtualListInstall
38733
38734
  ];
38734
38735
  var vueDevui = {
38735
- version: "1.3.4-alpha.3",
38736
+ version: "1.3.4-alpha.4",
38736
38737
  install(app) {
38737
38738
  installs.forEach((p) => app.use(p));
38738
38739
  }