feat(docs): card code for composition (#2155)

Co-authored-by: 无星 <32910694@qq.com>
This commit is contained in:
Xing.Wu 2021-06-08 13:34:45 +08:00 committed by GitHub
parent 56d9641791
commit a1d956ed6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 85 additions and 0 deletions

View File

@ -124,6 +124,23 @@ export default {
}
}
</script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const currentDate = ref(new Date());
return {
currentDate,
};
},
});
</setup>
-->
```
:::

View File

@ -126,6 +126,23 @@ export default {
}
}
</script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const currentDate = ref(new Date());
return {
currentDate,
};
},
});
</setup>
-->
```
:::

View File

@ -125,6 +125,23 @@ export default {
}
}
</script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const currentDate = ref(new Date());
return {
currentDate,
};
},
});
</setup>
-->
```
:::

View File

@ -124,6 +124,23 @@ export default {
}
}
</script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const currentDate = ref(new Date());
return {
currentDate,
};
},
});
</setup>
-->
```
:::

View File

@ -125,6 +125,23 @@ export default {
}
}
</script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const currentDate = ref(new Date());
return {
currentDate,
};
},
});
</setup>
-->
```
:::