zydx-plus 1.3.21 → 1.3.22
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
|
@@ -15,9 +15,15 @@ const Confirm = ({ type, url ,title, promptContent, middle, cancelShow, inputArr
|
|
|
15
15
|
const submit = () => {
|
|
16
16
|
let val = '点击确认'
|
|
17
17
|
if(type === 'input') {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
if(inputArr.type === 'input') {
|
|
19
|
+
val = inputArr.map(x => {
|
|
20
|
+
return x.value
|
|
21
|
+
})
|
|
22
|
+
}else {
|
|
23
|
+
val = inputArr.map(x => {
|
|
24
|
+
return x.selectValue
|
|
25
|
+
})
|
|
26
|
+
}
|
|
21
27
|
}
|
|
22
28
|
render(null, container)
|
|
23
29
|
resolve(val)
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
<div class="tip-input" v-for="(item,index) in inputArr" :key="index">
|
|
16
16
|
<span>{{ item.name }}</span>
|
|
17
17
|
<input v-if="item.type === 'input'" type="text" :placeholder="item.placeholder" v-model="item.value" :disabled="item.disabled" />
|
|
18
|
-
<
|
|
19
|
-
<option value="1" v-for="(it,ind) in item.option" :key="ind">{{ it.name }}</option>
|
|
20
|
-
</select>
|
|
18
|
+
<Select v-if="item.type === 'select'" :options="item.option" v-model:value="item.selectValue"></Select>
|
|
21
19
|
<div v-if="item.type === 'text'" class="text">{{ item.value }}</div>
|
|
22
20
|
</div>
|
|
23
21
|
</div>
|
|
@@ -33,8 +31,10 @@
|
|
|
33
31
|
</template>
|
|
34
32
|
|
|
35
33
|
<script>
|
|
34
|
+
import Select from '../../select/src/select.vue'
|
|
36
35
|
export default {
|
|
37
36
|
name: 'zydx-tip-box',
|
|
37
|
+
components: {Select},
|
|
38
38
|
props: {
|
|
39
39
|
type: { // 弹窗的提示标题
|
|
40
40
|
type: String,
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
cancel: {
|
|
73
73
|
type: Function,
|
|
74
74
|
default: () => {}
|
|
75
|
-
}
|
|
75
|
+
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
</script>
|