uni-oaview 1.9.3 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<uni-popup ref="popupRef" background-color="none" v-if="isShow" :is-mask-click="false">
|
|
2
|
+
<uni-popup class="oa-confirm-new-popup" ref="popupRef" background-color="none" v-if="isShow" :is-mask-click="false">
|
|
3
3
|
<view class="popup-content">
|
|
4
4
|
<p class="title">{{ state.title }}</p>
|
|
5
5
|
<p class="subtitle">{{ state.subtitle }}</p>
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
</script>
|
|
69
69
|
|
|
70
70
|
<style scoped lang="scss">
|
|
71
|
+
.oa-confirm-new-popup {
|
|
72
|
+
position: fixed !important;
|
|
73
|
+
z-index: 9999 !important;
|
|
74
|
+
}
|
|
71
75
|
::v-deep {
|
|
72
76
|
.uni-popup__wrapper {
|
|
73
77
|
border-radius: 8px;
|
|
@@ -42,10 +42,17 @@
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
+
const formatStartTime = (timestamp: number): string => {
|
|
46
|
+
const date = new Date(timestamp);
|
|
47
|
+
return `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}:${String(
|
|
48
|
+
date.getSeconds(),
|
|
49
|
+
).padStart(2, '0')}`;
|
|
50
|
+
};
|
|
51
|
+
|
|
45
52
|
const getTitle = (log: NativeEventLog): string => {
|
|
46
53
|
const { startTime, endTime, key } = log;
|
|
47
54
|
if (startTime && endTime) {
|
|
48
|
-
return `${key};${(endTime - startTime) / 1000}s`;
|
|
55
|
+
return `${formatStartTime(startTime)} ${key};${(endTime - startTime) / 1000}s`;
|
|
49
56
|
}
|
|
50
57
|
return key;
|
|
51
58
|
};
|