Skip to content

Commit

Permalink
Reverted mistaken code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Stewart committed Aug 30, 2023
1 parent fb35ca0 commit e323c74
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint . --fix --ext .ts,.vue,.js",
"lint:test": "eslint . --ext .ts,.vue,.js --max-warnings 0",
" prepublishOnly": "npm run build"
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"vant": ">=4"
Expand Down
32 changes: 26 additions & 6 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ onMounted(() => {
<template>
<section>
<van-sticky>
<van-notice-bar left-icon="volume-o" text="无论我们能活多久,我们能够享受的只有无法分割的此刻,此外别无其他。" />
<van-notice-bar
left-icon="volume-o"
text="无论我们能活多久,我们能够享受的只有无法分割的此刻,此外别无其他。"
/>
</van-sticky>
<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
<van-swipe-item>1</van-swipe-item>
Expand Down Expand Up @@ -82,7 +85,7 @@ onMounted(() => {
lazy button
</LazyVanButton>
<LazyVanButton type="success" @click="openFloatingPanel">
lazy button
Open Floating Panel
</LazyVanButton>
</van-col>
<van-col span="4">
Expand All @@ -103,8 +106,16 @@ onMounted(() => {
</van-steps>

<van-cell-group>
<van-cell title="选择单个日期" :value="date" @click="showCalendar = true" />
<van-cell title="选择所在地区" :value="cascaderValue" @click="showCascader = true" />
<van-cell
title="选择单个日期"
:value="date"
@click="showCalendar = true"
/>
<van-cell
title="选择所在地区"
:value="cascaderValue"
@click="showCascader = true"
/>
<van-cell @touchstart.stop="showKeyboard = true">
弹出默认键盘
</van-cell>
Expand Down Expand Up @@ -135,7 +146,11 @@ onMounted(() => {

<van-calendar v-model:show="showCalendar" @confirm="onConfirm" />
<van-number-keyboard :show="showKeyboard" @blur="showKeyboard = false" />
<van-popup v-model:show="showPopup" :style="{ height: '40%' }" position="bottom">
<van-popup
v-model:show="showPopup"
:style="{ height: '40%' }"
position="bottom"
>
<van-field v-model="input" label="文本" placeholder="请输入用户名" />
<van-password-input />
<van-radio>单选框</van-radio>
Expand All @@ -147,7 +162,12 @@ onMounted(() => {
<van-uploader />
</van-popup>
<van-popup v-model:show="showCascader" round position="bottom">
<van-cascader v-model="cascaderValue" title="请选择所在地区" :options="options" @close="showCascader = false" />
<van-cascader
v-model="cascaderValue"
title="请选择所在地区"
:options="options"
@close="showCascader = false"
/>
</van-popup>
<van-floating-panel
v-model:show="showFloatingPanel"
Expand Down

0 comments on commit e323c74

Please sign in to comment.