zydx-plus 1.35.622 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.622",
3
+ "version": "1.35.623",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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() {
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.622',
90
+ version: '1.35.623',
91
91
  install,
92
92
  Calendar,
93
93
  Message,