From a8579337e33d56f6fcb25732417486b41d6a0321 Mon Sep 17 00:00:00 2001 From: GuoJikun Date: Thu, 18 Jan 2024 10:01:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E4=B8=BA1.2.0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=81=9A=E5=87=86=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 99 ++++++++++--------- package.json | 3 +- packages/ivy-design-wc/README.md | 99 ++++++++++--------- packages/ivy-design-wc/package.json | 4 +- packages/ivy-design-wc/vite.config.ts | 4 +- ....timestamp-1705542549613-61ea886604315.mjs | 63 ++++++++++++ 6 files changed, 173 insertions(+), 99 deletions(-) create mode 100644 packages/ivy-design-wc/vite.config.ts.timestamp-1705542549613-61ea886604315.mjs diff --git a/README.md b/README.md index 422b00c..a855367 100644 --- a/README.md +++ b/README.md @@ -49,53 +49,58 @@ pnpm test:unit ## 现有组件 -| 组件名称 | 组件描述 | -| :-------------: | ---------------------------: | -| Button | 按钮 | -| Space | 间隔 | -| Collapse | 折叠面板 | -| Divider | 分割线 | -| Card | 卡片 | -| Grid | 宫格 | -| Empty | 空状态 | -| Timeline | 时间轴 | -| Breadcrumb | 面包屑导航 | -| Tag | 标签 | -| Badge | 徽章 | -| Row | 行 | -| Col | 列 | -| Result | 结果 | -| Drawer | 抽屉 | -| Input | 输入框 | -| Tip | 提示 | -| Select | 下拉选择 | -| Loading | 加载 | -| Details | 详情-同原生的 `details` 标签 | -| Progress | 进度条 | -| Dialog | 弹框 | -| Dropdown | 下拉菜单 | -| Steps | 步骤条 | -| Switch | 开关 | -| Radio | 单选框 | -| Checkbox | 多选框 | -| AspectRatio | 固定宽高比例容器 | -| Icon | 图标 | -| Circle | 圆形进度条 | -| Image | 图片 | -| Description | 描述列表 | -| Contextmenu | 邮件菜单 | -| rate | 评分 | -| Avatar | 头像 | -| Carousel | 轮播图 | -| CopyToClipboard | 复制到剪切板 | +| 组件名称 | 组件描述 | +| :-------------- | :---------------------- | +| Button | 按钮 | +| Space | 间隔 | +| Collapse | 折叠面板 | +| Divider | 分割线 | +| Card | 卡片 | +| Grid | 宫格 | +| Empty | 空状态 | +| Timeline | 时间轴 | +| Breadcrumb | 面包屑导航 | +| Tag | 标签 | +| Badge | 徽章 | +| Row | 行 | +| Col | 列 | +| Result | 结果 | +| Drawer | 抽屉 | +| Input | 输入框 | +| Tip | 提示 | +| Select | 下拉选择 | +| Loading | 加载 | +| Details | 详情-同原生的 `details` | +| Progress | 进度条 | +| Dialog | 弹框 | +| Dropdown | 下拉菜单 | +| Steps | 步骤条 | +| Switch | 开关 | +| Radio | 单选框 | +| Checkbox | 多选框 | +| AspectRatio | 固定宽高比例容器 | +| Icon | 图标 | +| Circle | 圆形进度条 | +| Image | 图片 | +| Description | 描述列表 | +| Contextmenu | 邮件菜单 | +| rate | 评分 | +| Avatar | 头像 | +| Carousel | 轮播图 | +| CopyToClipboard | 复制到剪切板 | +| Text | 文字 | +| Link | 链接 | +| Affix | 固钉 | +| MessageBox | 消息弹出框 | ## 代办 -| 组件名称 | 组件描述 | -| :----------: | :--------: | -| tabs | 标签页 | -| message | 消息提醒 | -| notification | 通知框 | -| table | 表格 | -| split | 分割面板 | -| datePicker | 日期选择器 | +| 组件名称 | 组件描述 | +| :----------- | :--------- | +| tabs | 标签页 | +| message | 消息提醒 | +| notification | 通知框 | +| table | 表格 | +| split | 分割面板 | +| datePicker | 日期选择器 | +| timePicker | 时间选择器 | diff --git a/package.json b/package.json index a8819a4..524ae5c 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "build-only": "pnpm --filter @ivy-design/ce run build-only", "type-check": "pnpm --filter @ivy-design/ce run type-check", "lint": "pnpm --filter @ivy-design/ce run lint", - "format": "pnpm --filter @ivy-design/ce run format" + "format": "pnpm --filter @ivy-design/ce run format", + "publish": "pnpm --filter @ivy-design/ce publish --access --registry=https://registry.npmjs.org/" }, "keywords": [ "front-end", diff --git a/packages/ivy-design-wc/README.md b/packages/ivy-design-wc/README.md index a62bae0..ff2b027 100644 --- a/packages/ivy-design-wc/README.md +++ b/packages/ivy-design-wc/README.md @@ -49,53 +49,58 @@ pnpm test:unit ## 现有组件 -| 组件名称 | 组件描述 | -| :-------------: | ---------------------------: | -| Button | 按钮 | -| Space | 间隔 | -| Collapse | 折叠面板 | -| Divider | 分割线 | -| Card | 卡片 | -| Grid | 宫格 | -| Empty | 空状态 | -| Timeline | 时间轴 | -| Breadcrumb | 面包屑导航 | -| Tag | 标签 | -| Badge | 徽章 | -| Row | 行 | -| Col | 列 | -| Result | 结果 | -| Drawer | 抽屉 | -| Input | 输入框 | -| Tip | 提示 | -| Select | 下拉选择 | -| Loading | 加载 | -| Details | 详情-同原生的 `details` 标签 | -| Progress | 进度条 | -| Dialog | 弹框 | -| Dropdown | 下拉菜单 | -| Steps | 步骤条 | -| Switch | 开关 | -| Radio | 单选框 | -| Checkbox | 多选框 | -| AspectRatio | 固定宽高比例容器 | -| Icon | 图标 | -| Circle | 圆形进度条 | -| Image | 图片 | -| Description | 描述列表 | -| Contextmenu | 邮件菜单 | -| rate | 评分 | -| Avatar | 头像 | -| Carousel | 轮播图 | -| CopyToClipboard | 复制到剪切板 | +| 组件名称 | 组件描述 | +| :-------------- | :---------------------- | +| Button | 按钮 | +| Space | 间隔 | +| Collapse | 折叠面板 | +| Divider | 分割线 | +| Card | 卡片 | +| Grid | 宫格 | +| Empty | 空状态 | +| Timeline | 时间轴 | +| Breadcrumb | 面包屑导航 | +| Tag | 标签 | +| Badge | 徽章 | +| Row | 行 | +| Col | 列 | +| Result | 结果 | +| Drawer | 抽屉 | +| Input | 输入框 | +| Tip | 提示 | +| Select | 下拉选择 | +| Loading | 加载 | +| Details | 详情-同原生的 `details` | +| Progress | 进度条 | +| Dialog | 弹框 | +| Dropdown | 下拉菜单 | +| Steps | 步骤条 | +| Switch | 开关 | +| Radio | 单选框 | +| Checkbox | 多选框 | +| AspectRatio | 固定宽高比例容器 | +| Icon | 图标 | +| Circle | 圆形进度条 | +| Image | 图片 | +| Description | 描述列表 | +| Contextmenu | 邮件菜单 | +| rate | 评分 | +| Avatar | 头像 | +| Carousel | 轮播图 | +| CopyToClipboard | 复制到剪切板 | +| Text | 文字 | +| Link | 链接 | +| Affix | 固钉 | +| MessageBox | 消息弹出框 | ## 代办 -| 组件名称 | 组件描述 | -| :----------: | :--------: | -| tabs | 标签页 | -| message | 消息提醒 | -| notification | 通知框 | -| table | 表格 | -| split | 分割面板 | -| datePicker | 日期选择器 | +| 组件名称 | 组件描述 | +| :----------- | :--------- | +| tabs | 标签页 | +| message | 消息提醒 | +| notification | 通知框 | +| table | 表格 | +| split | 分割面板 | +| datePicker | 日期选择器 | +| timePicker | 时间选择器 | diff --git a/packages/ivy-design-wc/package.json b/packages/ivy-design-wc/package.json index 6a8c53a..7910d94 100644 --- a/packages/ivy-design-wc/package.json +++ b/packages/ivy-design-wc/package.json @@ -1,10 +1,10 @@ { "name": "@ivy-design/ce", - "version": "1.1.0", + "version": "1.2.0", "private": false, "type": "module", "main": "dist/ivy-design.js", - "module": "dist/ivy-design.js", + "module": "dist/ivy-design.mjs", "types": "types/index.d.ts", "unpkg": "dist/ivy-design.js", "jsdelivr": "dist/ivy-design.js", diff --git a/packages/ivy-design-wc/vite.config.ts b/packages/ivy-design-wc/vite.config.ts index aee50ef..8a2d1f9 100644 --- a/packages/ivy-design-wc/vite.config.ts +++ b/packages/ivy-design-wc/vite.config.ts @@ -45,8 +45,8 @@ export default defineConfig({ entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)), name: 'ivy-design', fileName: (format) => { - if (format === 'es') return 'ivy-design.js' - return 'ivy-design.cjs' + if (format === 'es') return 'ivy-design.mjs' + return 'ivy-design.js' } }, rollupOptions: { diff --git a/packages/ivy-design-wc/vite.config.ts.timestamp-1705542549613-61ea886604315.mjs b/packages/ivy-design-wc/vite.config.ts.timestamp-1705542549613-61ea886604315.mjs new file mode 100644 index 0000000..c155c34 --- /dev/null +++ b/packages/ivy-design-wc/vite.config.ts.timestamp-1705542549613-61ea886604315.mjs @@ -0,0 +1,63 @@ +// vite.config.ts +import { fileURLToPath, URL } from "node:url"; +import { defineConfig } from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/vite@5.0.2_@types+node@18.18.12_sass@1.69.5/node_modules/vite/dist/node/index.js"; +import vue from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/@vitejs+plugin-vue@4.5.0_vite@5.0.2_vue@3.3.8/node_modules/@vitejs/plugin-vue/dist/index.mjs"; +import vueJsx from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/@vitejs+plugin-vue-jsx@3.1.0_vite@5.0.2_vue@3.3.8/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs"; +import dts from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/vite-plugin-dts@3.6.3_@types+node@18.18.12_typescript@5.3.2_vite@5.0.2/node_modules/vite-plugin-dts/dist/index.mjs"; +var __vite_injected_original_import_meta_url = "file:///E:/private/ivy-design-wc/packages/ivy-design-wc/vite.config.ts"; +var vite_config_default = defineConfig({ + appType: "custom", + publicDir: false, + plugins: [ + vue({ + template: { + compilerOptions: { + isCustomElement: (tag) => tag.startsWith("ivy-") + } + } + }), + vueJsx(), + dts({ + outDir: "types" + }) + ], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url)) + } + }, + build: { + target: "es2017", + lib: { + entry: fileURLToPath(new URL("./src/index.ts", __vite_injected_original_import_meta_url)), + name: "ivy-design", + fileName: (format) => { + if (format === "es") + return "ivy-design.mjs"; + return "ivy-design.js"; + } + }, + rollupOptions: { + // treeshake: false, + // input: { + // 'ivy-design': fileURLToPath(new URL('./src/index.ts', import.meta.url)), + // ...genInput() + // }, + output: { + // interop: 'auto', + // format: 'es', + // entryFileNames: '[name].js', + // assetFileNames: (assetInfo) => { + // if (assetInfo.name === 'ivy-design.css') return 'style.css' + // return 'assets/[name][extname]' + // }, + exports: "named" + } + }, + cssTarget: "chrome61" + } +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxwcml2YXRlXFxcXGl2eS1kZXNpZ24td2NcXFxccGFja2FnZXNcXFxcaXZ5LWRlc2lnbi13Y1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxccHJpdmF0ZVxcXFxpdnktZGVzaWduLXdjXFxcXHBhY2thZ2VzXFxcXGl2eS1kZXNpZ24td2NcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0U6L3ByaXZhdGUvaXZ5LWRlc2lnbi13Yy9wYWNrYWdlcy9pdnktZGVzaWduLXdjL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXG5pbXBvcnQgeyByZWFkZGlyU3luYyB9IGZyb20gJ25vZGU6ZnMnXG5cbmltcG9ydCB7IGRlZmluZUNvbmZpZyB9IGZyb20gJ3ZpdGUnXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcbmltcG9ydCB2dWVKc3ggZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlLWpzeCdcbmltcG9ydCBkdHMgZnJvbSAndml0ZS1wbHVnaW4tZHRzJ1xuXG5jb25zdCBnZW5JbnB1dCA9ICgpID0+IHtcbiAgICBjb25zdCB0YXJnZXQ6IGFueSA9IHt9XG4gICAgY29uc3QgZGlyID0gcmVhZGRpclN5bmMoJy4vc3JjL2NvbXBvbmVudHMnKVxuICAgIGRpci5mb3JFYWNoKChuYW1lKSA9PiB7XG4gICAgICAgIHRhcmdldFtgY29tcG9uZW50cy8ke25hbWV9YF0gPSBmaWxlVVJMVG9QYXRoKFxuICAgICAgICAgICAgbmV3IFVSTChgLi9zcmMvY29tcG9uZW50cy8ke25hbWV9L2luZGV4LnRzYCwgaW1wb3J0Lm1ldGEudXJsKVxuICAgICAgICApXG4gICAgfSlcbiAgICByZXR1cm4gdGFyZ2V0XG59XG5cbi8vIGh0dHBzOi8vdml0ZWpzLmRldi9jb25maWcvXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoe1xuICAgIGFwcFR5cGU6ICdjdXN0b20nLFxuICAgIHB1YmxpY0RpcjogZmFsc2UsXG4gICAgcGx1Z2luczogW1xuICAgICAgICB2dWUoe1xuICAgICAgICAgICAgdGVtcGxhdGU6IHtcbiAgICAgICAgICAgICAgICBjb21waWxlck9wdGlvbnM6IHtcbiAgICAgICAgICAgICAgICAgICAgaXNDdXN0b21FbGVtZW50OiAodGFnKSA9PiB0YWcuc3RhcnRzV2l0aCgnaXZ5LScpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KSxcbiAgICAgICAgdnVlSnN4KCksXG4gICAgICAgIGR0cyh7XG4gICAgICAgICAgICBvdXREaXI6ICd0eXBlcydcbiAgICAgICAgfSlcbiAgICBdLFxuICAgIHJlc29sdmU6IHtcbiAgICAgICAgYWxpYXM6IHtcbiAgICAgICAgICAgICdAJzogZmlsZVVSTFRvUGF0aChuZXcgVVJMKCcuL3NyYycsIGltcG9ydC5tZXRhLnVybCkpXG4gICAgICAgIH1cbiAgICB9LFxuICAgIGJ1aWxkOiB7XG4gICAgICAgIHRhcmdldDogJ2VzMjAxNycsXG4gICAgICAgIGxpYjoge1xuICAgICAgICAgICAgZW50cnk6IGZpbGVVUkxUb1BhdGgobmV3IFVSTCgnLi9zcmMvaW5kZXgudHMnLCBpbXBvcnQubWV0YS51cmwpKSxcbiAgICAgICAgICAgIG5hbWU6ICdpdnktZGVzaWduJyxcbiAgICAgICAgICAgIGZpbGVOYW1lOiAoZm9ybWF0KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKGZvcm1hdCA9PT0gJ2VzJykgcmV0dXJuICdpdnktZGVzaWduLm1qcydcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2l2eS1kZXNpZ24uanMnXG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHJvbGx1cE9wdGlvbnM6IHtcbiAgICAgICAgICAgIC8vIHRyZWVzaGFrZTogZmFsc2UsXG4gICAgICAgICAgICAvLyBpbnB1dDoge1xuICAgICAgICAgICAgLy8gICAgICdpdnktZGVzaWduJzogZmlsZVVSTFRvUGF0aChuZXcgVVJMKCcuL3NyYy9pbmRleC50cycsIGltcG9ydC5tZXRhLnVybCkpLFxuICAgICAgICAgICAgLy8gICAgIC4uLmdlbklucHV0KClcbiAgICAgICAgICAgIC8vIH0sXG4gICAgICAgICAgICBvdXRwdXQ6IHtcbiAgICAgICAgICAgICAgICAvLyBpbnRlcm9wOiAnYXV0bycsXG4gICAgICAgICAgICAgICAgLy8gZm9ybWF0OiAnZXMnLFxuICAgICAgICAgICAgICAgIC8vIGVudHJ5RmlsZU5hbWVzOiAnW25hbWVdLmpzJyxcbiAgICAgICAgICAgICAgICAvLyBhc3NldEZpbGVOYW1lczogKGFzc2V0SW5mbykgPT4ge1xuICAgICAgICAgICAgICAgIC8vICAgICBpZiAoYXNzZXRJbmZvLm5hbWUgPT09ICdpdnktZGVzaWduLmNzcycpIHJldHVybiAnc3R5bGUuY3NzJ1xuXG4gICAgICAgICAgICAgICAgLy8gICAgIHJldHVybiAnYXNzZXRzL1tuYW1lXVtleHRuYW1lXSdcbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIGV4cG9ydHM6ICduYW1lZCdcbiAgICAgICA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