feat(docs): PageHeader code for composition (#2330)

Co-authored-by: xing.wu <wuxing@bjca.org.cn>
This commit is contained in:
Xing.Wu 2021-06-25 16:09:15 +08:00 committed by GitHub
parent 48dc0a071b
commit 7fbe14a8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 95 additions and 0 deletions

View File

@ -18,6 +18,25 @@ If path of the page is simple, it is recommended to use PageHeader instead of th
}
}
</script>
<!--
<setup>
import { defineComponent } from 'vue';
export default defineComponent({
setup() {
const goBack = () => {
console.log('go back');
};
return {
goBack,
};
},
});
</setup>
-->
```
:::

View File

@ -18,6 +18,25 @@ If path of the page is simple, it is recommended to use PageHeader instead of th
}
}
</script>
<!--
<setup>
import { defineComponent } from 'vue';
export default defineComponent({
setup() {
const goBack = () => {
console.log('go back');
};
return {
goBack,
};
},
});
</setup>
-->
```
:::

View File

@ -18,6 +18,25 @@ If path of the page is simple, it is recommended to use PageHeader instead of th
}
}
</script>
<!--
<setup>
import { defineComponent } from 'vue';
export default defineComponent({
setup() {
const goBack = () => {
console.log('go back');
};
return {
goBack,
};
},
});
</setup>
-->
```
:::

View File

@ -18,6 +18,25 @@ If path of the page is simple, it is recommended to use PageHeader instead of th
}
}
</script>
<!--
<setup>
import { defineComponent } from 'vue';
export default defineComponent({
setup() {
const goBack = () => {
console.log('go back');
};
return {
goBack,
};
},
});
</setup>
-->
```
:::

View File

@ -18,6 +18,25 @@
}
}
</script>
<!--
<setup>
import { defineComponent } from 'vue';
export default defineComponent({
setup() {
const goBack = () => {
console.log('go back');
};
return {
goBack,
};
},
});
</setup>
-->
```
:::