import { app } from "@storybook/vue3";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import mBaseUI from "../packages/index.js";
import mTheme from "./mtheme.js"; // 主题文件
import { DocsPage, DocsContainer } from "@storybook/addon-docs";

app.use(ElementPlus).use(mBaseUI);

export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
  controls: {
    matchers: {
      color: /(background|color)$/i,
      date: /Date$/,
    },
  },
  docs: {
    theme: mTheme, // 主题文件
    container: DocsContainer,
    page: DocsPage,
  },
};
