bl-common-vue3 3.8.86 → 3.8.88
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/package.json
CHANGED
|
@@ -492,7 +492,10 @@
|
|
|
492
492
|
{{ $t("ApprovalDetail.index.931943-16") }}
|
|
493
493
|
</a-button>
|
|
494
494
|
|
|
495
|
-
<
|
|
495
|
+
<bl-popover
|
|
496
|
+
v-model:visible="handleVisible"
|
|
497
|
+
:title="null"
|
|
498
|
+
trigger="click">
|
|
496
499
|
<template #content>
|
|
497
500
|
<HandleApproval
|
|
498
501
|
:visible="handleVisible"
|
|
@@ -510,9 +513,9 @@
|
|
|
510
513
|
</template>
|
|
511
514
|
{{ $t("ApprovalDetail.index.931943-17") }}
|
|
512
515
|
</a-button>
|
|
513
|
-
</
|
|
516
|
+
</bl-popover>
|
|
514
517
|
|
|
515
|
-
<
|
|
518
|
+
<bl-popover
|
|
516
519
|
v-model:visible="handleDelVisible"
|
|
517
520
|
:title="null"
|
|
518
521
|
trigger="click">
|
|
@@ -534,7 +537,7 @@
|
|
|
534
537
|
</template>
|
|
535
538
|
{{ $t("ApprovalDetail.index.931943-18") }}
|
|
536
539
|
</a-button>
|
|
537
|
-
</
|
|
540
|
+
</bl-popover>
|
|
538
541
|
</template>
|
|
539
542
|
|
|
540
543
|
<a-button
|
|
@@ -632,6 +635,7 @@ import { t } from "../../locale";
|
|
|
632
635
|
import AddSignModal from "./modules/ApprovalAddSignModal.vue";
|
|
633
636
|
import utils from "../../common/utils/util";
|
|
634
637
|
import { Timeline } from "ant-design-vue";
|
|
638
|
+
import BlPopover from "../BlPopover/index.vue";
|
|
635
639
|
/* 详情页 */
|
|
636
640
|
export default defineComponent({
|
|
637
641
|
name: "DetailShow",
|
|
@@ -667,6 +671,7 @@ export default defineComponent({
|
|
|
667
671
|
RollbackOutlined,
|
|
668
672
|
FormOutlined,
|
|
669
673
|
AddSignModal,
|
|
674
|
+
BlPopover,
|
|
670
675
|
"a-timeline": Timeline,
|
|
671
676
|
},
|
|
672
677
|
directives: {
|
|
@@ -1149,8 +1154,10 @@ export default defineComponent({
|
|
|
1149
1154
|
return;
|
|
1150
1155
|
}
|
|
1151
1156
|
if (value == "agree") {
|
|
1157
|
+
state.handleDelVisible = false;
|
|
1152
1158
|
state.handleVisible = true;
|
|
1153
1159
|
} else {
|
|
1160
|
+
state.handleVisible = false;
|
|
1154
1161
|
state.handleDelVisible = true;
|
|
1155
1162
|
}
|
|
1156
1163
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { h, defineComponent } from 'vue';
|
|
3
|
+
import { Popover } from 'ant-design-vue';
|
|
4
|
+
import { getGlobalContainer } from '../../common/utils/popupContainer';
|
|
5
|
+
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'BlPopover',
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
setup(_, { attrs, slots }) {
|
|
10
|
+
return () =>
|
|
11
|
+
h(Popover, { getPopupContainer: getGlobalContainer, ...attrs }, slots);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -168,6 +168,16 @@ export default defineComponent({
|
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
170
|
|
|
171
|
+
// 使用浏览器原生解析 HTML 实体并移除零宽字符,避免显示异常
|
|
172
|
+
const decodeHtmlEntities = (str = "") => {
|
|
173
|
+
if (!str) return "";
|
|
174
|
+
const textarea = document.createElement("textarea");
|
|
175
|
+
textarea.innerHTML = str;
|
|
176
|
+
// 解码后移除零宽字符(零宽连字符、零宽非连字符、软连字符、方向标记等)
|
|
177
|
+
const decodedValue = textarea.value.replace(/[\u200B-\u200F\u202A-\u202E\u2060-\u206F]/g, "");
|
|
178
|
+
textarea.remove();
|
|
179
|
+
return decodedValue;
|
|
180
|
+
};
|
|
171
181
|
const defaultConfig = reactive({
|
|
172
182
|
// 不显示右下角logo
|
|
173
183
|
branding: false,
|
|
@@ -187,7 +197,8 @@ export default defineComponent({
|
|
|
187
197
|
// 获取纯文本
|
|
188
198
|
// editor.getContent({ format: ''text })
|
|
189
199
|
nextTick(() => {
|
|
190
|
-
|
|
200
|
+
const content = decodeHtmlEntities(editor.getContent());
|
|
201
|
+
emit("update:modelValue", content);
|
|
191
202
|
});
|
|
192
203
|
});
|
|
193
204
|
},
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
</div>
|
|
100
100
|
<div v-if="item.sub_list && item.sub_list.length > 0">
|
|
101
101
|
<div v-for="(items , indexs) in item.sub_list" :key="indexs" @click="twobutes(item,items)" class="twobut" :class="buttype == items.alias ? 'Seleces' : '' ">
|
|
102
|
-
<
|
|
103
|
-
<template #content>
|
|
104
|
-
{{items.name}}
|
|
105
|
-
</template>
|
|
106
|
-
{{items.name}}
|
|
107
|
-
</
|
|
102
|
+
<bl-popover>
|
|
103
|
+
<template #content>
|
|
104
|
+
{{items.name}}
|
|
105
|
+
</template>
|
|
106
|
+
{{items.name}}
|
|
107
|
+
</bl-popover>
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
@@ -185,14 +185,15 @@
|
|
|
185
185
|
import { defineComponent, reactive, toRefs, computed, watch, nextTick } from "vue";
|
|
186
186
|
import { message } from "ant-design-vue";
|
|
187
187
|
import utils from "../../common/utils/util";
|
|
188
|
-
import MiniList from "./MiniList.vue";
|
|
189
|
-
import TextTip from "./TextTip/index.vue";
|
|
190
|
-
import BlModal from "../BlModal/index.vue";
|
|
191
|
-
import
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
188
|
+
import MiniList from "./MiniList.vue";
|
|
189
|
+
import TextTip from "./TextTip/index.vue";
|
|
190
|
+
import BlModal from "../BlModal/index.vue";
|
|
191
|
+
import BlPopover from "../BlPopover/index.vue";
|
|
192
|
+
import {t, loadLanguageAsync} from "../../locale";
|
|
193
|
+
export default defineComponent({
|
|
194
|
+
name: "LinkLibrary",
|
|
195
|
+
emits: ["success", "close", "request"],
|
|
196
|
+
components: { MiniList, TextTip, BlModal, BlPopover },
|
|
196
197
|
props: {
|
|
197
198
|
visible: {
|
|
198
199
|
type: Boolean,
|