@koi-design/uxd-ui 14.0.6 → 14.0.7
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/es/components/Card/Card.d.ts +9 -9
- package/es/components/Card/Card.mjs +19 -26
- package/es/components/Card/Card.mjs.map +1 -1
- package/es/components/Card/Card.type.d.ts +4 -4
- package/es/components/Card/Card.type.mjs +4 -4
- package/es/components/Card/Card.type.mjs.map +1 -1
- package/es/components/Card/index.d.ts +15 -15
- package/es/components/DatePicker/DatePicker.mjs +2 -4
- package/es/components/DatePicker/DatePicker.mjs.map +1 -1
- package/es/components/DatePicker/Panel/DatePickerPanel.mjs +1 -0
- package/es/components/DatePicker/Panel/DatePickerPanel.mjs.map +1 -1
- package/es/components/Layout/Layout.type.d.ts +2 -7
- package/es/components/Layout/Layout.type.mjs +2 -7
- package/es/components/Layout/Layout.type.mjs.map +1 -1
- package/es/components/Layout/Sider.mjs +20 -16
- package/es/components/Layout/Sider.mjs.map +1 -1
- package/es/components/Layout/Sider.vue.d.ts +9 -17
- package/es/components/Layout/index.d.ts +9 -17
- package/es/components/Menu/Menu.d.ts +0 -11
- package/es/components/Menu/Menu.mjs +1 -3
- package/es/components/Menu/Menu.mjs.map +1 -1
- package/es/components/Menu/Menu.type.d.ts +0 -6
- package/es/components/Menu/Menu.type.mjs +0 -5
- package/es/components/Menu/Menu.type.mjs.map +1 -1
- package/es/components/Menu/SubMenu.mjs +1 -3
- package/es/components/Menu/SubMenu.mjs.map +1 -1
- package/es/components/Menu/SubMenu.vue.d.ts +0 -1
- package/es/components/Menu/index.d.ts +0 -19
- package/es/components/Table/BaseTable.vue.d.ts +0 -19
- package/es/components/Table/BodyTable.vue.d.ts +0 -19
- package/es/components/Table/HeadTable.vue.d.ts +0 -19
- package/es/components/Table/Table.vue.d.ts +0 -38
- package/es/components/Table/TableBox.vue.d.ts +0 -38
- package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +0 -19
- package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +0 -19
- package/es/components/Table/tableUnits/TableHeader.vue.d.ts +0 -19
- package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +0 -19
- package/es/components/base/CollapseTransition.mjs +0 -16
- package/es/components/base/CollapseTransition.mjs.map +1 -1
- package/es/components/base/hooks/useGlobalConfig.d.ts +1 -0
- package/es/components/locale/default.d.ts +1 -0
- package/es/components/locale/default.mjs.map +1 -1
- package/lib/components/Card/Card.d.ts +9 -9
- package/lib/components/Card/Card.js +22 -29
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/Card.type.d.ts +4 -4
- package/lib/components/Card/Card.type.js +4 -4
- package/lib/components/Card/Card.type.js.map +1 -1
- package/lib/components/Card/index.d.ts +15 -15
- package/lib/components/DatePicker/DatePicker.js +2 -4
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/DatePicker/Panel/DatePickerPanel.js +1 -0
- package/lib/components/DatePicker/Panel/DatePickerPanel.js.map +1 -1
- package/lib/components/Layout/Layout.type.d.ts +2 -7
- package/lib/components/Layout/Layout.type.js +2 -7
- package/lib/components/Layout/Layout.type.js.map +1 -1
- package/lib/components/Layout/Sider.js +19 -15
- package/lib/components/Layout/Sider.js.map +1 -1
- package/lib/components/Layout/Sider.vue.d.ts +9 -17
- package/lib/components/Layout/index.d.ts +9 -17
- package/lib/components/Menu/Menu.d.ts +0 -11
- package/lib/components/Menu/Menu.js +1 -3
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/Menu.type.d.ts +0 -6
- package/lib/components/Menu/Menu.type.js +0 -5
- package/lib/components/Menu/Menu.type.js.map +1 -1
- package/lib/components/Menu/SubMenu.js +1 -3
- package/lib/components/Menu/SubMenu.js.map +1 -1
- package/lib/components/Menu/SubMenu.vue.d.ts +0 -1
- package/lib/components/Menu/index.d.ts +0 -19
- package/lib/components/Table/BaseTable.vue.d.ts +0 -19
- package/lib/components/Table/BodyTable.vue.d.ts +0 -19
- package/lib/components/Table/HeadTable.vue.d.ts +0 -19
- package/lib/components/Table/Table.vue.d.ts +0 -38
- package/lib/components/Table/TableBox.vue.d.ts +0 -38
- package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +0 -19
- package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +0 -19
- package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +0 -19
- package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +0 -19
- package/lib/components/base/CollapseTransition.js +0 -16
- package/lib/components/base/CollapseTransition.js.map +1 -1
- package/lib/components/base/hooks/useGlobalConfig.d.ts +1 -0
- package/lib/components/locale/default.d.ts +1 -0
- package/lib/components/locale/default.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/alert/index.css +1 -1
- package/styles/components/autoComplete/index.css +1 -1
- package/styles/components/avatar/index.css +1 -1
- package/styles/components/breadcrumb/index.css +1 -1
- package/styles/components/breadcrumb/index.less +5 -6
- package/styles/components/breadcrumb/var.less +4 -6
- package/styles/components/button/index.css +1 -1
- package/styles/components/card/index.css +1 -1
- package/styles/components/card/index.less +64 -70
- package/styles/components/card/var.less +4 -13
- package/styles/components/carousel/index.css +1 -1
- package/styles/components/cascader/index.css +1 -1
- package/styles/components/datePicker/index.css +1 -1
- package/styles/components/form/index.css +1 -1
- package/styles/components/icon/index.css +1 -1
- package/styles/components/input/index.css +1 -1
- package/styles/components/inputNumber/index.css +1 -1
- package/styles/components/layout/index.css +1 -1
- package/styles/components/layout/index.less +40 -55
- package/styles/components/layout/var.less +9 -41
- package/styles/components/link/index.css +1 -1
- package/styles/components/mentions/index.css +1 -1
- package/styles/components/menu/index.css +1 -1
- package/styles/components/menu/index.less +63 -207
- package/styles/components/menu/var.less +39 -69
- package/styles/components/modal/index.css +1 -1
- package/styles/components/select/index.css +1 -1
- package/styles/components/spin/index.css +1 -1
- package/styles/components/timePicker/index.css +1 -1
- package/styles/cssVariable.css +1 -1
- package/styles/cssVariable.less +8 -7
- package/styles/index.css +1 -1
- package/types/components/Card/Card.d.ts +9 -9
- package/types/components/Card/Card.type.d.ts +4 -4
- package/types/components/Card/index.d.ts +15 -15
- package/types/components/Layout/Layout.type.d.ts +2 -7
- package/types/components/Layout/Sider.vue.d.ts +9 -17
- package/types/components/Layout/index.d.ts +9 -17
- package/types/components/Menu/Menu.d.ts +0 -11
- package/types/components/Menu/Menu.type.d.ts +0 -6
- package/types/components/Menu/SubMenu.vue.d.ts +0 -1
- package/types/components/Menu/index.d.ts +0 -19
- package/types/components/Table/BaseTable.vue.d.ts +0 -19
- package/types/components/Table/BodyTable.vue.d.ts +0 -19
- package/types/components/Table/HeadTable.vue.d.ts +0 -19
- package/types/components/Table/Table.vue.d.ts +0 -38
- package/types/components/Table/TableBox.vue.d.ts +0 -38
- package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +0 -19
- package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +0 -19
- package/types/components/Table/tableUnits/TableHeader.vue.d.ts +0 -19
- package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +0 -19
- package/types/components/base/hooks/useGlobalConfig.d.ts +1 -0
- package/types/components/locale/default.d.ts +1 -0
- package/uxd-ui.css +1 -1
- package/uxd-ui.esm.min.mjs +6 -6
- package/uxd-ui.esm.mjs +373 -406
- package/uxd-ui.umd.js +372 -405
- package/uxd-ui.umd.min.js +6 -6
package/uxd-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @koi-design/uxd-ui@4.0.
|
|
1
|
+
/*! @koi-design/uxd-ui@4.0.7 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('lucide-vue-next')) :
|
|
@@ -1530,7 +1530,7 @@
|
|
|
1530
1530
|
return false;
|
|
1531
1531
|
}
|
|
1532
1532
|
|
|
1533
|
-
function getComputedStyle
|
|
1533
|
+
function getComputedStyle(element) {
|
|
1534
1534
|
return getWindow(element).getComputedStyle(element);
|
|
1535
1535
|
}
|
|
1536
1536
|
|
|
@@ -1550,7 +1550,7 @@
|
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
1552
1552
|
function getTrueOffsetParent(element) {
|
|
1553
|
-
if (!isHTMLElement(element) || getComputedStyle
|
|
1553
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
|
|
1554
1554
|
return null;
|
|
1555
1555
|
}
|
|
1556
1556
|
return element.offsetParent;
|
|
@@ -1559,7 +1559,7 @@
|
|
|
1559
1559
|
var isFirefox = /firefox/i.test(getUAString());
|
|
1560
1560
|
var isIE = /Trident/i.test(getUAString());
|
|
1561
1561
|
if (isIE && isHTMLElement(element)) {
|
|
1562
|
-
var elementCss = getComputedStyle
|
|
1562
|
+
var elementCss = getComputedStyle(element);
|
|
1563
1563
|
if (elementCss.position === "fixed") {
|
|
1564
1564
|
return null;
|
|
1565
1565
|
}
|
|
@@ -1569,7 +1569,7 @@
|
|
|
1569
1569
|
currentNode = currentNode.host;
|
|
1570
1570
|
}
|
|
1571
1571
|
while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
|
|
1572
|
-
var css = getComputedStyle
|
|
1572
|
+
var css = getComputedStyle(currentNode);
|
|
1573
1573
|
if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
|
|
1574
1574
|
return currentNode;
|
|
1575
1575
|
} else {
|
|
@@ -1581,10 +1581,10 @@
|
|
|
1581
1581
|
function getOffsetParent(element) {
|
|
1582
1582
|
var window = getWindow(element);
|
|
1583
1583
|
var offsetParent = getTrueOffsetParent(element);
|
|
1584
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle
|
|
1584
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
|
|
1585
1585
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
1586
1586
|
}
|
|
1587
|
-
if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle
|
|
1587
|
+
if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
|
|
1588
1588
|
return window;
|
|
1589
1589
|
}
|
|
1590
1590
|
return offsetParent || getContainingBlock(element) || window;
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
var widthProp = "clientWidth";
|
|
1726
1726
|
if (offsetParent === getWindow(popper)) {
|
|
1727
1727
|
offsetParent = getDocumentElement(popper);
|
|
1728
|
-
if (getComputedStyle
|
|
1728
|
+
if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
|
|
1729
1729
|
heightProp = "scrollHeight";
|
|
1730
1730
|
widthProp = "scrollWidth";
|
|
1731
1731
|
}
|
|
@@ -1908,7 +1908,7 @@
|
|
|
1908
1908
|
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
1909
1909
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
1910
1910
|
var y = -winScroll.scrollTop;
|
|
1911
|
-
if (getComputedStyle
|
|
1911
|
+
if (getComputedStyle(body || html).direction === "rtl") {
|
|
1912
1912
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
1913
1913
|
}
|
|
1914
1914
|
return {
|
|
@@ -1920,7 +1920,7 @@
|
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
1922
|
function isScrollParent(element) {
|
|
1923
|
-
var _getComputedStyle = getComputedStyle
|
|
1923
|
+
var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
1924
1924
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
@@ -1973,7 +1973,7 @@
|
|
|
1973
1973
|
}
|
|
1974
1974
|
function getClippingParents(element) {
|
|
1975
1975
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
1976
|
-
var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle
|
|
1976
|
+
var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle(element).position) >= 0;
|
|
1977
1977
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
1978
1978
|
if (!isElement(clipperElement)) {
|
|
1979
1979
|
return [];
|
|
@@ -11136,24 +11136,14 @@
|
|
|
11136
11136
|
const TransitionEvents = {
|
|
11137
11137
|
onBeforeEnter(el) {
|
|
11138
11138
|
addClass(el, "collapse-transition");
|
|
11139
|
-
if (!el.dataset)
|
|
11140
|
-
el.dataset = {};
|
|
11141
|
-
el.dataset.oldPaddingTop = getComputedStyle(el).paddingTop || 0;
|
|
11142
|
-
el.dataset.oldPaddingBottom = getComputedStyle(el).paddingBottom || 0;
|
|
11143
11139
|
el.style.height = 0;
|
|
11144
|
-
el.style.paddingTop = 0;
|
|
11145
|
-
el.style.paddingBottom = 0;
|
|
11146
11140
|
},
|
|
11147
11141
|
onEnter(el) {
|
|
11148
11142
|
el.dataset.oldOverflow = el.style.overflow;
|
|
11149
11143
|
if (el.scrollHeight !== 0) {
|
|
11150
11144
|
el.style.height = `${el.scrollHeight}px`;
|
|
11151
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
11152
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
11153
11145
|
} else {
|
|
11154
11146
|
el.style.height = "";
|
|
11155
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
11156
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
11157
11147
|
}
|
|
11158
11148
|
el.style.overflow = "hidden";
|
|
11159
11149
|
},
|
|
@@ -11166,8 +11156,6 @@
|
|
|
11166
11156
|
onBeforeLeave(el) {
|
|
11167
11157
|
if (!el.dataset)
|
|
11168
11158
|
el.dataset = {};
|
|
11169
|
-
el.dataset.oldPaddingTop = el.style.paddingTop;
|
|
11170
|
-
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
|
11171
11159
|
el.dataset.oldOverflow = el.style.overflow;
|
|
11172
11160
|
el.style.height = `${el.scrollHeight}px`;
|
|
11173
11161
|
el.style.overflow = "hidden";
|
|
@@ -11176,16 +11164,12 @@
|
|
|
11176
11164
|
if (el.scrollHeight !== 0) {
|
|
11177
11165
|
addClass(el, "collapse-transition");
|
|
11178
11166
|
el.style.height = 0;
|
|
11179
|
-
el.style.paddingTop = 0;
|
|
11180
|
-
el.style.paddingBottom = 0;
|
|
11181
11167
|
}
|
|
11182
11168
|
},
|
|
11183
11169
|
onAfterLeave(el) {
|
|
11184
11170
|
removeClass(el, "collapse-transition");
|
|
11185
11171
|
el.style.height = "";
|
|
11186
11172
|
el.style.overflow = el.dataset.oldOverflow || "0";
|
|
11187
|
-
el.style.paddingTop = el.dataset.oldPaddingTop || "0";
|
|
11188
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom || "0";
|
|
11189
11173
|
}
|
|
11190
11174
|
};
|
|
11191
11175
|
const CollapseTransition = (props, { slots }) => {
|
|
@@ -11206,11 +11190,6 @@
|
|
|
11206
11190
|
default: "vertical",
|
|
11207
11191
|
validator: oneOf(menuMode)
|
|
11208
11192
|
},
|
|
11209
|
-
theme: {
|
|
11210
|
-
type: String,
|
|
11211
|
-
default: "light",
|
|
11212
|
-
validator: oneOf(menuTheme)
|
|
11213
|
-
},
|
|
11214
11193
|
selectedKeys: {
|
|
11215
11194
|
type: Array,
|
|
11216
11195
|
validator: isArrayOf([Number, String])
|
|
@@ -11320,7 +11299,6 @@
|
|
|
11320
11299
|
const {
|
|
11321
11300
|
openKeys,
|
|
11322
11301
|
mode: menuMode,
|
|
11323
|
-
theme,
|
|
11324
11302
|
subMenuOpenDelay,
|
|
11325
11303
|
subMenuCloseDelay,
|
|
11326
11304
|
rootPrefixCls,
|
|
@@ -11421,7 +11399,6 @@
|
|
|
11421
11399
|
titleStyle,
|
|
11422
11400
|
mode,
|
|
11423
11401
|
subMode,
|
|
11424
|
-
theme,
|
|
11425
11402
|
isOpen,
|
|
11426
11403
|
isSelected,
|
|
11427
11404
|
menuId,
|
|
@@ -11500,7 +11477,7 @@
|
|
|
11500
11477
|
key: 1,
|
|
11501
11478
|
"aria-owns": _ctx.menuId,
|
|
11502
11479
|
"aria-haspopup": "true",
|
|
11503
|
-
"popup-class": `${_ctx.prefixCls}-popup
|
|
11480
|
+
"popup-class": `${_ctx.prefixCls}-popup ${_ctx.popupClassName || ""}`,
|
|
11504
11481
|
prefix: _ctx.prefixCls,
|
|
11505
11482
|
placement: _ctx.popupPlacement,
|
|
11506
11483
|
offset: _ctx.popupOffset,
|
|
@@ -11707,7 +11684,6 @@
|
|
|
11707
11684
|
} = useGlobalConfig(inDrop ? "dropdown-menu" : "menu");
|
|
11708
11685
|
const {
|
|
11709
11686
|
mode,
|
|
11710
|
-
theme,
|
|
11711
11687
|
subMenuOpenDelay,
|
|
11712
11688
|
subMenuCloseDelay,
|
|
11713
11689
|
inlineCollapsed
|
|
@@ -11840,7 +11816,6 @@
|
|
|
11840
11816
|
vue.provide("menuStore", {
|
|
11841
11817
|
mode: computedMode,
|
|
11842
11818
|
originalMode: mode,
|
|
11843
|
-
theme,
|
|
11844
11819
|
selectedKeys,
|
|
11845
11820
|
openKeys,
|
|
11846
11821
|
subMenuOpenDelay,
|
|
@@ -11871,7 +11846,7 @@
|
|
|
11871
11846
|
return vue.createVNode("ul", {
|
|
11872
11847
|
"ref": "rootMenu",
|
|
11873
11848
|
"role": this.role || "menu",
|
|
11874
|
-
"class": [`${this.computedPrefixCls}`, `${this.computedPrefixCls}-${this.computedMode}`, `${this.computedPrefixCls}-root`,
|
|
11849
|
+
"class": [`${this.computedPrefixCls}`, `${this.computedPrefixCls}-${this.computedMode}`, `${this.computedPrefixCls}-root`, {
|
|
11875
11850
|
[`${this.computedPrefixCls}-inline-collapsed`]: this.inlineCollapsed || !!this.layoutSiderCollapsed
|
|
11876
11851
|
}]
|
|
11877
11852
|
}, [this.renderChild()]);
|
|
@@ -12465,7 +12440,7 @@
|
|
|
12465
12440
|
}
|
|
12466
12441
|
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["render", _sfc_render$1X], ["__file", "Dropdown.vue"]]);
|
|
12467
12442
|
|
|
12468
|
-
function _isSlot$
|
|
12443
|
+
function _isSlot$4(s) {
|
|
12469
12444
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12470
12445
|
}
|
|
12471
12446
|
var DropdownMenu = vue.defineComponent({
|
|
@@ -12529,7 +12504,7 @@
|
|
|
12529
12504
|
let _slot;
|
|
12530
12505
|
return vue.createVNode(UMenu.ItemGroup, {
|
|
12531
12506
|
"title": m.title
|
|
12532
|
-
}, _isSlot$
|
|
12507
|
+
}, _isSlot$4(_slot = m.children.map(renderItem)) ? _slot : {
|
|
12533
12508
|
default: () => [_slot]
|
|
12534
12509
|
});
|
|
12535
12510
|
}
|
|
@@ -12575,7 +12550,7 @@
|
|
|
12575
12550
|
[`${prefixCls}-menu-with-icon`]: this.icon
|
|
12576
12551
|
},
|
|
12577
12552
|
"style": this.style
|
|
12578
|
-
}, _isSlot$
|
|
12553
|
+
}, _isSlot$4(menus) ? menus : {
|
|
12579
12554
|
default: () => [menus]
|
|
12580
12555
|
});
|
|
12581
12556
|
}
|
|
@@ -12987,7 +12962,7 @@
|
|
|
12987
12962
|
}
|
|
12988
12963
|
});
|
|
12989
12964
|
|
|
12990
|
-
function _isSlot$
|
|
12965
|
+
function _isSlot$3(s) {
|
|
12991
12966
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12992
12967
|
}
|
|
12993
12968
|
const UMenuItem = UMenu.Item;
|
|
@@ -13057,11 +13032,11 @@
|
|
|
13057
13032
|
if (routeChildren && !!routeChildren.length) {
|
|
13058
13033
|
return () => {
|
|
13059
13034
|
let _slot2;
|
|
13060
|
-
return vue.createVNode(UMenu, null, _isSlot$
|
|
13035
|
+
return vue.createVNode(UMenu, null, _isSlot$3(_slot2 = routeChildren.map((routeChild, index) => {
|
|
13061
13036
|
let _slot;
|
|
13062
13037
|
return vue.createVNode(UMenuItem, {
|
|
13063
13038
|
"key": index
|
|
13064
|
-
}, _isSlot$
|
|
13039
|
+
}, _isSlot$3(_slot = renderRouteItem(routeChild)) ? _slot : {
|
|
13065
13040
|
default: () => [_slot]
|
|
13066
13041
|
});
|
|
13067
13042
|
})) ? _slot2 : {
|
|
@@ -16801,223 +16776,6 @@
|
|
|
16801
16776
|
|
|
16802
16777
|
const UCalendar = withInstall(Calendar);
|
|
16803
16778
|
|
|
16804
|
-
function useGutter(_gutter) {
|
|
16805
|
-
const screens = vue.ref({});
|
|
16806
|
-
const token = vue.ref();
|
|
16807
|
-
const getScreensRepsponsive = () => {
|
|
16808
|
-
token.value = responsiveObserve.subscribe((scn) => {
|
|
16809
|
-
if (isPlainObject$1(_gutter.value) || Array.isArray(_gutter.value) && (isPlainObject$1(_gutter.value[0]) || isPlainObject$1(_gutter.value[1]))) {
|
|
16810
|
-
screens.value = scn;
|
|
16811
|
-
}
|
|
16812
|
-
});
|
|
16813
|
-
};
|
|
16814
|
-
vue.onMounted(getScreensRepsponsive);
|
|
16815
|
-
vue.onUnmounted(() => {
|
|
16816
|
-
responsiveObserve.unsubscribe(token.value);
|
|
16817
|
-
});
|
|
16818
|
-
const getGutter = () => {
|
|
16819
|
-
const result = [0, 0];
|
|
16820
|
-
const gutterArray = Array.isArray(_gutter.value) ? _gutter.value : [_gutter.value, 0];
|
|
16821
|
-
if (screens.value) {
|
|
16822
|
-
gutterArray.forEach((g, index) => {
|
|
16823
|
-
if (isPlainObject$1(g)) {
|
|
16824
|
-
for (let i = 0; i < responsiveArray.length; i += 1) {
|
|
16825
|
-
const breakpoint = responsiveArray[i];
|
|
16826
|
-
if (screens.value[breakpoint] && g[breakpoint] !== void 0) {
|
|
16827
|
-
result[index] = g[breakpoint];
|
|
16828
|
-
break;
|
|
16829
|
-
}
|
|
16830
|
-
}
|
|
16831
|
-
} else {
|
|
16832
|
-
result[index] = g || 0;
|
|
16833
|
-
}
|
|
16834
|
-
});
|
|
16835
|
-
}
|
|
16836
|
-
return result;
|
|
16837
|
-
};
|
|
16838
|
-
const styles = vue.computed(() => {
|
|
16839
|
-
let ret = {};
|
|
16840
|
-
const g = getGutter();
|
|
16841
|
-
if (g[0] > 0) {
|
|
16842
|
-
ret = {
|
|
16843
|
-
[`--grid-gutter-width`]: `${g[0]}px`
|
|
16844
|
-
};
|
|
16845
|
-
}
|
|
16846
|
-
if (g[1] > 0) {
|
|
16847
|
-
ret = {
|
|
16848
|
-
...ret,
|
|
16849
|
-
rowGap: `${g[1]}px`
|
|
16850
|
-
};
|
|
16851
|
-
}
|
|
16852
|
-
return ret;
|
|
16853
|
-
});
|
|
16854
|
-
return {
|
|
16855
|
-
getGutter,
|
|
16856
|
-
styles
|
|
16857
|
-
};
|
|
16858
|
-
}
|
|
16859
|
-
|
|
16860
|
-
const gridAlign = ["top", "middle", "bottom", "stretch"];
|
|
16861
|
-
const gridJustify = ["start", "end", "center", "space-around", "space-between"];
|
|
16862
|
-
const rowProps = {
|
|
16863
|
-
gutter: {
|
|
16864
|
-
type: [Object, Number, Array],
|
|
16865
|
-
default: 0
|
|
16866
|
-
},
|
|
16867
|
-
flex: {
|
|
16868
|
-
type: Boolean,
|
|
16869
|
-
default: false
|
|
16870
|
-
},
|
|
16871
|
-
align: {
|
|
16872
|
-
type: String,
|
|
16873
|
-
default: "top",
|
|
16874
|
-
validator: oneOf(gridAlign)
|
|
16875
|
-
},
|
|
16876
|
-
justify: {
|
|
16877
|
-
type: String,
|
|
16878
|
-
default: "start",
|
|
16879
|
-
validator: oneOf(gridJustify)
|
|
16880
|
-
}
|
|
16881
|
-
};
|
|
16882
|
-
const colProps = {
|
|
16883
|
-
span: {
|
|
16884
|
-
type: [String, Number]
|
|
16885
|
-
},
|
|
16886
|
-
order: {
|
|
16887
|
-
type: [String, Number]
|
|
16888
|
-
},
|
|
16889
|
-
offset: {
|
|
16890
|
-
type: [String, Number]
|
|
16891
|
-
},
|
|
16892
|
-
push: {
|
|
16893
|
-
type: [String, Number]
|
|
16894
|
-
},
|
|
16895
|
-
pull: {
|
|
16896
|
-
type: [String, Number]
|
|
16897
|
-
},
|
|
16898
|
-
xs: {
|
|
16899
|
-
type: [String, Number, Object]
|
|
16900
|
-
},
|
|
16901
|
-
sm: {
|
|
16902
|
-
type: [String, Number, Object]
|
|
16903
|
-
},
|
|
16904
|
-
md: {
|
|
16905
|
-
type: [String, Number, Object]
|
|
16906
|
-
},
|
|
16907
|
-
lg: {
|
|
16908
|
-
type: [String, Number, Object]
|
|
16909
|
-
},
|
|
16910
|
-
xl: {
|
|
16911
|
-
type: [String, Number, Object]
|
|
16912
|
-
},
|
|
16913
|
-
xxl: {
|
|
16914
|
-
type: [String, Number, Object]
|
|
16915
|
-
},
|
|
16916
|
-
flex: {
|
|
16917
|
-
type: [String, Number]
|
|
16918
|
-
}
|
|
16919
|
-
};
|
|
16920
|
-
|
|
16921
|
-
const _sfc_main$1I = vue.defineComponent({
|
|
16922
|
-
name: "URow",
|
|
16923
|
-
props: rowProps,
|
|
16924
|
-
setup(props) {
|
|
16925
|
-
const { gutter } = vue.toRefs(props);
|
|
16926
|
-
const { prefixCls } = useGlobalConfig("row");
|
|
16927
|
-
const { getGutter, styles } = useGutter(gutter);
|
|
16928
|
-
return {
|
|
16929
|
-
prefixCls,
|
|
16930
|
-
getGutter,
|
|
16931
|
-
styles
|
|
16932
|
-
};
|
|
16933
|
-
}
|
|
16934
|
-
});
|
|
16935
|
-
function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16936
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
16937
|
-
class: vue.normalizeClass({
|
|
16938
|
-
[`${_ctx.prefixCls}`]: true,
|
|
16939
|
-
[`${_ctx.prefixCls}-flex-${_ctx.justify}`]: _ctx.flex && _ctx.justify,
|
|
16940
|
-
[`${_ctx.prefixCls}-flex-${_ctx.align}`]: _ctx.flex && _ctx.align
|
|
16941
|
-
}),
|
|
16942
|
-
style: vue.normalizeStyle(_ctx.styles)
|
|
16943
|
-
}, [
|
|
16944
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
16945
|
-
], 6);
|
|
16946
|
-
}
|
|
16947
|
-
var Row$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1G], ["__file", "Row.vue"]]);
|
|
16948
|
-
|
|
16949
|
-
const parseFlex = (flex) => {
|
|
16950
|
-
if (typeof flex === "number") {
|
|
16951
|
-
return `${flex} ${flex} auto`;
|
|
16952
|
-
}
|
|
16953
|
-
if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
|
|
16954
|
-
return `0 0 ${flex}`;
|
|
16955
|
-
}
|
|
16956
|
-
return flex;
|
|
16957
|
-
};
|
|
16958
|
-
const _sfc_main$1H = vue.defineComponent({
|
|
16959
|
-
name: "UCol",
|
|
16960
|
-
props: colProps,
|
|
16961
|
-
setup(props) {
|
|
16962
|
-
const { prefixCls } = useGlobalConfig("col");
|
|
16963
|
-
const sizeCls = vue.computed(() => {
|
|
16964
|
-
const ret = [];
|
|
16965
|
-
["xs", "sm", "md", "lg", "xl", "xxl"].forEach((size) => {
|
|
16966
|
-
const sizeProp = props[size];
|
|
16967
|
-
if (typeof sizeProp === "number" || typeof sizeProp === "string") {
|
|
16968
|
-
ret.push(`${prefixCls.value}-${size}-${sizeProp}`);
|
|
16969
|
-
} else if (typeof sizeProp === "object") {
|
|
16970
|
-
Object.keys(sizeProp).forEach((key) => {
|
|
16971
|
-
ret.push(key === "span" ? `${prefixCls.value}-${size}-${sizeProp[key]}` : `${prefixCls.value}-${size}-${key}-${sizeProp[key]}`);
|
|
16972
|
-
});
|
|
16973
|
-
}
|
|
16974
|
-
});
|
|
16975
|
-
return ret;
|
|
16976
|
-
});
|
|
16977
|
-
const styles = vue.computed(() => {
|
|
16978
|
-
let ret = {};
|
|
16979
|
-
ret = {
|
|
16980
|
-
...ret,
|
|
16981
|
-
flex: parseFlex(props.flex)
|
|
16982
|
-
};
|
|
16983
|
-
return ret;
|
|
16984
|
-
});
|
|
16985
|
-
return {
|
|
16986
|
-
sizeCls,
|
|
16987
|
-
prefixCls,
|
|
16988
|
-
styles
|
|
16989
|
-
};
|
|
16990
|
-
}
|
|
16991
|
-
});
|
|
16992
|
-
function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16993
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
16994
|
-
class: vue.normalizeClass([
|
|
16995
|
-
_ctx.prefixCls,
|
|
16996
|
-
..._ctx.sizeCls,
|
|
16997
|
-
{
|
|
16998
|
-
[`${_ctx.prefixCls}-${_ctx.span}`]: _ctx.span,
|
|
16999
|
-
[`${_ctx.prefixCls}-order-${_ctx.order}`]: _ctx.order,
|
|
17000
|
-
[`${_ctx.prefixCls}-offset-${_ctx.offset}`]: _ctx.offset,
|
|
17001
|
-
[`${_ctx.prefixCls}-push-${_ctx.push}`]: _ctx.push,
|
|
17002
|
-
[`${_ctx.prefixCls}-pull-${_ctx.pull}`]: _ctx.pull
|
|
17003
|
-
}
|
|
17004
|
-
]),
|
|
17005
|
-
style: vue.normalizeStyle(_ctx.styles)
|
|
17006
|
-
}, [
|
|
17007
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
17008
|
-
], 6);
|
|
17009
|
-
}
|
|
17010
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$1F], ["__file", "Col.vue"]]);
|
|
17011
|
-
|
|
17012
|
-
const UGrid = {
|
|
17013
|
-
Row: Row$1,
|
|
17014
|
-
Col,
|
|
17015
|
-
install: (app) => {
|
|
17016
|
-
app.component(Row$1.name, Row$1);
|
|
17017
|
-
app.component(Col.name, Col);
|
|
17018
|
-
}
|
|
17019
|
-
};
|
|
17020
|
-
|
|
17021
16779
|
const cardProps = {
|
|
17022
16780
|
bordered: {
|
|
17023
16781
|
type: Boolean,
|
|
@@ -17031,14 +16789,14 @@
|
|
|
17031
16789
|
type: Boolean,
|
|
17032
16790
|
default: false
|
|
17033
16791
|
},
|
|
17034
|
-
padding: {
|
|
17035
|
-
type: Number,
|
|
17036
|
-
default: 16
|
|
17037
|
-
},
|
|
17038
16792
|
title: {
|
|
17039
16793
|
type: String,
|
|
17040
16794
|
default: ""
|
|
17041
16795
|
},
|
|
16796
|
+
description: {
|
|
16797
|
+
type: String,
|
|
16798
|
+
default: ""
|
|
16799
|
+
},
|
|
17042
16800
|
icon: {
|
|
17043
16801
|
type: [String, Object, Function]
|
|
17044
16802
|
},
|
|
@@ -17062,13 +16820,6 @@
|
|
|
17062
16820
|
}
|
|
17063
16821
|
};
|
|
17064
16822
|
|
|
17065
|
-
function _isSlot$3(s) {
|
|
17066
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
17067
|
-
}
|
|
17068
|
-
const {
|
|
17069
|
-
Col: UCol,
|
|
17070
|
-
Row: URow
|
|
17071
|
-
} = UGrid;
|
|
17072
16823
|
var Card = vue.defineComponent({
|
|
17073
16824
|
name: "UCard",
|
|
17074
16825
|
components: {
|
|
@@ -17090,7 +16841,8 @@
|
|
|
17090
16841
|
disHover,
|
|
17091
16842
|
title,
|
|
17092
16843
|
icon,
|
|
17093
|
-
grid
|
|
16844
|
+
grid,
|
|
16845
|
+
description
|
|
17094
16846
|
} = props;
|
|
17095
16847
|
const showHead = !!title || slots.title !== void 0;
|
|
17096
16848
|
const showExtra = showHead && slots.extra !== void 0;
|
|
@@ -17110,27 +16862,29 @@
|
|
|
17110
16862
|
};
|
|
17111
16863
|
const headRender = showHead ? vue.createVNode("div", {
|
|
17112
16864
|
"class": `${prefixCls.value}-head`
|
|
17113
|
-
}, [slots.title !== void 0 ? (_a = slots.title) == null ? void 0 : _a.call(slots) : vue.createVNode("div", {
|
|
17114
|
-
"class": `${prefixCls.value}-head-
|
|
17115
|
-
}, [iconRender(), vue.createVNode("span", null, [title])])
|
|
16865
|
+
}, [slots.title !== void 0 ? (_a = slots.title) == null ? void 0 : _a.call(slots) : vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
|
|
16866
|
+
"class": `${prefixCls.value}-head-title`
|
|
16867
|
+
}, [iconRender(), vue.createVNode("span", null, [title])]), description && vue.createVNode("div", {
|
|
16868
|
+
"class": `${prefixCls.value}-head-description`
|
|
16869
|
+
}, [description])])]) : null;
|
|
17116
16870
|
const extraRender = showExtra ? vue.createVNode("div", {
|
|
17117
16871
|
"class": `${prefixCls.value}-extra`
|
|
17118
16872
|
}, [(_b = slots.extra) == null ? void 0 : _b.call(slots)]) : null;
|
|
17119
16873
|
const coverRender = slots.cover !== void 0 ? vue.createVNode("div", {
|
|
17120
16874
|
"class": `${prefixCls.value}-cover`
|
|
17121
16875
|
}, [(_c = slots.cover) == null ? void 0 : _c.call(slots)]) : null;
|
|
17122
|
-
const actionRenderer = slots.action ? vue.createVNode("
|
|
16876
|
+
const actionRenderer = slots.action ? vue.createVNode("div", {
|
|
17123
16877
|
"class": `${prefixCls.value}-action`
|
|
17124
|
-
}, [getSlot(slots, "action").map((child) => vue.createVNode("
|
|
16878
|
+
}, [getSlot(slots, "action").map((child) => vue.createVNode("div", null, [child]))]) : null;
|
|
17125
16879
|
const gridRenderer = () => {
|
|
17126
16880
|
const cols = getSlot(slots).map((child) => {
|
|
17127
|
-
let _slot;
|
|
17128
16881
|
const colSpan = child.props && child.props.span ? child.props.span : grid;
|
|
17129
|
-
return vue.createVNode(
|
|
17130
|
-
"
|
|
17131
|
-
|
|
17132
|
-
|
|
17133
|
-
|
|
16882
|
+
return vue.createVNode("div", {
|
|
16883
|
+
"class": `${prefixCls.value}-grid-item`,
|
|
16884
|
+
"style": {
|
|
16885
|
+
gridColumn: `span ${colSpan} / span ${colSpan}`
|
|
16886
|
+
}
|
|
16887
|
+
}, [getSlot(child.children, "default")]);
|
|
17134
16888
|
});
|
|
17135
16889
|
const classString = {
|
|
17136
16890
|
[`${prefixCls.value}-grid`]: true,
|
|
@@ -17138,9 +16892,7 @@
|
|
|
17138
16892
|
};
|
|
17139
16893
|
return vue.createVNode("div", {
|
|
17140
16894
|
"class": classString
|
|
17141
|
-
}, [
|
|
17142
|
-
default: () => [cols]
|
|
17143
|
-
})]);
|
|
16895
|
+
}, [cols]);
|
|
17144
16896
|
};
|
|
17145
16897
|
const bodyRender = getSlot(slots).length ? vue.createVNode("div", {
|
|
17146
16898
|
"class": `${prefixCls.value}-body`
|
|
@@ -17148,11 +16900,11 @@
|
|
|
17148
16900
|
return vue.createVNode("div", {
|
|
17149
16901
|
"class": [`${prefixCls.value}`, {
|
|
17150
16902
|
[`${prefixCls.value}-bordered`]: bordered && !shadow,
|
|
17151
|
-
[`${prefixCls.value}-dis-hover`]: disHover
|
|
16903
|
+
[`${prefixCls.value}-dis-hover`]: disHover && !shadow,
|
|
17152
16904
|
[`${prefixCls.value}-shadow`]: shadow,
|
|
17153
16905
|
[`${prefixCls.value}-contain-grid`]: grid
|
|
17154
16906
|
}]
|
|
17155
|
-
}, [
|
|
16907
|
+
}, [extraRender, headRender, coverRender, bodyRender, actionRenderer]);
|
|
17156
16908
|
};
|
|
17157
16909
|
}
|
|
17158
16910
|
});
|
|
@@ -17166,7 +16918,7 @@
|
|
|
17166
16918
|
}
|
|
17167
16919
|
});
|
|
17168
16920
|
|
|
17169
|
-
const _sfc_main$
|
|
16921
|
+
const _sfc_main$1I = vue.defineComponent({
|
|
17170
16922
|
name: "UCardMeta",
|
|
17171
16923
|
components: {
|
|
17172
16924
|
UAvatar
|
|
@@ -17179,7 +16931,7 @@
|
|
|
17179
16931
|
};
|
|
17180
16932
|
}
|
|
17181
16933
|
});
|
|
17182
|
-
function _sfc_render$
|
|
16934
|
+
function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17183
16935
|
const _component_UAvatar = vue.resolveComponent("UAvatar");
|
|
17184
16936
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17185
16937
|
class: vue.normalizeClass(`${_ctx.prefixCls}`)
|
|
@@ -17214,7 +16966,7 @@
|
|
|
17214
16966
|
], 2)
|
|
17215
16967
|
], 2);
|
|
17216
16968
|
}
|
|
17217
|
-
var CardMeta = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16969
|
+
var CardMeta = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1G], ["__file", "CardMeta.vue"]]);
|
|
17218
16970
|
|
|
17219
16971
|
const UCard = withInstall(Card, {
|
|
17220
16972
|
UCard: CardGrid,
|
|
@@ -17282,7 +17034,7 @@
|
|
|
17282
17034
|
change: (cur, pre) => typeof cur === "number" && typeof pre === "number"
|
|
17283
17035
|
};
|
|
17284
17036
|
|
|
17285
|
-
const _sfc_main$
|
|
17037
|
+
const _sfc_main$1H = vue.defineComponent({
|
|
17286
17038
|
name: "UCarousel",
|
|
17287
17039
|
components: {
|
|
17288
17040
|
UIcon,
|
|
@@ -17581,7 +17333,7 @@
|
|
|
17581
17333
|
const _hoisted_1$F = ["disabled"];
|
|
17582
17334
|
const _hoisted_2$g = ["disabled"];
|
|
17583
17335
|
const _hoisted_3$3 = ["onMouseenter", "onClick"];
|
|
17584
|
-
function _sfc_render$
|
|
17336
|
+
function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17585
17337
|
const _component_ChevronLeft = vue.resolveComponent("ChevronLeft");
|
|
17586
17338
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
17587
17339
|
const _component_ChevronRight = vue.resolveComponent("ChevronRight");
|
|
@@ -17718,10 +17470,10 @@
|
|
|
17718
17470
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
17719
17471
|
], 34);
|
|
17720
17472
|
}
|
|
17721
|
-
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17473
|
+
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$1F], ["__file", "Carousel.vue"]]);
|
|
17722
17474
|
|
|
17723
17475
|
const CARD_SCALE = 0.9;
|
|
17724
|
-
const _sfc_main$
|
|
17476
|
+
const _sfc_main$1G = vue.defineComponent({
|
|
17725
17477
|
name: "UCarouselItem",
|
|
17726
17478
|
setup(props, { slots }) {
|
|
17727
17479
|
const { prefixCls } = useGlobalConfig("carousel");
|
|
@@ -17832,7 +17584,7 @@
|
|
|
17832
17584
|
};
|
|
17833
17585
|
}
|
|
17834
17586
|
});
|
|
17835
|
-
function _sfc_render$
|
|
17587
|
+
function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17836
17588
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17837
17589
|
class: vue.normalizeClass({
|
|
17838
17590
|
[`${_ctx.prefixCls}-item`]: true,
|
|
@@ -17853,7 +17605,7 @@
|
|
|
17853
17605
|
vue.renderSlot(_ctx.$slots, "default")
|
|
17854
17606
|
], 6);
|
|
17855
17607
|
}
|
|
17856
|
-
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17608
|
+
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1E], ["__file", "CarouselItem.vue"]]);
|
|
17857
17609
|
|
|
17858
17610
|
const UCarousel = withInstall(Carousel, {
|
|
17859
17611
|
Item: CarouselItem
|
|
@@ -17923,7 +17675,7 @@
|
|
|
17923
17675
|
}
|
|
17924
17676
|
};
|
|
17925
17677
|
|
|
17926
|
-
const _sfc_main$
|
|
17678
|
+
const _sfc_main$1F = vue.defineComponent({
|
|
17927
17679
|
name: "UCollapse",
|
|
17928
17680
|
props: collapseProps,
|
|
17929
17681
|
emits: collapseEmits,
|
|
@@ -17992,7 +17744,7 @@
|
|
|
17992
17744
|
};
|
|
17993
17745
|
}
|
|
17994
17746
|
});
|
|
17995
|
-
function _sfc_render$
|
|
17747
|
+
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17996
17748
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
17997
17749
|
class: vue.normalizeClass([
|
|
17998
17750
|
_ctx.prefixCls,
|
|
@@ -18003,9 +17755,9 @@
|
|
|
18003
17755
|
vue.renderSlot(_ctx.$slots, "default")
|
|
18004
17756
|
], 2);
|
|
18005
17757
|
}
|
|
18006
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17758
|
+
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1D], ["__file", "Collapse.vue"]]);
|
|
18007
17759
|
|
|
18008
|
-
const _sfc_main$
|
|
17760
|
+
const _sfc_main$1E = vue.defineComponent({
|
|
18009
17761
|
name: "UCollapsePanel",
|
|
18010
17762
|
components: {
|
|
18011
17763
|
UIcon,
|
|
@@ -18077,7 +17829,7 @@
|
|
|
18077
17829
|
};
|
|
18078
17830
|
}
|
|
18079
17831
|
});
|
|
18080
|
-
function _sfc_render$
|
|
17832
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18081
17833
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
18082
17834
|
const _component_CollapseTransition = vue.resolveComponent("CollapseTransition");
|
|
18083
17835
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -18141,7 +17893,7 @@
|
|
|
18141
17893
|
})
|
|
18142
17894
|
], 2);
|
|
18143
17895
|
}
|
|
18144
|
-
var CollapsePanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17896
|
+
var CollapsePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1C], ["__file", "Panel.vue"]]);
|
|
18145
17897
|
|
|
18146
17898
|
const UCollapse = withInstall(Collapse, {
|
|
18147
17899
|
Panel: CollapsePanel
|
|
@@ -19737,7 +19489,7 @@
|
|
|
19737
19489
|
});
|
|
19738
19490
|
};
|
|
19739
19491
|
|
|
19740
|
-
const _sfc_main$
|
|
19492
|
+
const _sfc_main$1D = vue.defineComponent({
|
|
19741
19493
|
name: "UColorSvPanel",
|
|
19742
19494
|
props: {
|
|
19743
19495
|
prefixCls: {
|
|
@@ -19801,7 +19553,7 @@
|
|
|
19801
19553
|
};
|
|
19802
19554
|
}
|
|
19803
19555
|
});
|
|
19804
|
-
function _sfc_render$
|
|
19556
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19805
19557
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19806
19558
|
ref: "hueRef",
|
|
19807
19559
|
class: vue.normalizeClass(_ctx.prefixCls)
|
|
@@ -19820,9 +19572,9 @@
|
|
|
19820
19572
|
], 2)
|
|
19821
19573
|
], 2);
|
|
19822
19574
|
}
|
|
19823
|
-
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19575
|
+
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1B], ["__file", "HueSlider.vue"]]);
|
|
19824
19576
|
|
|
19825
|
-
const _sfc_main$
|
|
19577
|
+
const _sfc_main$1C = vue.defineComponent({
|
|
19826
19578
|
name: "UColorSvPanel",
|
|
19827
19579
|
props: {
|
|
19828
19580
|
prefixCls: {
|
|
@@ -19888,7 +19640,7 @@
|
|
|
19888
19640
|
};
|
|
19889
19641
|
}
|
|
19890
19642
|
});
|
|
19891
|
-
function _sfc_render$
|
|
19643
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19892
19644
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19893
19645
|
ref: "panelRef",
|
|
19894
19646
|
class: vue.normalizeClass(_ctx.prefixCls),
|
|
@@ -19911,9 +19663,9 @@
|
|
|
19911
19663
|
}, null, 6)
|
|
19912
19664
|
], 6);
|
|
19913
19665
|
}
|
|
19914
|
-
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19666
|
+
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1A], ["__file", "SvPanel.vue"]]);
|
|
19915
19667
|
|
|
19916
|
-
const _sfc_main$
|
|
19668
|
+
const _sfc_main$1B = vue.defineComponent({
|
|
19917
19669
|
name: "UColorAlphaSlider",
|
|
19918
19670
|
props: {
|
|
19919
19671
|
prefixCls: {
|
|
@@ -19987,7 +19739,7 @@
|
|
|
19987
19739
|
};
|
|
19988
19740
|
}
|
|
19989
19741
|
});
|
|
19990
|
-
function _sfc_render$
|
|
19742
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19991
19743
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19992
19744
|
ref: "rootRef",
|
|
19993
19745
|
class: vue.normalizeClass(_ctx.prefixCls)
|
|
@@ -20008,9 +19760,9 @@
|
|
|
20008
19760
|
}, null, 6)
|
|
20009
19761
|
], 2);
|
|
20010
19762
|
}
|
|
20011
|
-
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19763
|
+
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1z], ["__file", "AlphaSlider.vue"]]);
|
|
20012
19764
|
|
|
20013
|
-
const _sfc_main$
|
|
19765
|
+
const _sfc_main$1A = vue.defineComponent({
|
|
20014
19766
|
name: "UColorPrevColors",
|
|
20015
19767
|
props: {
|
|
20016
19768
|
prefixCls: {
|
|
@@ -20050,7 +19802,7 @@
|
|
|
20050
19802
|
}
|
|
20051
19803
|
});
|
|
20052
19804
|
const _hoisted_1$E = ["onClick"];
|
|
20053
|
-
function _sfc_render$
|
|
19805
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20054
19806
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20055
19807
|
class: vue.normalizeClass(_ctx.prefixCls)
|
|
20056
19808
|
}, [
|
|
@@ -20072,7 +19824,7 @@
|
|
|
20072
19824
|
}), 128))
|
|
20073
19825
|
], 2);
|
|
20074
19826
|
}
|
|
20075
|
-
var PreColors = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19827
|
+
var PreColors = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1y], ["__file", "PreColors.vue"]]);
|
|
20076
19828
|
|
|
20077
19829
|
const colorPickerFormat = ["hsv", "hsl", "hex", "rgb"];
|
|
20078
19830
|
const colorPickerProps = {
|
|
@@ -20120,7 +19872,7 @@
|
|
|
20120
19872
|
"open-change": (v) => typeof v === "boolean"
|
|
20121
19873
|
};
|
|
20122
19874
|
|
|
20123
|
-
const _sfc_main$
|
|
19875
|
+
const _sfc_main$1z = vue.defineComponent({
|
|
20124
19876
|
name: "UColorPicker",
|
|
20125
19877
|
components: {
|
|
20126
19878
|
Popup,
|
|
@@ -20252,7 +20004,7 @@
|
|
|
20252
20004
|
};
|
|
20253
20005
|
}
|
|
20254
20006
|
});
|
|
20255
|
-
function _sfc_render$
|
|
20007
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20256
20008
|
const _component_ChevronDown = vue.resolveComponent("ChevronDown");
|
|
20257
20009
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
20258
20010
|
const _component_SvPanel = vue.resolveComponent("SvPanel");
|
|
@@ -20382,7 +20134,7 @@
|
|
|
20382
20134
|
_: 1
|
|
20383
20135
|
}, 8, ["trigger", "prefix-cls", "popup-class", "popup-style", "visible", "disabled", "onPopupVisibleChange"]);
|
|
20384
20136
|
}
|
|
20385
|
-
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20137
|
+
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1x], ["__file", "ColorPicker.vue"]]);
|
|
20386
20138
|
|
|
20387
20139
|
const UColorPicker = withInstall(ColorPicker);
|
|
20388
20140
|
|
|
@@ -20724,7 +20476,7 @@
|
|
|
20724
20476
|
default: "date"
|
|
20725
20477
|
}
|
|
20726
20478
|
};
|
|
20727
|
-
const _sfc_main$
|
|
20479
|
+
const _sfc_main$1y = vue.defineComponent({
|
|
20728
20480
|
name: "DatePickerInput",
|
|
20729
20481
|
props: defineProps$9,
|
|
20730
20482
|
emits: {
|
|
@@ -20841,7 +20593,7 @@
|
|
|
20841
20593
|
}
|
|
20842
20594
|
});
|
|
20843
20595
|
const _hoisted_1$D = ["placeholder", "disabled", "value", "size"];
|
|
20844
|
-
function _sfc_render$
|
|
20596
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20845
20597
|
return vue.openBlock(), vue.createElementBlock("input", {
|
|
20846
20598
|
ref: "inputRef",
|
|
20847
20599
|
class: vue.normalizeClass([`${_ctx.prefixCls}-picker-input`]),
|
|
@@ -20856,9 +20608,9 @@
|
|
|
20856
20608
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onInputBlur && _ctx.onInputBlur(...args))
|
|
20857
20609
|
}, null, 42, _hoisted_1$D);
|
|
20858
20610
|
}
|
|
20859
|
-
var DatePickerInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20611
|
+
var DatePickerInput = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1w], ["__file", "DatePickerInput.vue"]]);
|
|
20860
20612
|
|
|
20861
|
-
const _sfc_main$
|
|
20613
|
+
const _sfc_main$1x = vue.defineComponent({
|
|
20862
20614
|
name: "RangeSeparator"
|
|
20863
20615
|
});
|
|
20864
20616
|
const _hoisted_1$C = {
|
|
@@ -20872,7 +20624,7 @@
|
|
|
20872
20624
|
width: "200",
|
|
20873
20625
|
height: "200"
|
|
20874
20626
|
};
|
|
20875
|
-
function _sfc_render$
|
|
20627
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20876
20628
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$C, _cache[0] || (_cache[0] = [
|
|
20877
20629
|
vue.createElementVNode("path", {
|
|
20878
20630
|
d: "M883.328 572.352l-0.149333-0.170667-181.013334-181.013333a42.666667 42.666667 0 0 0-60.330666 60.330667l108.501333 108.501333H170.666667a42.666667 42.666667 0 1 0 0 85.333333h682.666666a42.666667 42.666667 0 0 0 29.994667-72.981333z",
|
|
@@ -20881,7 +20633,7 @@
|
|
|
20881
20633
|
}, null, -1)
|
|
20882
20634
|
]));
|
|
20883
20635
|
}
|
|
20884
|
-
var RangeSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20636
|
+
var RangeSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1v], ["__file", "RangeSeparator.vue"]]);
|
|
20885
20637
|
|
|
20886
20638
|
const defineProps$8 = {
|
|
20887
20639
|
prefixCls: {
|
|
@@ -20927,7 +20679,7 @@
|
|
|
20927
20679
|
type: [Number, Object, Function]
|
|
20928
20680
|
}
|
|
20929
20681
|
};
|
|
20930
|
-
const _sfc_main$
|
|
20682
|
+
const _sfc_main$1w = vue.defineComponent({
|
|
20931
20683
|
name: "DateRangeInput",
|
|
20932
20684
|
components: {
|
|
20933
20685
|
URender: Render,
|
|
@@ -21062,7 +20814,7 @@
|
|
|
21062
20814
|
});
|
|
21063
20815
|
const _hoisted_1$B = ["value", "placeholder", "size"];
|
|
21064
20816
|
const _hoisted_2$f = ["value", "size", "placeholder"];
|
|
21065
|
-
function _sfc_render$
|
|
20817
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21066
20818
|
const _component_URender = vue.resolveComponent("URender");
|
|
21067
20819
|
const _component_RangeSeparator = vue.resolveComponent("RangeSeparator");
|
|
21068
20820
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
@@ -21108,9 +20860,9 @@
|
|
|
21108
20860
|
}, null, 42, _hoisted_2$f)
|
|
21109
20861
|
], 2);
|
|
21110
20862
|
}
|
|
21111
|
-
var DateRangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20863
|
+
var DateRangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1u], ["__file", "DateRangeInput.vue"]]);
|
|
21112
20864
|
|
|
21113
|
-
const _sfc_main$
|
|
20865
|
+
const _sfc_main$1v = vue.defineComponent({
|
|
21114
20866
|
name: "DatePanelHeader",
|
|
21115
20867
|
components: { UIcon, ChevronsLeft: lucideVueNext.ChevronsLeft, ChevronsRight: lucideVueNext.ChevronsRight, ChevronLeft: lucideVueNext.ChevronLeft, ChevronRight: lucideVueNext.ChevronRight },
|
|
21116
20868
|
props: {
|
|
@@ -21190,7 +20942,7 @@
|
|
|
21190
20942
|
const _hoisted_2$e = ["title"];
|
|
21191
20943
|
const _hoisted_3$2 = ["title"];
|
|
21192
20944
|
const _hoisted_4 = ["title"];
|
|
21193
|
-
function _sfc_render$
|
|
20945
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21194
20946
|
const _component_ChevronsLeft = vue.resolveComponent("ChevronsLeft");
|
|
21195
20947
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
21196
20948
|
const _component_ChevronLeft = vue.resolveComponent("ChevronLeft");
|
|
@@ -21300,7 +21052,7 @@
|
|
|
21300
21052
|
], 10, _hoisted_4)) : vue.createCommentVNode("v-if", true)
|
|
21301
21053
|
], 2);
|
|
21302
21054
|
}
|
|
21303
|
-
var DatePanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21055
|
+
var DatePanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1t], ["__file", "DatePanelHeader.vue"]]);
|
|
21304
21056
|
|
|
21305
21057
|
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
21306
21058
|
const scrollbarProps = {
|
|
@@ -21697,7 +21449,7 @@
|
|
|
21697
21449
|
|
|
21698
21450
|
const UScrollbar = withInstall(Scrollbar);
|
|
21699
21451
|
|
|
21700
|
-
const _sfc_main$
|
|
21452
|
+
const _sfc_main$1u = vue.defineComponent({
|
|
21701
21453
|
name: "TimePickerSelect",
|
|
21702
21454
|
components: { Scrollbar: UScrollbar },
|
|
21703
21455
|
props: {
|
|
@@ -21766,7 +21518,7 @@
|
|
|
21766
21518
|
});
|
|
21767
21519
|
const _hoisted_1$z = { ref: "listRef" };
|
|
21768
21520
|
const _hoisted_2$d = ["disabled", "onClick"];
|
|
21769
|
-
function _sfc_render$
|
|
21521
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21770
21522
|
const _component_Scrollbar = vue.resolveComponent("Scrollbar");
|
|
21771
21523
|
return vue.openBlock(), vue.createBlock(_component_Scrollbar, {
|
|
21772
21524
|
ref: "selectRef",
|
|
@@ -21796,7 +21548,7 @@
|
|
|
21796
21548
|
_: 1
|
|
21797
21549
|
}, 8, ["class", "onMouseenter"]);
|
|
21798
21550
|
}
|
|
21799
|
-
var SelectList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21551
|
+
var SelectList = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1s], ["__file", "SelectList.vue"]]);
|
|
21800
21552
|
|
|
21801
21553
|
const generateShowWhat = (format) => {
|
|
21802
21554
|
return {
|
|
@@ -21903,7 +21655,7 @@
|
|
|
21903
21655
|
return time.second(fixSecond);
|
|
21904
21656
|
};
|
|
21905
21657
|
|
|
21906
|
-
const _sfc_main$
|
|
21658
|
+
const _sfc_main$1t = vue.defineComponent({
|
|
21907
21659
|
name: "TimePickerPanel",
|
|
21908
21660
|
components: {
|
|
21909
21661
|
SelectList
|
|
@@ -22120,7 +21872,7 @@
|
|
|
22120
21872
|
};
|
|
22121
21873
|
}
|
|
22122
21874
|
});
|
|
22123
|
-
function _sfc_render$
|
|
21875
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22124
21876
|
const _component_SelectList = vue.resolveComponent("SelectList");
|
|
22125
21877
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22126
21878
|
class: vue.normalizeClass([`${_ctx.prefixCls}-inner`, `${_ctx.prefixCls}-column-${_ctx.columns}`])
|
|
@@ -22159,9 +21911,9 @@
|
|
|
22159
21911
|
}, null, 8, ["prefix-cls", "options", "selected", "onSelect"])) : vue.createCommentVNode("v-if", true)
|
|
22160
21912
|
], 2);
|
|
22161
21913
|
}
|
|
22162
|
-
var TimePanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21914
|
+
var TimePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1r], ["__file", "TimePanel.vue"]]);
|
|
22163
21915
|
|
|
22164
|
-
const _sfc_main$
|
|
21916
|
+
const _sfc_main$1s = vue.defineComponent({
|
|
22165
21917
|
name: "DatePanel",
|
|
22166
21918
|
components: {
|
|
22167
21919
|
DatePanelHeader,
|
|
@@ -22278,7 +22030,7 @@
|
|
|
22278
22030
|
};
|
|
22279
22031
|
}
|
|
22280
22032
|
});
|
|
22281
|
-
function _sfc_render$
|
|
22033
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22282
22034
|
var _a, _b, _c, _d, _e;
|
|
22283
22035
|
const _component_DatePanelHeader = vue.resolveComponent("DatePanelHeader");
|
|
22284
22036
|
const _component_DateTable = vue.resolveComponent("DateTable");
|
|
@@ -22342,9 +22094,9 @@
|
|
|
22342
22094
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
22343
22095
|
], 2);
|
|
22344
22096
|
}
|
|
22345
|
-
var DatePanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22097
|
+
var DatePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1q], ["__file", "DatePanel.vue"]]);
|
|
22346
22098
|
|
|
22347
|
-
const _sfc_main$
|
|
22099
|
+
const _sfc_main$1r = vue.defineComponent({
|
|
22348
22100
|
name: "MonthPanelHeader",
|
|
22349
22101
|
components: { UIcon, ChevronsLeft: lucideVueNext.ChevronsLeft, ChevronsRight: lucideVueNext.ChevronsRight },
|
|
22350
22102
|
props: {
|
|
@@ -22397,7 +22149,7 @@
|
|
|
22397
22149
|
});
|
|
22398
22150
|
const _hoisted_1$y = ["title"];
|
|
22399
22151
|
const _hoisted_2$c = ["title"];
|
|
22400
|
-
function _sfc_render$
|
|
22152
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22401
22153
|
const _component_ChevronsLeft = vue.resolveComponent("ChevronsLeft");
|
|
22402
22154
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
22403
22155
|
const _component_ChevronsRight = vue.resolveComponent("ChevronsRight");
|
|
@@ -22448,9 +22200,9 @@
|
|
|
22448
22200
|
], 10, _hoisted_2$c)
|
|
22449
22201
|
], 2);
|
|
22450
22202
|
}
|
|
22451
|
-
var MonthPanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22203
|
+
var MonthPanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1p], ["__file", "MonthPanelHeader.vue"]]);
|
|
22452
22204
|
|
|
22453
|
-
const _sfc_main$
|
|
22205
|
+
const _sfc_main$1q = vue.defineComponent({
|
|
22454
22206
|
name: "MonthPanel",
|
|
22455
22207
|
components: {
|
|
22456
22208
|
MonthPanelHeader,
|
|
@@ -22528,7 +22280,7 @@
|
|
|
22528
22280
|
};
|
|
22529
22281
|
}
|
|
22530
22282
|
});
|
|
22531
|
-
function _sfc_render$
|
|
22283
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22532
22284
|
const _component_MonthPanelHeader = vue.resolveComponent("MonthPanelHeader");
|
|
22533
22285
|
const _component_MonthTable = vue.resolveComponent("MonthTable");
|
|
22534
22286
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -22560,9 +22312,9 @@
|
|
|
22560
22312
|
], 2)
|
|
22561
22313
|
], 2);
|
|
22562
22314
|
}
|
|
22563
|
-
var MonthPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22315
|
+
var MonthPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1o], ["__file", "MonthPanel.vue"]]);
|
|
22564
22316
|
|
|
22565
|
-
const _sfc_main$
|
|
22317
|
+
const _sfc_main$1p = vue.defineComponent({
|
|
22566
22318
|
name: "YearPanelHeader",
|
|
22567
22319
|
components: { UIcon, ChevronsLeft: lucideVueNext.ChevronsLeft, ChevronsRight: lucideVueNext.ChevronsRight },
|
|
22568
22320
|
props: {
|
|
@@ -22612,7 +22364,7 @@
|
|
|
22612
22364
|
});
|
|
22613
22365
|
const _hoisted_1$x = ["title"];
|
|
22614
22366
|
const _hoisted_2$b = ["title"];
|
|
22615
|
-
function _sfc_render$
|
|
22367
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22616
22368
|
const _component_ChevronsLeft = vue.resolveComponent("ChevronsLeft");
|
|
22617
22369
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
22618
22370
|
const _component_ChevronsRight = vue.resolveComponent("ChevronsRight");
|
|
@@ -22658,9 +22410,9 @@
|
|
|
22658
22410
|
], 10, _hoisted_2$b)
|
|
22659
22411
|
], 2);
|
|
22660
22412
|
}
|
|
22661
|
-
var YearPanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22413
|
+
var YearPanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1n], ["__file", "YearPanelHeader.vue"]]);
|
|
22662
22414
|
|
|
22663
|
-
const _sfc_main$
|
|
22415
|
+
const _sfc_main$1o = vue.defineComponent({
|
|
22664
22416
|
name: "YearTable",
|
|
22665
22417
|
props: {
|
|
22666
22418
|
prefixCls: {
|
|
@@ -22805,7 +22557,7 @@
|
|
|
22805
22557
|
}
|
|
22806
22558
|
});
|
|
22807
22559
|
const _hoisted_1$w = ["onClick", "onMouseenter"];
|
|
22808
|
-
function _sfc_render$
|
|
22560
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22809
22561
|
return vue.openBlock(), vue.createElementBlock("table", {
|
|
22810
22562
|
class: vue.normalizeClass(`${_ctx.prefixCls}-table`)
|
|
22811
22563
|
}, [
|
|
@@ -22829,9 +22581,9 @@
|
|
|
22829
22581
|
])
|
|
22830
22582
|
], 2);
|
|
22831
22583
|
}
|
|
22832
|
-
var YearTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22584
|
+
var YearTable = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1m], ["__file", "YearTable.vue"]]);
|
|
22833
22585
|
|
|
22834
|
-
const _sfc_main$
|
|
22586
|
+
const _sfc_main$1n = vue.defineComponent({
|
|
22835
22587
|
name: "YearPanel",
|
|
22836
22588
|
components: {
|
|
22837
22589
|
YearPanelHeader,
|
|
@@ -22909,7 +22661,7 @@
|
|
|
22909
22661
|
};
|
|
22910
22662
|
}
|
|
22911
22663
|
});
|
|
22912
|
-
function _sfc_render$
|
|
22664
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22913
22665
|
const _component_YearPanelHeader = vue.resolveComponent("YearPanelHeader");
|
|
22914
22666
|
const _component_YearTable = vue.resolveComponent("YearTable");
|
|
22915
22667
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -22941,9 +22693,9 @@
|
|
|
22941
22693
|
], 2)
|
|
22942
22694
|
], 2);
|
|
22943
22695
|
}
|
|
22944
|
-
var YearPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22696
|
+
var YearPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1l], ["__file", "YearPanel.vue"]]);
|
|
22945
22697
|
|
|
22946
|
-
const _sfc_main$
|
|
22698
|
+
const _sfc_main$1m = vue.defineComponent({
|
|
22947
22699
|
name: "QuarterPanelHeader",
|
|
22948
22700
|
components: { UIcon, ChevronsLeft: lucideVueNext.ChevronsLeft, ChevronsRight: lucideVueNext.ChevronsRight },
|
|
22949
22701
|
props: {
|
|
@@ -22996,7 +22748,7 @@
|
|
|
22996
22748
|
});
|
|
22997
22749
|
const _hoisted_1$v = ["title"];
|
|
22998
22750
|
const _hoisted_2$a = ["title"];
|
|
22999
|
-
function _sfc_render$
|
|
22751
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23000
22752
|
const _component_ChevronsLeft = vue.resolveComponent("ChevronsLeft");
|
|
23001
22753
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
23002
22754
|
const _component_ChevronsRight = vue.resolveComponent("ChevronsRight");
|
|
@@ -23047,7 +22799,7 @@
|
|
|
23047
22799
|
], 10, _hoisted_2$a)
|
|
23048
22800
|
], 2);
|
|
23049
22801
|
}
|
|
23050
|
-
var QuarterPanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22802
|
+
var QuarterPanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1k], ["__file", "QuarterPanelHeader.vue"]]);
|
|
23051
22803
|
|
|
23052
22804
|
var quarterOfYear = createCommonjsModule(function(module, exports) {
|
|
23053
22805
|
!function(t, n) {
|
|
@@ -23077,7 +22829,7 @@
|
|
|
23077
22829
|
});
|
|
23078
22830
|
|
|
23079
22831
|
dayjs_min.extend(quarterOfYear);
|
|
23080
|
-
const _sfc_main$
|
|
22832
|
+
const _sfc_main$1l = vue.defineComponent({
|
|
23081
22833
|
name: "QuarterTable",
|
|
23082
22834
|
props: {
|
|
23083
22835
|
prefixCls: {
|
|
@@ -23217,7 +22969,7 @@
|
|
|
23217
22969
|
}
|
|
23218
22970
|
});
|
|
23219
22971
|
const _hoisted_1$u = ["onClick", "onMouseenter"];
|
|
23220
|
-
function _sfc_render$
|
|
22972
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23221
22973
|
return vue.openBlock(), vue.createElementBlock("table", {
|
|
23222
22974
|
class: vue.normalizeClass(`${_ctx.prefixCls}-table`)
|
|
23223
22975
|
}, [
|
|
@@ -23243,9 +22995,9 @@
|
|
|
23243
22995
|
])
|
|
23244
22996
|
], 2);
|
|
23245
22997
|
}
|
|
23246
|
-
var QuarterTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22998
|
+
var QuarterTable = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1j], ["__file", "QuarterTable.vue"]]);
|
|
23247
22999
|
|
|
23248
|
-
const _sfc_main$
|
|
23000
|
+
const _sfc_main$1k = vue.defineComponent({
|
|
23249
23001
|
name: "QuarterPanel",
|
|
23250
23002
|
components: {
|
|
23251
23003
|
QuarterPanelHeader,
|
|
@@ -23323,7 +23075,7 @@
|
|
|
23323
23075
|
};
|
|
23324
23076
|
}
|
|
23325
23077
|
});
|
|
23326
|
-
function _sfc_render$
|
|
23078
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23327
23079
|
const _component_QuarterPanelHeader = vue.resolveComponent("QuarterPanelHeader");
|
|
23328
23080
|
const _component_QuarterTable = vue.resolveComponent("QuarterTable");
|
|
23329
23081
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -23355,9 +23107,9 @@
|
|
|
23355
23107
|
], 2)
|
|
23356
23108
|
], 2);
|
|
23357
23109
|
}
|
|
23358
|
-
var QuarterPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23110
|
+
var QuarterPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1i], ["__file", "QuarterPanel.vue"]]);
|
|
23359
23111
|
|
|
23360
|
-
const _sfc_main$
|
|
23112
|
+
const _sfc_main$1j = vue.defineComponent({
|
|
23361
23113
|
name: "DatePickerPanel",
|
|
23362
23114
|
components: {
|
|
23363
23115
|
DatePanel,
|
|
@@ -23538,7 +23290,7 @@
|
|
|
23538
23290
|
};
|
|
23539
23291
|
}
|
|
23540
23292
|
});
|
|
23541
|
-
function _sfc_render$
|
|
23293
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23542
23294
|
const _component_USelect = vue.resolveComponent("USelect");
|
|
23543
23295
|
const _component_DatePanel = vue.resolveComponent("DatePanel");
|
|
23544
23296
|
const _component_QuarterPanel = vue.resolveComponent("QuarterPanel");
|
|
@@ -23566,6 +23318,7 @@
|
|
|
23566
23318
|
options: _ctx.shortcuts.map((shortcut) => ({ label: shortcut.text, value: shortcut.text, func: shortcut.value })),
|
|
23567
23319
|
placeholder: _ctx.locale.shortcutsPlaceholder,
|
|
23568
23320
|
onChange: _cache[1] || (_cache[1] = (value, option) => _ctx.onShortcutClick({
|
|
23321
|
+
text: value,
|
|
23569
23322
|
value: option.func
|
|
23570
23323
|
}))
|
|
23571
23324
|
}, null, 8, ["modelValue", "options", "placeholder"])
|
|
@@ -23620,7 +23373,7 @@
|
|
|
23620
23373
|
])
|
|
23621
23374
|
], 2);
|
|
23622
23375
|
}
|
|
23623
|
-
var DatePickerPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23376
|
+
var DatePickerPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1h], ["__file", "DatePickerPanel.vue"]]);
|
|
23624
23377
|
|
|
23625
23378
|
const rangeDirection = ["left", "right"];
|
|
23626
23379
|
const datePickerProps = {
|
|
@@ -23832,7 +23585,7 @@
|
|
|
23832
23585
|
type: Object
|
|
23833
23586
|
}
|
|
23834
23587
|
};
|
|
23835
|
-
const _sfc_main$
|
|
23588
|
+
const _sfc_main$1i = vue.defineComponent({
|
|
23836
23589
|
name: "DatePickerRangePart",
|
|
23837
23590
|
components: {
|
|
23838
23591
|
DatePanel,
|
|
@@ -24124,7 +23877,7 @@
|
|
|
24124
23877
|
};
|
|
24125
23878
|
}
|
|
24126
23879
|
});
|
|
24127
|
-
function _sfc_render$
|
|
23880
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24128
23881
|
const _component_DatePanel = vue.resolveComponent("DatePanel");
|
|
24129
23882
|
const _component_MonthPanel = vue.resolveComponent("MonthPanel");
|
|
24130
23883
|
const _component_YearPanel = vue.resolveComponent("YearPanel");
|
|
@@ -24215,9 +23968,9 @@
|
|
|
24215
23968
|
}, null, 8, ["prefix-cls", "locale", "current-date", "selected-date", "hovered-date", "disabled-date", "disabled-year", "disabled-quarter", "disabled-next", "disabled-prev", "range", "onSelectedChange", "onPanelChange", "onHoverDate"])) : vue.createCommentVNode("v-if", true)
|
|
24216
23969
|
], 2);
|
|
24217
23970
|
}
|
|
24218
|
-
var RangePart = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23971
|
+
var RangePart = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1g], ["__file", "RangePart.vue"]]);
|
|
24219
23972
|
|
|
24220
|
-
const _sfc_main$
|
|
23973
|
+
const _sfc_main$1h = vue.defineComponent({
|
|
24221
23974
|
name: "DateRangePanel",
|
|
24222
23975
|
components: {
|
|
24223
23976
|
RangePart
|
|
@@ -24489,7 +24242,7 @@
|
|
|
24489
24242
|
}
|
|
24490
24243
|
});
|
|
24491
24244
|
const _hoisted_1$t = ["onClick"];
|
|
24492
|
-
function _sfc_render$
|
|
24245
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24493
24246
|
const _component_RangePart = vue.resolveComponent("RangePart");
|
|
24494
24247
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
24495
24248
|
class: vue.normalizeClass([
|
|
@@ -24564,9 +24317,9 @@
|
|
|
24564
24317
|
], 2)
|
|
24565
24318
|
], 34);
|
|
24566
24319
|
}
|
|
24567
|
-
var DateRangePanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24320
|
+
var DateRangePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1f], ["__file", "DateRangePanel.vue"]]);
|
|
24568
24321
|
|
|
24569
|
-
const _sfc_main$
|
|
24322
|
+
const _sfc_main$1g = vue.defineComponent({
|
|
24570
24323
|
name: "UDatePicker",
|
|
24571
24324
|
components: {
|
|
24572
24325
|
Popup,
|
|
@@ -24740,7 +24493,7 @@
|
|
|
24740
24493
|
};
|
|
24741
24494
|
}
|
|
24742
24495
|
});
|
|
24743
|
-
function _sfc_render$
|
|
24496
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24744
24497
|
const _component_DateRangeInput = vue.resolveComponent("DateRangeInput");
|
|
24745
24498
|
const _component_DatePickerInput = vue.resolveComponent("DatePickerInput");
|
|
24746
24499
|
const _component_CircleX = vue.resolveComponent("CircleX");
|
|
@@ -24771,13 +24524,12 @@
|
|
|
24771
24524
|
"disabled-date": _ctx.disabledDate,
|
|
24772
24525
|
"disabled-time": _ctx.disabledTime,
|
|
24773
24526
|
"time-options": _ctx.timeOptions,
|
|
24774
|
-
"show-confirm": _ctx.showConfirm,
|
|
24775
24527
|
shortcuts: _ctx.shortcuts,
|
|
24776
24528
|
"show-time-clear": _ctx.showTimeClear,
|
|
24777
24529
|
direction: _ctx.computedDirection,
|
|
24778
24530
|
onSelect: _ctx.onSelected,
|
|
24779
24531
|
onPanelChange: _ctx.onPanelChange
|
|
24780
|
-
}, null, 8, ["prefix-cls", "locale", "value", "open", "mode", "disabled-date", "disabled-time", "time-options", "
|
|
24532
|
+
}, null, 8, ["prefix-cls", "locale", "value", "open", "mode", "disabled-date", "disabled-time", "time-options", "shortcuts", "show-time-clear", "direction", "onSelect", "onPanelChange"])) : (vue.openBlock(), vue.createBlock(_component_DateRangePanel, {
|
|
24781
24533
|
key: 1,
|
|
24782
24534
|
ref: "panelRef",
|
|
24783
24535
|
"prefix-cls": _ctx.prefixCls,
|
|
@@ -24788,7 +24540,6 @@
|
|
|
24788
24540
|
"disabled-time": _ctx.disabledTime,
|
|
24789
24541
|
"time-options": _ctx.timeOptions,
|
|
24790
24542
|
"default-time": _ctx.defaultTime,
|
|
24791
|
-
"show-confirm": _ctx.showConfirm,
|
|
24792
24543
|
mode: _ctx.singeType,
|
|
24793
24544
|
shortcuts: _ctx.shortcuts,
|
|
24794
24545
|
"limit-duration": _ctx.limitDuration,
|
|
@@ -24796,7 +24547,7 @@
|
|
|
24796
24547
|
direction: _ctx.computedDirection,
|
|
24797
24548
|
onSelect: _ctx.onSelected,
|
|
24798
24549
|
onPanelChange: _ctx.onPanelChange
|
|
24799
|
-
}, null, 8, ["prefix-cls", "locale", "value", "open", "disabled-date", "disabled-time", "time-options", "default-time", "
|
|
24550
|
+
}, null, 8, ["prefix-cls", "locale", "value", "open", "disabled-date", "disabled-time", "time-options", "default-time", "mode", "shortcuts", "limit-duration", "show-time-clear", "direction", "onSelect", "onPanelChange"]))
|
|
24800
24551
|
]),
|
|
24801
24552
|
default: vue.withCtx(() => [
|
|
24802
24553
|
vue.createElementVNode("div", vue.mergeProps({
|
|
@@ -24895,7 +24646,7 @@
|
|
|
24895
24646
|
_: 3
|
|
24896
24647
|
}, 8, ["visible", "prefix-cls", "placement", "popup-class", "click-outside", "get-popup-container", "modifiers"]);
|
|
24897
24648
|
}
|
|
24898
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24649
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1e], ["__file", "DatePicker.vue"]]);
|
|
24899
24650
|
|
|
24900
24651
|
const UDatePicker = withInstall(DatePicker);
|
|
24901
24652
|
|
|
@@ -24924,7 +24675,7 @@
|
|
|
24924
24675
|
}
|
|
24925
24676
|
};
|
|
24926
24677
|
|
|
24927
|
-
const _sfc_main$
|
|
24678
|
+
const _sfc_main$1f = vue.defineComponent({
|
|
24928
24679
|
name: "UDivider",
|
|
24929
24680
|
props: dividerProps,
|
|
24930
24681
|
setup(props, { slots }) {
|
|
@@ -24938,7 +24689,7 @@
|
|
|
24938
24689
|
};
|
|
24939
24690
|
}
|
|
24940
24691
|
});
|
|
24941
|
-
function _sfc_render$
|
|
24692
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24942
24693
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
24943
24694
|
class: vue.normalizeClass([
|
|
24944
24695
|
_ctx.prefixCls,
|
|
@@ -24958,7 +24709,7 @@
|
|
|
24958
24709
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
24959
24710
|
], 2);
|
|
24960
24711
|
}
|
|
24961
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24712
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1d], ["__file", "Divider.vue"]]);
|
|
24962
24713
|
|
|
24963
24714
|
const UDivider = withInstall(Divider);
|
|
24964
24715
|
|
|
@@ -25459,6 +25210,223 @@
|
|
|
25459
25210
|
|
|
25460
25211
|
const UEmpty = withInstall(Empty);
|
|
25461
25212
|
|
|
25213
|
+
function useGutter(_gutter) {
|
|
25214
|
+
const screens = vue.ref({});
|
|
25215
|
+
const token = vue.ref();
|
|
25216
|
+
const getScreensRepsponsive = () => {
|
|
25217
|
+
token.value = responsiveObserve.subscribe((scn) => {
|
|
25218
|
+
if (isPlainObject$1(_gutter.value) || Array.isArray(_gutter.value) && (isPlainObject$1(_gutter.value[0]) || isPlainObject$1(_gutter.value[1]))) {
|
|
25219
|
+
screens.value = scn;
|
|
25220
|
+
}
|
|
25221
|
+
});
|
|
25222
|
+
};
|
|
25223
|
+
vue.onMounted(getScreensRepsponsive);
|
|
25224
|
+
vue.onUnmounted(() => {
|
|
25225
|
+
responsiveObserve.unsubscribe(token.value);
|
|
25226
|
+
});
|
|
25227
|
+
const getGutter = () => {
|
|
25228
|
+
const result = [0, 0];
|
|
25229
|
+
const gutterArray = Array.isArray(_gutter.value) ? _gutter.value : [_gutter.value, 0];
|
|
25230
|
+
if (screens.value) {
|
|
25231
|
+
gutterArray.forEach((g, index) => {
|
|
25232
|
+
if (isPlainObject$1(g)) {
|
|
25233
|
+
for (let i = 0; i < responsiveArray.length; i += 1) {
|
|
25234
|
+
const breakpoint = responsiveArray[i];
|
|
25235
|
+
if (screens.value[breakpoint] && g[breakpoint] !== void 0) {
|
|
25236
|
+
result[index] = g[breakpoint];
|
|
25237
|
+
break;
|
|
25238
|
+
}
|
|
25239
|
+
}
|
|
25240
|
+
} else {
|
|
25241
|
+
result[index] = g || 0;
|
|
25242
|
+
}
|
|
25243
|
+
});
|
|
25244
|
+
}
|
|
25245
|
+
return result;
|
|
25246
|
+
};
|
|
25247
|
+
const styles = vue.computed(() => {
|
|
25248
|
+
let ret = {};
|
|
25249
|
+
const g = getGutter();
|
|
25250
|
+
if (g[0] > 0) {
|
|
25251
|
+
ret = {
|
|
25252
|
+
[`--grid-gutter-width`]: `${g[0]}px`
|
|
25253
|
+
};
|
|
25254
|
+
}
|
|
25255
|
+
if (g[1] > 0) {
|
|
25256
|
+
ret = {
|
|
25257
|
+
...ret,
|
|
25258
|
+
rowGap: `${g[1]}px`
|
|
25259
|
+
};
|
|
25260
|
+
}
|
|
25261
|
+
return ret;
|
|
25262
|
+
});
|
|
25263
|
+
return {
|
|
25264
|
+
getGutter,
|
|
25265
|
+
styles
|
|
25266
|
+
};
|
|
25267
|
+
}
|
|
25268
|
+
|
|
25269
|
+
const gridAlign = ["top", "middle", "bottom", "stretch"];
|
|
25270
|
+
const gridJustify = ["start", "end", "center", "space-around", "space-between"];
|
|
25271
|
+
const rowProps = {
|
|
25272
|
+
gutter: {
|
|
25273
|
+
type: [Object, Number, Array],
|
|
25274
|
+
default: 0
|
|
25275
|
+
},
|
|
25276
|
+
flex: {
|
|
25277
|
+
type: Boolean,
|
|
25278
|
+
default: false
|
|
25279
|
+
},
|
|
25280
|
+
align: {
|
|
25281
|
+
type: String,
|
|
25282
|
+
default: "top",
|
|
25283
|
+
validator: oneOf(gridAlign)
|
|
25284
|
+
},
|
|
25285
|
+
justify: {
|
|
25286
|
+
type: String,
|
|
25287
|
+
default: "start",
|
|
25288
|
+
validator: oneOf(gridJustify)
|
|
25289
|
+
}
|
|
25290
|
+
};
|
|
25291
|
+
const colProps = {
|
|
25292
|
+
span: {
|
|
25293
|
+
type: [String, Number]
|
|
25294
|
+
},
|
|
25295
|
+
order: {
|
|
25296
|
+
type: [String, Number]
|
|
25297
|
+
},
|
|
25298
|
+
offset: {
|
|
25299
|
+
type: [String, Number]
|
|
25300
|
+
},
|
|
25301
|
+
push: {
|
|
25302
|
+
type: [String, Number]
|
|
25303
|
+
},
|
|
25304
|
+
pull: {
|
|
25305
|
+
type: [String, Number]
|
|
25306
|
+
},
|
|
25307
|
+
xs: {
|
|
25308
|
+
type: [String, Number, Object]
|
|
25309
|
+
},
|
|
25310
|
+
sm: {
|
|
25311
|
+
type: [String, Number, Object]
|
|
25312
|
+
},
|
|
25313
|
+
md: {
|
|
25314
|
+
type: [String, Number, Object]
|
|
25315
|
+
},
|
|
25316
|
+
lg: {
|
|
25317
|
+
type: [String, Number, Object]
|
|
25318
|
+
},
|
|
25319
|
+
xl: {
|
|
25320
|
+
type: [String, Number, Object]
|
|
25321
|
+
},
|
|
25322
|
+
xxl: {
|
|
25323
|
+
type: [String, Number, Object]
|
|
25324
|
+
},
|
|
25325
|
+
flex: {
|
|
25326
|
+
type: [String, Number]
|
|
25327
|
+
}
|
|
25328
|
+
};
|
|
25329
|
+
|
|
25330
|
+
const _sfc_main$1e = vue.defineComponent({
|
|
25331
|
+
name: "URow",
|
|
25332
|
+
props: rowProps,
|
|
25333
|
+
setup(props) {
|
|
25334
|
+
const { gutter } = vue.toRefs(props);
|
|
25335
|
+
const { prefixCls } = useGlobalConfig("row");
|
|
25336
|
+
const { getGutter, styles } = useGutter(gutter);
|
|
25337
|
+
return {
|
|
25338
|
+
prefixCls,
|
|
25339
|
+
getGutter,
|
|
25340
|
+
styles
|
|
25341
|
+
};
|
|
25342
|
+
}
|
|
25343
|
+
});
|
|
25344
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25345
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
25346
|
+
class: vue.normalizeClass({
|
|
25347
|
+
[`${_ctx.prefixCls}`]: true,
|
|
25348
|
+
[`${_ctx.prefixCls}-flex-${_ctx.justify}`]: _ctx.flex && _ctx.justify,
|
|
25349
|
+
[`${_ctx.prefixCls}-flex-${_ctx.align}`]: _ctx.flex && _ctx.align
|
|
25350
|
+
}),
|
|
25351
|
+
style: vue.normalizeStyle(_ctx.styles)
|
|
25352
|
+
}, [
|
|
25353
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
25354
|
+
], 6);
|
|
25355
|
+
}
|
|
25356
|
+
var Row$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1c], ["__file", "Row.vue"]]);
|
|
25357
|
+
|
|
25358
|
+
const parseFlex = (flex) => {
|
|
25359
|
+
if (typeof flex === "number") {
|
|
25360
|
+
return `${flex} ${flex} auto`;
|
|
25361
|
+
}
|
|
25362
|
+
if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
|
|
25363
|
+
return `0 0 ${flex}`;
|
|
25364
|
+
}
|
|
25365
|
+
return flex;
|
|
25366
|
+
};
|
|
25367
|
+
const _sfc_main$1d = vue.defineComponent({
|
|
25368
|
+
name: "UCol",
|
|
25369
|
+
props: colProps,
|
|
25370
|
+
setup(props) {
|
|
25371
|
+
const { prefixCls } = useGlobalConfig("col");
|
|
25372
|
+
const sizeCls = vue.computed(() => {
|
|
25373
|
+
const ret = [];
|
|
25374
|
+
["xs", "sm", "md", "lg", "xl", "xxl"].forEach((size) => {
|
|
25375
|
+
const sizeProp = props[size];
|
|
25376
|
+
if (typeof sizeProp === "number" || typeof sizeProp === "string") {
|
|
25377
|
+
ret.push(`${prefixCls.value}-${size}-${sizeProp}`);
|
|
25378
|
+
} else if (typeof sizeProp === "object") {
|
|
25379
|
+
Object.keys(sizeProp).forEach((key) => {
|
|
25380
|
+
ret.push(key === "span" ? `${prefixCls.value}-${size}-${sizeProp[key]}` : `${prefixCls.value}-${size}-${key}-${sizeProp[key]}`);
|
|
25381
|
+
});
|
|
25382
|
+
}
|
|
25383
|
+
});
|
|
25384
|
+
return ret;
|
|
25385
|
+
});
|
|
25386
|
+
const styles = vue.computed(() => {
|
|
25387
|
+
let ret = {};
|
|
25388
|
+
ret = {
|
|
25389
|
+
...ret,
|
|
25390
|
+
flex: parseFlex(props.flex)
|
|
25391
|
+
};
|
|
25392
|
+
return ret;
|
|
25393
|
+
});
|
|
25394
|
+
return {
|
|
25395
|
+
sizeCls,
|
|
25396
|
+
prefixCls,
|
|
25397
|
+
styles
|
|
25398
|
+
};
|
|
25399
|
+
}
|
|
25400
|
+
});
|
|
25401
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25402
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
25403
|
+
class: vue.normalizeClass([
|
|
25404
|
+
_ctx.prefixCls,
|
|
25405
|
+
..._ctx.sizeCls,
|
|
25406
|
+
{
|
|
25407
|
+
[`${_ctx.prefixCls}-${_ctx.span}`]: _ctx.span,
|
|
25408
|
+
[`${_ctx.prefixCls}-order-${_ctx.order}`]: _ctx.order,
|
|
25409
|
+
[`${_ctx.prefixCls}-offset-${_ctx.offset}`]: _ctx.offset,
|
|
25410
|
+
[`${_ctx.prefixCls}-push-${_ctx.push}`]: _ctx.push,
|
|
25411
|
+
[`${_ctx.prefixCls}-pull-${_ctx.pull}`]: _ctx.pull
|
|
25412
|
+
}
|
|
25413
|
+
]),
|
|
25414
|
+
style: vue.normalizeStyle(_ctx.styles)
|
|
25415
|
+
}, [
|
|
25416
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
25417
|
+
], 6);
|
|
25418
|
+
}
|
|
25419
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1b], ["__file", "Col.vue"]]);
|
|
25420
|
+
|
|
25421
|
+
const UGrid = {
|
|
25422
|
+
Row: Row$1,
|
|
25423
|
+
Col,
|
|
25424
|
+
install: (app) => {
|
|
25425
|
+
app.component(Row$1.name, Row$1);
|
|
25426
|
+
app.component(Col.name, Col);
|
|
25427
|
+
}
|
|
25428
|
+
};
|
|
25429
|
+
|
|
25462
25430
|
const fitList = {
|
|
25463
25431
|
none: "none",
|
|
25464
25432
|
contain: "contain",
|
|
@@ -27810,7 +27778,7 @@
|
|
|
27810
27778
|
type: Boolean,
|
|
27811
27779
|
default: void 0
|
|
27812
27780
|
},
|
|
27813
|
-
|
|
27781
|
+
isRight: {
|
|
27814
27782
|
type: Boolean,
|
|
27815
27783
|
default: false
|
|
27816
27784
|
},
|
|
@@ -27828,7 +27796,7 @@
|
|
|
27828
27796
|
type: [Number, String],
|
|
27829
27797
|
default: 200
|
|
27830
27798
|
},
|
|
27831
|
-
|
|
27799
|
+
collapsedWidth: {
|
|
27832
27800
|
type: [Number, String],
|
|
27833
27801
|
default: 80
|
|
27834
27802
|
},
|
|
@@ -27836,11 +27804,6 @@
|
|
|
27836
27804
|
type: String,
|
|
27837
27805
|
validator: oneOf(responsiveArray)
|
|
27838
27806
|
},
|
|
27839
|
-
theme: {
|
|
27840
|
-
type: String,
|
|
27841
|
-
default: "dark",
|
|
27842
|
-
validator: oneOf(siderTheme)
|
|
27843
|
-
},
|
|
27844
27807
|
background: {
|
|
27845
27808
|
type: String
|
|
27846
27809
|
}
|
|
@@ -27863,7 +27826,10 @@
|
|
|
27863
27826
|
name: "USider",
|
|
27864
27827
|
components: {
|
|
27865
27828
|
UIcon,
|
|
27866
|
-
PanelLeft: lucideVueNext.PanelLeft
|
|
27829
|
+
PanelLeft: lucideVueNext.PanelLeft,
|
|
27830
|
+
PanelRight: lucideVueNext.PanelRight,
|
|
27831
|
+
ChevronLeft: lucideVueNext.ChevronLeft,
|
|
27832
|
+
ChevronRight: lucideVueNext.ChevronRight
|
|
27867
27833
|
},
|
|
27868
27834
|
props: siderProps,
|
|
27869
27835
|
emits: siderEmits,
|
|
@@ -27890,7 +27856,6 @@
|
|
|
27890
27856
|
const isBreakpoint = vue.ref(false);
|
|
27891
27857
|
let mql;
|
|
27892
27858
|
const responsiveHandler = ({ matches }) => {
|
|
27893
|
-
emit("breakpoint", matches);
|
|
27894
27859
|
isBreakpoint.value = matches;
|
|
27895
27860
|
if (matches !== stateCollapse.value) {
|
|
27896
27861
|
setCollapsed(matches, "responsive");
|
|
@@ -27898,7 +27863,7 @@
|
|
|
27898
27863
|
};
|
|
27899
27864
|
vue.onMounted(() => {
|
|
27900
27865
|
vue.nextTick(() => {
|
|
27901
|
-
if (typeof window
|
|
27866
|
+
if (typeof window !== "undefined") {
|
|
27902
27867
|
if (!!matchMedia && props.breakpoint) {
|
|
27903
27868
|
mql = matchMedia(breakpointMap[props.breakpoint]);
|
|
27904
27869
|
}
|
|
@@ -27907,7 +27872,9 @@
|
|
|
27907
27872
|
} catch (error) {
|
|
27908
27873
|
mql == null ? void 0 : mql.addListener(responsiveHandler);
|
|
27909
27874
|
}
|
|
27910
|
-
|
|
27875
|
+
if (mql) {
|
|
27876
|
+
responsiveHandler(mql);
|
|
27877
|
+
}
|
|
27911
27878
|
}
|
|
27912
27879
|
if (siderHook.attachSider) {
|
|
27913
27880
|
siderHook.attachSider(uniqueId);
|
|
@@ -27929,12 +27896,12 @@
|
|
|
27929
27896
|
const siderWidth = vue.computed(() => {
|
|
27930
27897
|
let ret = getPixer(props.width);
|
|
27931
27898
|
if (stateCollapse.value) {
|
|
27932
|
-
ret = getPixer(props.
|
|
27899
|
+
ret = getPixer(props.collapsedWidth);
|
|
27933
27900
|
}
|
|
27934
27901
|
return ret;
|
|
27935
27902
|
});
|
|
27936
27903
|
const isZeroCollapse = vue.computed(() => {
|
|
27937
|
-
return parseFloat(String(props.
|
|
27904
|
+
return parseFloat(String(props.collapsedWidth)) === 0 || props.zeroTrigger;
|
|
27938
27905
|
});
|
|
27939
27906
|
const showZeroTrigger = vue.computed(() => {
|
|
27940
27907
|
return (props.collapsible || isBreakpoint.value) && !props.hideTrigger && isZeroCollapse.value;
|
|
@@ -27946,16 +27913,16 @@
|
|
|
27946
27913
|
if (props.triggerIcon) {
|
|
27947
27914
|
return props.triggerIcon;
|
|
27948
27915
|
}
|
|
27949
|
-
return props.
|
|
27916
|
+
return props.isRight ? lucideVueNext.PanelLeft : lucideVueNext.PanelRight;
|
|
27950
27917
|
});
|
|
27951
27918
|
const handleToggle = () => {
|
|
27952
27919
|
const collapsed = !stateCollapse.value;
|
|
27953
27920
|
setCollapsed(collapsed, "triggerClick");
|
|
27954
27921
|
};
|
|
27955
|
-
const {
|
|
27922
|
+
const { collapsedWidth } = vue.toRefs(props);
|
|
27956
27923
|
vue.provide("layoutSiderContext", {
|
|
27957
27924
|
collapsed: stateCollapse,
|
|
27958
|
-
|
|
27925
|
+
collapsedWidth
|
|
27959
27926
|
});
|
|
27960
27927
|
return {
|
|
27961
27928
|
prefixCls,
|
|
@@ -27971,7 +27938,8 @@
|
|
|
27971
27938
|
});
|
|
27972
27939
|
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27973
27940
|
var _a;
|
|
27974
|
-
const
|
|
27941
|
+
const _component_ChevronRight = vue.resolveComponent("ChevronRight");
|
|
27942
|
+
const _component_ChevronLeft = vue.resolveComponent("ChevronLeft");
|
|
27975
27943
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
27976
27944
|
return vue.openBlock(), vue.createElementBlock("aside", {
|
|
27977
27945
|
style: vue.normalizeStyle({
|
|
@@ -27983,8 +27951,7 @@
|
|
|
27983
27951
|
}),
|
|
27984
27952
|
class: vue.normalizeClass([
|
|
27985
27953
|
_ctx.prefixCls,
|
|
27986
|
-
`${_ctx.prefixCls}-${_ctx.
|
|
27987
|
-
`${_ctx.prefixCls}-${_ctx.reverseArrow ? "right" : "left"}`,
|
|
27954
|
+
`${_ctx.prefixCls}-${_ctx.isRight ? "right" : "left"}`,
|
|
27988
27955
|
{
|
|
27989
27956
|
[`${_ctx.prefixCls}-collapsed`]: !!_ctx.stateCollapse,
|
|
27990
27957
|
[`${_ctx.prefixCls}-has-trigger`]: _ctx.collapsible && !_ctx.hideTrigger && !_ctx.isZeroCollapse,
|
|
@@ -27994,12 +27961,12 @@
|
|
|
27994
27961
|
}, [
|
|
27995
27962
|
_ctx.showZeroTrigger ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
27996
27963
|
key: 0,
|
|
27997
|
-
class: vue.normalizeClass([`${_ctx.prefixCls}-zero-trigger`, `${_ctx.prefixCls}-zero-trigger-${_ctx.
|
|
27964
|
+
class: vue.normalizeClass([`${_ctx.prefixCls}-zero-trigger`, `${_ctx.prefixCls}-zero-trigger-${_ctx.isRight ? "right" : "left"}`]),
|
|
27998
27965
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleToggle && _ctx.handleToggle(...args))
|
|
27999
27966
|
}, [
|
|
28000
27967
|
vue.createVNode(_component_UIcon, null, {
|
|
28001
27968
|
default: vue.withCtx(() => [
|
|
28002
|
-
_ctx.
|
|
27969
|
+
_ctx.isRight ? (vue.openBlock(), vue.createBlock(_component_ChevronRight, { key: 0 })) : (vue.openBlock(), vue.createBlock(_component_ChevronLeft, { key: 1 }))
|
|
28003
27970
|
]),
|
|
28004
27971
|
_: 1
|
|
28005
27972
|
})
|
|
@@ -28014,7 +27981,7 @@
|
|
|
28014
27981
|
], 2),
|
|
28015
27982
|
_ctx.showBottomTrigger ? vue.renderSlot(_ctx.$slots, "trigger", { key: 1 }, () => [
|
|
28016
27983
|
vue.createElementVNode("div", {
|
|
28017
|
-
class: vue.normalizeClass([`${_ctx.prefixCls}-trigger`, `${_ctx.prefixCls}-trigger-${_ctx.
|
|
27984
|
+
class: vue.normalizeClass([`${_ctx.prefixCls}-trigger`, `${_ctx.prefixCls}-trigger-${_ctx.isRight ? "right" : "left"}`]),
|
|
28018
27985
|
style: vue.normalizeStyle({ width: _ctx.siderWidth }),
|
|
28019
27986
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleToggle && _ctx.handleToggle(...args))
|
|
28020
27987
|
}, [
|