feat: 首次提交

This commit is contained in:
2023-06-21 12:04:22 +08:00
commit e2d9a227c0
44 changed files with 11977 additions and 0 deletions

9
ejs/index.esm.ts.ejs Normal file
View File

@ -0,0 +1,9 @@
<% dir.forEach(name => { -%>
import <%- name %> from './<%- name %>/index.vue';
<% }) -%>
export {
<% dir.forEach((name, index) => { -%>
<%- name %><% if (dir.length>index+1) { %>,<% } %>
<% }) -%>
}

14
ejs/index.umd.ts.ejs Normal file
View File

@ -0,0 +1,14 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
<% dir.forEach(name => { -%>
var <%- name %> = require('./<%- name %>/index.js');
<% }) -%>
var Components = [
<% dir.forEach(name => { -%>
<%- name %>,
<% }) -%>
]
exports["default"] = Components;

13
ejs/stories.ejs Normal file
View File

@ -0,0 +1,13 @@
import type { Meta, StoryObj } from '@storybook/vue3';
import <%- component %> from '../packages/<%- lowerName %>/index.vue';
const meta = {
title: '某个大类/<%- component %>',
component: <%- component %>,
tags: ['autodocs'],
} satisfies Meta<typeof <%- component %>>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Base: Story = {};

9
ejs/vue.ejs Normal file
View File

@ -0,0 +1,9 @@
<template>
<div>
<%- component %>
</div>
</template>
<script lang="ts" setup name="<%- component %>">
</script>