create-dwy 0.19.0 → 0.19.1
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/prompt-style.js +82 -0
- package/src/searchable-select.js +12 -29
- package/src/tab-multiselect.js +7 -12
- package/templates/ai-tools/rules/Python/dwy-python-base-lib.md +1 -1
- package/templates/ai-tools/skills/Python/dwy-eapi/SKILL.md +59 -200
- package/templates/ai-tools/skills/Python/dwy-eapi/shared/anticorruption.md +13 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/shared/layering.md +5 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/shared/response-envelope.md +20 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/shared/timezone.md +7 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/v0/breaking.md +12 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/v0/email-canonical.md +18 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/v0/index.md +103 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/v0/providers-email.md +39 -0
- package/templates/ai-tools/skills/Python/dwy-eapi/versions.yml +13 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/SKILL.md +62 -306
- package/templates/ai-tools/skills/Vue/dwy-eui/references/eui-design-guide.md +8 -1
- package/templates/ai-tools/skills/Vue/dwy-eui/references/eui-integration-guide.md +0 -31
- package/templates/ai-tools/skills/Vue/dwy-eui/shared/config-theme.md +8 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/shared/form.md +6 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/shared/overlay.md +6 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/shared/reka.md +5 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/v1/index.md +8 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/v2/breaking.md +14 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/v2/index.md +55 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/v2/lookup.md +29 -0
- package/templates/ai-tools/skills/Vue/dwy-eui/versions.yml +12 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @dwydev/eui 2.x
|
|
2
|
+
|
|
3
|
+
精确签名以安装版本为准(见上级 SKILL.md:先 clone tag,拿不到再读 node_modules)。本页是 2.x 导航与陷阱。
|
|
4
|
+
|
|
5
|
+
跨大版本不变的表单 / 弹层 / reka / 主题在 `shared/`。查 props 走 `lookup.md`。
|
|
6
|
+
|
|
7
|
+
## Composables
|
|
8
|
+
|
|
9
|
+
| 名 | 用途 | 下限 |
|
|
10
|
+
|----|------|------|
|
|
11
|
+
| `useMessage` | 轻提示 success / error / warning / info | |
|
|
12
|
+
| `useNotification` | 带标题通知 | |
|
|
13
|
+
| `useMessageBox` | alert / confirm / prompt,返回 Promise | |
|
|
14
|
+
| `useTheme` | 亮暗与色板 | |
|
|
15
|
+
| `useConfigProvider` | size / zIndex / locale | |
|
|
16
|
+
| `useFormField` | EFormItem 内 id / error;表单外 `null` | 2.4 起不依赖 vee-validate FormField |
|
|
17
|
+
| `useSecureValue` | 密码不写进 HTML attribute | |
|
|
18
|
+
| `useEuiMobile` | `max-width: 767` 是否手机布局 | ≥2.4 |
|
|
19
|
+
|
|
20
|
+
2.4.0 **删除** `useToast`,改 `useMessage`。仍停在 2.3 的项目读 `breaking.md`。
|
|
21
|
+
|
|
22
|
+
## 组件导航(只列名)
|
|
23
|
+
|
|
24
|
+
用途一句话够导航;props 读 types.d.ts。
|
|
25
|
+
|
|
26
|
+
**展示**:EButton、EButtonGroup、EBadge、EAlert、ECard、ELabel、ESeparator、ETypography、EKbd、ESpinner、EProgress、ESkeleton、EEmpty、EAvatar、EImage、EAspectRatio、EAffix、EWatermark
|
|
27
|
+
|
|
28
|
+
**表单**:EForm / EFormItem、EField、EInput、EInputGroup、ETextarea、ENumberField、ESelect、ENativeSelect、ECombobox、EAutocomplete、ECheckbox、ERadio、ESwitch、ETagsInput、EDatePicker、ETimePicker、EColorPicker、ERate、ESlider、ECascader、ETreeSelect、EMention、EPinInput(OTP 用 `otp` + `mask`)、EUpload、ETransfer
|
|
29
|
+
|
|
30
|
+
**数据**:ETable(`virtual` 走 TanStack Virtual)、EDescriptions、ETimeline、EStatistic、ETree、ECalendar、ERangeCalendar、EPagination、EBreadcrumb
|
|
31
|
+
|
|
32
|
+
**弹层**:EDialog、EDrawer、ESheet、EAlertDialog、ETooltip、EPopover、EHoverCard、EToast(Toaster 挂载点)、EContextMenu、EFormDialog、EConfirmDialog
|
|
33
|
+
|
|
34
|
+
**布局**:ETabs、EMenu、EDropdown、EAccordion、ECollapsible、EStepper、ECarousel、EScrollArea、EInfiniteScroll、EToggle / EToggleGroup、EItem、EResizable*、ECommand*、ENavigationMenu*、EMenubar*、EAdminLayout、EConfigProvider
|
|
35
|
+
|
|
36
|
+
已删组件见 `breaking.md`,不要再 import。
|
|
37
|
+
|
|
38
|
+
## 2.x 陷阱
|
|
39
|
+
|
|
40
|
+
### 汉堡 / 抽屉
|
|
41
|
+
|
|
42
|
+
- `ESheet` / `EAdminLayout` 的 Boolean `open` / `mobileOpen` **缺省必须是 `undefined`**,不能是 `false`。`false` 会让非受控开关永远打不开(≥2.4.0)。
|
|
43
|
+
- 关闭态 overlay 必须卸掉(`unmountOnHide`),否则挡住汉堡。
|
|
44
|
+
- 打开态 overlay 用 `EConfigProvider.zIndex`(默认 2000),压过应用顶栏 `z-50`(≥2.4.0)。
|
|
45
|
+
- 手机抽屉打开时 `EAdminLayout` 把 header 槽设 `invisible`,避免用户名和关闭钮抢角(≥2.4.0)。
|
|
46
|
+
|
|
47
|
+
### ETable
|
|
48
|
+
|
|
49
|
+
- 列 `width` 用数字 px,不要百分比。表 `minWidth` = 列宽之和:宽于容器横滑,窄于容器铺满(≥2.4.0)。
|
|
50
|
+
- 不要再上 `EVirtualTable`,用 `ETable` 的 `virtual`。
|
|
51
|
+
- 排序对外仍 `@sort` + `TableColumn.sortable`。
|
|
52
|
+
|
|
53
|
+
### 手机布局
|
|
54
|
+
|
|
55
|
+
- 断点与 Tailwind `md` 对齐:`max-width: 767`。`useEuiMobile()` 与 `EAdminLayout` / `EPagination` 同一套。
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# 2.x 查 API
|
|
2
|
+
|
|
3
|
+
精确 props/emits **不要**写进 skill。按安装版本读类型。
|
|
4
|
+
|
|
5
|
+
## manifest(≥2.1.0)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
node_modules/@dwydev/eui/dist/component-manifest.json
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- 组件名 → `componentToDir["EButton"]` → 目录 `button`
|
|
12
|
+
- `directories["button"].types` → `components/button/types.d.ts`
|
|
13
|
+
- 拼接 `node_modules/@dwydev/eui/dist/` + 该路径
|
|
14
|
+
|
|
15
|
+
`<2.1.0` 没有 manifest:直接 `ls dist/components/`。
|
|
16
|
+
|
|
17
|
+
## types
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
node_modules/@dwydev/eui/dist/components/{kebab}/types.d.ts
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`{kebab}`:去 `E` 前缀后 kebab-case(`EDatePicker` → `date-picker`)。不确定就 `ls`,不要猜。
|
|
24
|
+
|
|
25
|
+
## slots
|
|
26
|
+
|
|
27
|
+
`.d.ts` 里 slot 常是 `any`。需要具名/作用域插槽时 clone 该版本 tag,在 `frontend/eui/src/components/{kebab}/*.vue` 搜 `<slot`。
|
|
28
|
+
|
|
29
|
+
npm 包 `files` 不含 `.vue`,`node_modules` 里没有模板。
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @dwydev/eui 安装版本 → 文档线。匹配从上到下第一条。
|
|
2
|
+
# 大版本破坏才新开 vN/;2.x 内部 breaking 写 v2/breaking.md,细节 clone 对应 tag。
|
|
3
|
+
repo: https://github.com/danweiyuancircle/dwy-ai-experience.git
|
|
4
|
+
tag_prefix: "@dwydev/eui@"
|
|
5
|
+
sparse:
|
|
6
|
+
- frontend/eui/src
|
|
7
|
+
- frontend/eui/package.json
|
|
8
|
+
lines:
|
|
9
|
+
- match: ">=2.0.0"
|
|
10
|
+
dir: v2
|
|
11
|
+
- match: ">=1.0.0"
|
|
12
|
+
dir: v1
|