|
@@ -1,4 +1,4 @@
|
|
|
-import { PropType, computed, defineComponent, ref, toRefs, onMounted, watch } from 'vue'
|
|
|
+import { PropType, computed, defineComponent, ref, toRefs, onMounted, watch, nextTick } from 'vue'
|
|
|
import { Picker, Button, Icon } from 'vant'
|
|
|
import styles from './index.module.less'
|
|
|
import state, { IPlatform } from "/src/state";
|
|
@@ -76,12 +76,15 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
<div class={styles.button} onClick={() => {
|
|
|
- // console.log(1111,selectIndex.value)
|
|
|
- if (partIndexChanged.value) {
|
|
|
- emit('close', selectIndex.value)
|
|
|
- } else {
|
|
|
- emit('close', partIndex.value)
|
|
|
- }
|
|
|
+ myPicker.value.confirm()
|
|
|
+ nextTick(()=>{
|
|
|
+ // console.log(1111,selectIndex.value)
|
|
|
+ if (partIndexChanged.value) {
|
|
|
+ emit('close', selectIndex.value)
|
|
|
+ } else {
|
|
|
+ emit('close', partIndex.value)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}></div>
|
|
|
</div>
|