@fox-js/foxui-pc 4.1.1-7 → 4.1.1-9
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.cjs.js +158 -52
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +158 -52
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +158 -52
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*!
|
|
3
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Dec 02 2024 10:29:50 GMT+0800 (中国标准时间)
|
|
4
4
|
*/
|
|
5
5
|
import { inject, provide, onUnmounted, getCurrentInstance, effectScope, watchEffect, nextTick as nextTick$1, hasInjectionContext, customRef, reactive, isReactive, watch, toRaw, computed, toRef, ref, defineComponent, onMounted, h, unref, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, shallowRef, markRaw, triggerRef, createCommentVNode, createElementVNode, toDisplayString, onBeforeUnmount, resolveComponent, Fragment, withDirectives, createBlock, vShow, createVNode, render as render$1, shallowReactive, mergeProps as mergeProps$1, withCtx, createTextVNode, renderList, Transition, withModifiers, toRefs, Teleport, resolveDynamicComponent, onActivated, onDeactivated } from 'vue';
|
|
6
6
|
import Schema from '@fox-js/validator';
|
|
@@ -7906,14 +7906,17 @@ const DateUtils = {
|
|
|
7906
7906
|
* 返回日期格式字符串
|
|
7907
7907
|
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
7908
7908
|
* @param {Date} 起点日期
|
|
7909
|
+
* @param {formatTemplate} 格式化模版
|
|
7909
7910
|
* @return {string} '2014-12-31'
|
|
7911
|
+
*
|
|
7910
7912
|
*/
|
|
7911
|
-
getDay(i, startDate) {
|
|
7913
|
+
getDay(i, startDate, formatTemplate) {
|
|
7912
7914
|
i = i || 0;
|
|
7913
7915
|
let date = startDate ?? /* @__PURE__ */ new Date();
|
|
7914
7916
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
7915
7917
|
date = new Date(date.getTime() + diff);
|
|
7916
|
-
|
|
7918
|
+
formatTemplate = formatTemplate ?? "YYYY-MM-DD";
|
|
7919
|
+
return this.format(date, formatTemplate);
|
|
7917
7920
|
},
|
|
7918
7921
|
/**
|
|
7919
7922
|
* 时间比较
|
|
@@ -11858,6 +11861,10 @@ const tableProps = {
|
|
|
11858
11861
|
params: {
|
|
11859
11862
|
type: [Object]
|
|
11860
11863
|
},
|
|
11864
|
+
// row class name
|
|
11865
|
+
rowClassName: {
|
|
11866
|
+
type: Function
|
|
11867
|
+
},
|
|
11861
11868
|
// cell class name
|
|
11862
11869
|
cellClassName: {
|
|
11863
11870
|
type: Function
|
|
@@ -12095,7 +12102,7 @@ function component$l(componentName, scope, Item) {
|
|
|
12095
12102
|
// setup
|
|
12096
12103
|
setup(props, context) {
|
|
12097
12104
|
const { locale } = useFoxI18n(scope);
|
|
12098
|
-
const { emitEvent } = defineItem(
|
|
12105
|
+
const { emitEvent, broadcast } = defineItem(
|
|
12099
12106
|
{
|
|
12100
12107
|
componentName,
|
|
12101
12108
|
// 获取value
|
|
@@ -12366,6 +12373,7 @@ function component$l(componentName, scope, Item) {
|
|
|
12366
12373
|
expandedRows.splice(0, size, row);
|
|
12367
12374
|
}
|
|
12368
12375
|
}
|
|
12376
|
+
setTimeout(setChildCellClassNames, 0);
|
|
12369
12377
|
};
|
|
12370
12378
|
const settingId = context.attrs.id ?? props.prop ?? context.attrs.name;
|
|
12371
12379
|
const settingModel = useSettingModel();
|
|
@@ -12463,10 +12471,14 @@ function component$l(componentName, scope, Item) {
|
|
|
12463
12471
|
return cols;
|
|
12464
12472
|
});
|
|
12465
12473
|
const cellClassNames = shallowRef(/* @__PURE__ */ new Map());
|
|
12466
|
-
const defaultCellClassName = ({ column, rowIndex }) => {
|
|
12467
|
-
const
|
|
12468
|
-
const
|
|
12469
|
-
|
|
12474
|
+
const defaultCellClassName = ({ row, column, rowIndex, columnIndex }) => {
|
|
12475
|
+
const rowIndexColumnPropkey = `${rowIndex}_${column.property}`;
|
|
12476
|
+
const indexKey = `${rowIndex}_${columnIndex}`;
|
|
12477
|
+
let cellClassName = cellClassNames.value.get(rowIndexColumnPropkey);
|
|
12478
|
+
if (!cellClassName) {
|
|
12479
|
+
cellClassName = cellClassNames.value.get(indexKey);
|
|
12480
|
+
}
|
|
12481
|
+
return cellClassName ?? "";
|
|
12470
12482
|
};
|
|
12471
12483
|
const getCellClassNameProperty = (clsName) => {
|
|
12472
12484
|
if (typeof clsName === "function") {
|
|
@@ -12488,8 +12500,20 @@ function component$l(componentName, scope, Item) {
|
|
|
12488
12500
|
}
|
|
12489
12501
|
return defaultCellClassName;
|
|
12490
12502
|
};
|
|
12491
|
-
const
|
|
12492
|
-
|
|
12503
|
+
const setChildCellClassNames = () => {
|
|
12504
|
+
cellClassNames.value.entries().forEach(([key, value]) => {
|
|
12505
|
+
const name = `${key}_item`;
|
|
12506
|
+
broadcast.emitToChildren(
|
|
12507
|
+
{
|
|
12508
|
+
name
|
|
12509
|
+
},
|
|
12510
|
+
"setCustomClassName",
|
|
12511
|
+
value
|
|
12512
|
+
);
|
|
12513
|
+
});
|
|
12514
|
+
};
|
|
12515
|
+
const setCellClassName = (rowIndex, column, cellClassName) => {
|
|
12516
|
+
const key = `${rowIndex}_${column}`;
|
|
12493
12517
|
if (cellClassName) {
|
|
12494
12518
|
cellClassNames.value.set(key, cellClassName);
|
|
12495
12519
|
} else {
|
|
@@ -12497,6 +12521,49 @@ function component$l(componentName, scope, Item) {
|
|
|
12497
12521
|
}
|
|
12498
12522
|
triggerRef(cellClassNames);
|
|
12499
12523
|
};
|
|
12524
|
+
const clearCellClassName = () => {
|
|
12525
|
+
cellClassNames.value.clear();
|
|
12526
|
+
triggerRef(cellClassNames);
|
|
12527
|
+
};
|
|
12528
|
+
const rowClassNames = shallowRef(/* @__PURE__ */ new Map());
|
|
12529
|
+
const defaultRowClassName = ({ rowIndex }) => {
|
|
12530
|
+
const key = `${rowIndex}`;
|
|
12531
|
+
const rowClassName = cellClassNames.value.get(key) ?? "";
|
|
12532
|
+
return rowClassName;
|
|
12533
|
+
};
|
|
12534
|
+
const getRowClassNameProperty = (clsName) => {
|
|
12535
|
+
if (typeof clsName === "function") {
|
|
12536
|
+
return (args) => {
|
|
12537
|
+
const ret = [];
|
|
12538
|
+
let s = defaultRowClassName(args);
|
|
12539
|
+
if (s) {
|
|
12540
|
+
ret.push(s);
|
|
12541
|
+
}
|
|
12542
|
+
s = clsName(args);
|
|
12543
|
+
if (s) {
|
|
12544
|
+
ret.push(s);
|
|
12545
|
+
}
|
|
12546
|
+
if (ret.length === 0) {
|
|
12547
|
+
return "";
|
|
12548
|
+
}
|
|
12549
|
+
return ret.join(" ");
|
|
12550
|
+
};
|
|
12551
|
+
}
|
|
12552
|
+
return defaultRowClassName;
|
|
12553
|
+
};
|
|
12554
|
+
const setRowClassName = (rowIndex, rowClassName) => {
|
|
12555
|
+
const key = `${rowIndex}`;
|
|
12556
|
+
if (rowClassName) {
|
|
12557
|
+
rowClassNames.value.set(key, rowClassName);
|
|
12558
|
+
} else {
|
|
12559
|
+
rowClassNames.value.delete(key);
|
|
12560
|
+
}
|
|
12561
|
+
triggerRef(rowClassNames);
|
|
12562
|
+
};
|
|
12563
|
+
const clearRowClassName = () => {
|
|
12564
|
+
rowClassNames.value.clear();
|
|
12565
|
+
triggerRef(rowClassNames);
|
|
12566
|
+
};
|
|
12500
12567
|
const tableRef = ref();
|
|
12501
12568
|
useExpose({
|
|
12502
12569
|
// 清空selection
|
|
@@ -12610,7 +12677,13 @@ function component$l(componentName, scope, Item) {
|
|
|
12610
12677
|
// 移除列属性配置
|
|
12611
12678
|
removeColumnSetting,
|
|
12612
12679
|
// 设置cell class name
|
|
12613
|
-
setCellClassName
|
|
12680
|
+
setCellClassName,
|
|
12681
|
+
// 清空cell className
|
|
12682
|
+
clearCellClassName,
|
|
12683
|
+
// 设置row class name
|
|
12684
|
+
setRowClassName,
|
|
12685
|
+
// 清空row class name
|
|
12686
|
+
clearRowClassName
|
|
12614
12687
|
});
|
|
12615
12688
|
return () => {
|
|
12616
12689
|
const attrs = filterInheritAttr(context.attrs);
|
|
@@ -12622,7 +12695,8 @@ function component$l(componentName, scope, Item) {
|
|
|
12622
12695
|
data: source.value,
|
|
12623
12696
|
ref: tableRef,
|
|
12624
12697
|
class: classes.value,
|
|
12625
|
-
[`cell-class-name`]: getCellClassNameProperty(props.cellClassName)
|
|
12698
|
+
[`cell-class-name`]: getCellClassNameProperty(props.cellClassName),
|
|
12699
|
+
[`row-class-name`]: getRowClassNameProperty(props.rowClassName)
|
|
12626
12700
|
};
|
|
12627
12701
|
const tableChildren = {};
|
|
12628
12702
|
if (context.slots.default) {
|
|
@@ -14564,7 +14638,7 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14564
14638
|
"fill-opacity": "0.9"
|
|
14565
14639
|
}, null, -1), F = [
|
|
14566
14640
|
A
|
|
14567
|
-
],
|
|
14641
|
+
], X6 = /* @__PURE__ */ defineComponent({
|
|
14568
14642
|
__name: "Uploader",
|
|
14569
14643
|
props: {
|
|
14570
14644
|
class: { type: String, default: "" },
|
|
@@ -14602,13 +14676,13 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14602
14676
|
role: "presentation"
|
|
14603
14677
|
}, F, 14, V));
|
|
14604
14678
|
}
|
|
14605
|
-
}),
|
|
14679
|
+
}), L3 = ["aria-labelledby"], B3 = /* @__PURE__ */ createElementVNode("path", {
|
|
14606
14680
|
d: "M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",
|
|
14607
14681
|
fill: "currentColor",
|
|
14608
14682
|
"fill-opacity": "0.9"
|
|
14609
|
-
}, null, -1),
|
|
14610
|
-
|
|
14611
|
-
],
|
|
14683
|
+
}, null, -1), V3 = [
|
|
14684
|
+
B3
|
|
14685
|
+
], ds = /* @__PURE__ */ defineComponent({
|
|
14612
14686
|
__name: "MoreH",
|
|
14613
14687
|
props: {
|
|
14614
14688
|
class: { type: String, default: "" },
|
|
@@ -14644,15 +14718,15 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14644
14718
|
viewBox: "0 0 1024 1024",
|
|
14645
14719
|
"aria-labelledby": c.name,
|
|
14646
14720
|
role: "presentation"
|
|
14647
|
-
},
|
|
14721
|
+
}, V3, 14, L3));
|
|
14648
14722
|
}
|
|
14649
|
-
}),
|
|
14723
|
+
}), C4 = ["aria-labelledby"], v4 = /* @__PURE__ */ createElementVNode("path", {
|
|
14650
14724
|
d: "M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",
|
|
14651
14725
|
fill: "currentColor",
|
|
14652
14726
|
"fill-opacity": "0.9"
|
|
14653
|
-
}, null, -1),
|
|
14654
|
-
|
|
14655
|
-
],
|
|
14727
|
+
}, null, -1), $4 = [
|
|
14728
|
+
v4
|
|
14729
|
+
], $s = /* @__PURE__ */ defineComponent({
|
|
14656
14730
|
__name: "Loading",
|
|
14657
14731
|
props: {
|
|
14658
14732
|
class: { type: String, default: "" },
|
|
@@ -14688,15 +14762,15 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14688
14762
|
viewBox: "0 0 1024 1024",
|
|
14689
14763
|
"aria-labelledby": c.name,
|
|
14690
14764
|
role: "presentation"
|
|
14691
|
-
},
|
|
14765
|
+
}, $4, 14, C4));
|
|
14692
14766
|
}
|
|
14693
|
-
}),
|
|
14767
|
+
}), _0 = ["aria-labelledby"], w0 = /* @__PURE__ */ createElementVNode("path", {
|
|
14694
14768
|
d: "M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",
|
|
14695
14769
|
fill: "currentColor",
|
|
14696
14770
|
"fill-opacity": "0.9"
|
|
14697
|
-
}, null, -1),
|
|
14698
|
-
|
|
14699
|
-
],
|
|
14771
|
+
}, null, -1), S0 = [
|
|
14772
|
+
w0
|
|
14773
|
+
], N7 = /* @__PURE__ */ defineComponent({
|
|
14700
14774
|
__name: "Close",
|
|
14701
14775
|
props: {
|
|
14702
14776
|
class: { type: String, default: "" },
|
|
@@ -14732,15 +14806,15 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14732
14806
|
viewBox: "0 0 1026 1024",
|
|
14733
14807
|
"aria-labelledby": c.name,
|
|
14734
14808
|
role: "presentation"
|
|
14735
|
-
},
|
|
14809
|
+
}, S0, 14, _0));
|
|
14736
14810
|
}
|
|
14737
|
-
}),
|
|
14811
|
+
}), L0 = ["aria-labelledby"], B0 = /* @__PURE__ */ createElementVNode("path", {
|
|
14738
14812
|
d: "M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",
|
|
14739
14813
|
fill: "currentColor",
|
|
14740
14814
|
"fill-opacity": "0.9"
|
|
14741
|
-
}, null, -1),
|
|
14742
|
-
|
|
14743
|
-
],
|
|
14815
|
+
}, null, -1), V0 = [
|
|
14816
|
+
B0
|
|
14817
|
+
], M7 = /* @__PURE__ */ defineComponent({
|
|
14744
14818
|
__name: "Checklist",
|
|
14745
14819
|
props: {
|
|
14746
14820
|
class: { type: String, default: "" },
|
|
@@ -14776,15 +14850,15 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14776
14850
|
viewBox: "0 0 1024 1024",
|
|
14777
14851
|
"aria-labelledby": c.name,
|
|
14778
14852
|
role: "presentation"
|
|
14779
|
-
},
|
|
14853
|
+
}, V0, 14, L0));
|
|
14780
14854
|
}
|
|
14781
|
-
}),
|
|
14855
|
+
}), N6 = ["aria-labelledby"], C6 = /* @__PURE__ */ createElementVNode("path", {
|
|
14782
14856
|
d: "m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",
|
|
14783
14857
|
fill: "currentColor",
|
|
14784
14858
|
"fill-opacity": "0.9"
|
|
14785
|
-
}, null, -1),
|
|
14786
|
-
|
|
14787
|
-
],
|
|
14859
|
+
}, null, -1), v6 = [
|
|
14860
|
+
C6
|
|
14861
|
+
], J7 = /* @__PURE__ */ defineComponent({
|
|
14788
14862
|
__name: "ArrowRight",
|
|
14789
14863
|
props: {
|
|
14790
14864
|
class: { type: String, default: "" },
|
|
@@ -14820,7 +14894,7 @@ const V = ["aria-labelledby"], A = /* @__PURE__ */ createElementVNode("path", {
|
|
|
14820
14894
|
viewBox: "0 0 1024 1024",
|
|
14821
14895
|
"aria-labelledby": c.name,
|
|
14822
14896
|
role: "presentation"
|
|
14823
|
-
},
|
|
14897
|
+
}, v6, 14, N6));
|
|
14824
14898
|
}
|
|
14825
14899
|
});
|
|
14826
14900
|
|
|
@@ -15365,7 +15439,7 @@ function component$f(componentName, scope, MoreIcon, taro = false) {
|
|
|
15365
15439
|
}
|
|
15366
15440
|
|
|
15367
15441
|
const { create: create$k, componentName: componentName$j, scope: scope$h } = createComponent("tabs-bar");
|
|
15368
|
-
const _sfc_main$k = create$k(component$f(componentName$j, scope$h,
|
|
15442
|
+
const _sfc_main$k = create$k(component$f(componentName$j, scope$h, ds, false));
|
|
15369
15443
|
|
|
15370
15444
|
const TabsStatesKey = Symbol("TabsStatesKey");
|
|
15371
15445
|
const tabsContainerProps = {
|
|
@@ -15628,7 +15702,7 @@ function component$d(componentName, scope, LoadingIcon) {
|
|
|
15628
15702
|
}
|
|
15629
15703
|
|
|
15630
15704
|
const { create: create$i, componentName: componentName$h, scope: scope$f } = createComponent("tabs-pane");
|
|
15631
|
-
const _sfc_main$i = create$i(component$d(componentName$h, scope$f,
|
|
15705
|
+
const _sfc_main$i = create$i(component$d(componentName$h, scope$f, $s));
|
|
15632
15706
|
|
|
15633
15707
|
const stepBarProps = {
|
|
15634
15708
|
// 步骤栏方向
|
|
@@ -16275,7 +16349,7 @@ function component$c(componentName, scope, DoneIcon, MarkIcon) {
|
|
|
16275
16349
|
}
|
|
16276
16350
|
|
|
16277
16351
|
const { componentName: componentName$g, create: create$h, scope: scope$e } = createComponent("steps-bar");
|
|
16278
|
-
const _sfc_main$h = create$h(component$c(componentName$g, scope$e,
|
|
16352
|
+
const _sfc_main$h = create$h(component$c(componentName$g, scope$e, M7, J7));
|
|
16279
16353
|
|
|
16280
16354
|
const InnerPageScopeKey$1 = Symbol.for("InnerPageScopeKey");
|
|
16281
16355
|
const PageWrapperKey$1 = Symbol.for("PageWrapperKey");
|
|
@@ -16283,14 +16357,22 @@ function component$b(componentName, scope) {
|
|
|
16283
16357
|
return {
|
|
16284
16358
|
// 属性
|
|
16285
16359
|
props: {
|
|
16360
|
+
// class
|
|
16361
|
+
class: {
|
|
16362
|
+
type: [String]
|
|
16363
|
+
},
|
|
16286
16364
|
// 标题
|
|
16287
16365
|
title: {
|
|
16288
16366
|
type: [String]
|
|
16289
16367
|
},
|
|
16368
|
+
// 隐藏header
|
|
16369
|
+
hideHeader: {
|
|
16370
|
+
type: [Boolean]
|
|
16371
|
+
},
|
|
16290
16372
|
// 是否可拖动
|
|
16291
16373
|
draggable: {
|
|
16292
16374
|
type: [Boolean],
|
|
16293
|
-
default: true
|
|
16375
|
+
default: () => true
|
|
16294
16376
|
},
|
|
16295
16377
|
// 是否加入body
|
|
16296
16378
|
appendToBody: {
|
|
@@ -16300,12 +16382,12 @@ function component$b(componentName, scope) {
|
|
|
16300
16382
|
// 是否可以通过点击 modal 关闭 Dialog
|
|
16301
16383
|
closeOnClickModal: {
|
|
16302
16384
|
type: [Boolean],
|
|
16303
|
-
default: false
|
|
16385
|
+
default: () => false
|
|
16304
16386
|
},
|
|
16305
16387
|
// 是否可以通过按下 ESC 关闭 Dialog
|
|
16306
16388
|
closeOnPressEscape: {
|
|
16307
16389
|
type: [Boolean],
|
|
16308
|
-
default: true
|
|
16390
|
+
default: () => true
|
|
16309
16391
|
}
|
|
16310
16392
|
},
|
|
16311
16393
|
// setup
|
|
@@ -16324,7 +16406,7 @@ function component$b(componentName, scope) {
|
|
|
16324
16406
|
};
|
|
16325
16407
|
return () => {
|
|
16326
16408
|
const attrs = context.attrs;
|
|
16327
|
-
const
|
|
16409
|
+
const data = {
|
|
16328
16410
|
...attrs,
|
|
16329
16411
|
title: props.title,
|
|
16330
16412
|
draggable: props.draggable,
|
|
@@ -16335,12 +16417,19 @@ function component$b(componentName, scope) {
|
|
|
16335
16417
|
"close-on-press-escape": props.closeOnPressEscape,
|
|
16336
16418
|
"before-close": beforeClose
|
|
16337
16419
|
};
|
|
16420
|
+
const classes = ["fox-dialog-item "];
|
|
16421
|
+
if (props.hideHeader) {
|
|
16422
|
+
classes.push("hide-header");
|
|
16423
|
+
}
|
|
16424
|
+
if (props.class) {
|
|
16425
|
+
classes.push(props.class);
|
|
16426
|
+
}
|
|
16427
|
+
data.class = classes.join(" ");
|
|
16338
16428
|
const children = {};
|
|
16339
16429
|
if (typeof context.slots.default === "function") {
|
|
16340
|
-
|
|
16341
|
-
children.default = () => node;
|
|
16430
|
+
children.default = context.slots.default;
|
|
16342
16431
|
}
|
|
16343
|
-
return h(ElDialog,
|
|
16432
|
+
return h(ElDialog, data, children);
|
|
16344
16433
|
};
|
|
16345
16434
|
}
|
|
16346
16435
|
};
|
|
@@ -16651,7 +16740,7 @@ const { componentName: componentName$d, create: create$e } = createComponent("po
|
|
|
16651
16740
|
const _sfc_main$e = create$e(
|
|
16652
16741
|
component$a(componentName$d, {
|
|
16653
16742
|
FoxOverLay: OverLay,
|
|
16654
|
-
Close:
|
|
16743
|
+
Close: N7
|
|
16655
16744
|
})
|
|
16656
16745
|
);
|
|
16657
16746
|
|
|
@@ -17430,7 +17519,7 @@ function component$8(componentName, scope, Loading) {
|
|
|
17430
17519
|
}
|
|
17431
17520
|
|
|
17432
17521
|
const { componentName: componentName$b, create: create$b, scope: scope$b } = createComponent("infinite-loading");
|
|
17433
|
-
const _sfc_main$b = create$b(component$8(componentName$b, scope$b,
|
|
17522
|
+
const _sfc_main$b = create$b(component$8(componentName$b, scope$b, $s));
|
|
17434
17523
|
|
|
17435
17524
|
const MIN_DISTANCE = 10;
|
|
17436
17525
|
function getDirection(x, y) {
|
|
@@ -17814,7 +17903,7 @@ const component$7 = (componentName, scope, Loading) => {
|
|
|
17814
17903
|
};
|
|
17815
17904
|
|
|
17816
17905
|
const { componentName: componentName$a, create: create$a, scope: scope$a } = createComponent("pull-refresh");
|
|
17817
|
-
const _sfc_main$a = create$a(component$7(componentName$a, scope$a,
|
|
17906
|
+
const _sfc_main$a = create$a(component$7(componentName$a, scope$a, $s));
|
|
17818
17907
|
|
|
17819
17908
|
function component$6(componentName, scope) {
|
|
17820
17909
|
return {
|
|
@@ -18710,7 +18799,7 @@ const component$3 = (componentName, scope, addIcon, taro = false) => {
|
|
|
18710
18799
|
};
|
|
18711
18800
|
|
|
18712
18801
|
const { componentName: componentName$6, create: create$6, scope: scope$6 } = createComponent("floating-button");
|
|
18713
|
-
const _sfc_main$6 = create$6(component$3(componentName$6, scope$6,
|
|
18802
|
+
const _sfc_main$6 = create$6(component$3(componentName$6, scope$6, X6, false));
|
|
18714
18803
|
|
|
18715
18804
|
function isWindow(val) {
|
|
18716
18805
|
return val === window;
|
|
@@ -20300,6 +20389,10 @@ const popoverDialogProps = {
|
|
|
20300
20389
|
// custom style
|
|
20301
20390
|
customStyle: {
|
|
20302
20391
|
type: [Object]
|
|
20392
|
+
},
|
|
20393
|
+
// leave hide(鼠标离开,自动隐藏)
|
|
20394
|
+
leaveHide: {
|
|
20395
|
+
type: [Boolean]
|
|
20303
20396
|
}
|
|
20304
20397
|
};
|
|
20305
20398
|
|
|
@@ -20687,6 +20780,16 @@ function component$2(componentName, scope, taro = false) {
|
|
|
20687
20780
|
mounted.value = false;
|
|
20688
20781
|
}
|
|
20689
20782
|
};
|
|
20783
|
+
const onMouseleave = (e) => {
|
|
20784
|
+
if (!dialogRef.value || visible.value === false) {
|
|
20785
|
+
return;
|
|
20786
|
+
}
|
|
20787
|
+
const { relatedTarget } = e;
|
|
20788
|
+
if (!dialogRef.value.contains(relatedTarget)) {
|
|
20789
|
+
visible.value = false;
|
|
20790
|
+
emit("update:visible", false);
|
|
20791
|
+
}
|
|
20792
|
+
};
|
|
20690
20793
|
expose({
|
|
20691
20794
|
doLayout
|
|
20692
20795
|
});
|
|
@@ -20718,6 +20821,9 @@ function component$2(componentName, scope, taro = false) {
|
|
|
20718
20821
|
style: styles.value,
|
|
20719
20822
|
onAnimationend
|
|
20720
20823
|
};
|
|
20824
|
+
if (props.leaveHide) {
|
|
20825
|
+
data["onMouseleave"] = onMouseleave;
|
|
20826
|
+
}
|
|
20721
20827
|
const dialogNode = h("div", data, { default: () => children });
|
|
20722
20828
|
rootNodes.push(dialogNode);
|
|
20723
20829
|
return rootNodes;
|