zartui 3.1.54 → 3.1.56
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/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/speech-recognizer/SpeechRecognizer.d.ts +6 -1
- package/es/speech-recognizer/SpeechRecognizer.mjs +5 -2
- package/es/speech-recognizer/index.d.ts +5 -1
- package/es/speech-recognizer/recorder.d.ts +1 -1
- package/es/speech-recognizer/recorder.mjs +5 -1
- package/es/table/Table.mjs +23 -7
- package/es/table/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/speech-recognizer/SpeechRecognizer.d.ts +6 -1
- package/lib/speech-recognizer/SpeechRecognizer.js +5 -2
- package/lib/speech-recognizer/index.d.ts +5 -1
- package/lib/speech-recognizer/recorder.d.ts +1 -1
- package/lib/speech-recognizer/recorder.js +5 -1
- package/lib/table/Table.js +23 -7
- package/lib/table/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +34 -11
- package/lib/zartui.es.js +34 -11
- package/lib/zartui.js +34 -11
- package/lib/zartui.min.js +1 -1
- package/package.json +4 -4
package/lib/zartui.cjs.js
CHANGED
|
@@ -17470,7 +17470,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17470
17470
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
17471
17471
|
});
|
|
17472
17472
|
};
|
|
17473
|
-
function useRecorder(emit) {
|
|
17473
|
+
function useRecorder(emit, type = "") {
|
|
17474
17474
|
const recordedBlobs = vue.ref([]);
|
|
17475
17475
|
const mediaRecorder = vue.ref();
|
|
17476
17476
|
if (!navigator.mediaDevices) {
|
|
@@ -17505,6 +17505,10 @@ function useRecorder(emit) {
|
|
|
17505
17505
|
mediaRecorder.value.ondataavailable = (event) => {
|
|
17506
17506
|
if (event.data && event.data.size > 0) {
|
|
17507
17507
|
recordedBlobs.value.push(event.data);
|
|
17508
|
+
if (type === "raw") {
|
|
17509
|
+
emit("change", recordedBlobs.value);
|
|
17510
|
+
return;
|
|
17511
|
+
}
|
|
17508
17512
|
const blob = new Blob(recordedBlobs.value, { type: "audio/wav" });
|
|
17509
17513
|
convertBlobToBase64(blob);
|
|
17510
17514
|
}
|
|
@@ -17524,6 +17528,7 @@ const [name$c, bem$c] = createNamespace("speech-recognizer");
|
|
|
17524
17528
|
const speechRecognizerProps = {
|
|
17525
17529
|
title: String,
|
|
17526
17530
|
value: String,
|
|
17531
|
+
type: String,
|
|
17527
17532
|
show: Boolean,
|
|
17528
17533
|
closeOnPopstate: truthProp,
|
|
17529
17534
|
closeOnClickOverlay: truthProp
|
|
@@ -17531,7 +17536,7 @@ const speechRecognizerProps = {
|
|
|
17531
17536
|
var stdin_default$j = vue.defineComponent({
|
|
17532
17537
|
name: name$c,
|
|
17533
17538
|
props: speechRecognizerProps,
|
|
17534
|
-
emits: ["change", "confirm", "close", "update:show", "update:value"],
|
|
17539
|
+
emits: ["change", "confirm", "close", "update:show", "update:value", "onTouchstart", "onTouchend"],
|
|
17535
17540
|
setup(props, {
|
|
17536
17541
|
emit,
|
|
17537
17542
|
slots
|
|
@@ -17541,7 +17546,7 @@ var stdin_default$j = vue.defineComponent({
|
|
|
17541
17546
|
const {
|
|
17542
17547
|
startRecording,
|
|
17543
17548
|
stopRecording
|
|
17544
|
-
} = useRecorder(emit);
|
|
17549
|
+
} = useRecorder(emit, props.type);
|
|
17545
17550
|
const modelValue = vue.computed({
|
|
17546
17551
|
get: () => props.value,
|
|
17547
17552
|
set: (val) => {
|
|
@@ -17646,12 +17651,14 @@ var stdin_default$j = vue.defineComponent({
|
|
|
17646
17651
|
e.preventDefault();
|
|
17647
17652
|
};
|
|
17648
17653
|
const onTouchstart = () => {
|
|
17654
|
+
emit("onTouchstart");
|
|
17649
17655
|
isPlaying.value = true;
|
|
17650
17656
|
startRecording();
|
|
17651
17657
|
};
|
|
17652
17658
|
const onTouchend = () => {
|
|
17653
17659
|
isPlaying.value = false;
|
|
17654
17660
|
stopRecording();
|
|
17661
|
+
emit("onTouchend");
|
|
17655
17662
|
};
|
|
17656
17663
|
const renderPlay = () => {
|
|
17657
17664
|
const text = props.value ? props.value : "请说话";
|
|
@@ -18761,7 +18768,8 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18761
18768
|
}) {
|
|
18762
18769
|
const sortOrder = vue.ref("");
|
|
18763
18770
|
const sortKey = vue.ref("");
|
|
18764
|
-
const
|
|
18771
|
+
const tableRef = vue.ref();
|
|
18772
|
+
const fixedColumn = vue.computed(() => props.headList.filter((v) => v.fixed || v.fixedRight));
|
|
18765
18773
|
const formatColumns = vue.computed(() => {
|
|
18766
18774
|
const columns = [];
|
|
18767
18775
|
let left = 0;
|
|
@@ -18776,7 +18784,7 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18776
18784
|
} else {
|
|
18777
18785
|
column.left = 0;
|
|
18778
18786
|
}
|
|
18779
|
-
if (element.fixed && !nextColumn.fixed) {
|
|
18787
|
+
if (element.fixed && !(nextColumn == null ? void 0 : nextColumn.fixed)) {
|
|
18780
18788
|
column.lastFixLeft = true;
|
|
18781
18789
|
}
|
|
18782
18790
|
columns.push(column);
|
|
@@ -18784,8 +18792,12 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18784
18792
|
return columns;
|
|
18785
18793
|
});
|
|
18786
18794
|
const pingedLeft = vue.ref(false);
|
|
18795
|
+
const pingedRight = vue.ref(false);
|
|
18787
18796
|
const resortHeadList = vue.computed(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
18788
18797
|
vue.onMounted(() => {
|
|
18798
|
+
if (tableRef.value) {
|
|
18799
|
+
pingedRight.value = tableRef.value.scrollWidth > tableRef.value.clientWidth;
|
|
18800
|
+
}
|
|
18789
18801
|
const fixedIndexList = props.headList.map((v, i) => {
|
|
18790
18802
|
if (v.sorter && v.defaultSortOrder) {
|
|
18791
18803
|
sortOrder.value = v.defaultSortOrder || "";
|
|
@@ -18833,18 +18845,24 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18833
18845
|
} = event;
|
|
18834
18846
|
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
18835
18847
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
18848
|
+
const rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
18849
|
+
pingedRight.value = rightRemain > 0;
|
|
18836
18850
|
};
|
|
18837
18851
|
const getHead = (colData) => {
|
|
18838
18852
|
const headSlot = slots[`head-${colData.id}`];
|
|
18839
18853
|
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
18840
18854
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
18841
18855
|
return vue.createVNode("th", {
|
|
18842
|
-
"class": bem$3("left", {
|
|
18856
|
+
"class": [bem$3("left", {
|
|
18843
18857
|
fixed: colData.fixed,
|
|
18844
18858
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18845
|
-
}),
|
|
18859
|
+
}), bem$3("right", {
|
|
18860
|
+
fixed: colData.fixedRight,
|
|
18861
|
+
last: colData.lastRight && pingedRight.value
|
|
18862
|
+
})],
|
|
18846
18863
|
"style": {
|
|
18847
|
-
left: colData.fixed ? colData.left : ""
|
|
18864
|
+
left: colData.fixed ? colData.left : "",
|
|
18865
|
+
right: colData.fixedRight ? colData.right : ""
|
|
18848
18866
|
},
|
|
18849
18867
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
18850
18868
|
}, [headSlot ? headSlot(colData) : vue.createVNode("div", {
|
|
@@ -18901,12 +18919,16 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18901
18919
|
}
|
|
18902
18920
|
const style = Object.assign({}, colData.style);
|
|
18903
18921
|
style.left = colData.fixed ? colData.left : "";
|
|
18922
|
+
style.right = colData.fixedRight ? colData.right : "";
|
|
18904
18923
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
|
|
18905
18924
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
18906
|
-
"class": bem$3("left", {
|
|
18925
|
+
"class": [bem$3("left", {
|
|
18907
18926
|
fixed: colData.fixed,
|
|
18908
18927
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18909
|
-
}),
|
|
18928
|
+
}), bem$3("right", {
|
|
18929
|
+
fixed: colData.fixedRight,
|
|
18930
|
+
last: colData.lastRight && pingedRight.value
|
|
18931
|
+
})],
|
|
18910
18932
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
18911
18933
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
18912
18934
|
"style": style
|
|
@@ -18941,6 +18963,7 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18941
18963
|
skeleton: true
|
|
18942
18964
|
})
|
|
18943
18965
|
}, [getLoadingColumn()]) : vue.createVNode("div", {
|
|
18966
|
+
"ref": tableRef,
|
|
18944
18967
|
"class": bem$3({
|
|
18945
18968
|
fixed: fixedColumn.value.length > 0,
|
|
18946
18969
|
bordered: props.border,
|
|
@@ -20940,7 +20963,7 @@ const Lazyload = {
|
|
|
20940
20963
|
});
|
|
20941
20964
|
}
|
|
20942
20965
|
};
|
|
20943
|
-
const version = "3.1.
|
|
20966
|
+
const version = "3.1.56";
|
|
20944
20967
|
function install(app) {
|
|
20945
20968
|
const components = [
|
|
20946
20969
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -17468,7 +17468,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17468
17468
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
17469
17469
|
});
|
|
17470
17470
|
};
|
|
17471
|
-
function useRecorder(emit) {
|
|
17471
|
+
function useRecorder(emit, type = "") {
|
|
17472
17472
|
const recordedBlobs = ref([]);
|
|
17473
17473
|
const mediaRecorder = ref();
|
|
17474
17474
|
if (!navigator.mediaDevices) {
|
|
@@ -17503,6 +17503,10 @@ function useRecorder(emit) {
|
|
|
17503
17503
|
mediaRecorder.value.ondataavailable = (event) => {
|
|
17504
17504
|
if (event.data && event.data.size > 0) {
|
|
17505
17505
|
recordedBlobs.value.push(event.data);
|
|
17506
|
+
if (type === "raw") {
|
|
17507
|
+
emit("change", recordedBlobs.value);
|
|
17508
|
+
return;
|
|
17509
|
+
}
|
|
17506
17510
|
const blob = new Blob(recordedBlobs.value, { type: "audio/wav" });
|
|
17507
17511
|
convertBlobToBase64(blob);
|
|
17508
17512
|
}
|
|
@@ -17522,6 +17526,7 @@ const [name$c, bem$c] = createNamespace("speech-recognizer");
|
|
|
17522
17526
|
const speechRecognizerProps = {
|
|
17523
17527
|
title: String,
|
|
17524
17528
|
value: String,
|
|
17529
|
+
type: String,
|
|
17525
17530
|
show: Boolean,
|
|
17526
17531
|
closeOnPopstate: truthProp,
|
|
17527
17532
|
closeOnClickOverlay: truthProp
|
|
@@ -17529,7 +17534,7 @@ const speechRecognizerProps = {
|
|
|
17529
17534
|
var stdin_default$j = defineComponent({
|
|
17530
17535
|
name: name$c,
|
|
17531
17536
|
props: speechRecognizerProps,
|
|
17532
|
-
emits: ["change", "confirm", "close", "update:show", "update:value"],
|
|
17537
|
+
emits: ["change", "confirm", "close", "update:show", "update:value", "onTouchstart", "onTouchend"],
|
|
17533
17538
|
setup(props, {
|
|
17534
17539
|
emit,
|
|
17535
17540
|
slots
|
|
@@ -17539,7 +17544,7 @@ var stdin_default$j = defineComponent({
|
|
|
17539
17544
|
const {
|
|
17540
17545
|
startRecording,
|
|
17541
17546
|
stopRecording
|
|
17542
|
-
} = useRecorder(emit);
|
|
17547
|
+
} = useRecorder(emit, props.type);
|
|
17543
17548
|
const modelValue = computed({
|
|
17544
17549
|
get: () => props.value,
|
|
17545
17550
|
set: (val) => {
|
|
@@ -17644,12 +17649,14 @@ var stdin_default$j = defineComponent({
|
|
|
17644
17649
|
e.preventDefault();
|
|
17645
17650
|
};
|
|
17646
17651
|
const onTouchstart = () => {
|
|
17652
|
+
emit("onTouchstart");
|
|
17647
17653
|
isPlaying.value = true;
|
|
17648
17654
|
startRecording();
|
|
17649
17655
|
};
|
|
17650
17656
|
const onTouchend = () => {
|
|
17651
17657
|
isPlaying.value = false;
|
|
17652
17658
|
stopRecording();
|
|
17659
|
+
emit("onTouchend");
|
|
17653
17660
|
};
|
|
17654
17661
|
const renderPlay = () => {
|
|
17655
17662
|
const text = props.value ? props.value : "请说话";
|
|
@@ -18759,7 +18766,8 @@ var stdin_default$8 = defineComponent({
|
|
|
18759
18766
|
}) {
|
|
18760
18767
|
const sortOrder = ref("");
|
|
18761
18768
|
const sortKey = ref("");
|
|
18762
|
-
const
|
|
18769
|
+
const tableRef = ref();
|
|
18770
|
+
const fixedColumn = computed(() => props.headList.filter((v) => v.fixed || v.fixedRight));
|
|
18763
18771
|
const formatColumns = computed(() => {
|
|
18764
18772
|
const columns = [];
|
|
18765
18773
|
let left = 0;
|
|
@@ -18774,7 +18782,7 @@ var stdin_default$8 = defineComponent({
|
|
|
18774
18782
|
} else {
|
|
18775
18783
|
column.left = 0;
|
|
18776
18784
|
}
|
|
18777
|
-
if (element.fixed && !nextColumn.fixed) {
|
|
18785
|
+
if (element.fixed && !(nextColumn == null ? void 0 : nextColumn.fixed)) {
|
|
18778
18786
|
column.lastFixLeft = true;
|
|
18779
18787
|
}
|
|
18780
18788
|
columns.push(column);
|
|
@@ -18782,8 +18790,12 @@ var stdin_default$8 = defineComponent({
|
|
|
18782
18790
|
return columns;
|
|
18783
18791
|
});
|
|
18784
18792
|
const pingedLeft = ref(false);
|
|
18793
|
+
const pingedRight = ref(false);
|
|
18785
18794
|
const resortHeadList = computed(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
18786
18795
|
onMounted(() => {
|
|
18796
|
+
if (tableRef.value) {
|
|
18797
|
+
pingedRight.value = tableRef.value.scrollWidth > tableRef.value.clientWidth;
|
|
18798
|
+
}
|
|
18787
18799
|
const fixedIndexList = props.headList.map((v, i) => {
|
|
18788
18800
|
if (v.sorter && v.defaultSortOrder) {
|
|
18789
18801
|
sortOrder.value = v.defaultSortOrder || "";
|
|
@@ -18831,18 +18843,24 @@ var stdin_default$8 = defineComponent({
|
|
|
18831
18843
|
} = event;
|
|
18832
18844
|
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
18833
18845
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
18846
|
+
const rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
18847
|
+
pingedRight.value = rightRemain > 0;
|
|
18834
18848
|
};
|
|
18835
18849
|
const getHead = (colData) => {
|
|
18836
18850
|
const headSlot = slots[`head-${colData.id}`];
|
|
18837
18851
|
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
18838
18852
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
18839
18853
|
return createVNode("th", {
|
|
18840
|
-
"class": bem$3("left", {
|
|
18854
|
+
"class": [bem$3("left", {
|
|
18841
18855
|
fixed: colData.fixed,
|
|
18842
18856
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18843
|
-
}),
|
|
18857
|
+
}), bem$3("right", {
|
|
18858
|
+
fixed: colData.fixedRight,
|
|
18859
|
+
last: colData.lastRight && pingedRight.value
|
|
18860
|
+
})],
|
|
18844
18861
|
"style": {
|
|
18845
|
-
left: colData.fixed ? colData.left : ""
|
|
18862
|
+
left: colData.fixed ? colData.left : "",
|
|
18863
|
+
right: colData.fixedRight ? colData.right : ""
|
|
18846
18864
|
},
|
|
18847
18865
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
18848
18866
|
}, [headSlot ? headSlot(colData) : createVNode("div", {
|
|
@@ -18899,12 +18917,16 @@ var stdin_default$8 = defineComponent({
|
|
|
18899
18917
|
}
|
|
18900
18918
|
const style = Object.assign({}, colData.style);
|
|
18901
18919
|
style.left = colData.fixed ? colData.left : "";
|
|
18920
|
+
style.right = colData.fixedRight ? colData.right : "";
|
|
18902
18921
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && createVNode("td", {
|
|
18903
18922
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
18904
|
-
"class": bem$3("left", {
|
|
18923
|
+
"class": [bem$3("left", {
|
|
18905
18924
|
fixed: colData.fixed,
|
|
18906
18925
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18907
|
-
}),
|
|
18926
|
+
}), bem$3("right", {
|
|
18927
|
+
fixed: colData.fixedRight,
|
|
18928
|
+
last: colData.lastRight && pingedRight.value
|
|
18929
|
+
})],
|
|
18908
18930
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
18909
18931
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
18910
18932
|
"style": style
|
|
@@ -18939,6 +18961,7 @@ var stdin_default$8 = defineComponent({
|
|
|
18939
18961
|
skeleton: true
|
|
18940
18962
|
})
|
|
18941
18963
|
}, [getLoadingColumn()]) : createVNode("div", {
|
|
18964
|
+
"ref": tableRef,
|
|
18942
18965
|
"class": bem$3({
|
|
18943
18966
|
fixed: fixedColumn.value.length > 0,
|
|
18944
18967
|
bordered: props.border,
|
|
@@ -20938,7 +20961,7 @@ const Lazyload = {
|
|
|
20938
20961
|
});
|
|
20939
20962
|
}
|
|
20940
20963
|
};
|
|
20941
|
-
const version = "3.1.
|
|
20964
|
+
const version = "3.1.56";
|
|
20942
20965
|
function install(app) {
|
|
20943
20966
|
const components = [
|
|
20944
20967
|
ActionSheet,
|
package/lib/zartui.js
CHANGED
|
@@ -21553,7 +21553,7 @@
|
|
|
21553
21553
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
21554
21554
|
});
|
|
21555
21555
|
};
|
|
21556
|
-
function useRecorder(emit) {
|
|
21556
|
+
function useRecorder(emit, type = "") {
|
|
21557
21557
|
const recordedBlobs = vue.ref([]);
|
|
21558
21558
|
const mediaRecorder = vue.ref();
|
|
21559
21559
|
if (!navigator.mediaDevices) {
|
|
@@ -21588,6 +21588,10 @@
|
|
|
21588
21588
|
mediaRecorder.value.ondataavailable = (event) => {
|
|
21589
21589
|
if (event.data && event.data.size > 0) {
|
|
21590
21590
|
recordedBlobs.value.push(event.data);
|
|
21591
|
+
if (type === "raw") {
|
|
21592
|
+
emit("change", recordedBlobs.value);
|
|
21593
|
+
return;
|
|
21594
|
+
}
|
|
21591
21595
|
const blob = new Blob(recordedBlobs.value, { type: "audio/wav" });
|
|
21592
21596
|
convertBlobToBase64(blob);
|
|
21593
21597
|
}
|
|
@@ -21607,6 +21611,7 @@
|
|
|
21607
21611
|
const speechRecognizerProps = {
|
|
21608
21612
|
title: String,
|
|
21609
21613
|
value: String,
|
|
21614
|
+
type: String,
|
|
21610
21615
|
show: Boolean,
|
|
21611
21616
|
closeOnPopstate: truthProp,
|
|
21612
21617
|
closeOnClickOverlay: truthProp
|
|
@@ -21614,7 +21619,7 @@
|
|
|
21614
21619
|
var stdin_default$j = vue.defineComponent({
|
|
21615
21620
|
name: name$c,
|
|
21616
21621
|
props: speechRecognizerProps,
|
|
21617
|
-
emits: ["change", "confirm", "close", "update:show", "update:value"],
|
|
21622
|
+
emits: ["change", "confirm", "close", "update:show", "update:value", "onTouchstart", "onTouchend"],
|
|
21618
21623
|
setup(props, {
|
|
21619
21624
|
emit,
|
|
21620
21625
|
slots
|
|
@@ -21624,7 +21629,7 @@
|
|
|
21624
21629
|
const {
|
|
21625
21630
|
startRecording,
|
|
21626
21631
|
stopRecording
|
|
21627
|
-
} = useRecorder(emit);
|
|
21632
|
+
} = useRecorder(emit, props.type);
|
|
21628
21633
|
const modelValue = vue.computed({
|
|
21629
21634
|
get: () => props.value,
|
|
21630
21635
|
set: (val) => {
|
|
@@ -21729,12 +21734,14 @@
|
|
|
21729
21734
|
e.preventDefault();
|
|
21730
21735
|
};
|
|
21731
21736
|
const onTouchstart = () => {
|
|
21737
|
+
emit("onTouchstart");
|
|
21732
21738
|
isPlaying.value = true;
|
|
21733
21739
|
startRecording();
|
|
21734
21740
|
};
|
|
21735
21741
|
const onTouchend = () => {
|
|
21736
21742
|
isPlaying.value = false;
|
|
21737
21743
|
stopRecording();
|
|
21744
|
+
emit("onTouchend");
|
|
21738
21745
|
};
|
|
21739
21746
|
const renderPlay = () => {
|
|
21740
21747
|
const text = props.value ? props.value : "请说话";
|
|
@@ -22838,7 +22845,8 @@
|
|
|
22838
22845
|
}) {
|
|
22839
22846
|
const sortOrder = vue.ref("");
|
|
22840
22847
|
const sortKey = vue.ref("");
|
|
22841
|
-
const
|
|
22848
|
+
const tableRef = vue.ref();
|
|
22849
|
+
const fixedColumn = vue.computed(() => props.headList.filter((v) => v.fixed || v.fixedRight));
|
|
22842
22850
|
const formatColumns = vue.computed(() => {
|
|
22843
22851
|
const columns = [];
|
|
22844
22852
|
let left2 = 0;
|
|
@@ -22853,7 +22861,7 @@
|
|
|
22853
22861
|
} else {
|
|
22854
22862
|
column.left = 0;
|
|
22855
22863
|
}
|
|
22856
|
-
if (element.fixed && !nextColumn.fixed) {
|
|
22864
|
+
if (element.fixed && !(nextColumn == null ? void 0 : nextColumn.fixed)) {
|
|
22857
22865
|
column.lastFixLeft = true;
|
|
22858
22866
|
}
|
|
22859
22867
|
columns.push(column);
|
|
@@ -22861,8 +22869,12 @@
|
|
|
22861
22869
|
return columns;
|
|
22862
22870
|
});
|
|
22863
22871
|
const pingedLeft = vue.ref(false);
|
|
22872
|
+
const pingedRight = vue.ref(false);
|
|
22864
22873
|
const resortHeadList = vue.computed(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
22865
22874
|
vue.onMounted(() => {
|
|
22875
|
+
if (tableRef.value) {
|
|
22876
|
+
pingedRight.value = tableRef.value.scrollWidth > tableRef.value.clientWidth;
|
|
22877
|
+
}
|
|
22866
22878
|
const fixedIndexList = props.headList.map((v, i) => {
|
|
22867
22879
|
if (v.sorter && v.defaultSortOrder) {
|
|
22868
22880
|
sortOrder.value = v.defaultSortOrder || "";
|
|
@@ -22910,18 +22922,24 @@
|
|
|
22910
22922
|
} = event;
|
|
22911
22923
|
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
22912
22924
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
22925
|
+
const rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
22926
|
+
pingedRight.value = rightRemain > 0;
|
|
22913
22927
|
};
|
|
22914
22928
|
const getHead = (colData) => {
|
|
22915
22929
|
const headSlot = slots[`head-${colData.id}`];
|
|
22916
22930
|
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
22917
22931
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
22918
22932
|
return vue.createVNode("th", {
|
|
22919
|
-
"class": bem$3("left", {
|
|
22933
|
+
"class": [bem$3("left", {
|
|
22920
22934
|
fixed: colData.fixed,
|
|
22921
22935
|
last: colData.lastFixLeft && pingedLeft.value
|
|
22922
|
-
}),
|
|
22936
|
+
}), bem$3("right", {
|
|
22937
|
+
fixed: colData.fixedRight,
|
|
22938
|
+
last: colData.lastRight && pingedRight.value
|
|
22939
|
+
})],
|
|
22923
22940
|
"style": {
|
|
22924
|
-
left: colData.fixed ? colData.left : ""
|
|
22941
|
+
left: colData.fixed ? colData.left : "",
|
|
22942
|
+
right: colData.fixedRight ? colData.right : ""
|
|
22925
22943
|
},
|
|
22926
22944
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
22927
22945
|
}, [headSlot ? headSlot(colData) : vue.createVNode("div", {
|
|
@@ -22978,12 +22996,16 @@
|
|
|
22978
22996
|
}
|
|
22979
22997
|
const style = Object.assign({}, colData.style);
|
|
22980
22998
|
style.left = colData.fixed ? colData.left : "";
|
|
22999
|
+
style.right = colData.fixedRight ? colData.right : "";
|
|
22981
23000
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
|
|
22982
23001
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
22983
|
-
"class": bem$3("left", {
|
|
23002
|
+
"class": [bem$3("left", {
|
|
22984
23003
|
fixed: colData.fixed,
|
|
22985
23004
|
last: colData.lastFixLeft && pingedLeft.value
|
|
22986
|
-
}),
|
|
23005
|
+
}), bem$3("right", {
|
|
23006
|
+
fixed: colData.fixedRight,
|
|
23007
|
+
last: colData.lastRight && pingedRight.value
|
|
23008
|
+
})],
|
|
22987
23009
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
22988
23010
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
22989
23011
|
"style": style
|
|
@@ -23018,6 +23040,7 @@
|
|
|
23018
23040
|
skeleton: true
|
|
23019
23041
|
})
|
|
23020
23042
|
}, [getLoadingColumn()]) : vue.createVNode("div", {
|
|
23043
|
+
"ref": tableRef,
|
|
23021
23044
|
"class": bem$3({
|
|
23022
23045
|
fixed: fixedColumn.value.length > 0,
|
|
23023
23046
|
bordered: props.border,
|
|
@@ -25000,7 +25023,7 @@
|
|
|
25000
25023
|
});
|
|
25001
25024
|
}
|
|
25002
25025
|
};
|
|
25003
|
-
const version = "3.1.
|
|
25026
|
+
const version = "3.1.56";
|
|
25004
25027
|
function install(app) {
|
|
25005
25028
|
const components = [
|
|
25006
25029
|
ActionSheet,
|