feat(docs): collapse code for composition (#2152)

Co-authored-by: 无星 <32910694@qq.com>
This commit is contained in:
Xing.Wu 2021-06-08 13:32:20 +08:00 committed by GitHub
parent 888973f34d
commit 880b1910bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 185 additions and 0 deletions

View File

@ -41,6 +41,26 @@ You can expand multiple panels
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeNames = ref(['1']);
const handleChange = (val) => {
console.log(val);
};
return {
activeNames,
handleChange,
};
},
});
</setup>
-->
``` ```
::: :::
@ -78,6 +98,23 @@ In accordion mode, only one panel can be expanded at once
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeName = ref('1');
return {
activeName,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -41,6 +41,26 @@ Puede expandir varios paneles
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeNames = ref(['1']);
const handleChange = (val) => {
console.log(val);
};
return {
activeNames,
handleChange,
};
},
});
</setup>
-->
``` ```
::: :::
@ -78,6 +98,23 @@ En modo acordeón sólo un panel puede ser expandido a la vez
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeName = ref('1');
return {
activeName,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -41,6 +41,26 @@ Vous pouvez agrandir plusieurs panneaux.
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeNames = ref(['1']);
const handleChange = (val) => {
console.log(val);
};
return {
activeNames,
handleChange,
};
},
});
</setup>
-->
``` ```
::: :::
@ -78,6 +98,23 @@ En mode accordéon, un seul panneau peut être ouvert à la fois.
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeName = ref('1');
return {
activeName,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -41,6 +41,26 @@
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeNames = ref(['1']);
const handleChange = (val) => {
console.log(val);
};
return {
activeNames,
handleChange,
};
},
});
</setup>
-->
``` ```
::: :::
@ -78,6 +98,23 @@
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeName = ref('1');
return {
activeName,
};
},
});
</setup>
-->
``` ```
::: :::

View File

@ -41,6 +41,26 @@
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeNames = ref(['1']);
const handleChange = (val) => {
console.log(val);
};
return {
activeNames,
handleChange,
};
},
});
</setup>
-->
``` ```
::: :::
@ -78,6 +98,23 @@
} }
} }
</script> </script>
<!--
<setup>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const activeName = ref('1');
return {
activeName,
};
},
});
</setup>
-->
``` ```
::: :::