fix story

This commit is contained in:
Niels Lyngsø
2023-05-19 09:59:05 +02:00
parent 009ea6bca3
commit 663fab9839

View File

@@ -14,16 +14,16 @@ type Story = StoryObj<UmbRefDataTypeElement>;
export const Overview: Story = {
args: {
name: 'Custom Data Type',
name: 'Umb.DataType.CustomUI',
dataTypeKey: 'Umbraco.JSON',
propertyEditorUiAlias: 'Umb.DataTypeInput.CustomUI',
propertyEditorModelAlias: 'Umbraco.JSON',
},
};
export const WithDetail: Story = {
args: {
name: 'Custom Data Type',
name: 'Umb.DataType.CustomUI',
dataTypeKey: 'Umbraco.JSON',
propertyEditorUiAlias: 'Umb.DataType.CustomUI',
propertyEditorModelAlias: 'UmbracoInput.JSON',
detail: 'With some custom details',
},
};
@@ -31,15 +31,15 @@ export const WithDetail: Story = {
export const WithSlots: Story = {
args: {
name: 'Custom Data Type',
name: 'Umb.DataType.CustomUI',
dataTypeKey: 'Umbraco.JSON',
propertyEditorUiAlias: 'Umb.DataTypeInput.CustomUI',
propertyEditorModelAlias: 'Umbraco.JSON',
detail: 'With some custom details',
},
render: (args) => html`
<umb-ref-data-type
.name=${args.name}
.propertyEditorUiAlias=${args.name}
.propertyEditorModelAlias=${args.dataTypeKey}
.propertyEditorUiAlias=${args.propertyEditorUiAlias}
.propertyEditorModelAlias=${args.propertyEditorModelAlias}
.detail=${args.detail}>
<div slot="tag"><uui-tag color="positive">10</uui-tag></div>
<div slot="actions">