Commit 02626e0d authored by lshan's avatar lshan

lishan

parent fba1b270
......@@ -30,7 +30,7 @@
<van-field v-model="tel" type="tel" input-align="right" label="手机号" />
<!-- 允许输入整数,调起数字键盘 -->
<van-field v-model="digit" type="digit" input-align="right" label="员工编号" />
<van-field v-model="digit" :value="date" input-align="right" label="入职时间" @click="showw = true" right-icon="ellipsis"/>
<van-field v-model="digit" :value="date" input-align="right" label="入职时间" @click="showw = true" right-icon="ellipsis"/>
<van-calendar v-model="showw" @confirm="onConfirm" />
</van-cell-group>
......@@ -110,15 +110,15 @@ export default Vue.extend({
handleClickLeft() {
console.log('click left')
},
onConfir(value) {
onConfir(value:string) {
this.value = value;
this.showPicker = false;
},
formatDate(date) {
formatDate(date:Date) {
return `${date.getMonth() + 1}/${date.getDate()}`;
},
onConfirm(date) {
onConfirm(date:Date) {
this.showw = false;
this.date = this.formatDate(date);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment