build(#10336): separate definitions and generated codes

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-03-20 16:13:07 +09:00
parent a19c560e7b
commit 6e21147ff6
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
435 changed files with 3887 additions and 1361 deletions

View file

@ -5,10 +5,15 @@ const meta = {
component: link,
};
export const Default = {
components: {
link,
render(args, { argTypes }) {
return {
components: {
link,
},
props: Object.keys(argTypes),
template: '<link v-bind="$props" />',
};
},
template: '<link />',
parameters: {
layout: 'centered',
},

View file

@ -5,10 +5,15 @@ const meta = {
component: section,
};
export const Default = {
components: {
section,
render(args, { argTypes }) {
return {
components: {
section,
},
props: Object.keys(argTypes),
template: '<section v-bind="$props" />',
};
},
template: '<section />',
parameters: {
layout: 'centered',
},

View file

@ -5,10 +5,15 @@ const meta = {
component: slot,
};
export const Default = {
components: {
slot,
render(args, { argTypes }) {
return {
components: {
slot,
},
props: Object.keys(argTypes),
template: '<slot v-bind="$props" />',
};
},
template: '<slot />',
parameters: {
layout: 'centered',
},

View file

@ -5,10 +5,15 @@ const meta = {
component: split,
};
export const Default = {
components: {
split,
render(args, { argTypes }) {
return {
components: {
split,
},
props: Object.keys(argTypes),
template: '<split v-bind="$props" />',
};
},
template: '<split />',
parameters: {
layout: 'centered',
},

View file

@ -5,10 +5,15 @@ const meta = {
component: suspense,
};
export const Default = {
components: {
suspense,
render(args, { argTypes }) {
return {
components: {
suspense,
},
props: Object.keys(argTypes),
template: '<suspense v-bind="$props" />',
};
},
template: '<suspense />',
parameters: {
layout: 'centered',
},