zydx-plus 1.35.621 → 1.35.623
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
|
@@ -1538,11 +1538,12 @@ export default {
|
|
|
1538
1538
|
return n[v]
|
|
1539
1539
|
},
|
|
1540
1540
|
readPdf: debounce(function () {
|
|
1541
|
+
if(Object.keys(pdfs).length === 0) return
|
|
1541
1542
|
setTimeout(() => {
|
|
1542
1543
|
let that = this
|
|
1543
1544
|
that.mouse()
|
|
1544
1545
|
that.$nextTick(() => {
|
|
1545
|
-
pdfs[that.id]
|
|
1546
|
+
pdfs[that.id]?.getPage(that.pageIndex).then(function (page) {
|
|
1546
1547
|
that.doc = page
|
|
1547
1548
|
that.viewWidth = page.view[2] - page.view[0]
|
|
1548
1549
|
that.viewHeight = page.view[3] - page.view[1]
|
|
@@ -8,7 +8,7 @@ render(divNode, document.body)
|
|
|
8
8
|
const container = divNode.el
|
|
9
9
|
|
|
10
10
|
// 导出函数可通过调用 Confirm() 函数动态创建 XtxConfirm 组件
|
|
11
|
-
const Confirm = ({ className, type, url ,title,radioArr,checkboxArr,submitText,cancelText,closeShow, promptContent, middle, cancelShow, inputArr, countdown, components }) => {
|
|
11
|
+
const Confirm = ({ className, type, url ,title,radioArr,checkboxArr,submitText,cancelText,closeShow, promptContent, middle, cancelShow, inputArr, countdown, components, slotProps }) => {
|
|
12
12
|
// 返回 Promise 对象
|
|
13
13
|
return new Promise((resolve, reject) => {
|
|
14
14
|
// 2. 点击确认按钮,触发resolve同时销毁组件
|
|
@@ -52,7 +52,7 @@ const Confirm = ({ className, type, url ,title,radioArr,checkboxArr,submitText,c
|
|
|
52
52
|
render(null, container)
|
|
53
53
|
}
|
|
54
54
|
// 1. 创建 XtxConfirm 组件
|
|
55
|
-
const VNode = createVNode(XtxConfirm, { className, type, url ,title, submitText, cancelText, closeShow,promptContent,radioArr,checkboxArr, middle, cancelShow, inputArr,countdown,components, submit, cancel, close })
|
|
55
|
+
const VNode = createVNode(XtxConfirm, { className, type, url ,title, submitText, cancelText, closeShow,promptContent,radioArr,checkboxArr, middle, cancelShow, inputArr,countdown,components, slotProps, submit, cancel, close })
|
|
56
56
|
render(VNode, container)
|
|
57
57
|
})
|
|
58
58
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="tip-boxContent" ref="tip-boxContent" :style="overflowShow?'overflow-y: scroll':''">
|
|
12
12
|
<div class="tap-p" ref="tapP">
|
|
13
13
|
<div v-if="type === 'slot'">
|
|
14
|
-
<component :is="components"></component>
|
|
14
|
+
<component :is="components" v-bind="slotProps"></component>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="tip-title2" ref="tipTitle" v-if="type === 'text'"
|
|
17
17
|
:style="{'text-align': (middles)? 'center': 'left', 'text-indent': indent? '2em': '0' }">
|
|
@@ -241,6 +241,10 @@ export default {
|
|
|
241
241
|
components: { // 模版组件
|
|
242
242
|
type: Object,
|
|
243
243
|
default: () => {}
|
|
244
|
+
},
|
|
245
|
+
slotProps: {
|
|
246
|
+
type: Object,
|
|
247
|
+
default: () => {}
|
|
244
248
|
}
|
|
245
249
|
},
|
|
246
250
|
mounted() {
|