zydx-plus 1.35.619 → 1.35.621
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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<input v-if="multipleShow" type="checkbox" :checked="item.checked" @change="checkboxChange($event,index)"
|
|
8
8
|
name="check"/>
|
|
9
9
|
<span v-if="item.quesNumber" :style="{'font-weight': titleCrude?700:'normal'}">{{ item.quesNumber }}<em
|
|
10
|
-
v-html="item.
|
|
10
|
+
v-html="item.question"></em><em v-if="scoreShow">({{ item.score }}分)</em>
|
|
11
11
|
<i class="subject-but" ref="subject">
|
|
12
12
|
<!-- <b :style="{right: -item.right + 'px', top: item.top + 'px'}" ref="b"> -->
|
|
13
13
|
<button class="sees-but" :disabled="it.disabled" v-for="(it) in item.customBut" :class="{'buts-actives theme-text': it.active&&it.butStart,'buts-disabled': it.disabled}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</i>
|
|
16
16
|
</span>
|
|
17
17
|
<span v-else :style="{'font-weight': titleCrude?700:'normal'}">{{ item.order ? item.order : index + 1 }}{{ item.order === ' ' ? '' : '.' }}<em
|
|
18
|
-
v-html="item.
|
|
18
|
+
v-html="item.question"></em><em v-if="scoreShow">({{ item.score }}分)</em>
|
|
19
19
|
<i class="subject-but" ref="subject">
|
|
20
20
|
<!-- <b :style="{right: -item.right + 'px', top: item.top + 'px'}" ref="b"> -->
|
|
21
21
|
<button class="sees-but" :disabled="it.disabled" v-for="(it) in item.customBut" :class="{'buts-actives theme-text': it.active&&it.butStart,'buts-disabled': it.disabled}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
|
|
@@ -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 }) => {
|
|
11
|
+
const Confirm = ({ className, type, url ,title,radioArr,checkboxArr,submitText,cancelText,closeShow, promptContent, middle, cancelShow, inputArr, countdown, components }) => {
|
|
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, submit, cancel, close })
|
|
55
|
+
const VNode = createVNode(XtxConfirm, { className, type, url ,title, submitText, cancelText, closeShow,promptContent,radioArr,checkboxArr, middle, cancelShow, inputArr,countdown,components, submit, cancel, close })
|
|
56
56
|
render(VNode, container)
|
|
57
57
|
})
|
|
58
58
|
}
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
<div class="tip-boxContent" ref="tip-boxContent" :style="overflowShow?'overflow-y: scroll':''">
|
|
12
12
|
<div class="tap-p" ref="tapP">
|
|
13
|
+
<div v-if="type === 'slot'">
|
|
14
|
+
<component :is="components"></component>
|
|
15
|
+
</div>
|
|
13
16
|
<div class="tip-title2" ref="tipTitle" v-if="type === 'text'"
|
|
14
17
|
:style="{'text-align': (middles)? 'center': 'left', 'text-indent': indent? '2em': '0' }">
|
|
15
18
|
{{ promptContent }} {{ countdown === 0 ? '' : `(${timeo}s)` }}
|
|
@@ -234,6 +237,10 @@ export default {
|
|
|
234
237
|
type: Function,
|
|
235
238
|
default: () => {
|
|
236
239
|
}
|
|
240
|
+
},
|
|
241
|
+
components: { // 模版组件
|
|
242
|
+
type: Object,
|
|
243
|
+
default: () => {}
|
|
237
244
|
}
|
|
238
245
|
},
|
|
239
246
|
mounted() {
|