@lmy54321/design-system 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codebuddy/rules/init-project.mdc +8 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/globals.css +12 -0
|
@@ -96,6 +96,9 @@ cp node_modules/@lmy54321/design-system/template/tsconfig.json tsconfig.json
|
|
|
96
96
|
# 复制 public 资源(manifest 等,图片通过 CDN 加载无需复制)
|
|
97
97
|
cp node_modules/@lmy54321/design-system/template/public/manifest.json public/manifest.json 2>/dev/null || true
|
|
98
98
|
|
|
99
|
+
# ⚠️ 关键:删除可能残留的 vite.config.js(Vite 优先加载 .js,会导致 .ts 被忽略)
|
|
100
|
+
rm -f vite.config.js vite.config.mjs vite.config.cjs
|
|
101
|
+
|
|
99
102
|
# 删除 Vite 默认生成的无用文件
|
|
100
103
|
rm -f src/App.css src/assets/react.svg public/vite.svg
|
|
101
104
|
```
|
|
@@ -111,6 +114,11 @@ rm -f src/App.css src/assets/react.svg public/vite.svg
|
|
|
111
114
|
> **注意:** 模板中的图片资源通过 CDN 加载(jsDelivr + GitHub),无需在本地存放图片文件。
|
|
112
115
|
>
|
|
113
116
|
> **注意:** 模板中的 `src/index.css` 已配置好样式导入,不需要手动修改。不要在其中单独写 `@import "tailwindcss"`,设计系统样式内部已包含 Tailwind 初始化。
|
|
117
|
+
>
|
|
118
|
+
> **⚠️ 常见坑:**
|
|
119
|
+
> 1. **`@source` 必须写在 `@import` 之前** — Tailwind v4 的 `@source` 指令必须在 `@import "tailwindcss"` 之前才能生效。模板的 `index.css` 已按正确顺序排列,请勿调换。
|
|
120
|
+
> 2. **不要同时存在 `vite.config.js` 和 `vite.config.ts`** — Vite 会优先加载 `.js`,导致 `.ts` 中的 `@tailwindcss/vite` 插件不生效。模板复制步骤已自动删除 `.js` 残留。
|
|
121
|
+
> 3. **版本号可通过代码获取** — `import { VERSION } from '@lmy54321/design-system'` 获取当前版本,无需硬编码。
|
|
114
122
|
|
|
115
123
|
### 7. 启动开发服务器
|
|
116
124
|
```bash
|
package/dist/index.d.mts
CHANGED
|
@@ -422,4 +422,6 @@ declare function GridSystemDocs(): react_jsx_runtime.JSX.Element;
|
|
|
422
422
|
|
|
423
423
|
declare function cn(...inputs: ClassValue[]): string;
|
|
424
424
|
|
|
425
|
-
|
|
425
|
+
declare const VERSION = "1.3.2";
|
|
426
|
+
|
|
427
|
+
export { ActionSheet, type ActionSheetVariant, BottomActionButtons, type BottomActionButtonsProps, type BottomActionMode, BottomNavigationBar, BottomSheet, BottomSheetOption, type BottomSheetOptionProps, type BottomSheetProps, BottomSheetShareItem, type BottomSheetShareItemProps, BottomToolbar, type BottomToolbarProps, Btn, type BtnProps, type BtnSize, type BtnVariant, type BubbleAlignment, type BubblePlacement, BubbleTip, CardDemo, DRAWER_STATES, Dialog, type DialogProps, type DialogVariant, DraggablePanel, EmptyState, type EmptyStateProps, type EmptyStateVariant, GridSystemDocs, ICON_GROUPS, ICON_NAMES, IcExpand, IcPlan, IconFont, type IconFontProps, IconGallery, type IconName, ImageWithFallback, Loading, type LoadingProps, NewsItem, type NewsItemProps, type NotificationAction, NotificationBar, type NotificationVariant, POIListItem, PoiItem, type PoiItemProps, Push, type PushProps, SearchBox, type SearchBoxMode, type SearchBoxProps, type SearchBoxVariant, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type ShareItemType, StatGrid, type StatGridProps, type StatItem, Switch, type SwitchProps, type TabId, Tag, type TagProps, TencentMap, Toast, type ToastProps, type ToolbarMode, TopToolbar, type TopToolbarProps, TypographyDocs, VERSION, cn, hasFilledVariant };
|
package/dist/index.d.ts
CHANGED
|
@@ -422,4 +422,6 @@ declare function GridSystemDocs(): react_jsx_runtime.JSX.Element;
|
|
|
422
422
|
|
|
423
423
|
declare function cn(...inputs: ClassValue[]): string;
|
|
424
424
|
|
|
425
|
-
|
|
425
|
+
declare const VERSION = "1.3.2";
|
|
426
|
+
|
|
427
|
+
export { ActionSheet, type ActionSheetVariant, BottomActionButtons, type BottomActionButtonsProps, type BottomActionMode, BottomNavigationBar, BottomSheet, BottomSheetOption, type BottomSheetOptionProps, type BottomSheetProps, BottomSheetShareItem, type BottomSheetShareItemProps, BottomToolbar, type BottomToolbarProps, Btn, type BtnProps, type BtnSize, type BtnVariant, type BubbleAlignment, type BubblePlacement, BubbleTip, CardDemo, DRAWER_STATES, Dialog, type DialogProps, type DialogVariant, DraggablePanel, EmptyState, type EmptyStateProps, type EmptyStateVariant, GridSystemDocs, ICON_GROUPS, ICON_NAMES, IcExpand, IcPlan, IconFont, type IconFontProps, IconGallery, type IconName, ImageWithFallback, Loading, type LoadingProps, NewsItem, type NewsItemProps, type NotificationAction, NotificationBar, type NotificationVariant, POIListItem, PoiItem, type PoiItemProps, Push, type PushProps, SearchBox, type SearchBoxMode, type SearchBoxProps, type SearchBoxVariant, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type ShareItemType, StatGrid, type StatGridProps, type StatItem, Switch, type SwitchProps, type TabId, Tag, type TagProps, TencentMap, Toast, type ToastProps, type ToolbarMode, TopToolbar, type TopToolbarProps, TypographyDocs, VERSION, cn, hasFilledVariant };
|
package/dist/index.js
CHANGED
|
@@ -3760,6 +3760,9 @@ function GridSystemDocs() {
|
|
|
3760
3760
|
] });
|
|
3761
3761
|
}
|
|
3762
3762
|
|
|
3763
|
+
// index.ts
|
|
3764
|
+
var VERSION = "1.3.2";
|
|
3765
|
+
|
|
3763
3766
|
exports.ActionSheet = ActionSheet;
|
|
3764
3767
|
exports.BottomActionButtons = BottomActionButtons;
|
|
3765
3768
|
exports.BottomNavigationBar = BottomNavigationBar;
|
|
@@ -3797,6 +3800,7 @@ exports.TencentMap = TencentMap;
|
|
|
3797
3800
|
exports.Toast = Toast;
|
|
3798
3801
|
exports.TopToolbar = TopToolbar;
|
|
3799
3802
|
exports.TypographyDocs = TypographyDocs;
|
|
3803
|
+
exports.VERSION = VERSION;
|
|
3800
3804
|
exports.cn = cn;
|
|
3801
3805
|
exports.hasFilledVariant = hasFilledVariant;
|
|
3802
3806
|
//# sourceMappingURL=index.js.map
|