feat(docs): container code for composition (#2161)

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

View File

@ -220,6 +220,30 @@ These components use flex for layout, so please make sure your browser supports
} }
}; };
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const item = {
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
};
const tableData = ref(Array(20).fill(item));
return {
tableData,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -212,6 +212,30 @@ Estos componentes utilizan flex para el diseño, así que asegúrese que el nave
} }
}; };
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const item = {
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
};
const tableData = ref(Array(20).fill(item));
return {
tableData,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -220,6 +220,30 @@ Ces composants utilisent flexbox, assurez vous que le navigateur supporte cette
} }
}; };
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const item = {
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
};
const tableData = ref(Array(20).fill(item));
return {
tableData,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -220,6 +220,30 @@
} }
}; };
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const item = {
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
};
const tableData = ref(Array(20).fill(item));
return {
tableData,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -220,6 +220,29 @@
} }
}; };
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const item = {
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄',
};
const tableData = ref(Array(20).fill(item));
return {
tableData,
};
},
});
</setup>
-->
``` ```
::: :::