|
@@ -1,4 +1,4 @@
|
|
|
-import { computed, defineComponent, ref } from "vue";
|
|
|
+import { computed, defineComponent, onMounted, ref } from "vue";
|
|
|
import { Picker, Button, PickerOption, Icon } from "vant";
|
|
|
import styles from "./index.module.less";
|
|
|
import state from "/src/state";
|
|
@@ -29,7 +29,7 @@ export default defineComponent({
|
|
|
class={styles.picker}
|
|
|
showToolbar={false}
|
|
|
columns={columns.value}
|
|
|
- visibleOptionNum={4}
|
|
|
+ visibleOptionNum={Math.ceil(document.body.clientHeight / 44 / 3)}
|
|
|
onChange={(row) => {
|
|
|
selectIndex.value = row.selectedValues[0];
|
|
|
}}
|