@tu-design/vue 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +274 -75
- package/dist/index.mjs +477 -133
- package/dist/registry/vue/alert-dialog.json +2 -2
- package/dist/registry/vue/alert.json +1 -1
- package/dist/registry/vue/avatar-group.json +1 -1
- package/dist/registry/vue/avatar.json +1 -1
- package/dist/registry/vue/badge.json +1 -1
- package/dist/registry/vue/button.json +1 -1
- package/dist/registry/vue/calendar.json +1 -1
- package/dist/registry/vue/card.json +1 -1
- package/dist/registry/vue/cascader.json +2 -2
- package/dist/registry/vue/checkbox.json +1 -1
- package/dist/registry/vue/context-menu.json +3 -3
- package/dist/registry/vue/currency-input.json +1 -1
- package/dist/registry/vue/date-picker.json +2 -2
- package/dist/registry/vue/date-range-picker.json +2 -2
- package/dist/registry/vue/date-shared.json +8 -2
- package/dist/registry/vue/dialog.json +2 -2
- package/dist/registry/vue/drawer.json +2 -2
- package/dist/registry/vue/dropdown-menu.json +2 -2
- package/dist/registry/vue/empty.json +1 -1
- package/dist/registry/vue/form-render.json +1 -1
- package/dist/registry/vue/form.json +1 -1
- package/dist/registry/vue/icon-shared.json +1 -1
- package/dist/registry/vue/input.json +1 -1
- package/dist/registry/vue/label.json +1 -1
- package/dist/registry/vue/month-picker.json +2 -2
- package/dist/registry/vue/number-input.json +1 -1
- package/dist/registry/vue/overlay-shared.json +13 -1
- package/dist/registry/vue/password-input.json +1 -1
- package/dist/registry/vue/pin-input.json +1 -1
- package/dist/registry/vue/popconfirm.json +1 -1
- package/dist/registry/vue/popover.json +2 -2
- package/dist/registry/vue/progress.json +1 -1
- package/dist/registry/vue/radio-group.json +1 -1
- package/dist/registry/vue/registry.json +52 -52
- package/dist/registry/vue/select.json +2 -2
- package/dist/registry/vue/separator.json +1 -1
- package/dist/registry/vue/skeleton.json +1 -1
- package/dist/registry/vue/slider.json +1 -1
- package/dist/registry/vue/slot.json +1 -1
- package/dist/registry/vue/spin.json +1 -1
- package/dist/registry/vue/switch.json +1 -1
- package/dist/registry/vue/table-render.json +4 -4
- package/dist/registry/vue/tabs.json +1 -1
- package/dist/registry/vue/textarea.json +1 -1
- package/dist/registry/vue/timeline.json +1 -1
- package/dist/registry/vue/toast.json +1 -1
- package/dist/registry/vue/tokens.json +2 -2
- package/dist/registry/vue/tooltip.json +2 -2
- package/dist/registry/vue/tree-select.json +2 -2
- package/dist/registry/vue/tree-shared.json +1 -1
- package/dist/registry/vue/utils.json +1 -1
- package/dist/registry/vue/week-picker.json +2 -2
- package/dist/registry/vue/year-picker.json +2 -2
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1510,6 +1510,88 @@ function _sfc_render(_ctx, _cache) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
var CloseIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$59, [["render", _sfc_render]]);
|
|
1512
1512
|
//#endregion
|
|
1513
|
+
//#region src/components/overlay-shared/sandbox.ts
|
|
1514
|
+
/**
|
|
1515
|
+
* 微前端沙箱探测(按渲染拓扑分派,框架无关)。
|
|
1516
|
+
*
|
|
1517
|
+
* 拓扑三分:
|
|
1518
|
+
* - 同文档(无沙箱 / qiankun / micro-app light DOM / 降级 iframe):absolute 正确
|
|
1519
|
+
* - 真 shadow DOM(web component 沙箱 / micro-app shadowDOM 模式):absolute 正确,
|
|
1520
|
+
* 由组件的 `getRootNode() instanceof ShadowRoot` 检测命中
|
|
1521
|
+
* - graft 型(wujie):iframe 文档树 graft 进 shadowRoot 渲染,absolute 输出视口系
|
|
1522
|
+
* 坐标但包含块是 graft body → 错位;fixed 以最近视口为包含块,是唯一正确解
|
|
1523
|
+
*
|
|
1524
|
+
* 安全性论证:非 graft 拓扑下 absolute 与 fixed 坐标等价(包含块同为最近视口),
|
|
1525
|
+
* iframe realm 下默认 fixed 零副作用;跨域 iframe 下 self/top 仅引用比较,
|
|
1526
|
+
* 不读属性,无 SecurityError。
|
|
1527
|
+
*
|
|
1528
|
+
* 已知边界:
|
|
1529
|
+
* - fixed 元素祖先有 transform/filter 时包含块被劫持(宿主布局应避免;graft 下
|
|
1530
|
+
* absolute 的 offsetParent 解析本就失效,错法不同而非新增错误)
|
|
1531
|
+
* - fixed 面板在祖先滚动时依赖 autoUpdate 重算,重算前一帧有视口驻留(瞬时视觉差异)
|
|
1532
|
+
* - 若未来出现「非 iframe 的 graft 型沙箱」,本探测无法覆盖,需追加该沙箱的 marker 信号
|
|
1533
|
+
*/
|
|
1534
|
+
/** 组件 JS 是否运行在 iframe realm(wujie / iframe 型沙箱 / 普通 iframe 嵌入) */
|
|
1535
|
+
function isInIframeRealm() {
|
|
1536
|
+
return typeof window !== "undefined" && window.self !== window.top;
|
|
1537
|
+
}
|
|
1538
|
+
/** 是否处于 wujie graft 沙箱(getRootNode/父链被 wujie patch 伪装,结构探测失效,
|
|
1539
|
+
* 依赖官方标记;wujie 在子应用脚本执行前注入,时序可靠) */
|
|
1540
|
+
function isInWujie() {
|
|
1541
|
+
return typeof window !== "undefined" && window.__POWERED_BY_WUJIE__ === true;
|
|
1542
|
+
}
|
|
1543
|
+
//#endregion
|
|
1544
|
+
//#region src/components/overlay-shared/useSandboxOverlay.ts
|
|
1545
|
+
/**
|
|
1546
|
+
* 浮层沙箱适配公共层(Popover 0.5.3 修复的推广形态,机制与实测依据见 sandbox.ts 头注):
|
|
1547
|
+
* - useSandboxTeleportTarget:Teleport 目标降级(真 shadow DOM / wujie graft → 应用挂载容器)
|
|
1548
|
+
* - withSandboxStrategy:iframe realm 下 positioning.strategy 默认 fixed(absolute 包含块错位修正)
|
|
1549
|
+
*/
|
|
1550
|
+
/**
|
|
1551
|
+
* 浮层 Teleport 目标解析:显式 to > shadow DOM / wujie graft 自动降级 > body。
|
|
1552
|
+
*
|
|
1553
|
+
* app._container 在 mount 的 render 完成后才赋值(runtime-core 3.5.43:render L4337
|
|
1554
|
+
* → 赋值 L4340),而子组件 onMounted 在 render 内同步执行、届时仍为 undefined,
|
|
1555
|
+
* 故检测再延后一个微任务(mount 调用栈结束后 _container 必已赋值),结果存 ref
|
|
1556
|
+
* 驱动 computed 重算;getCurrentInstance 仅 setup 同步上下文可用,本函数须在
|
|
1557
|
+
* setup 顶层调用。共享 Vue(__MICRO_SHARED__)下各子应用 app._container 相互
|
|
1558
|
+
* 独立,检测按实例隔离。
|
|
1559
|
+
* 沙箱两类:真 shadow DOM 由 getRootNode() 命中;wujie graft 下 getRootNode/父链
|
|
1560
|
+
* 被 patch 伪装成 iframe 文档语义(实测),结构探测失效,须叠加官方标记位。
|
|
1561
|
+
* 其余微前端(qiankun / micro-app light DOM)body 即主文档 body,兜底正确。
|
|
1562
|
+
*
|
|
1563
|
+
* @param explicitTo 组件显式 to 的取值函数(响应式安全:computed 内重读)
|
|
1564
|
+
* @returns Teleport 目标(显式 to 优先,其次降级容器,兜底 body)
|
|
1565
|
+
*/
|
|
1566
|
+
function useSandboxTeleportTarget(explicitTo) {
|
|
1567
|
+
const instance = getCurrentInstance();
|
|
1568
|
+
const inWujie = isInWujie();
|
|
1569
|
+
const detectedTarget = ref("body");
|
|
1570
|
+
onMounted(() => {
|
|
1571
|
+
queueMicrotask(() => {
|
|
1572
|
+
if (explicitTo()) return;
|
|
1573
|
+
const container = (instance?.appContext.app)?._container;
|
|
1574
|
+
if (container && (container.getRootNode() instanceof ShadowRoot || inWujie)) detectedTarget.value = container;
|
|
1575
|
+
});
|
|
1576
|
+
});
|
|
1577
|
+
return computed(() => explicitTo() ?? detectedTarget.value);
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* iframe realm(wujie graft / iframe 型沙箱 / iframe 嵌入)且用户未显式指定
|
|
1581
|
+
* strategy 时默认 fixed:非 graft 拓扑下 fixed 与 absolute 坐标等价(零副作用),
|
|
1582
|
+
* graft 拓扑(wujie)absolute 包含块错位,fixed 是唯一正确解。
|
|
1583
|
+
* 纯函数、原地写入 merged(调用方传入自己的合成对象,无共享引用风险);
|
|
1584
|
+
* user.strategy 显式给出(含 null 意义上的「未传」判定用 == null)时以其为准。
|
|
1585
|
+
*
|
|
1586
|
+
* @param user 用户原始 positioning(undefined 或经 attrs 透传的合成对象)
|
|
1587
|
+
* @param merged 组件已合成 placement/sameWidth 等的基础 positioning(将被写入)
|
|
1588
|
+
* @returns 写入 strategy 后的 merged(同引用,便于 computed 直接 return)
|
|
1589
|
+
*/
|
|
1590
|
+
function withSandboxStrategy(user, merged) {
|
|
1591
|
+
if (isInIframeRealm() && user?.strategy == null) merged.strategy = "fixed";
|
|
1592
|
+
return merged;
|
|
1593
|
+
}
|
|
1594
|
+
//#endregion
|
|
1513
1595
|
//#region src/components/date-shared/PickerShell.vue
|
|
1514
1596
|
/** 单值日期族(Date/Month/Year/Week)共用外壳:触发器 + 清空/日历按钮 + 弹层容器。 */
|
|
1515
1597
|
const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
@@ -1578,6 +1660,12 @@ const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
|
1578
1660
|
type: Function,
|
|
1579
1661
|
required: true
|
|
1580
1662
|
},
|
|
1663
|
+
/** Ark DatePicker Root 的 positioning 配置(placement/gutter 等);
|
|
1664
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed */
|
|
1665
|
+
positioning: {
|
|
1666
|
+
type: Object,
|
|
1667
|
+
default: void 0
|
|
1668
|
+
},
|
|
1581
1669
|
class: {
|
|
1582
1670
|
type: String,
|
|
1583
1671
|
default: void 0
|
|
@@ -1592,6 +1680,8 @@ const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
|
1592
1680
|
if (props.disabled || props.readOnly || props.open) return;
|
|
1593
1681
|
emit("update:open", true);
|
|
1594
1682
|
}
|
|
1683
|
+
const teleportTarget = useSandboxTeleportTarget(() => void 0);
|
|
1684
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
1595
1685
|
return (_ctx, _cache) => {
|
|
1596
1686
|
return openBlock(), createBlock(unref(DatePicker).Root, {
|
|
1597
1687
|
"model-value": __props.modelValue,
|
|
@@ -1607,6 +1697,7 @@ const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
|
1607
1697
|
disabled: __props.disabled,
|
|
1608
1698
|
format: __props.format,
|
|
1609
1699
|
parse: __props.parse,
|
|
1700
|
+
positioning: rootPositioning.value,
|
|
1610
1701
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
|
|
1611
1702
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => emit("update:open", $event))
|
|
1612
1703
|
}, {
|
|
@@ -1638,14 +1729,14 @@ const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
|
1638
1729
|
]),
|
|
1639
1730
|
_: 1
|
|
1640
1731
|
}, 8, ["class", "data-invalid"]),
|
|
1641
|
-
createCommentVNode(" 弹层 Teleport
|
|
1642
|
-
(openBlock(), createBlock(Teleport, { to:
|
|
1732
|
+
createCommentVNode(" 弹层 Teleport:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患;\n 目标经沙箱适配降级(shadow DOM / wujie graft → 应用挂载容器) "),
|
|
1733
|
+
(openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createVNode(unref(DatePicker).Positioner, { class: "z-[var(--z-overlay)]" }, {
|
|
1643
1734
|
default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-[var(--z-overlay)] rounded-md border shadow-md")) }, {
|
|
1644
1735
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1645
1736
|
_: 3
|
|
1646
1737
|
}, 8, ["class"])]),
|
|
1647
1738
|
_: 3
|
|
1648
|
-
})]))
|
|
1739
|
+
})], 8, ["to"]))
|
|
1649
1740
|
]),
|
|
1650
1741
|
_: 3
|
|
1651
1742
|
}, 8, [
|
|
@@ -1661,7 +1752,8 @@ const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
|
1661
1752
|
"read-only",
|
|
1662
1753
|
"disabled",
|
|
1663
1754
|
"format",
|
|
1664
|
-
"parse"
|
|
1755
|
+
"parse",
|
|
1756
|
+
"positioning"
|
|
1665
1757
|
]);
|
|
1666
1758
|
};
|
|
1667
1759
|
}
|
|
@@ -1785,6 +1877,13 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
|
1785
1877
|
type: String,
|
|
1786
1878
|
default: "zh-CN"
|
|
1787
1879
|
},
|
|
1880
|
+
/** Ark DatePicker Root 的 positioning 配置(placement/gutter 等);
|
|
1881
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
1882
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
1883
|
+
positioning: {
|
|
1884
|
+
type: Object,
|
|
1885
|
+
default: void 0
|
|
1886
|
+
},
|
|
1788
1887
|
class: {
|
|
1789
1888
|
type: String,
|
|
1790
1889
|
default: void 0
|
|
@@ -1822,6 +1921,7 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
|
1822
1921
|
disabled: props.disabled,
|
|
1823
1922
|
invalid: props.invalid,
|
|
1824
1923
|
placeholder: props.placeholder,
|
|
1924
|
+
positioning: props.positioning,
|
|
1825
1925
|
class: props.class,
|
|
1826
1926
|
format: unref(formatIsoDate),
|
|
1827
1927
|
parse: unref(parseIsoDate),
|
|
@@ -1842,6 +1942,7 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
|
1842
1942
|
"disabled",
|
|
1843
1943
|
"invalid",
|
|
1844
1944
|
"placeholder",
|
|
1945
|
+
"positioning",
|
|
1845
1946
|
"class",
|
|
1846
1947
|
"format",
|
|
1847
1948
|
"parse",
|
|
@@ -1921,6 +2022,12 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1921
2022
|
type: String,
|
|
1922
2023
|
default: "zh-CN"
|
|
1923
2024
|
},
|
|
2025
|
+
/** Ark DatePicker Root 的 positioning 配置(placement/gutter 等);
|
|
2026
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed */
|
|
2027
|
+
positioning: {
|
|
2028
|
+
type: Object,
|
|
2029
|
+
default: void 0
|
|
2030
|
+
},
|
|
1924
2031
|
class: {
|
|
1925
2032
|
type: String,
|
|
1926
2033
|
default: void 0
|
|
@@ -1956,6 +2063,8 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1956
2063
|
defaultValue: () => props.defaultOpen,
|
|
1957
2064
|
onChange: (open) => emit("update:open", open)
|
|
1958
2065
|
});
|
|
2066
|
+
const teleportTarget = useSandboxTeleportTarget(() => void 0);
|
|
2067
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
1959
2068
|
function openFromInput() {
|
|
1960
2069
|
if (props.disabled || props.readOnly || isOpen.value) return;
|
|
1961
2070
|
setOpen(true);
|
|
@@ -1976,6 +2085,7 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1976
2085
|
disabled: props.disabled,
|
|
1977
2086
|
format: unref(formatIsoDate),
|
|
1978
2087
|
parse: unref(parseIsoDate),
|
|
2088
|
+
positioning: rootPositioning.value,
|
|
1979
2089
|
"onUpdate:modelValue": handleValueUpdate,
|
|
1980
2090
|
"onUpdate:open": unref(setOpen)
|
|
1981
2091
|
}, {
|
|
@@ -2030,14 +2140,14 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
2030
2140
|
]),
|
|
2031
2141
|
_: 1
|
|
2032
2142
|
}, 8, ["class", "data-invalid"]),
|
|
2033
|
-
createCommentVNode(" 弹层 Teleport
|
|
2034
|
-
(openBlock(), createBlock(Teleport, { to:
|
|
2143
|
+
createCommentVNode(" 弹层 Teleport:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患;\n 目标经沙箱适配降级(shadow DOM / wujie graft → 应用挂载容器) "),
|
|
2144
|
+
(openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createVNode(unref(DatePicker).Positioner, { class: "z-[var(--z-overlay)]" }, {
|
|
2035
2145
|
default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-[var(--z-overlay)] rounded-md border shadow-md")) }, {
|
|
2036
2146
|
default: withCtx(() => [createVNode(unref(_sfc_main$6), { "num-of-months": props.numOfMonths }, null, 8, ["num-of-months"])]),
|
|
2037
2147
|
_: 1
|
|
2038
2148
|
}, 8, ["class"])]),
|
|
2039
2149
|
_: 1
|
|
2040
|
-
})]))
|
|
2150
|
+
})], 8, ["to"]))
|
|
2041
2151
|
]),
|
|
2042
2152
|
_: 1
|
|
2043
2153
|
}, 8, [
|
|
@@ -2053,6 +2163,7 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
2053
2163
|
"disabled",
|
|
2054
2164
|
"format",
|
|
2055
2165
|
"parse",
|
|
2166
|
+
"positioning",
|
|
2056
2167
|
"onUpdate:open"
|
|
2057
2168
|
])], 2112);
|
|
2058
2169
|
};
|
|
@@ -2119,6 +2230,13 @@ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
|
|
|
2119
2230
|
type: String,
|
|
2120
2231
|
default: "zh-CN"
|
|
2121
2232
|
},
|
|
2233
|
+
/** Ark DatePicker Root 的 positioning 配置(placement/gutter 等);
|
|
2234
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
2235
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
2236
|
+
positioning: {
|
|
2237
|
+
type: Object,
|
|
2238
|
+
default: void 0
|
|
2239
|
+
},
|
|
2122
2240
|
class: {
|
|
2123
2241
|
type: String,
|
|
2124
2242
|
default: void 0
|
|
@@ -2160,6 +2278,7 @@ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
|
|
|
2160
2278
|
disabled: props.disabled,
|
|
2161
2279
|
invalid: props.invalid,
|
|
2162
2280
|
placeholder: props.placeholder,
|
|
2281
|
+
positioning: props.positioning,
|
|
2163
2282
|
class: props.class,
|
|
2164
2283
|
format: unref(formatIsoMonth),
|
|
2165
2284
|
parse: unref(parseIsoMonth),
|
|
@@ -2179,6 +2298,7 @@ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
|
|
|
2179
2298
|
"disabled",
|
|
2180
2299
|
"invalid",
|
|
2181
2300
|
"placeholder",
|
|
2301
|
+
"positioning",
|
|
2182
2302
|
"class",
|
|
2183
2303
|
"format",
|
|
2184
2304
|
"parse",
|
|
@@ -2523,6 +2643,13 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
|
|
|
2523
2643
|
type: String,
|
|
2524
2644
|
default: "zh-CN"
|
|
2525
2645
|
},
|
|
2646
|
+
/** Ark DatePicker Root 的 positioning 配置(placement/gutter 等);
|
|
2647
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
2648
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
2649
|
+
positioning: {
|
|
2650
|
+
type: Object,
|
|
2651
|
+
default: void 0
|
|
2652
|
+
},
|
|
2526
2653
|
class: {
|
|
2527
2654
|
type: String,
|
|
2528
2655
|
default: void 0
|
|
@@ -2573,6 +2700,7 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
|
|
|
2573
2700
|
disabled: props.disabled,
|
|
2574
2701
|
invalid: props.invalid,
|
|
2575
2702
|
placeholder: props.placeholder,
|
|
2703
|
+
positioning: props.positioning,
|
|
2576
2704
|
class: props.class,
|
|
2577
2705
|
format: formatDate,
|
|
2578
2706
|
parse: parseDate,
|
|
@@ -2596,6 +2724,7 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
|
|
|
2596
2724
|
"disabled",
|
|
2597
2725
|
"invalid",
|
|
2598
2726
|
"placeholder",
|
|
2727
|
+
"positioning",
|
|
2599
2728
|
"class",
|
|
2600
2729
|
"onUpdate:modelValue",
|
|
2601
2730
|
"onUpdate:open"
|
|
@@ -2664,6 +2793,13 @@ const _sfc_main$52 = /*@__PURE__*/ defineComponent({
|
|
|
2664
2793
|
type: String,
|
|
2665
2794
|
default: "zh-CN"
|
|
2666
2795
|
},
|
|
2796
|
+
/** Ark DatePicker Root 的 positioning 配置(placement/gutter 等);
|
|
2797
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
2798
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
2799
|
+
positioning: {
|
|
2800
|
+
type: Object,
|
|
2801
|
+
default: void 0
|
|
2802
|
+
},
|
|
2667
2803
|
class: {
|
|
2668
2804
|
type: String,
|
|
2669
2805
|
default: void 0
|
|
@@ -2702,6 +2838,7 @@ const _sfc_main$52 = /*@__PURE__*/ defineComponent({
|
|
|
2702
2838
|
disabled: props.disabled,
|
|
2703
2839
|
invalid: props.invalid,
|
|
2704
2840
|
placeholder: props.placeholder,
|
|
2841
|
+
positioning: props.positioning,
|
|
2705
2842
|
class: props.class,
|
|
2706
2843
|
format: unref(formatIsoYear),
|
|
2707
2844
|
parse: unref(parseIsoYear),
|
|
@@ -2721,6 +2858,7 @@ const _sfc_main$52 = /*@__PURE__*/ defineComponent({
|
|
|
2721
2858
|
"disabled",
|
|
2722
2859
|
"invalid",
|
|
2723
2860
|
"placeholder",
|
|
2861
|
+
"positioning",
|
|
2724
2862
|
"class",
|
|
2725
2863
|
"format",
|
|
2726
2864
|
"parse",
|
|
@@ -2837,6 +2975,55 @@ function renderInputItem(options = {}) {
|
|
|
2837
2975
|
});
|
|
2838
2976
|
}
|
|
2839
2977
|
//#endregion
|
|
2978
|
+
//#region src/components/overlay-shared/useOverlayIds.ts
|
|
2979
|
+
/**
|
|
2980
|
+
* 浮层组件 ids 全量覆盖(无冒号化)。
|
|
2981
|
+
*
|
|
2982
|
+
* 背景:zag 缺省 id 惯例形如 `popover:{scope.id}:title`(各包 *.dom.js get*Id
|
|
2983
|
+
* 兜底分支),而部分 part 元素并不总是渲染(title/description/anchor/clearTrigger/
|
|
2984
|
+
* arrow 等),machine 仍会按状态变更反复 getById 查询。wujie 沙箱把
|
|
2985
|
+
* document.getElementById patch 成 `querySelector('[id="…"]')` miss 后兜底
|
|
2986
|
+
* `querySelector('#'+id)`(wujie proxy.js),冒号未转义 → SyntaxError → catch 打出
|
|
2987
|
+
* "[wujie warn] 不支持document.getElementById()传入特殊字符…" 且打开期间反复刷屏。
|
|
2988
|
+
* ids 派生自 Vue useId()(v-0 格式,无冒号)后,未命中也是合法选择器,静默返回
|
|
2989
|
+
* null,告警消除;原生环境 getElementById 不解析选择器,行为零变化。
|
|
2990
|
+
*
|
|
2991
|
+
* 用法(组件 setup 内,inheritAttrs: false 透传模式下同样适用):
|
|
2992
|
+
* const { ids, resolveId } = useOverlayIds(attrs, {
|
|
2993
|
+
* primary: "content",
|
|
2994
|
+
* parts: ["title", "description", "anchor", "trigger", "closeTrigger", "positioner", "arrow"],
|
|
2995
|
+
* });
|
|
2996
|
+
* // 模板:<ArkXxx.Root v-bind="attrs" :ids="ids">(:ids 须位于 v-bind="attrs" 之后)
|
|
2997
|
+
* // aria 手动接线取元素 id 时用 resolveId(part)(user 覆盖优先,与实际 DOM 一致)
|
|
2998
|
+
*
|
|
2999
|
+
* 边界:parts 只声明「字符串型覆盖口」的 part;函数型 part(如 select 的
|
|
3000
|
+
* item/itemGroup/itemGroupLabel——元素必渲染,[id="…"] 首查即命中,无炸点)不进
|
|
3001
|
+
* parts,由 user 经 attrs.ids 直传原样保留。user 永远最后展开:显式传入以其为准。
|
|
3002
|
+
*/
|
|
3003
|
+
function useOverlayIds(attrs, options) {
|
|
3004
|
+
const stemId = useId();
|
|
3005
|
+
const userIds = computed(() => attrs.ids ?? {});
|
|
3006
|
+
/** 默认派生值(不含 user 覆盖),独立于 ids 供 resolveId 回退;构造恒为字符串 */
|
|
3007
|
+
const buildBase = () => {
|
|
3008
|
+
const base = {};
|
|
3009
|
+
for (const part of options.parts) base[part] = part === options.primary ? stemId : `${stemId}-${part}`;
|
|
3010
|
+
return base;
|
|
3011
|
+
};
|
|
3012
|
+
const ids = computed(() => ({
|
|
3013
|
+
...buildBase(),
|
|
3014
|
+
...userIds.value
|
|
3015
|
+
}));
|
|
3016
|
+
/** aria 接线用:user 字符串覆盖优先,函数型 user 回退默认值 */
|
|
3017
|
+
const resolveId = (part) => {
|
|
3018
|
+
const v = userIds.value[part];
|
|
3019
|
+
return typeof v === "string" ? v : buildBase()[part];
|
|
3020
|
+
};
|
|
3021
|
+
return {
|
|
3022
|
+
ids,
|
|
3023
|
+
resolveId
|
|
3024
|
+
};
|
|
3025
|
+
}
|
|
3026
|
+
//#endregion
|
|
2840
3027
|
//#region src/components/select/types.ts
|
|
2841
3028
|
function normalizeSelectItem(item) {
|
|
2842
3029
|
return typeof item === "string" ? {
|
|
@@ -2886,10 +3073,30 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
|
|
|
2886
3073
|
contentClass: {
|
|
2887
3074
|
type: String,
|
|
2888
3075
|
default: void 0
|
|
3076
|
+
},
|
|
3077
|
+
/** Ark Select Root 的 positioning 配置(placement/gutter 等);
|
|
3078
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
3079
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
3080
|
+
positioning: {
|
|
3081
|
+
type: Object,
|
|
3082
|
+
default: void 0
|
|
2889
3083
|
}
|
|
2890
3084
|
},
|
|
2891
3085
|
emits: ["update:modelValue", "update:open"],
|
|
2892
3086
|
setup(__props, { emit: __emit }) {
|
|
3087
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
3088
|
+
primary: "content",
|
|
3089
|
+
parts: [
|
|
3090
|
+
"content",
|
|
3091
|
+
"root",
|
|
3092
|
+
"trigger",
|
|
3093
|
+
"control",
|
|
3094
|
+
"clearTrigger",
|
|
3095
|
+
"label",
|
|
3096
|
+
"hiddenSelect",
|
|
3097
|
+
"positioner"
|
|
3098
|
+
]
|
|
3099
|
+
});
|
|
2893
3100
|
const props = __props;
|
|
2894
3101
|
const emit = __emit;
|
|
2895
3102
|
const toArray = (v) => v === void 0 ? void 0 : [v];
|
|
@@ -2913,11 +3120,14 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
|
|
|
2913
3120
|
defaultValue: () => props.defaultOpen,
|
|
2914
3121
|
onChange: (open) => emit("update:open", open)
|
|
2915
3122
|
});
|
|
3123
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
2916
3124
|
return (_ctx, _cache) => {
|
|
2917
3125
|
return openBlock(), createBlock(unref(Select).Root, {
|
|
3126
|
+
ids: unref(rootIds),
|
|
2918
3127
|
collection: collection.value,
|
|
2919
3128
|
"model-value": toArray(modelValue.value),
|
|
2920
3129
|
open: unref(isOpen),
|
|
3130
|
+
positioning: rootPositioning.value,
|
|
2921
3131
|
"onUpdate:modelValue": handleModelUpdate,
|
|
2922
3132
|
"onUpdate:open": unref(setOpen)
|
|
2923
3133
|
}, {
|
|
@@ -2971,9 +3181,11 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
|
|
|
2971
3181
|
]),
|
|
2972
3182
|
_: 3
|
|
2973
3183
|
}, 8, [
|
|
3184
|
+
"ids",
|
|
2974
3185
|
"collection",
|
|
2975
3186
|
"model-value",
|
|
2976
3187
|
"open",
|
|
3188
|
+
"positioning",
|
|
2977
3189
|
"onUpdate:open"
|
|
2978
3190
|
]);
|
|
2979
3191
|
};
|
|
@@ -4072,6 +4284,12 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
4072
4284
|
type: Boolean,
|
|
4073
4285
|
default: false
|
|
4074
4286
|
},
|
|
4287
|
+
/** Ark Popover Root 的 positioning 配置(placement/gutter 等);
|
|
4288
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed */
|
|
4289
|
+
positioning: {
|
|
4290
|
+
type: Object,
|
|
4291
|
+
default: void 0
|
|
4292
|
+
},
|
|
4075
4293
|
class: {
|
|
4076
4294
|
type: String,
|
|
4077
4295
|
default: void 0
|
|
@@ -4083,6 +4301,19 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
4083
4301
|
"update:open"
|
|
4084
4302
|
],
|
|
4085
4303
|
setup(__props, { emit: __emit }) {
|
|
4304
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
4305
|
+
primary: "content",
|
|
4306
|
+
parts: [
|
|
4307
|
+
"content",
|
|
4308
|
+
"title",
|
|
4309
|
+
"description",
|
|
4310
|
+
"anchor",
|
|
4311
|
+
"trigger",
|
|
4312
|
+
"closeTrigger",
|
|
4313
|
+
"positioner",
|
|
4314
|
+
"arrow"
|
|
4315
|
+
]
|
|
4316
|
+
});
|
|
4086
4317
|
const props = __props;
|
|
4087
4318
|
const emit = __emit;
|
|
4088
4319
|
if (import.meta.env.DEV && getCurrentInstance()?.vnode.props?.["onUpdate:show"]) console.warn("[tu-design] <Cascader> update:show 已弃用,请改用 update:open(v-model:open)。");
|
|
@@ -4123,6 +4354,8 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
4123
4354
|
emit("update:show", open);
|
|
4124
4355
|
}
|
|
4125
4356
|
});
|
|
4357
|
+
const teleportTarget = useSandboxTeleportTarget(() => void 0);
|
|
4358
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
4126
4359
|
function openFromInput() {
|
|
4127
4360
|
if (props.disabled || isOpen.value) return;
|
|
4128
4361
|
syncPanelWidth();
|
|
@@ -4277,7 +4510,9 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
4277
4510
|
});
|
|
4278
4511
|
return (_ctx, _cache) => {
|
|
4279
4512
|
return openBlock(), createBlock(unref(Popover).Root, {
|
|
4513
|
+
ids: unref(rootIds),
|
|
4280
4514
|
open: unref(isOpen),
|
|
4515
|
+
positioning: rootPositioning.value,
|
|
4281
4516
|
"onUpdate:open": unref(setOpen)
|
|
4282
4517
|
}, {
|
|
4283
4518
|
default: withCtx(() => [createVNode(unref(Popover).Anchor, { "as-child": "" }, {
|
|
@@ -4313,7 +4548,7 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
4313
4548
|
onClick: withModifiers(handleClear, ["stop"])
|
|
4314
4549
|
}, [createVNode(CloseIcon_default, { class: "size-4 shrink-0" })])) : createCommentVNode("v-if", true), createVNode(ChevronIcon_default, { class: normalizeClass(unref(cn)("size-4 shrink-0 text-muted-foreground transition-transform", unref(isOpen) ? "-rotate-90" : "rotate-90")) }, null, 8, ["class"])])], 16, _hoisted_1$16)]),
|
|
4315
4550
|
_: 1
|
|
4316
|
-
}), (openBlock(), createBlock(Teleport, { to:
|
|
4551
|
+
}), (openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createVNode(unref(Popover).Positioner, { class: "z-[var(--z-overlay)]" }, {
|
|
4317
4552
|
default: withCtx(() => [createVNode(unref(Popover).Content, {
|
|
4318
4553
|
class: normalizeClass(unref(cn)("bg-popover text-popover-foreground z-[var(--z-overlay)] rounded-md border p-0 shadow-md outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95")),
|
|
4319
4554
|
style: normalizeStyle({ minWidth: panelMinWidth.value }),
|
|
@@ -4343,9 +4578,14 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
4343
4578
|
_: 1
|
|
4344
4579
|
}, 8, ["class", "style"])]),
|
|
4345
4580
|
_: 1
|
|
4346
|
-
})]))]),
|
|
4581
|
+
})], 8, ["to"]))]),
|
|
4347
4582
|
_: 1
|
|
4348
|
-
}, 8, [
|
|
4583
|
+
}, 8, [
|
|
4584
|
+
"ids",
|
|
4585
|
+
"open",
|
|
4586
|
+
"positioning",
|
|
4587
|
+
"onUpdate:open"
|
|
4588
|
+
]);
|
|
4349
4589
|
};
|
|
4350
4590
|
}
|
|
4351
4591
|
});
|
|
@@ -4612,6 +4852,12 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
|
4612
4852
|
type: Boolean,
|
|
4613
4853
|
default: false
|
|
4614
4854
|
},
|
|
4855
|
+
/** Ark Popover Root 的 positioning 配置(placement/gutter 等);
|
|
4856
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed */
|
|
4857
|
+
positioning: {
|
|
4858
|
+
type: Object,
|
|
4859
|
+
default: void 0
|
|
4860
|
+
},
|
|
4615
4861
|
class: {
|
|
4616
4862
|
type: String,
|
|
4617
4863
|
default: void 0
|
|
@@ -4624,6 +4870,19 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
|
4624
4870
|
"update:expandedKeys"
|
|
4625
4871
|
],
|
|
4626
4872
|
setup(__props, { emit: __emit }) {
|
|
4873
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
4874
|
+
primary: "content",
|
|
4875
|
+
parts: [
|
|
4876
|
+
"content",
|
|
4877
|
+
"title",
|
|
4878
|
+
"description",
|
|
4879
|
+
"anchor",
|
|
4880
|
+
"trigger",
|
|
4881
|
+
"closeTrigger",
|
|
4882
|
+
"positioner",
|
|
4883
|
+
"arrow"
|
|
4884
|
+
]
|
|
4885
|
+
});
|
|
4627
4886
|
const props = __props;
|
|
4628
4887
|
const emit = __emit;
|
|
4629
4888
|
if (import.meta.env.DEV && getCurrentInstance()?.vnode.props?.["onUpdate:show"]) console.warn("[tu-design] <TreeSelect> update:show 已弃用,请改用 update:open(v-model:open)。");
|
|
@@ -4734,6 +4993,8 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
|
4734
4993
|
emit("update:show", open);
|
|
4735
4994
|
}
|
|
4736
4995
|
});
|
|
4996
|
+
const teleportTarget = useSandboxTeleportTarget(() => void 0);
|
|
4997
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
4737
4998
|
function openFromInput() {
|
|
4738
4999
|
if (props.disabled || isOpen.value) return;
|
|
4739
5000
|
syncPanelWidth();
|
|
@@ -4826,7 +5087,9 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
|
4826
5087
|
});
|
|
4827
5088
|
return (_ctx, _cache) => {
|
|
4828
5089
|
return openBlock(), createBlock(unref(Popover).Root, {
|
|
5090
|
+
ids: unref(rootIds),
|
|
4829
5091
|
open: unref(isOpen),
|
|
5092
|
+
positioning: rootPositioning.value,
|
|
4830
5093
|
"onUpdate:open": unref(setOpen)
|
|
4831
5094
|
}, {
|
|
4832
5095
|
default: withCtx(() => [
|
|
@@ -4884,8 +5147,8 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
|
4884
5147
|
}, [createVNode(CloseIcon_default, { class: "size-4 shrink-0" })])) : createCommentVNode("v-if", true), createVNode(ChevronIcon_default, { class: normalizeClass(unref(cn)("size-4 shrink-0 text-muted-foreground transition-transform", unref(isOpen) ? "-rotate-90" : "rotate-90")) }, null, 8, ["class"])])], 16, _hoisted_1$14)]),
|
|
4885
5148
|
_: 1
|
|
4886
5149
|
}),
|
|
4887
|
-
createCommentVNode(" 弹层 Teleport
|
|
4888
|
-
(openBlock(), createBlock(Teleport, { to:
|
|
5150
|
+
createCommentVNode(" 弹层 Teleport:脱离表单 DOM,消除 overflow 容器裁剪隐患(DatePicker 同款);\n 目标经沙箱适配降级(shadow DOM / wujie graft → 应用挂载容器) "),
|
|
5151
|
+
(openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createVNode(unref(Popover).Positioner, { class: "z-[var(--z-overlay)]" }, {
|
|
4889
5152
|
default: withCtx(() => [createVNode(unref(Popover).Content, {
|
|
4890
5153
|
class: normalizeClass(unref(cn)("bg-popover text-popover-foreground z-[var(--z-overlay)] rounded-md border p-0 shadow-md outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95")),
|
|
4891
5154
|
style: normalizeStyle({ minWidth: panelMinWidth.value }),
|
|
@@ -4913,10 +5176,15 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
|
4913
5176
|
_: 1
|
|
4914
5177
|
}, 8, ["class", "style"])]),
|
|
4915
5178
|
_: 1
|
|
4916
|
-
})]))
|
|
5179
|
+
})], 8, ["to"]))
|
|
4917
5180
|
]),
|
|
4918
5181
|
_: 1
|
|
4919
|
-
}, 8, [
|
|
5182
|
+
}, 8, [
|
|
5183
|
+
"ids",
|
|
5184
|
+
"open",
|
|
5185
|
+
"positioning",
|
|
5186
|
+
"onUpdate:open"
|
|
5187
|
+
]);
|
|
4920
5188
|
};
|
|
4921
5189
|
}
|
|
4922
5190
|
});
|
|
@@ -5530,6 +5798,18 @@ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
|
|
|
5530
5798
|
},
|
|
5531
5799
|
emits: ["update:open"],
|
|
5532
5800
|
setup(__props, { emit: __emit }) {
|
|
5801
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
5802
|
+
primary: "content",
|
|
5803
|
+
parts: [
|
|
5804
|
+
"content",
|
|
5805
|
+
"title",
|
|
5806
|
+
"description",
|
|
5807
|
+
"trigger",
|
|
5808
|
+
"closeTrigger",
|
|
5809
|
+
"positioner",
|
|
5810
|
+
"backdrop"
|
|
5811
|
+
]
|
|
5812
|
+
});
|
|
5533
5813
|
const props = __props;
|
|
5534
5814
|
const emit = __emit;
|
|
5535
5815
|
const { isOpen, setOpen } = useControlledBoolean({
|
|
@@ -5546,6 +5826,7 @@ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
|
|
|
5546
5826
|
const contentClass = computed(() => cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed left-1/2 top-1/2 z-[var(--z-overlay)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:max-w-lg", props.contentClass));
|
|
5547
5827
|
return (_ctx, _cache) => {
|
|
5548
5828
|
return openBlock(), createBlock(unref(Dialog).Root, {
|
|
5829
|
+
ids: unref(rootIds),
|
|
5549
5830
|
open: unref(isOpen),
|
|
5550
5831
|
"lazy-mount": props.lazyMount,
|
|
5551
5832
|
"unmount-on-exit": props.unmountOnExit,
|
|
@@ -5597,6 +5878,7 @@ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
|
|
|
5597
5878
|
]),
|
|
5598
5879
|
_: 3
|
|
5599
5880
|
}, 8, [
|
|
5881
|
+
"ids",
|
|
5600
5882
|
"open",
|
|
5601
5883
|
"lazy-mount",
|
|
5602
5884
|
"unmount-on-exit",
|
|
@@ -5692,6 +5974,13 @@ const _sfc_main$16 = /*@__PURE__*/ defineComponent({
|
|
|
5692
5974
|
contentClass: {
|
|
5693
5975
|
type: String,
|
|
5694
5976
|
default: void 0
|
|
5977
|
+
},
|
|
5978
|
+
/** Ark Menu Root 的 positioning 配置(placement/gutter 等);
|
|
5979
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
5980
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
5981
|
+
positioning: {
|
|
5982
|
+
type: Object,
|
|
5983
|
+
default: void 0
|
|
5695
5984
|
}
|
|
5696
5985
|
},
|
|
5697
5986
|
emits: ["update:open", "select"],
|
|
@@ -5704,6 +5993,7 @@ const _sfc_main$16 = /*@__PURE__*/ defineComponent({
|
|
|
5704
5993
|
defaultValue: () => props.defaultOpen,
|
|
5705
5994
|
onChange: (open) => emit("update:open", open)
|
|
5706
5995
|
});
|
|
5996
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
5707
5997
|
function handleSelect(details) {
|
|
5708
5998
|
emit("select", details);
|
|
5709
5999
|
}
|
|
@@ -5712,6 +6002,7 @@ const _sfc_main$16 = /*@__PURE__*/ defineComponent({
|
|
|
5712
6002
|
open: unref(isOpen),
|
|
5713
6003
|
"lazy-mount": props.lazyMount,
|
|
5714
6004
|
"unmount-on-exit": props.unmountOnExit,
|
|
6005
|
+
positioning: rootPositioning.value,
|
|
5715
6006
|
"onUpdate:open": unref(setOpen),
|
|
5716
6007
|
onSelect: handleSelect
|
|
5717
6008
|
}, {
|
|
@@ -5741,6 +6032,7 @@ const _sfc_main$16 = /*@__PURE__*/ defineComponent({
|
|
|
5741
6032
|
"open",
|
|
5742
6033
|
"lazy-mount",
|
|
5743
6034
|
"unmount-on-exit",
|
|
6035
|
+
"positioning",
|
|
5744
6036
|
"onUpdate:open"
|
|
5745
6037
|
]);
|
|
5746
6038
|
};
|
|
@@ -5863,37 +6155,6 @@ const _sfc_main$32 = /*@__PURE__*/ defineComponent({
|
|
|
5863
6155
|
}
|
|
5864
6156
|
});
|
|
5865
6157
|
//#endregion
|
|
5866
|
-
//#region src/components/overlay-shared/sandbox.ts
|
|
5867
|
-
/**
|
|
5868
|
-
* 微前端沙箱探测(按渲染拓扑分派,框架无关)。
|
|
5869
|
-
*
|
|
5870
|
-
* 拓扑三分:
|
|
5871
|
-
* - 同文档(无沙箱 / qiankun / micro-app light DOM / 降级 iframe):absolute 正确
|
|
5872
|
-
* - 真 shadow DOM(web component 沙箱 / micro-app shadowDOM 模式):absolute 正确,
|
|
5873
|
-
* 由组件的 `getRootNode() instanceof ShadowRoot` 检测命中
|
|
5874
|
-
* - graft 型(wujie):iframe 文档树 graft 进 shadowRoot 渲染,absolute 输出视口系
|
|
5875
|
-
* 坐标但包含块是 graft body → 错位;fixed 以最近视口为包含块,是唯一正确解
|
|
5876
|
-
*
|
|
5877
|
-
* 安全性论证:非 graft 拓扑下 absolute 与 fixed 坐标等价(包含块同为最近视口),
|
|
5878
|
-
* iframe realm 下默认 fixed 零副作用;跨域 iframe 下 self/top 仅引用比较,
|
|
5879
|
-
* 不读属性,无 SecurityError。
|
|
5880
|
-
*
|
|
5881
|
-
* 已知边界:
|
|
5882
|
-
* - fixed 元素祖先有 transform/filter 时包含块被劫持(宿主布局应避免;graft 下
|
|
5883
|
-
* absolute 的 offsetParent 解析本就失效,错法不同而非新增错误)
|
|
5884
|
-
* - fixed 面板在祖先滚动时依赖 autoUpdate 重算,重算前一帧有视口驻留(瞬时视觉差异)
|
|
5885
|
-
* - 若未来出现「非 iframe 的 graft 型沙箱」,本探测无法覆盖,需追加该沙箱的 marker 信号
|
|
5886
|
-
*/
|
|
5887
|
-
/** 组件 JS 是否运行在 iframe realm(wujie / iframe 型沙箱 / 普通 iframe 嵌入) */
|
|
5888
|
-
function isInIframeRealm() {
|
|
5889
|
-
return typeof window !== "undefined" && window.self !== window.top;
|
|
5890
|
-
}
|
|
5891
|
-
/** 是否处于 wujie graft 沙箱(getRootNode/父链被 wujie patch 伪装,结构探测失效,
|
|
5892
|
-
* 依赖官方标记;wujie 在子应用脚本执行前注入,时序可靠) */
|
|
5893
|
-
function isInWujie() {
|
|
5894
|
-
return typeof window !== "undefined" && window.__POWERED_BY_WUJIE__ === true;
|
|
5895
|
-
}
|
|
5896
|
-
//#endregion
|
|
5897
6158
|
//#region src/components/popover/Popover.vue
|
|
5898
6159
|
const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
5899
6160
|
inheritAttrs: false,
|
|
@@ -6002,35 +6263,30 @@ const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
|
6002
6263
|
const emit = __emit;
|
|
6003
6264
|
const slots = useSlots();
|
|
6004
6265
|
const attrs = useAttrs();
|
|
6005
|
-
const
|
|
6006
|
-
const inWujie = isInWujie();
|
|
6007
|
-
const detectedTarget = ref("body");
|
|
6008
|
-
onMounted(() => {
|
|
6009
|
-
queueMicrotask(() => {
|
|
6010
|
-
if (props.to) return;
|
|
6011
|
-
const container = (instance?.appContext.app)?._container;
|
|
6012
|
-
if (container && (container.getRootNode() instanceof ShadowRoot || inWujie)) detectedTarget.value = container;
|
|
6013
|
-
});
|
|
6014
|
-
});
|
|
6015
|
-
const teleportTarget = computed(() => props.to ?? detectedTarget.value);
|
|
6266
|
+
const teleportTarget = useSandboxTeleportTarget(() => props.to);
|
|
6016
6267
|
const { isOpen, setOpen } = useControlledBoolean({
|
|
6017
6268
|
controlled: () => props.open,
|
|
6018
6269
|
defaultValue: () => props.defaultOpen,
|
|
6019
6270
|
onChange: (open) => emit("update:open", open)
|
|
6020
6271
|
});
|
|
6021
6272
|
const useNativeTrigger = computed(() => props.trigger === "click" && !props.disabled);
|
|
6022
|
-
const
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6273
|
+
const { ids: rootIds, resolveId } = useOverlayIds(attrs, {
|
|
6274
|
+
primary: "content",
|
|
6275
|
+
parts: [
|
|
6276
|
+
"content",
|
|
6277
|
+
"title",
|
|
6278
|
+
"description",
|
|
6279
|
+
"anchor",
|
|
6280
|
+
"trigger",
|
|
6281
|
+
"closeTrigger",
|
|
6282
|
+
"positioner",
|
|
6283
|
+
"arrow"
|
|
6284
|
+
]
|
|
6029
6285
|
});
|
|
6030
6286
|
const anchorAria = computed(() => useNativeTrigger.value ? {} : {
|
|
6031
6287
|
"aria-haspopup": "dialog",
|
|
6032
6288
|
"aria-expanded": isOpen.value,
|
|
6033
|
-
"aria-controls":
|
|
6289
|
+
"aria-controls": resolveId("content")
|
|
6034
6290
|
});
|
|
6035
6291
|
let timer = null;
|
|
6036
6292
|
const clearTimer = () => {
|
|
@@ -6069,17 +6325,14 @@ const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
|
6069
6325
|
schedule(false, props.closeDelay);
|
|
6070
6326
|
};
|
|
6071
6327
|
onBeforeUnmount(clearTimer);
|
|
6072
|
-
const inIframeRealm = isInIframeRealm();
|
|
6073
6328
|
const rootPositioning = computed(() => {
|
|
6074
6329
|
const user = attrs.positioning ?? {};
|
|
6075
6330
|
const placement = props.align === "center" ? props.side : `${props.side}-${props.align}`;
|
|
6076
|
-
|
|
6331
|
+
return withSandboxStrategy(user, {
|
|
6077
6332
|
...user,
|
|
6078
6333
|
placement,
|
|
6079
6334
|
sameWidth: props.matchTriggerWidth || user.sameWidth
|
|
6080
|
-
};
|
|
6081
|
-
if (inIframeRealm && user.strategy == null) merged.strategy = "fixed";
|
|
6082
|
-
return merged;
|
|
6335
|
+
});
|
|
6083
6336
|
});
|
|
6084
6337
|
const contentClass = computed(() => cn("bg-popover text-popover-foreground z-[var(--z-overlay)] w-72 rounded-md border p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", props.contentClass, props.contentProps?.["class"]));
|
|
6085
6338
|
const arrowClass = computed(() => cn("[--arrow-size:10px] [--arrow-background:var(--popover)]", props.arrowClass));
|
|
@@ -6089,7 +6342,7 @@ const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
|
6089
6342
|
return openBlock(), createBlock(unref(Popover).Root, mergeProps(unref(attrs), {
|
|
6090
6343
|
open: unref(isOpen),
|
|
6091
6344
|
positioning: rootPositioning.value,
|
|
6092
|
-
ids: rootIds
|
|
6345
|
+
ids: unref(rootIds),
|
|
6093
6346
|
"lazy-mount": props.lazyMount,
|
|
6094
6347
|
"unmount-on-exit": props.unmountOnExit,
|
|
6095
6348
|
"onUpdate:open": unref(setOpen)
|
|
@@ -6113,7 +6366,7 @@ const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
|
6113
6366
|
}, 16)], 2112)) : createCommentVNode("v-if", true),
|
|
6114
6367
|
createCommentVNode(" portal:Teleport(Ark Vue 原语不自带传送,浮层定位不受嵌套 overflow 裁剪影响);\n portal=false 时 disabled Teleport 面板留在原地;to 显式指定目标,\n 缺省时真 shadow DOM(getRootNode 检测)与 wujie graft(marker 检测)沙箱\n 自动降级为应用挂载容器,避免传送出 shadow root "),
|
|
6115
6368
|
(openBlock(), createBlock(Teleport, {
|
|
6116
|
-
to: teleportTarget
|
|
6369
|
+
to: unref(teleportTarget),
|
|
6117
6370
|
disabled: !props.portal
|
|
6118
6371
|
}, [createVNode(unref(Popover).Positioner, {
|
|
6119
6372
|
class: normalizeClass(positionerClass.value),
|
|
@@ -6506,10 +6759,26 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
|
|
|
6506
6759
|
contentProps: {
|
|
6507
6760
|
type: Object,
|
|
6508
6761
|
default: void 0
|
|
6762
|
+
},
|
|
6763
|
+
/** Ark Tooltip Root 的 positioning 配置(placement/gutter 等);
|
|
6764
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
6765
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
6766
|
+
positioning: {
|
|
6767
|
+
type: Object,
|
|
6768
|
+
default: void 0
|
|
6509
6769
|
}
|
|
6510
6770
|
},
|
|
6511
6771
|
emits: ["update:open"],
|
|
6512
6772
|
setup(__props, { emit: __emit }) {
|
|
6773
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
6774
|
+
primary: "content",
|
|
6775
|
+
parts: [
|
|
6776
|
+
"content",
|
|
6777
|
+
"trigger",
|
|
6778
|
+
"positioner",
|
|
6779
|
+
"arrow"
|
|
6780
|
+
]
|
|
6781
|
+
});
|
|
6513
6782
|
const props = __props;
|
|
6514
6783
|
const emit = __emit;
|
|
6515
6784
|
const slots = useSlots();
|
|
@@ -6518,13 +6787,16 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
|
|
|
6518
6787
|
defaultValue: () => props.defaultOpen,
|
|
6519
6788
|
onChange: (open) => emit("update:open", open)
|
|
6520
6789
|
});
|
|
6790
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
6521
6791
|
return (_ctx, _cache) => {
|
|
6522
6792
|
return openBlock(), createBlock(unref(Tooltip).Root, {
|
|
6793
|
+
ids: unref(rootIds),
|
|
6523
6794
|
open: unref(isOpen),
|
|
6524
6795
|
"open-delay": props.delayDuration,
|
|
6525
6796
|
"close-delay": props.closeDuration,
|
|
6526
6797
|
"lazy-mount": props.lazyMount,
|
|
6527
6798
|
"unmount-on-exit": props.unmountOnExit,
|
|
6799
|
+
positioning: rootPositioning.value,
|
|
6528
6800
|
"onUpdate:open": unref(setOpen)
|
|
6529
6801
|
}, {
|
|
6530
6802
|
default: withCtx(() => [
|
|
@@ -6546,11 +6818,13 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
|
|
|
6546
6818
|
]),
|
|
6547
6819
|
_: 3
|
|
6548
6820
|
}, 8, [
|
|
6821
|
+
"ids",
|
|
6549
6822
|
"open",
|
|
6550
6823
|
"open-delay",
|
|
6551
6824
|
"close-delay",
|
|
6552
6825
|
"lazy-mount",
|
|
6553
6826
|
"unmount-on-exit",
|
|
6827
|
+
"positioning",
|
|
6554
6828
|
"onUpdate:open"
|
|
6555
6829
|
]);
|
|
6556
6830
|
};
|
|
@@ -6560,6 +6834,8 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
|
|
|
6560
6834
|
//#region src/components/table-render/constants.ts
|
|
6561
6835
|
/** 选择列在 sticky 映射中的哨兵键(选择列不在 columns 内,表头/表体单独渲染) */
|
|
6562
6836
|
const SELECTION_CELL = "__selection__";
|
|
6837
|
+
/** 布局容器与 TableRender 的跨包填充协议 key:provide(true) 声明容器内 TableRender 应填满、内部滚动、表头固定 */
|
|
6838
|
+
const PAGE_TABLE_FILL_KEY = "tu-design:page-table-fill";
|
|
6563
6839
|
//#endregion
|
|
6564
6840
|
//#region src/components/table-render/sticky.ts
|
|
6565
6841
|
/** sticky 定位样式;head 为 true 时 z-index 高于表体(表头压住表体 sticky) */
|
|
@@ -7119,16 +7395,12 @@ function useTableRender(options) {
|
|
|
7119
7395
|
}
|
|
7120
7396
|
//#endregion
|
|
7121
7397
|
//#region src/components/table-render/TableRender.vue
|
|
7122
|
-
const _hoisted_1$8 = {
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
const
|
|
7127
|
-
const
|
|
7128
|
-
const _hoisted_4$2 = { class: "max-h-64 overflow-y-auto py-1" };
|
|
7129
|
-
const _hoisted_5$1 = ["data-column-key", "onClick"];
|
|
7130
|
-
const _hoisted_6$1 = { class: "min-w-0 flex-1 truncate" };
|
|
7131
|
-
const _hoisted_7$1 = {
|
|
7398
|
+
const _hoisted_1$8 = { class: "flex items-center justify-end gap-3 px-3 py-2" };
|
|
7399
|
+
const _hoisted_2$7 = ["disabled"];
|
|
7400
|
+
const _hoisted_3$4 = { class: "max-h-64 overflow-y-auto py-1" };
|
|
7401
|
+
const _hoisted_4$2 = ["data-column-key", "onClick"];
|
|
7402
|
+
const _hoisted_5$1 = { class: "min-w-0 flex-1 truncate" };
|
|
7403
|
+
const _hoisted_6$1 = {
|
|
7132
7404
|
key: 0,
|
|
7133
7405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7134
7406
|
viewBox: "0 0 24 24",
|
|
@@ -7140,24 +7412,23 @@ const _hoisted_7$1 = {
|
|
|
7140
7412
|
class: "text-muted-foreground size-3 shrink-0",
|
|
7141
7413
|
"aria-hidden": "true"
|
|
7142
7414
|
};
|
|
7143
|
-
const
|
|
7144
|
-
const
|
|
7145
|
-
const
|
|
7146
|
-
const _hoisted_11 = {
|
|
7415
|
+
const _hoisted_7$1 = ["aria-sort"];
|
|
7416
|
+
const _hoisted_8 = ["onClick"];
|
|
7417
|
+
const _hoisted_9 = {
|
|
7147
7418
|
"aria-hidden": "true",
|
|
7148
7419
|
class: "text-xs"
|
|
7149
7420
|
};
|
|
7150
|
-
const
|
|
7151
|
-
const
|
|
7421
|
+
const _hoisted_10 = { class: "[&_tr:last-child]:border-0" };
|
|
7422
|
+
const _hoisted_11 = { "data-error": "" };
|
|
7423
|
+
const _hoisted_12 = ["colspan"];
|
|
7424
|
+
const _hoisted_13 = { class: "flex flex-col items-center gap-3" };
|
|
7152
7425
|
const _hoisted_14 = ["colspan"];
|
|
7153
|
-
const _hoisted_15 =
|
|
7154
|
-
const _hoisted_16 =
|
|
7155
|
-
const _hoisted_17 = ["colspan"];
|
|
7156
|
-
const _hoisted_18 = {
|
|
7426
|
+
const _hoisted_15 = ["colspan"];
|
|
7427
|
+
const _hoisted_16 = {
|
|
7157
7428
|
key: 4,
|
|
7158
7429
|
"data-empty": ""
|
|
7159
7430
|
};
|
|
7160
|
-
const
|
|
7431
|
+
const _hoisted_17 = ["colspan"];
|
|
7161
7432
|
const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
7162
7433
|
__name: "TableRender",
|
|
7163
7434
|
props: {
|
|
@@ -7224,6 +7495,14 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7224
7495
|
showPagination: {
|
|
7225
7496
|
type: Boolean,
|
|
7226
7497
|
default: void 0
|
|
7498
|
+
},
|
|
7499
|
+
/** 填充模式:根容器 h-full 纵向 flex,滚动区 flex-1 内滚;表头 sticky 钉住。
|
|
7500
|
+
* 父链需有确定高度(如页面布局的 .table-body);无确定高度时安全退化为自然高度。
|
|
7501
|
+
* 显式 prop 优先于布局 provide(key: "tu-design:page-table-fill");显式传 false 可强制关闭。
|
|
7502
|
+
* 纯布局属性,不进 defineTable/definition(virtual/height 例外),setup 期定版不支持运行时切换。 */
|
|
7503
|
+
fillHeight: {
|
|
7504
|
+
type: Boolean,
|
|
7505
|
+
default: void 0
|
|
7227
7506
|
}
|
|
7228
7507
|
},
|
|
7229
7508
|
emits: [
|
|
@@ -7244,6 +7523,8 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7244
7523
|
],
|
|
7245
7524
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
7246
7525
|
const props = __props;
|
|
7526
|
+
const pageTableFill = inject(PAGE_TABLE_FILL_KEY, false);
|
|
7527
|
+
const fill = props.fillHeight ?? pageTableFill;
|
|
7247
7528
|
const emit = __emit;
|
|
7248
7529
|
/** 加载态骨架行数(R14) */
|
|
7249
7530
|
const SKELETON_ROWS = [
|
|
@@ -7448,9 +7729,27 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7448
7729
|
}
|
|
7449
7730
|
const virtualRaw = instance.virtual ?? props.virtual;
|
|
7450
7731
|
const heightRaw = instance.height ?? props.height;
|
|
7451
|
-
if (virtualRaw === true && heightRaw === void 0) console.warn("[tu-design] <TableRender> virtual 需要配置 height,已降级普通渲染。");
|
|
7452
|
-
const virtualEnabled = virtualRaw === true && heightRaw !== void 0;
|
|
7732
|
+
if (virtualRaw === true && heightRaw === void 0 && !fill) console.warn("[tu-design] <TableRender> virtual 需要配置 height,已降级普通渲染。");
|
|
7733
|
+
const virtualEnabled = virtualRaw === true && (heightRaw !== void 0 || fill);
|
|
7453
7734
|
const scrollHeight = computed(() => typeof heightRaw === "number" ? `${heightRaw}px` : heightRaw);
|
|
7735
|
+
/** 表头 sticky 仅在组件内存在真实纵向滚动盒时生效(fill / virtual),普通模式不挂载,行为不变 */
|
|
7736
|
+
const theadSticky = fill || virtualEnabled;
|
|
7737
|
+
/** 滚动区样式:virtual 用固定 height;fill 交给 flex 分配(二者同传以 fill 优先) */
|
|
7738
|
+
const scrollStyle = computed(() => {
|
|
7739
|
+
if (fill || !virtualEnabled) return void 0;
|
|
7740
|
+
return {
|
|
7741
|
+
height: scrollHeight.value,
|
|
7742
|
+
overflowY: "auto"
|
|
7743
|
+
};
|
|
7744
|
+
});
|
|
7745
|
+
/** sticky 表头普通列类:不透明底防行内容透出;分隔线归 th(thead 行级 border 会随行滚走);
|
|
7746
|
+
* z-20 高于表体 fixed 列(--z-sticky: 10),纵向滚动行滑过表头时不穿透;
|
|
7747
|
+
* 表头 fixed 列的 z 由 stickyStyle inline style(var(--z-sticky-head))提供,inline 优先级天然覆盖此处 class */
|
|
7748
|
+
const theadThClass = theadSticky ? "sticky top-0 z-20 border-b border-border bg-background" : "";
|
|
7749
|
+
/** sticky 态 table 改分离边框:preflight 为 border-collapse: collapse,
|
|
7750
|
+
* 折叠边框几何归属 table,Chrome 下 sticky th 粘住后自身 border-b 渲染丢失;
|
|
7751
|
+
* separate + spacing-0 恢复单元格边框。普通模式保持 collapse,零回归。 */
|
|
7752
|
+
const tableClass = theadSticky ? "border-separate border-spacing-0" : "";
|
|
7454
7753
|
const scrollEl = ref(null);
|
|
7455
7754
|
const theadEl = ref(null);
|
|
7456
7755
|
/** 滚动容器内 thead 占据的前缀高度(scrollMargin);表头内容静态,挂载后测量一次 */
|
|
@@ -7552,9 +7851,12 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7552
7851
|
clearSelection: instance.clearSelection
|
|
7553
7852
|
});
|
|
7554
7853
|
return (_ctx, _cache) => {
|
|
7555
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("w-full", _ctx.$attrs.class)) }, [
|
|
7854
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("w-full", unref(fill) && "flex h-full min-h-0 flex-col", _ctx.$attrs.class)) }, [
|
|
7556
7855
|
createCommentVNode(" 搜索区 + 列设置触发器:同行右对齐(items-end);无搜索时触发器位于表格上方(R27:showSearch=false 关闭搜索区) "),
|
|
7557
|
-
showSearchArea.value || showColumnSettings.value ? (openBlock(), createElementBlock("div",
|
|
7856
|
+
showSearchArea.value || showColumnSettings.value ? (openBlock(), createElementBlock("div", {
|
|
7857
|
+
key: 0,
|
|
7858
|
+
class: normalizeClass(unref(cn)("mb-2 flex items-end justify-between gap-2", unref(fill) && "shrink-0"))
|
|
7859
|
+
}, [
|
|
7558
7860
|
showSearchArea.value ? (openBlock(), createBlock(unref(_sfc_main$25), {
|
|
7559
7861
|
key: 0,
|
|
7560
7862
|
class: "min-w-0 flex-1",
|
|
@@ -7570,18 +7872,18 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7570
7872
|
"content-class": "w-56 p-0"
|
|
7571
7873
|
}, {
|
|
7572
7874
|
content: withCtx(() => [
|
|
7573
|
-
createElementVNode("div",
|
|
7875
|
+
createElementVNode("div", _hoisted_1$8, [createElementVNode("button", {
|
|
7574
7876
|
type: "button",
|
|
7575
7877
|
class: "text-muted-foreground hover:text-foreground cursor-pointer text-xs disabled:cursor-not-allowed disabled:opacity-50",
|
|
7576
7878
|
disabled: allColumnsVisible.value,
|
|
7577
7879
|
onClick: selectAllColumns
|
|
7578
|
-
}, " 全选 ", 8,
|
|
7880
|
+
}, " 全选 ", 8, _hoisted_2$7), createElementVNode("button", {
|
|
7579
7881
|
type: "button",
|
|
7580
7882
|
class: "text-muted-foreground hover:text-foreground cursor-pointer text-xs",
|
|
7581
7883
|
onClick: resetColumns
|
|
7582
7884
|
}, " 重置 ")]),
|
|
7583
7885
|
createVNode(unref(_sfc_main$38)),
|
|
7584
|
-
createElementVNode("div",
|
|
7886
|
+
createElementVNode("div", _hoisted_3$4, [(openBlock(true), createElementBlock(Fragment, null, renderList(columns.value, (column) => {
|
|
7585
7887
|
return openBlock(), createElementBlock("div", {
|
|
7586
7888
|
key: column.key,
|
|
7587
7889
|
"data-column-item": "",
|
|
@@ -7599,10 +7901,10 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7599
7901
|
"disabled",
|
|
7600
7902
|
"onUpdate:checked"
|
|
7601
7903
|
]),
|
|
7602
|
-
createElementVNode("span",
|
|
7904
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(column.title), 1),
|
|
7603
7905
|
createCommentVNode(" 有效 fixed 列(数字 width)标识 "),
|
|
7604
|
-
column.fixed !== void 0 && typeof column.width === "number" ? (openBlock(), createElementBlock("svg",
|
|
7605
|
-
], 8,
|
|
7906
|
+
column.fixed !== void 0 && typeof column.width === "number" ? (openBlock(), createElementBlock("svg", _hoisted_6$1, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "M12 17v5" }, null, -1), createElementVNode("path", { d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1z" }, null, -1)])])) : createCommentVNode("v-if", true)
|
|
7907
|
+
], 8, _hoisted_4$2);
|
|
7606
7908
|
}), 128))])
|
|
7607
7909
|
]),
|
|
7608
7910
|
default: withCtx(() => [createVNode(unref(_sfc_main$5), {
|
|
@@ -7647,26 +7949,23 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7647
7949
|
content: "列设置"
|
|
7648
7950
|
}, null, 8, ["open"])
|
|
7649
7951
|
], 64)) : createCommentVNode("v-if", true)
|
|
7650
|
-
])) : createCommentVNode("v-if", true),
|
|
7651
|
-
createCommentVNode(" 滚动容器:横向滚动时 fixed 列 sticky 生效;virtual 模式兼任纵向滚动(分页条不参与滚动) "),
|
|
7952
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
7953
|
+
createCommentVNode(" 滚动容器:横向滚动时 fixed 列 sticky 生效;virtual/fill 模式兼任纵向滚动(分页条不参与滚动) "),
|
|
7652
7954
|
createElementVNode("div", {
|
|
7653
7955
|
ref_key: "scrollEl",
|
|
7654
7956
|
ref: scrollEl,
|
|
7655
|
-
class: "overflow-x-auto",
|
|
7656
|
-
style: normalizeStyle(
|
|
7657
|
-
|
|
7658
|
-
overflowY: "auto"
|
|
7659
|
-
} : void 0)
|
|
7660
|
-
}, [createElementVNode("table", _hoisted_8, [createElementVNode("thead", {
|
|
7957
|
+
class: normalizeClass(unref(cn)("overflow-x-auto", unref(fill) && "min-h-0 flex-1 overflow-y-auto")),
|
|
7958
|
+
style: normalizeStyle(scrollStyle.value)
|
|
7959
|
+
}, [createElementVNode("table", { class: normalizeClass(["w-full caption-bottom text-sm", unref(tableClass)]) }, [createElementVNode("thead", {
|
|
7661
7960
|
ref_key: "theadEl",
|
|
7662
7961
|
ref: theadEl,
|
|
7663
|
-
class: "[&_tr]:border-b"
|
|
7962
|
+
class: normalizeClass(unref(theadSticky) ? void 0 : "[&_tr]:border-b")
|
|
7664
7963
|
}, [createElementVNode("tr", null, [
|
|
7665
7964
|
createCommentVNode(" 选择列:checkbox 型表头为本页全选三态(S3/S10);radio 型占位;视作最左固定列 "),
|
|
7666
7965
|
hasSelection.value ? (openBlock(), createElementBlock("th", {
|
|
7667
7966
|
key: 0,
|
|
7668
7967
|
scope: "col",
|
|
7669
|
-
class: normalizeClass(["h-10 w-12 px-2 align-middle font-medium text-muted-foreground", unref(stickyClass)(stickyOf.value, unref(SELECTION_CELL))]),
|
|
7968
|
+
class: normalizeClass(["h-10 w-12 px-2 align-middle font-medium text-muted-foreground", [unref(stickyClass)(stickyOf.value, unref(SELECTION_CELL)), unref(theadThClass)]]),
|
|
7670
7969
|
style: normalizeStyle([{ width: `${selection.value.width}px` }, unref(stickyStyle)(stickyOf.value, unref(SELECTION_CELL), true)])
|
|
7671
7970
|
}, [selection.value.type === "checkbox" ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
7672
7971
|
key: 0,
|
|
@@ -7678,7 +7977,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7678
7977
|
return openBlock(), createElementBlock("th", {
|
|
7679
7978
|
key: column.key,
|
|
7680
7979
|
scope: "col",
|
|
7681
|
-
class: normalizeClass(["h-10 px-2 align-middle font-medium text-muted-foreground", unref(stickyClass)(stickyOf.value, column.key)]),
|
|
7980
|
+
class: normalizeClass(["h-10 px-2 align-middle font-medium text-muted-foreground", [unref(stickyClass)(stickyOf.value, column.key), unref(theadThClass)]]),
|
|
7682
7981
|
style: normalizeStyle([{
|
|
7683
7982
|
width: column.width,
|
|
7684
7983
|
textAlign: column.align
|
|
@@ -7689,9 +7988,9 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7689
7988
|
type: "button",
|
|
7690
7989
|
class: "inline-flex items-center gap-1 hover:text-foreground",
|
|
7691
7990
|
onClick: ($event) => onSort(column.key)
|
|
7692
|
-
}, [createTextVNode(toDisplayString(column.title) + " ", 1), createElementVNode("span",
|
|
7991
|
+
}, [createTextVNode(toDisplayString(column.title) + " ", 1), createElementVNode("span", _hoisted_9, toDisplayString(sortMark(column)), 1)], 8, _hoisted_8)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(column.title), 1)], 64))], 14, _hoisted_7$1);
|
|
7693
7992
|
}), 128))
|
|
7694
|
-
])],
|
|
7993
|
+
])], 2), createElementVNode("tbody", _hoisted_10, [
|
|
7695
7994
|
createCommentVNode(" 加载态:固定 5 行骨架(R14);选择列一并占位(S8);骨架不虚拟化;loading 判定优先 "),
|
|
7696
7995
|
loading.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList(SKELETON_ROWS, (row) => {
|
|
7697
7996
|
return createElementVNode("tr", {
|
|
@@ -7708,20 +8007,20 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7708
8007
|
style: normalizeStyle([{ textAlign: column.align }, unref(stickyStyle)(stickyOf.value, column.key, false)])
|
|
7709
8008
|
}, [createVNode(unref(_sfc_main$39), { class: "h-4 w-full" })], 6);
|
|
7710
8009
|
}), 128))]);
|
|
7711
|
-
}), 64)) : showError.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 错误态:error 优先于正常数据;插槽可自定义(slot props { error, retry }) "), createElementVNode("tr",
|
|
8010
|
+
}), 64)) : showError.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 错误态:error 优先于正常数据;插槽可自定义(slot props { error, retry }) "), createElementVNode("tr", _hoisted_11, [createElementVNode("td", {
|
|
7712
8011
|
colspan: columnCount.value,
|
|
7713
8012
|
class: "p-8 text-center text-muted-foreground"
|
|
7714
8013
|
}, [renderSlot(_ctx.$slots, "error", {
|
|
7715
8014
|
error: loadError.value,
|
|
7716
8015
|
retry
|
|
7717
|
-
}, () => [createElementVNode("div",
|
|
8016
|
+
}, () => [createElementVNode("div", _hoisted_13, [createElementVNode("p", null, toDisplayString(loadError.value?.message ?? "加载失败"), 1), createVNode(unref(_sfc_main$5), {
|
|
7718
8017
|
variant: "outline",
|
|
7719
8018
|
size: "sm",
|
|
7720
8019
|
onClick: retry
|
|
7721
8020
|
}, {
|
|
7722
8021
|
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("重试", -1)])]),
|
|
7723
8022
|
_: 1
|
|
7724
|
-
})])])], 8,
|
|
8023
|
+
})])])], 8, _hoisted_12)])], 64)) : unref(virtualEnabled) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
7725
8024
|
createCommentVNode(" 虚拟滚动:窗口行 + 前后占位行(总高撑开滚动区间;行高经 measureElement 动态测量) "),
|
|
7726
8025
|
createElementVNode("tr", {
|
|
7727
8026
|
"aria-hidden": "true",
|
|
@@ -7730,7 +8029,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7730
8029
|
}, [createElementVNode("td", {
|
|
7731
8030
|
colspan: columnCount.value,
|
|
7732
8031
|
class: "border-0 p-0"
|
|
7733
|
-
}, null, 8,
|
|
8032
|
+
}, null, 8, _hoisted_14)], 4),
|
|
7734
8033
|
(openBlock(true), createElementBlock(Fragment, null, renderList(virtualLines.value, (item) => {
|
|
7735
8034
|
return openBlock(), createBlock(_sfc_main$53, {
|
|
7736
8035
|
key: item.line.key,
|
|
@@ -7770,7 +8069,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7770
8069
|
}, [createElementVNode("td", {
|
|
7771
8070
|
colspan: columnCount.value,
|
|
7772
8071
|
class: "border-0 p-0"
|
|
7773
|
-
}, null, 8,
|
|
8072
|
+
}, null, 8, _hoisted_15)], 4)
|
|
7774
8073
|
], 64)) : (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(body.value, (line) => {
|
|
7775
8074
|
return openBlock(), createBlock(_sfc_main$53, {
|
|
7776
8075
|
key: line.key,
|
|
@@ -7800,15 +8099,15 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7800
8099
|
]);
|
|
7801
8100
|
}), 128)),
|
|
7802
8101
|
createCommentVNode(" 空态:横跨全列的单单元格,不虚拟化;错误态优先 "),
|
|
7803
|
-
!loading.value && !showError.value && body.value.length === 0 ? (openBlock(), createElementBlock("tr",
|
|
8102
|
+
!loading.value && !showError.value && body.value.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_16, [createElementVNode("td", {
|
|
7804
8103
|
colspan: columnCount.value,
|
|
7805
8104
|
class: "p-8 text-center text-muted-foreground"
|
|
7806
|
-
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(__props.emptyText ?? "暂无数据"), 1)])], 8,
|
|
7807
|
-
])])],
|
|
8105
|
+
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(__props.emptyText ?? "暂无数据"), 1)])], 8, _hoisted_17)])) : createCommentVNode("v-if", true)
|
|
8106
|
+
])], 2)], 6),
|
|
7808
8107
|
createCommentVNode(" R31:手动接线(须经 onPageIndex/onPageSize 包装器保留受控去重);显式补 border-t 与 size select 保持现状 "),
|
|
7809
8108
|
showPaginationBar.value ? (openBlock(), createBlock(_sfc_main$43, {
|
|
7810
8109
|
key: 1,
|
|
7811
|
-
class: "border-t",
|
|
8110
|
+
class: normalizeClass(unref(cn)("border-t", unref(fill) && "shrink-0")),
|
|
7812
8111
|
"page-index": unref(instance).page.pageIndex,
|
|
7813
8112
|
"page-size": unref(instance).page.pageSize,
|
|
7814
8113
|
"page-size-opts": unref(instance).page.pageSizeOpts,
|
|
@@ -7817,6 +8116,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
|
7817
8116
|
"onUpdate:pageIndex": onPageIndex,
|
|
7818
8117
|
"onUpdate:pageSize": onPageSize
|
|
7819
8118
|
}, null, 8, [
|
|
8119
|
+
"class",
|
|
7820
8120
|
"page-index",
|
|
7821
8121
|
"page-size",
|
|
7822
8122
|
"page-size-opts",
|
|
@@ -8628,6 +8928,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
8628
8928
|
"cancel"
|
|
8629
8929
|
],
|
|
8630
8930
|
setup(__props, { emit: __emit }) {
|
|
8931
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
8932
|
+
primary: "content",
|
|
8933
|
+
parts: [
|
|
8934
|
+
"content",
|
|
8935
|
+
"title",
|
|
8936
|
+
"description",
|
|
8937
|
+
"trigger",
|
|
8938
|
+
"closeTrigger",
|
|
8939
|
+
"positioner",
|
|
8940
|
+
"backdrop"
|
|
8941
|
+
]
|
|
8942
|
+
});
|
|
8631
8943
|
const props = __props;
|
|
8632
8944
|
const emit = __emit;
|
|
8633
8945
|
const instance = getCurrentInstance();
|
|
@@ -8652,6 +8964,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
8652
8964
|
const contentClass = computed(() => cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed left-1/2 top-1/2 z-[var(--z-overlay)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:max-w-md"));
|
|
8653
8965
|
return (_ctx, _cache) => {
|
|
8654
8966
|
return openBlock(), createBlock(unref(Dialog).Root, {
|
|
8967
|
+
ids: unref(rootIds),
|
|
8655
8968
|
open: unref(isOpen),
|
|
8656
8969
|
"close-on-escape": !unref(loading),
|
|
8657
8970
|
"close-on-interact-outside": !unref(loading),
|
|
@@ -8703,6 +9016,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
8703
9016
|
})]),
|
|
8704
9017
|
_: 3
|
|
8705
9018
|
}, 8, [
|
|
9019
|
+
"ids",
|
|
8706
9020
|
"open",
|
|
8707
9021
|
"close-on-escape",
|
|
8708
9022
|
"close-on-interact-outside"
|
|
@@ -8717,12 +9031,20 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
|
8717
9031
|
name: "ContextMenu",
|
|
8718
9032
|
inheritAttrs: false,
|
|
8719
9033
|
__name: "ContextMenu",
|
|
8720
|
-
props: {
|
|
8721
|
-
|
|
8722
|
-
items: {
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
9034
|
+
props: {
|
|
9035
|
+
/** 菜单项描述列表,与 DropdownMenu 的 items 完全同构(item/label/separator/group 四种形态,group 可嵌套) */
|
|
9036
|
+
items: {
|
|
9037
|
+
type: Array,
|
|
9038
|
+
required: true
|
|
9039
|
+
},
|
|
9040
|
+
/** Ark Menu Root 的 positioning 配置(gutter 等;placement 由指针 anchorPoint 驱动);
|
|
9041
|
+
iframe realm(wujie graft / iframe 嵌入)下 strategy 未显式指定时默认 fixed
|
|
9042
|
+
(absolute 包含块错位修正,机制详注见 useSandboxOverlay / sandbox.ts) */
|
|
9043
|
+
positioning: {
|
|
9044
|
+
type: Object,
|
|
9045
|
+
default: void 0
|
|
9046
|
+
}
|
|
9047
|
+
},
|
|
8726
9048
|
emits: ["select"],
|
|
8727
9049
|
setup(__props, { emit: __emit }) {
|
|
8728
9050
|
const props = __props;
|
|
@@ -8731,8 +9053,12 @@ items: {
|
|
|
8731
9053
|
function handleSelect(details) {
|
|
8732
9054
|
emit("select", details);
|
|
8733
9055
|
}
|
|
9056
|
+
const rootPositioning = computed(() => withSandboxStrategy(props.positioning, { ...props.positioning }));
|
|
8734
9057
|
return (_ctx, _cache) => {
|
|
8735
|
-
return openBlock(), createBlock(unref(Menu).Root, {
|
|
9058
|
+
return openBlock(), createBlock(unref(Menu).Root, {
|
|
9059
|
+
positioning: rootPositioning.value,
|
|
9060
|
+
onSelect: handleSelect
|
|
9061
|
+
}, {
|
|
8736
9062
|
default: withCtx(() => [
|
|
8737
9063
|
createCommentVNode(" 默认插槽 = 触发元素本身(ContextTrigger as-child 透传,右键唤出并定位到指针处) "),
|
|
8738
9064
|
createVNode(unref(Menu).ContextTrigger, { "as-child": "" }, {
|
|
@@ -8748,7 +9074,7 @@ items: {
|
|
|
8748
9074
|
})
|
|
8749
9075
|
]),
|
|
8750
9076
|
_: 3
|
|
8751
|
-
});
|
|
9077
|
+
}, 8, ["positioning"]);
|
|
8752
9078
|
};
|
|
8753
9079
|
}
|
|
8754
9080
|
});
|
|
@@ -8813,6 +9139,22 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
8813
9139
|
},
|
|
8814
9140
|
emits: ["update:open"],
|
|
8815
9141
|
setup(__props, { emit: __emit }) {
|
|
9142
|
+
const { ids: rootIds } = useOverlayIds(useAttrs(), {
|
|
9143
|
+
primary: "content",
|
|
9144
|
+
parts: [
|
|
9145
|
+
"content",
|
|
9146
|
+
"title",
|
|
9147
|
+
"description",
|
|
9148
|
+
"trigger",
|
|
9149
|
+
"closeTrigger",
|
|
9150
|
+
"positioner",
|
|
9151
|
+
"backdrop",
|
|
9152
|
+
"header",
|
|
9153
|
+
"grabber",
|
|
9154
|
+
"grabberIndicator",
|
|
9155
|
+
"swipeArea"
|
|
9156
|
+
]
|
|
9157
|
+
});
|
|
8816
9158
|
const props = __props;
|
|
8817
9159
|
const emit = __emit;
|
|
8818
9160
|
const { isOpen, setOpen } = useControlledBoolean({
|
|
@@ -8874,6 +9216,7 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
8874
9216
|
const contentClass = computed(() => cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-[var(--z-overlay)] flex flex-col gap-4 overflow-y-auto p-6 shadow-lg duration-200", config.value.content, isLateral.value ? cn("w-full", config.value.sizes[props.size]) : cn("h-full", config.value.sizes[props.size]), placementAnimations[props.placement]));
|
|
8875
9217
|
return (_ctx, _cache) => {
|
|
8876
9218
|
return openBlock(), createBlock(unref(Drawer).Root, {
|
|
9219
|
+
ids: unref(rootIds),
|
|
8877
9220
|
open: unref(isOpen),
|
|
8878
9221
|
"lazy-mount": props.lazyMount,
|
|
8879
9222
|
"unmount-on-exit": props.unmountOnExit,
|
|
@@ -8922,6 +9265,7 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
8922
9265
|
]),
|
|
8923
9266
|
_: 3
|
|
8924
9267
|
}, 8, [
|
|
9268
|
+
"ids",
|
|
8925
9269
|
"open",
|
|
8926
9270
|
"lazy-mount",
|
|
8927
9271
|
"unmount-on-exit",
|
|
@@ -9282,4 +9626,4 @@ const timelineDotVariants = cva("relative z-10 mt-1 block shrink-0 rounded-full"
|
|
|
9282
9626
|
}
|
|
9283
9627
|
});
|
|
9284
9628
|
//#endregion
|
|
9285
|
-
export { _sfc_main as Alert, _sfc_main$1 as AlertDialog, _sfc_main$2 as Avatar, _sfc_main$3 as AvatarGroup, _sfc_main$4 as Badge, _sfc_main$5 as Button, CHECKED, COMPONENT_NAMES, _sfc_main$6 as Calendar, _sfc_main$7 as Card, _sfc_main$8 as Cascader, _sfc_main$9 as Checkbox, _sfc_main$10 as ContextMenu, _sfc_main$11 as CurrencyInput, _sfc_main$12 as DatePicker, _sfc_main$13 as DateRangePicker, _sfc_main$14 as Dialog, _sfc_main$15 as Drawer, _sfc_main$16 as DropdownMenu, _sfc_main$17 as Empty, _sfc_main$18 as Form, _sfc_main$19 as FormControl, _sfc_main$20 as FormDescription, _sfc_main$21 as FormField, _sfc_main$22 as FormItem, _sfc_main$23 as FormLabel, _sfc_main$24 as FormMessage, _sfc_main$25 as FormRender, _sfc_main$26 as FormSubscribe, _sfc_main$27 as Input, _sfc_main$28 as Label, MODEL_VALUE, _sfc_main$29 as MonthPicker, _sfc_main$30 as NumberInput, _sfc_main$31 as PasswordInput, _sfc_main$32 as PinInput, _sfc_main$33 as Popconfirm, _sfc_main$34 as Popover, _sfc_main$35 as Progress, _sfc_main$36 as RadioGroup, SLIDER, _sfc_main$37 as Select, _sfc_main$38 as Separator, _sfc_main$39 as Skeleton, _sfc_main$40 as Slider, Slot, _sfc_main$41 as Spin, _sfc_main$42 as Switch, _sfc_main$43 as TablePagination, _sfc_main$44 as TableRender, _sfc_main$45 as Tabs, _sfc_main$46 as Textarea, _sfc_main$47 as Timeline, _sfc_main$48 as ToastProvider, _sfc_main$49 as Tooltip, _sfc_main$50 as TreeSelect, TuDesignResolver, VALUE, _sfc_main$51 as WeekPicker, _sfc_main$52 as YearPicker, alertIconPaths, alertIconVariants, alertVariants, avatarGroupKey, avatarVariants, badgeVariants, bindField, buttonVariants, cardVariants, cn, columnRenders, defineColumns, defineForm, defineTable, formatCurrency, numberOrNull, parseCurrency, timelineDotVariants, timelineItemVariants, timelineVariants, useFormRender, useTableRender, useToast, widgetRenders };
|
|
9629
|
+
export { _sfc_main as Alert, _sfc_main$1 as AlertDialog, _sfc_main$2 as Avatar, _sfc_main$3 as AvatarGroup, _sfc_main$4 as Badge, _sfc_main$5 as Button, CHECKED, COMPONENT_NAMES, _sfc_main$6 as Calendar, _sfc_main$7 as Card, _sfc_main$8 as Cascader, _sfc_main$9 as Checkbox, _sfc_main$10 as ContextMenu, _sfc_main$11 as CurrencyInput, _sfc_main$12 as DatePicker, _sfc_main$13 as DateRangePicker, _sfc_main$14 as Dialog, _sfc_main$15 as Drawer, _sfc_main$16 as DropdownMenu, _sfc_main$17 as Empty, _sfc_main$18 as Form, _sfc_main$19 as FormControl, _sfc_main$20 as FormDescription, _sfc_main$21 as FormField, _sfc_main$22 as FormItem, _sfc_main$23 as FormLabel, _sfc_main$24 as FormMessage, _sfc_main$25 as FormRender, _sfc_main$26 as FormSubscribe, _sfc_main$27 as Input, _sfc_main$28 as Label, MODEL_VALUE, _sfc_main$29 as MonthPicker, _sfc_main$30 as NumberInput, PAGE_TABLE_FILL_KEY, _sfc_main$31 as PasswordInput, _sfc_main$32 as PinInput, _sfc_main$33 as Popconfirm, _sfc_main$34 as Popover, _sfc_main$35 as Progress, _sfc_main$36 as RadioGroup, SLIDER, _sfc_main$37 as Select, _sfc_main$38 as Separator, _sfc_main$39 as Skeleton, _sfc_main$40 as Slider, Slot, _sfc_main$41 as Spin, _sfc_main$42 as Switch, _sfc_main$43 as TablePagination, _sfc_main$44 as TableRender, _sfc_main$45 as Tabs, _sfc_main$46 as Textarea, _sfc_main$47 as Timeline, _sfc_main$48 as ToastProvider, _sfc_main$49 as Tooltip, _sfc_main$50 as TreeSelect, TuDesignResolver, VALUE, _sfc_main$51 as WeekPicker, _sfc_main$52 as YearPicker, alertIconPaths, alertIconVariants, alertVariants, avatarGroupKey, avatarVariants, badgeVariants, bindField, buttonVariants, cardVariants, cn, columnRenders, defineColumns, defineForm, defineTable, formatCurrency, numberOrNull, parseCurrency, timelineDotVariants, timelineItemVariants, timelineVariants, useFormRender, useTableRender, useToast, widgetRenders };
|