x-next 1.15.0 → 1.16.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.
Files changed (135) hide show
  1. package/AI_USAGE/catalog.md +1 -1
  2. package/AI_USAGE/components/alert-api.md +1 -1
  3. package/AI_USAGE/components/alert.md +1 -1
  4. package/AI_USAGE/components/bar-chart-api.md +1 -1
  5. package/AI_USAGE/components/bar-chart.md +1 -1
  6. package/AI_USAGE/components/boxicons.md +1 -1
  7. package/AI_USAGE/components/button-api.md +1 -1
  8. package/AI_USAGE/components/button.md +1 -1
  9. package/AI_USAGE/components/charts.md +1 -1
  10. package/AI_USAGE/components/checkbox-api.md +1 -1
  11. package/AI_USAGE/components/checkbox.md +1 -1
  12. package/AI_USAGE/components/color-picker-api.md +1 -1
  13. package/AI_USAGE/components/color-picker.md +1 -1
  14. package/AI_USAGE/components/config-provider-api.md +1 -1
  15. package/AI_USAGE/components/config-provider.md +1 -1
  16. package/AI_USAGE/components/date-picker-api.md +1 -1
  17. package/AI_USAGE/components/date-picker.md +1 -1
  18. package/AI_USAGE/components/dialog-api.md +1 -1
  19. package/AI_USAGE/components/dialog.md +1 -1
  20. package/AI_USAGE/components/draggable-api.md +1 -1
  21. package/AI_USAGE/components/draggable.md +1 -1
  22. package/AI_USAGE/components/drawer-api.md +1 -1
  23. package/AI_USAGE/components/drawer.md +1 -1
  24. package/AI_USAGE/components/dropdown-api.md +1 -1
  25. package/AI_USAGE/components/dropdown.md +1 -1
  26. package/AI_USAGE/components/empty-api.md +1 -1
  27. package/AI_USAGE/components/empty.md +1 -1
  28. package/AI_USAGE/components/finicon.md +1 -1
  29. package/AI_USAGE/components/form-api.md +1 -1
  30. package/AI_USAGE/components/form.md +1 -1
  31. package/AI_USAGE/components/grid-api.md +1 -1
  32. package/AI_USAGE/components/grid.md +1 -1
  33. package/AI_USAGE/components/heatmap-api.md +1 -1
  34. package/AI_USAGE/components/heatmap.md +1 -1
  35. package/AI_USAGE/components/icon-api.md +1 -1
  36. package/AI_USAGE/components/icon.md +1 -1
  37. package/AI_USAGE/components/image-api.md +1 -1
  38. package/AI_USAGE/components/image.md +1 -1
  39. package/AI_USAGE/components/input-api.md +1 -1
  40. package/AI_USAGE/components/input-number-api.md +1 -1
  41. package/AI_USAGE/components/input-number.md +1 -1
  42. package/AI_USAGE/components/input-tag-api.md +1 -1
  43. package/AI_USAGE/components/input-tag.md +1 -1
  44. package/AI_USAGE/components/input.md +1 -1
  45. package/AI_USAGE/components/layout-api.md +1 -1
  46. package/AI_USAGE/components/layout.md +1 -1
  47. package/AI_USAGE/components/line-chart-api.md +1 -1
  48. package/AI_USAGE/components/line-chart.md +1 -1
  49. package/AI_USAGE/components/link-api.md +1 -1
  50. package/AI_USAGE/components/link.md +1 -1
  51. package/AI_USAGE/components/menu-api.md +1 -1
  52. package/AI_USAGE/components/menu.md +1 -1
  53. package/AI_USAGE/components/message-api.md +1 -1
  54. package/AI_USAGE/components/message-box-api.md +1 -1
  55. package/AI_USAGE/components/message-box.md +1 -1
  56. package/AI_USAGE/components/message.md +1 -1
  57. package/AI_USAGE/components/network-api.md +1 -1
  58. package/AI_USAGE/components/network.md +1 -1
  59. package/AI_USAGE/components/notification-api.md +1 -1
  60. package/AI_USAGE/components/notification.md +1 -1
  61. package/AI_USAGE/components/pagination-api.md +1 -1
  62. package/AI_USAGE/components/pagination.md +1 -1
  63. package/AI_USAGE/components/pie-chart-api.md +1 -1
  64. package/AI_USAGE/components/pie-chart.md +1 -1
  65. package/AI_USAGE/components/popconfirm-api.md +1 -1
  66. package/AI_USAGE/components/popconfirm.md +1 -1
  67. package/AI_USAGE/components/popover-api.md +1 -1
  68. package/AI_USAGE/components/popover.md +1 -1
  69. package/AI_USAGE/components/popup-api.md +1 -1
  70. package/AI_USAGE/components/popup.md +1 -1
  71. package/AI_USAGE/components/progress-api.md +1 -1
  72. package/AI_USAGE/components/progress.md +1 -1
  73. package/AI_USAGE/components/radio-api.md +1 -1
  74. package/AI_USAGE/components/radio.md +1 -1
  75. package/AI_USAGE/components/rate-api.md +1 -1
  76. package/AI_USAGE/components/rate.md +1 -1
  77. package/AI_USAGE/components/resize-box-api.md +1 -1
  78. package/AI_USAGE/components/resize-box.md +1 -1
  79. package/AI_USAGE/components/scrollbar-api.md +1 -1
  80. package/AI_USAGE/components/scrollbar.md +1 -1
  81. package/AI_USAGE/components/select-api.md +1 -1
  82. package/AI_USAGE/components/select.md +1 -1
  83. package/AI_USAGE/components/skeleton-api.md +1 -1
  84. package/AI_USAGE/components/skeleton.md +1 -1
  85. package/AI_USAGE/components/slider-api.md +1 -1
  86. package/AI_USAGE/components/slider.md +1 -1
  87. package/AI_USAGE/components/space-api.md +1 -1
  88. package/AI_USAGE/components/space.md +1 -1
  89. package/AI_USAGE/components/spin-api.md +1 -1
  90. package/AI_USAGE/components/spin.md +1 -1
  91. package/AI_USAGE/components/steps-api.md +1 -1
  92. package/AI_USAGE/components/steps.md +1 -1
  93. package/AI_USAGE/components/switch-api.md +1 -1
  94. package/AI_USAGE/components/switch.md +1 -1
  95. package/AI_USAGE/components/table-api.md +1 -1
  96. package/AI_USAGE/components/table.md +1 -1
  97. package/AI_USAGE/components/tabs-api.md +1 -1
  98. package/AI_USAGE/components/tabs.md +1 -1
  99. package/AI_USAGE/components/tag-api.md +1 -1
  100. package/AI_USAGE/components/tag.md +1 -1
  101. package/AI_USAGE/components/textarea-api.md +1 -1
  102. package/AI_USAGE/components/textarea.md +1 -1
  103. package/AI_USAGE/components/time-picker-api.md +1 -1
  104. package/AI_USAGE/components/time-picker.md +1 -1
  105. package/AI_USAGE/components/time-range-selector-api.md +1 -1
  106. package/AI_USAGE/components/time-range-selector.md +1 -1
  107. package/AI_USAGE/components/timeline-api.md +1 -1
  108. package/AI_USAGE/components/timeline.md +1 -1
  109. package/AI_USAGE/components/tooltip-api.md +1 -1
  110. package/AI_USAGE/components/tooltip.md +1 -1
  111. package/AI_USAGE/components/tree-select-api.md +1 -1
  112. package/AI_USAGE/components/tree-select.md +1 -1
  113. package/AI_USAGE/components/trend-chart-api.md +1 -1
  114. package/AI_USAGE/components/trend-chart.md +1 -1
  115. package/AI_USAGE/components/trigger-api.md +1 -1
  116. package/AI_USAGE/components/trigger.md +1 -1
  117. package/AI_USAGE/components/upload-api.md +1 -1
  118. package/AI_USAGE/components/upload.md +1 -1
  119. package/AI_USAGE/components/watermark-api.md +1 -1
  120. package/AI_USAGE/components/watermark.md +1 -1
  121. package/AI_USAGE/core.md +1 -1
  122. package/AI_USAGE/index.md +1 -1
  123. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  124. package/AI_USAGE.md +2 -2
  125. package/CHANGELOG.md +11 -0
  126. package/dist/components/_components/input-label/input-label.d.ts +3 -0
  127. package/dist/es/components/_components/input-label/input-label.js +69 -65
  128. package/dist/es/components/_components/select-view/select-view.js +1 -0
  129. package/dist/es/components/drawer/src/Drawer.vue.js +23 -23
  130. package/dist/es/style.css +1 -1
  131. package/dist/index.cjs +3 -3
  132. package/dist/index.umd.js +3 -3
  133. package/dist/style/base.css +1 -1
  134. package/dist/style.css +1 -1
  135. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Trigger 完整公开 API
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Trigger AI 使用
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`Trigger`;主要模型:v-model:popup-visible。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./trigger-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Upload 完整公开 API
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Upload AI 使用
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`Upload`;主要模型:v-model:file-list。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./upload-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Watermark 完整公开 API
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Watermark AI 使用
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`Watermark`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./watermark-api.md),包含本组件族全部子组件和别名。
7
7
 
package/AI_USAGE/core.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # x-next AI 通用接入
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  ```sh
7
7
  npm install x-next
package/AI_USAGE/index.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # x-next AI 按需入口
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  AI 专用资料,与文档站独立分发。先读 [core.md](./core.md),再只读本任务需要的组件页;各页含场景 SFC,完整 API 位于对应 `*-api.md`。全部公开组件与服务有本地导航,查本包用法优先包内文件,不默认网络搜索。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # 按需样式与表单接入
3
3
 
4
- 适用版本:x-next@1.15.0;来源指纹:`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
4
+ 适用版本:x-next@1.16.0;来源指纹:`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
5
5
 
6
6
  先读 [通用接入](../core.md),相关组件规则:[config-provider](../components/config-provider.md)、[input](../components/input.md)、[textarea](../components/textarea.md)、[select](../components/select.md)、[checkbox](../components/checkbox.md)。
7
7
 
package/AI_USAGE.md CHANGED
@@ -1,9 +1,9 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # x-next AI 使用手册
3
3
 
4
- 适用版本:**x-next@1.15.0**。Vue:`^3.5.0`;Node:`>=20.19.0`。
4
+ 适用版本:**x-next@1.16.0**。Vue:`^3.5.0`;Node:`>=20.19.0`。
5
5
 
6
- 来源指纹(AI 行为说明、docs 导入快照、映射、样式依赖、版本、公开类型和 API 参考):`47ea153587c8d0b3bf318977b10bde9f8dd4acff90c5818541ba6513252ad362`。
6
+ 来源指纹(AI 行为说明、docs 导入快照、映射、样式依赖、版本、公开类型和 API 参考):`089f62cfcc5dbb14a7c66c139cdccc00de64d2ebdf90162e3dca9438c15ba4de`。
7
7
 
8
8
  覆盖 58 个组件族与 105 个公开组件/服务导出。优先通过 [本地按需索引](./AI_USAGE/index.md) 读取组件页和 API,不为查本包用法默认搜索网络。
9
9
 
package/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.16.0] - 2026-10-12
8
+
9
+ ### 修复
10
+
11
+ - 单选 Select 在已有值时保留原生 combobox 的有效点击区域,普通与搜索模式均支持真实角色点击;标签回显、前后缀、清空与键盘交互保持正常。
12
+ - Drawer 默认销毁时在关闭动画结束后卸载整个 Teleport,修复初始关闭、嵌套 Select 和异步确认组合下关闭及再次打开的失效锚点异常。
13
+
14
+ ### 工程与验证
15
+
16
+ - 补充 Select 点击区域、Drawer 异步销毁与重开回归,以及 CMS 浮层的真实生产浏览器消费脚本;同步生成同版本 AI 手册。
17
+
7
18
  ## [1.15.0] - 2026-10-12
8
19
 
9
20
  ### 新增
@@ -18,6 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  focused: BooleanConstructor;
19
19
  uninjectFormItemContext: BooleanConstructor;
20
20
  inputAttrs: PropType<Record<string, unknown>>;
21
+ retainInputBox: BooleanConstructor;
21
22
  }>, {
22
23
  inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
23
24
  render: () => VNode;
@@ -47,6 +48,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
47
48
  focused: BooleanConstructor;
48
49
  uninjectFormItemContext: BooleanConstructor;
49
50
  inputAttrs: PropType<Record<string, unknown>>;
51
+ retainInputBox: BooleanConstructor;
50
52
  }>> & Readonly<{
51
53
  onFocus?: ((ev: FocusEvent) => any) | undefined;
52
54
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
@@ -61,5 +63,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
61
63
  uninjectFormItemContext: boolean;
62
64
  retainInputValue: boolean;
63
65
  enabledInput: boolean;
66
+ retainInputBox: boolean;
64
67
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
65
68
  export default _default;
@@ -1,12 +1,12 @@
1
- import { defineComponent as _, toRefs as D, computed as a, createVNode as l, mergeProps as b } from "vue";
2
- import { omit as K } from "../../../_utils/omit.js";
3
- import { INPUT_EVENTS as v } from "../../../_utils/constant.js";
4
- import O from "../../../_utils/pick.js";
5
- import { useInput as T } from "../../../_hooks/use-input.js";
6
- import { useFormItem as H } from "../../../_hooks/use-form-item.js";
7
- import { useSize as U } from "../../../_hooks/use-size.js";
8
- import { getClassNameMixin as V, getRemovePrefixComponentName as $ } from "../../../_utils/config.js";
9
- const ne = /* @__PURE__ */ _({
1
+ import { defineComponent as K, toRefs as O, computed as l, createVNode as a, mergeProps as V, Fragment as T } from "vue";
2
+ import { omit as H } from "../../../_utils/omit.js";
3
+ import { INPUT_EVENTS as h } from "../../../_utils/constant.js";
4
+ import U from "../../../_utils/pick.js";
5
+ import { useInput as $ } from "../../../_hooks/use-input.js";
6
+ import { useFormItem as q } from "../../../_hooks/use-form-item.js";
7
+ import { useSize as G } from "../../../_hooks/use-size.js";
8
+ import { getClassNameMixin as I, getRemovePrefixComponentName as J } from "../../../_utils/config.js";
9
+ const ae = /* @__PURE__ */ K({
10
10
  name: "InputLabel",
11
11
  inheritAttrs: !1,
12
12
  props: {
@@ -26,7 +26,9 @@ const ne = /* @__PURE__ */ _({
26
26
  // used for outer focused
27
27
  focused: Boolean,
28
28
  uninjectFormItemContext: Boolean,
29
- inputAttrs: Object
29
+ inputAttrs: Object,
30
+ // Select keeps its native combobox clickable while a label is displayed.
31
+ retainInputBox: Boolean
30
32
  },
31
33
  emits: {
32
34
  "update:inputValue": (e) => !0,
@@ -41,83 +43,85 @@ const ne = /* @__PURE__ */ _({
41
43
  slots: t
42
44
  }) {
43
45
  const {
44
- size: h,
45
- disabled: g,
46
- error: I,
47
- inputValue: C,
46
+ size: g,
47
+ disabled: C,
48
+ error: x,
49
+ inputValue: B,
48
50
  uninjectFormItemContext: r
49
- } = D(e), n = e.baseCls ? V($(e.baseCls)) : V("input-label"), {
50
- mergedSize: x,
51
+ } = O(e), n = e.baseCls ? I(J(e.baseCls)) : I("input-label"), {
52
+ mergedSize: S,
51
53
  mergedDisabled: s,
52
- mergedError: S,
53
- eventHandlers: w
54
- } = H({
55
- size: h,
56
- disabled: g,
57
- error: I,
54
+ mergedError: w,
55
+ eventHandlers: N
56
+ } = q({
57
+ size: g,
58
+ disabled: C,
59
+ error: x,
58
60
  uninject: r == null ? void 0 : r.value
59
61
  }), {
60
- mergedSize: B
61
- } = U(x), {
62
+ mergedSize: z
63
+ } = G(S), {
62
64
  inputRef: c,
63
65
  _focused: f,
64
- computedValue: N,
65
- handleInput: z,
66
+ computedValue: y,
67
+ handleInput: F,
66
68
  handleComposition: i,
67
- handleFocus: y,
68
- handleBlur: L,
69
- handleMousedown: A
70
- } = T({
71
- modelValue: C,
69
+ handleFocus: L,
70
+ handleBlur: A,
71
+ handleMousedown: E
72
+ } = $({
73
+ modelValue: B,
72
74
  emit: m,
73
75
  eventName: "inputValueChange",
74
76
  updateEventName: "update:inputValue",
75
- eventHandlers: w
76
- }), E = a(() => e.focused ?? f.value), p = a(() => e.enabledInput && f.value || !e.modelValue), d = () => {
77
+ eventHandlers: N
78
+ }), R = l(() => e.focused ?? f.value), p = l(() => e.enabledInput && f.value || !e.modelValue), d = () => {
77
79
  var u;
78
80
  return e.modelValue ? ((u = e.formatLabel) == null ? void 0 : u.call(e, e.modelValue)) ?? e.modelValue.label : "";
79
- }, F = a(() => e.enabledInput && e.modelValue ? d() : e.placeholder), R = () => {
81
+ }, k = l(() => e.enabledInput && e.modelValue ? d() : e.placeholder), P = () => {
80
82
  var u;
81
83
  return e.modelValue ? ((u = t.default) == null ? void 0 : u.call(t, {
82
84
  data: e.modelValue
83
85
  })) ?? d() : null;
84
- }, k = a(() => [n.block, n.modifier(`size-${B.value}`), {
86
+ }, j = l(() => [n.block, n.modifier(`size-${z.value}`), {
85
87
  [n.modifier("search")]: e.enabledInput,
86
- [n.modifier("focus")]: E.value,
88
+ [n.modifier("focus")]: R.value,
87
89
  [n.modifier("disabled")]: s.value,
88
- [n.modifier("error")]: S.value
89
- }]), P = a(() => K(o, v)), j = a(() => O(o, v)), M = (u) => {
90
+ [n.modifier("error")]: w.value
91
+ }]), M = l(() => H(o, h)), _ = l(() => U(o, h)), D = (u) => {
90
92
  m("keydown", u);
91
- };
93
+ }, b = () => a("input", V(_.value, e.inputAttrs, {
94
+ ref: c,
95
+ class: [n.element("input"), {
96
+ [n.element("input-hidden")]: !p.value
97
+ }],
98
+ value: y.value,
99
+ readonly: !e.enabledInput,
100
+ placeholder: k.value,
101
+ disabled: s.value,
102
+ onInput: F,
103
+ onKeydown: D,
104
+ onFocus: L,
105
+ onBlur: A,
106
+ onCompositionstart: i,
107
+ onCompositionupdate: i,
108
+ onCompositionend: i
109
+ }), null), v = () => a("span", {
110
+ class: [n.element("value"), {
111
+ [n.element("value-hidden")]: p.value
112
+ }]
113
+ }, [P()]);
92
114
  return {
93
115
  inputRef: c,
94
- render: () => l("span", b(P.value, {
95
- class: k.value,
116
+ render: () => a("span", V(M.value, {
117
+ class: j.value,
96
118
  title: d(),
97
- onMousedown: A
98
- }), [t.prefix && l("span", {
119
+ onMousedown: E
120
+ }), [t.prefix && a("span", {
99
121
  class: n.element("prefix")
100
- }, [t.prefix()]), l("input", b(j.value, e.inputAttrs, {
101
- ref: c,
102
- class: [n.element("input"), {
103
- [n.element("input-hidden")]: !p.value
104
- }],
105
- value: N.value,
106
- readonly: !e.enabledInput,
107
- placeholder: F.value,
108
- disabled: s.value,
109
- onInput: z,
110
- onKeydown: M,
111
- onFocus: y,
112
- onBlur: L,
113
- onCompositionstart: i,
114
- onCompositionupdate: i,
115
- onCompositionend: i
116
- }), null), l("span", {
117
- class: [n.element("value"), {
118
- [n.element("value-hidden")]: p.value
119
- }]
120
- }, [R()]), t.suffix && l("span", {
122
+ }, [t.prefix()]), e.retainInputBox ? a("span", {
123
+ class: n.element("input-area")
124
+ }, [b(), v()]) : a(T, null, [b(), v()]), t.suffix && a("span", {
121
125
  class: n.element("suffix")
122
126
  }, [t.suffix()])])
123
127
  };
@@ -137,5 +141,5 @@ const ne = /* @__PURE__ */ _({
137
141
  }
138
142
  });
139
143
  export {
140
- ne as default
144
+ ae as default
141
145
  };
@@ -203,6 +203,7 @@ const be = /* @__PURE__ */ E({
203
203
  error: v.value,
204
204
  enabledInput: D.value,
205
205
  inputAttrs: b.value,
206
+ retainInputBox: !0,
206
207
  uninjectFormItemContext: !0,
207
208
  onInputValueChange: V,
208
209
  onKeydown: y,
@@ -1,15 +1,15 @@
1
1
  import $ from "./Drawer.vue2.js";
2
- import { resolveComponent as f, openBlock as a, createBlock as g, Teleport as N, withDirectives as k, createElementBlock as d, mergeProps as m, createVNode as t, Transition as b, withCtx as n, withModifiers as S, normalizeClass as s, vShow as u, createCommentVNode as i, createElementVNode as r, renderSlot as p, toDisplayString as y, normalizeStyle as T, createTextVNode as w } from "vue";
2
+ import { resolveComponent as p, openBlock as r, createBlock as g, Teleport as N, withDirectives as f, createElementVNode as a, mergeProps as d, createVNode as t, Transition as b, withCtx as n, createElementBlock as k, withModifiers as S, normalizeClass as s, vShow as u, createCommentVNode as i, renderSlot as m, toDisplayString as y, normalizeStyle as T, createTextVNode as w } from "vue";
3
3
  import B from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const V = ["data-theme"], c = ["aria-modal"], O = ["id"], A = ["aria-label"];
5
5
  function K(e, o, M, j, z, E) {
6
- const h = f("Scrollbar"), C = f("Button"), v = f("Space");
7
- return a(), g(N, {
6
+ const h = p("Scrollbar"), C = p("Button"), v = p("Space");
7
+ return !e.destroyOnClosed || e.mergeVisible ? (r(), g(N, {
8
+ key: 0,
8
9
  to: e.teleportContainer,
9
10
  disabled: e.disabled || !e.teleportContainer
10
11
  }, [
11
- !e.destroyOnClosed || e.mergeVisible ? k((a(), d("div", m({
12
- key: 0,
12
+ f(a("div", d({
13
13
  ref: "drawerRef",
14
14
  class: [e.className.block, e.isFixed ? "is-fixed" : "is-absolute", e.popupClass, e.$attrs.class],
15
15
  style: [e.drawerStyle, e.$attrs.style],
@@ -20,7 +20,7 @@ function K(e, o, M, j, z, E) {
20
20
  appear: ""
21
21
  }, {
22
22
  default: n(() => [
23
- e.mask ? k((a(), d("div", {
23
+ e.mask ? f((r(), k("div", {
24
24
  key: 0,
25
25
  class: s(e.className.element("mask")),
26
26
  onClick: o[0] || (o[0] = S((...l) => e.handleMask && e.handleMask(...l), ["self"]))
@@ -37,7 +37,7 @@ function K(e, o, M, j, z, E) {
37
37
  onAfterLeave: e.afterLeave
38
38
  }, {
39
39
  default: n(() => [
40
- k(r("div", m({
40
+ f(a("div", d({
41
41
  ref: "containerRef",
42
42
  role: "dialog",
43
43
  "aria-modal": e.mask ? !0 : void 0,
@@ -47,40 +47,40 @@ function K(e, o, M, j, z, E) {
47
47
  class: [e.className.element("container"), `is-${e.placement}`],
48
48
  style: e.containerStyle
49
49
  }), [
50
- p(e.$slots, "fill", {}, () => [
51
- r("div", {
50
+ m(e.$slots, "fill", {}, () => [
51
+ a("div", {
52
52
  id: e.titleId,
53
53
  class: s([e.className.element("header")])
54
54
  }, [
55
- p(e.$slots, "title", {}, () => [
56
- r("span", {
55
+ m(e.$slots, "title", {}, () => [
56
+ a("span", {
57
57
  class: s([e.className.element("title")])
58
58
  }, y(e.title), 3)
59
59
  ])
60
60
  ], 10, O),
61
- r("div", {
61
+ a("div", {
62
62
  class: s([e.className.element("body"), e.bodyClass]),
63
63
  style: T(e.mergedBodyStyle)
64
64
  }, [
65
65
  t(h, { style: { height: "100%", overflow: "auto" } }, {
66
66
  default: n(() => [
67
- p(e.$slots, "default")
67
+ m(e.$slots, "default")
68
68
  ]),
69
69
  _: 3
70
70
  })
71
71
  ], 6),
72
- e.showFooter ? (a(), d("div", {
72
+ e.showFooter ? (r(), k("div", {
73
73
  key: 0,
74
74
  class: s([e.className.element("footer")])
75
75
  }, [
76
- p(e.$slots, "footer", {
76
+ m(e.$slots, "footer", {
77
77
  ok: e.handleOk,
78
78
  cancel: e.handleCancel,
79
79
  loadingObj: e.loadingObj
80
80
  }, () => [
81
81
  t(v, { size: 12 }, {
82
82
  default: n(() => [
83
- t(C, m({
83
+ t(C, d({
84
84
  type: "primary",
85
85
  size: "small",
86
86
  loading: e.okLoading || e.loadingObj.ok
@@ -90,7 +90,7 @@ function K(e, o, M, j, z, E) {
90
90
  ]),
91
91
  _: 1
92
92
  }, 16, ["loading", "onClick"]),
93
- e.hideCancel ? i("", !0) : (a(), g(C, m({
93
+ e.hideCancel ? i("", !0) : (r(), g(C, d({
94
94
  key: 0,
95
95
  loading: e.loadingObj.cancel,
96
96
  size: "small"
@@ -106,7 +106,7 @@ function K(e, o, M, j, z, E) {
106
106
  ])
107
107
  ], 2)) : i("", !0)
108
108
  ]),
109
- e.showClose ? (a(), d("span", {
109
+ e.showClose ? (r(), k("span", {
110
110
  key: 0,
111
111
  class: s([e.className.element("close-icon")]),
112
112
  role: "button",
@@ -115,7 +115,7 @@ function K(e, o, M, j, z, E) {
115
115
  onClick: o[1] || (o[1] = (l) => e.interceptClose("cancel", l)),
116
116
  onKeydown: o[2] || (o[2] = (...l) => e.handleCloseIconKeydown && e.handleCloseIconKeydown(...l))
117
117
  }, [...o[4] || (o[4] = [
118
- r("svg", {
118
+ a("svg", {
119
119
  viewBox: "0 0 48 48",
120
120
  fill: "none",
121
121
  xmlns: "http://www.w3.org/2000/svg",
@@ -125,7 +125,7 @@ function K(e, o, M, j, z, E) {
125
125
  "stroke-linecap": "butt",
126
126
  "stroke-linejoin": "miter"
127
127
  }, [
128
- r("path", { d: "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142" })
128
+ a("path", { d: "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142" })
129
129
  ], -1)
130
130
  ])], 42, A)) : i("", !0)
131
131
  ], 16, c), [
@@ -134,10 +134,10 @@ function K(e, o, M, j, z, E) {
134
134
  ]),
135
135
  _: 3
136
136
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
137
- ], 16, V)), [
137
+ ], 16, V), [
138
138
  [u, e.mergeVisible]
139
- ]) : i("", !0)
140
- ], 8, ["to", "disabled"]);
139
+ ])
140
+ ], 8, ["to", "disabled"])) : i("", !0);
141
141
  }
142
142
  const P = /* @__PURE__ */ B($, [["render", K]]);
143
143
  export {