Skip to content

Commit

Permalink
docs: 修改文档标题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jan 15, 2024
1 parent 9595db8 commit d0e05c0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { addons } from '@storybook/addons';
import { create } from '@storybook/theming/create';

const theme = create({
base: 'light',

// Brand assets
brandTitle: 'ReactMaoboxGl',
brandUrl: 'https://github.com/pansyjs/react-mapbox-gl',
});

addons.setConfig({
theme,
showPanel: true, // show addons panel by default
panelPosition: 'right', // position addons panel on the right by default
});
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Preview } from '@storybook/react';

const preview: Preview = {
parameters: {
// actions: { argTypesRegex: '^on[A-Z].*' },
actions: {},
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
13 changes: 8 additions & 5 deletions stories/Map.stories.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import type { Meta, StoryObj } from '@storybook/react';

import { Map } from '../src';

import type { Meta, StoryObj } from '@storybook/react';

const meta = {
title: '组件/Map',
component: Map,

parameters: {
layout: 'centered',
},
Expand All @@ -16,6 +15,10 @@ const meta = {
export default meta;
type Story = StoryObj<typeof meta>;

export const Primary: Story = {
args: {},
export const Event: Story = {
args: {
onClick: (e) => {
console.log(e);
},
},
};

0 comments on commit d0e05c0

Please sign in to comment.