@lcap/builder
Version:
lcap builder utils
25 lines (22 loc) • 640 B
JavaScript
import Component from '../index';
export default {
id: '{{tagName}}-examples',
title: '组件列表/{{compName}}/示例',
component: Component,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'padded',
},
// More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {},
};
export const Example1 = {
name: '基本用法',
render: (args, { argTypes }) => ({
props: Object.keys(argTypes),
template: '<{{tagName}} v-bind="$props"></{{tagName}}>',
}),
args: {
text: 'Hello world',
},
};