@gyyxds/zy-ui 0.0.4 → 0.1.0
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 +1 -1
- package/CONTRIBUTING.md +44 -8
- package/README.md +55 -25
- package/dist/zy-ui/button/ZyButton.vue.d.ts +3 -0
- package/dist/zy-ui/button/index.d.ts +6 -0
- package/dist/zy-ui/cascader/ZyCascader.vue.d.ts +23 -0
- package/dist/zy-ui/cascader/index.d.ts +39 -0
- package/dist/zy-ui/index.d.ts +228 -13
- package/dist/zy-ui/input/ZyInput.vue.d.ts +3 -3
- package/dist/zy-ui/input/index.d.ts +6 -6
- package/dist/zy-ui/select/ZySelect.vue.d.ts +3 -3
- package/dist/zy-ui/select/index.d.ts +6 -6
- package/dist/zy-ui/side-menu/ZySideMenu.vue.d.ts +48 -0
- package/dist/zy-ui/side-menu/index.d.ts +2 -0
- package/dist/zy-ui/side-menu/types.d.ts +21 -0
- package/dist/zy-ui/switch/ZySwitch.vue.d.ts +8 -2
- package/dist/zy-ui/switch/index.d.ts +6 -0
- package/dist/zy-ui/tabs/ZyTabs.vue.d.ts +49 -0
- package/dist/zy-ui/tabs/index.d.ts +81 -0
- package/dist/zy-ui/tabs/types.d.ts +10 -0
- package/dist/zy-ui/themes/basic.css +124 -0
- package/dist/zy-ui/themes/material.css +2 -1
- package/dist/zy-ui/themes/solid.css +358 -0
- package/dist/zy-ui/zy-ui.css +1 -1
- package/dist/zy-ui/zy-ui.js +1227 -756
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.1.0 - 2026-11-04
|
|
4
4
|
|
|
5
5
|
- **站点瘦身:回归组件库与组件文档本身**。移除动效页(`/animations`)、效果详情页、收藏页与 `src/effects/**` 片段体系,连同 `mocks/families.ts` / `mocks/catalog.ts` / favorites store / `PreviewHost` / `GlassCard` / `GlassButton` / `FilterChip` 一并删除;旧地址与未知路由统一回落首页。组件库公共 API 不变。
|
|
6
6
|
- **首页改为展示设计方案**:`/` 现在按「两根轴 → 四种组合 → 两套色板 → 设计原则 → 判据 → 落地清单」展示 `docs/theme` 的方案;四种组合可点击切换整站材质与光照。色板与文案的单一事实源迁到 `src/mocks/theme-design.ts`,四张展示板读同一份数据。
|
package/CONTRIBUTING.md
CHANGED
|
@@ -84,27 +84,63 @@ npm run check:visual:update
|
|
|
84
84
|
- major:删除或改变公共 API、主题默认值、组件 DOM 契约。
|
|
85
85
|
- `prepublishOnly` 会重新构建并校验发布产物。
|
|
86
86
|
|
|
87
|
+
### 标准发布流程
|
|
88
|
+
|
|
89
|
+
发布只保留一个命令:
|
|
90
|
+
|
|
87
91
|
```bash
|
|
88
|
-
|
|
89
|
-
npm
|
|
92
|
+
# 首次 / token 过期时登录一次
|
|
93
|
+
npm login --registry=https://registry.npmjs.org/
|
|
94
|
+
|
|
95
|
+
# 正常提交代码(工作区必须干净,release 不会替你提交业务改动)
|
|
96
|
+
git add -A
|
|
97
|
+
git commit -m "feat: ..."
|
|
98
|
+
|
|
99
|
+
# 一条命令完成:消费 changeset → 抬版本 → 收口 CHANGELOG
|
|
100
|
+
# → 提交版本 → 体检 → build:lib → changeset publish(含 2FA 提示)
|
|
90
101
|
npm run release
|
|
91
102
|
```
|
|
92
103
|
|
|
93
|
-
`
|
|
104
|
+
`release` 会自动做这些事:
|
|
105
|
+
|
|
106
|
+
1. 检查工作区干净。
|
|
107
|
+
2. 有待发 changeset 时执行 `changeset version`,把 `## Unreleased` 收口成 `## <version> - <date>`,并提交 `chore: release v<version>`。
|
|
108
|
+
3. 没有 changeset 时按当前版本继续(补发 / 上次发布失败重试)。
|
|
109
|
+
4. 跑 `check-release-env` 体检。
|
|
110
|
+
5. `build:lib`。
|
|
111
|
+
6. 用 `package.json` 的 `publishConfig.registry` 执行 `changeset publish`,并给当前 commit 打 tag。
|
|
112
|
+
|
|
113
|
+
需要拆开检查时再单独跑:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npm run check:release-env
|
|
117
|
+
npm run build:lib
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
`check:release-env` 以 `publishConfig.registry` 为准,检查 npmjs 登录、版本是否已存在、待发 changeset、CHANGELOG 是否收口。版本已发布或工作区不干净时,`release` 会直接退出。
|
|
121
|
+
|
|
122
|
+
### 直接 `npm publish` 只用于紧急补发
|
|
94
123
|
|
|
95
|
-
`npm
|
|
124
|
+
不要用 `npm publish` 重发旧版本;npm 不允许覆盖已发布版本。紧急补发也必须先抬版本:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npm version <patch> --no-git-tag-version
|
|
128
|
+
npm run build:lib
|
|
129
|
+
npm publish --access public --registry=https://registry.npmjs.org/
|
|
130
|
+
```
|
|
96
131
|
|
|
97
|
-
|
|
132
|
+
### 发布前必须确认
|
|
98
133
|
|
|
99
134
|
- 包 scope 与 registry 已配置。
|
|
100
135
|
- 当前账号有发布权限,且至少一名非作者可执行发布演练。
|
|
101
136
|
- Changeset 覆盖本次变更,版本类型正确。
|
|
102
|
-
- CHANGELOG
|
|
137
|
+
- CHANGELOG 和迁移说明完整(`npm run version` 已收口)。
|
|
103
138
|
- `npm pack` 产物可由非作者安装。
|
|
104
139
|
|
|
105
|
-
|
|
140
|
+
### 发布后
|
|
106
141
|
|
|
107
|
-
-
|
|
142
|
+
- `npm view @gyyxds/zy-ui version --registry=https://registry.npmjs.org/` 确认版本。
|
|
143
|
+
- 在空项目中安装新版本并运行构建(`npm run check:consumer`)。
|
|
108
144
|
- 验证 `style.css`、`theme/basic.css`、`theme/solid.css`。
|
|
109
145
|
- 验证 basic / solid × light / dark 四档组合,深色不丢材质。
|
|
110
146
|
- 检查包体积是否明显增长。
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| 技术栈 | Vue 3、TypeScript、Element Plus |
|
|
11
11
|
| 构建工具 | Vite 8(库模式)+ vue-tsc |
|
|
12
12
|
| 模块格式 | 仅 ESM(`"type": "module"`),无 CJS 产物 |
|
|
13
|
-
| 组件数 |
|
|
13
|
+
| 组件数 | 31 |
|
|
14
14
|
| 设计主题 | 2 套材质(图纸 / 键帽)× 2 档光照(浅 / 深) |
|
|
15
15
|
|
|
16
16
|
## 仓库里有什么
|
|
@@ -33,14 +33,14 @@ dist/zy-ui/ # 组件库(npm run build:lib,进包)
|
|
|
33
33
|
|
|
34
34
|
## 功能特性
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
- 多个组件带一组 `effect` 微动效:按钮 `press` / `sweep` / `fill`,输入框 `underline
|
|
36
|
+
- 31 个组件,全部是 Element Plus 的二次封装或同构重绘,`type` / `size` / `v-model` / 事件写法与 Element 保持一致
|
|
37
|
+
- 多个组件带一组 `effect` 微动效:按钮 `press` / `sweep` / `fill`,输入框 `underline`,选择器 `underline` …
|
|
38
38
|
- 两套材质主题 × 深浅两档,四组配色互不回退:图纸(`basic`)与实色键帽(`solid`)
|
|
39
39
|
- 设计令牌随包发布(`--zy-*`),覆盖语义令牌即可换肤,无需改组件代码
|
|
40
40
|
- 首页是设计方案本身:两根正交的轴、四种组合、两套色板、原则与判据;点色卡即可切换整站主题
|
|
41
41
|
- TypeScript 类型声明随包发布;ESLint 0 警告门槛、Vitest 单测、消费方冒烟检查与视觉回归
|
|
42
42
|
|
|
43
|
-
## 组件列表(
|
|
43
|
+
## 组件列表(31 个)
|
|
44
44
|
|
|
45
45
|
分类与文档站一致(`src/mocks/element-components.ts`)。
|
|
46
46
|
|
|
@@ -48,19 +48,20 @@ dist/zy-ui/ # 组件库(npm run build:lib,进包)
|
|
|
48
48
|
|
|
49
49
|
| 组件 | 说明 |
|
|
50
50
|
| --- | --- |
|
|
51
|
-
| `ZyButton` | `type` / `plain` / `round` / `dashed` / `circle` 对齐 Element。`effect`:`press`(按压缩放,默认)/ `sweep`(左侧图标块 + 色块扫入)/ `fill`(实色键帽 + 悬停中心扩散,**仅键帽主题**,图纸主题下自动按 `press`
|
|
51
|
+
| `ZyButton` | `type` / `plain` / `round` / `dashed` / `circle` / `square` 对齐 Element。`effect`:`press`(按压缩放,默认)/ `sweep`(左侧图标块 + 色块扫入)/ `fill`(实色键帽 + 悬停中心扩散,**仅键帽主题**,图纸主题下自动按 `press` 渲染);`square` 是固定宽高的方形图标键帽 |
|
|
52
52
|
| `ZyIcon` | 内置 SVG 图标,`name` 取 `src/assets/icons/` 的文件名(如 `btn-search`);`size` / `label` / `spin` |
|
|
53
53
|
| `ZyLoading` | 纯 div + CSS,不基于 Element。`type`:`dots` 点环 / `line` 心电描线 / `text` 故障字 / `bar` 跳球柱形;`color` / `speed` / `width` / `height` / `label` |
|
|
54
54
|
|
|
55
|
-
### 表单(
|
|
55
|
+
### 表单(13)
|
|
56
56
|
|
|
57
57
|
| 组件 | 说明 |
|
|
58
58
|
| --- | --- |
|
|
59
|
-
| `ZyInput` | `effect`:`focus`(默认,描边转主色)/ `underline
|
|
59
|
+
| `ZyInput` | `effect`:`focus`(默认,描边转主色)/ `underline`(下划线扫过);另有 `label` 浮动标签、`raised` 键帽凸起形态 |
|
|
60
60
|
| `ZyCodeInput` | 验证码输入。`length` / `status`(idle / error / success)/ `size` / `mask` / `caret` / `disabled`;`v-model` + `complete` 事件 |
|
|
61
|
-
| `ZySelect` | `effect`:`focus` / `underline
|
|
61
|
+
| `ZySelect` | `effect`:`focus` / `underline`;`tree` + `data` 树形单选 / 多选(`multiple` 默认显示复选框);其余 API 照 Element |
|
|
62
|
+
| `ZyCascader` | 基于 el-cascader;主题化触发框 / 多列面板,列内滑行高亮;其余 API 照 Element |
|
|
62
63
|
| `ZyCheckbox` / `ZyCheckboxGroup` | `effect`:`''` / `checkmark` / `tick`;Group 用 `v-model` 收集选中值 |
|
|
63
|
-
| `ZySwitch` |
|
|
64
|
+
| `ZySwitch` | 自研开关:默认常用基础款(参考 sour-snake-86,默认 72×30,`size` 48 / 72 / 120,仅改主题色),`variant="holographic"` 为全息变体(扫描线 / 粒子 / 三环);`v-model` + `activeText` / `inactiveText` / `label` / `disabled` |
|
|
64
65
|
| `ZyRadio` / `ZyRadioGroup` / `ZyRadioButton` | 选中态辉光圆点 + 过冲弹跳;`effect`:`''` / `underline` |
|
|
65
66
|
| `ZySlideVerify` | 滑块拼图验证(内置插画底图《缺口光谱》)。`gap` / `tolerance` / `image` / `darkImage` / `showRefresh` 与各档文案;事件:成功 / 失败 / 刷新 |
|
|
66
67
|
| `ZyDatePicker` / `ZyTimePicker` | 触发框与弹层形态重绘,API 照 Element |
|
|
@@ -75,7 +76,7 @@ dist/zy-ui/ # 组件库(npm run build:lib,进包)
|
|
|
75
76
|
| `ZyProgress` | 轨道 + 蓝→绿渐变填充 |
|
|
76
77
|
| `ZyTable` | 台账式表格,`lines`(all / row)控制网格线;数据与列走插槽 / Element 透传 |
|
|
77
78
|
| `ZyTree` | 引导线 + 折角接线 + 写实节点图标;`folderIcon` / `folderOpenIcon` / `fileIcon` |
|
|
78
|
-
| `ZyPagination` |
|
|
79
|
+
| `ZyPagination` | 基于 el-pagination 二次封装,仅重绘样式:纸面按钮 / 中性键帽页码,跳页输入框 |
|
|
79
80
|
|
|
80
81
|
### 反馈(2)
|
|
81
82
|
|
|
@@ -84,14 +85,16 @@ dist/zy-ui/ # 组件库(npm run build:lib,进包)
|
|
|
84
85
|
| `ZyAlert` | 左侧 3px 语义强调条 / 语义键块,标题留语义色 |
|
|
85
86
|
| `ZyDialog` | `v-model` 开合;`title` / `width` / `icon` / `appendToBody` / `closeOnClickModal`(默认 false)/ `destroyOnClose` |
|
|
86
87
|
|
|
87
|
-
### 布局(
|
|
88
|
+
### 布局(6)
|
|
88
89
|
|
|
89
90
|
| 组件 | 说明 |
|
|
90
91
|
| --- | --- |
|
|
91
92
|
| `ZyDivider` | `contentPosition`:left / center / right |
|
|
92
93
|
| `ZySpace` | 纯布局件,`direction` 等间距控制 |
|
|
93
94
|
| `ZyPanel` | 通用容器:有 `title` 分标题栏 + 正文,无 `title` 通体白面 |
|
|
95
|
+
| `ZyTabs` | 异形标签页:斜切角选中片 + FLIP 滑行 + 面板微动效;`items` 驱动,`#panel-<key>` 接管内容,键盘可切换 |
|
|
94
96
|
| `ZyMegaMenu` | 数据驱动导航:`items`(有 `panel` = 下拉,无 `panel` + `href` = 普通链接)、`brand`;受控开合 `v-model:open`;`#panel-<key>` 接管面板内容;grid 面板按子项数 1 / 2 / 3 列自适应 |
|
|
97
|
+
| `ZySideMenu` | 菜单导航的左侧变体:品牌区 + 一级入口 + 可展开二级;`v-model:active` / `v-model:open`,`surface` 可选 auto / 品牌面 / 白色纸面,支持自定义背景 / 文字 / 选中底色 / 选中文字;行间滑行高亮;二级收起用 `inert` 隔离 |
|
|
95
98
|
|
|
96
99
|
## 设计系统:两套语言 × 两档光照
|
|
97
100
|
|
|
@@ -130,7 +133,7 @@ dist/zy-ui/ # 组件库(npm run build:lib,进包)
|
|
|
130
133
|
|
|
131
134
|
| 区块 | 内容 |
|
|
132
135
|
| --- | --- |
|
|
133
|
-
| 抬头 | 两套语言的立场、两根轴、
|
|
136
|
+
| 抬头 | 两套语言的立场、两根轴、31 个组件 / 2 套材质 / 2 档光照 |
|
|
134
137
|
| 四种组合 | 2 × 2 卡片,点任意一格把整站切到那套材质与光照 |
|
|
135
138
|
| 两套色板 | A / B 各一段,浅色与深色并排印出令牌名、用途与实际值 |
|
|
136
139
|
| 设计原则 | 两条语言各自的层级、只换材质、两档光照、字色跟面走 |
|
|
@@ -280,7 +283,7 @@ npm run dev
|
|
|
280
283
|
| --- | --- |
|
|
281
284
|
| `npm run dev` | 文档站(前置跑 registry 校验) |
|
|
282
285
|
| `npm run build` | 构建站点 → `dist/site/` |
|
|
283
|
-
| `npm run build:lib` | 构建可发布库 → `dist/zy-ui/`(只含
|
|
286
|
+
| `npm run build:lib` | 构建可发布库 → `dist/zy-ui/`(只含 31 个组件) |
|
|
284
287
|
| `npm run lint` | ESLint 检查(0 警告门槛) |
|
|
285
288
|
| `npm run test` | Vitest 单元测试 |
|
|
286
289
|
| `npm run check:registry` | 组件注册表 ↔ 实现文件、站点组件数、令牌完整性 |
|
|
@@ -288,9 +291,10 @@ npm run dev
|
|
|
288
291
|
| `npm run check:consumer` | 用 `npm pack` 产物在空项目安装、类型检查并构建 |
|
|
289
292
|
| `npm run check:theme-runtime` | 主题运行时校验(需先启动站点) |
|
|
290
293
|
| `npm run check:visual` / `:update` | 视觉回归 / 审核通过后更新基线(需先启动站点) |
|
|
291
|
-
| `npm run check:release-env` | 发布前置体检:registry / 登录 / 版本 /
|
|
294
|
+
| `npm run check:release-env` | 发布前置体检:npmjs registry / 登录 / 版本 / changeset / CHANGELOG |
|
|
292
295
|
| `npm run changeset` | 记录一次待发布变更 |
|
|
293
|
-
| `npm run
|
|
296
|
+
| `npm run version` | 消费 changeset、抬版本并自动收口 CHANGELOG |
|
|
297
|
+
| `npm run release` | 体检 → 构建 → 用 publishConfig registry 发布 |
|
|
294
298
|
|
|
295
299
|
站点与库产物分开放(`dist/site` 与 `dist/zy-ui`),互不覆盖。
|
|
296
300
|
|
|
@@ -334,26 +338,51 @@ npm install
|
|
|
334
338
|
|
|
335
339
|
包名 `@gyyxds/zy-ui`,发布地址固定 `https://registry.npmjs.org/`(`publishConfig` 已配 `access: public` + `registry`)。发布账号 **gyy-xds**(@gyyxds 组织),已开启 2FA。
|
|
336
340
|
|
|
341
|
+
### 标准发布流程
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
# 首次 / token 过期时登录一次
|
|
345
|
+
npm login --registry=https://registry.npmjs.org/
|
|
346
|
+
|
|
347
|
+
# 正常提交代码(工作区必须干净)
|
|
348
|
+
git add -A
|
|
349
|
+
git commit -m "feat: ..."
|
|
350
|
+
|
|
351
|
+
# 一条命令:消费 changeset → 抬版本 → 收口 CHANGELOG
|
|
352
|
+
# → 提交版本 → 体检 → build:lib → changeset publish
|
|
353
|
+
npm run release
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
`release` 会自动:
|
|
357
|
+
|
|
358
|
+
1. 检查工作区干净。
|
|
359
|
+
2. 有 changeset 时执行 `changeset version`,把 `## Unreleased` 收口成 `## <version> - <date>`,并提交 `chore: release v<version>`。
|
|
360
|
+
3. 没有 changeset 时按当前版本继续,用于补发或上次发布失败重试。
|
|
361
|
+
4. 跑 `check:release-env`(按 `publishConfig.registry` 检查 npmjs 登录 / 版本 / changeset / CHANGELOG)。
|
|
362
|
+
5. `build:lib`,再用同一个 registry 执行 `changeset publish` 并打 tag。
|
|
363
|
+
|
|
364
|
+
需要拆开检查时:
|
|
365
|
+
|
|
337
366
|
```bash
|
|
338
|
-
|
|
367
|
+
npm run check:release-env
|
|
339
368
|
npm run build:lib
|
|
369
|
+
```
|
|
340
370
|
|
|
341
|
-
|
|
342
|
-
npm login --registry=https://registry.npmjs.org/
|
|
371
|
+
### 紧急补发
|
|
343
372
|
|
|
344
|
-
|
|
345
|
-
npm whoami --registry=https://registry.npmjs.org/
|
|
373
|
+
`npm publish` 只用于紧急补发,且必须换新版本:
|
|
346
374
|
|
|
347
|
-
|
|
375
|
+
```bash
|
|
376
|
+
npm version <patch> --no-git-tag-version
|
|
377
|
+
npm run build:lib
|
|
348
378
|
npm publish --access public --registry=https://registry.npmjs.org/
|
|
349
379
|
```
|
|
350
380
|
|
|
351
381
|
要点:
|
|
352
382
|
|
|
353
|
-
- `prepublishOnly` 会在 publish 前自动重跑一遍 `build:lib
|
|
354
|
-
-
|
|
355
|
-
- 发布后用 `npm view @gyyxds/zy-ui version
|
|
356
|
-
- 正式变更走 Changesets:`npm run changeset` → `changeset version` → `npm run release`(`release` 会先跑 `check:release-env` 体检)。
|
|
383
|
+
- `prepublishOnly` 会在 publish 前自动重跑一遍 `build:lib`。
|
|
384
|
+
- 2FA 账号 publish 时需浏览器授权或验证器一次性验证码(EOTP)。
|
|
385
|
+
- 发布后用 `npm view @gyyxds/zy-ui version --registry=https://registry.npmjs.org/` 确认上架。
|
|
357
386
|
- 要让业务项目验证发布产物,可先跑 `npm run check:consumer`(`npm pack` → 空项目安装 → 类型检查 → 构建)。
|
|
358
387
|
|
|
359
388
|
## 目录结构
|
|
@@ -388,6 +417,7 @@ docs/theme/ # 设计规范:两套语言、两档光照、四张
|
|
|
388
417
|
- [Element Plus](https://element-plus.org/)(含 `@element-plus/icons-vue`)—— 组件基座:大部分组件在其公开 API 上二次封装,`ZySwitch` / `ZyLoading` / `ZySlideVerify` / `ZyMegaMenu` 等为自研。
|
|
389
418
|
- [React Bits](https://reactbits.dev/) —— `ZyCodeInput` 的 CodeSlots、`ZySelect` 的 Glide Select 滑行高亮原型。
|
|
390
419
|
- [Uiverse · devsebastian44/orange-badger-71](https://uiverse.io/devsebastian44/orange-badger-71) —— `ZyButton` 的 `effect="fill"` 实色键帽。
|
|
420
|
+
- [Uiverse · yasha_8286/sour-snake-86](https://uiverse.io/yasha_8286/sour-snake-86) —— `ZySwitch` 基础款的宽轨道 + 圆形滑块 + 箭头翻转参考(MIT)。
|
|
391
421
|
- [vengenceui · mega-menu-navbar](https://www.vengenceui.com/components/mega-menu-navbar) —— `ZyMegaMenu` 的结构参考。
|
|
392
422
|
- **ui-ux-pro-max** —— 设计核对(Liquid Glass / Depth Layering / 对比度条目)。
|
|
393
423
|
|
|
@@ -11,6 +11,8 @@ type __VLS_Props = {
|
|
|
11
11
|
/** 尺寸:large / default / small(对齐 Element) */
|
|
12
12
|
size?: 'large' | 'default' | 'small';
|
|
13
13
|
round?: boolean;
|
|
14
|
+
/** 方形图标键帽:固定宽高、零横向留白,适合只放图标的操作按钮 */
|
|
15
|
+
square?: boolean;
|
|
14
16
|
disabled?: boolean;
|
|
15
17
|
loading?: boolean;
|
|
16
18
|
};
|
|
@@ -32,6 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
32
34
|
effect: "press" | "sweep" | "fill";
|
|
33
35
|
icon: string | Component;
|
|
34
36
|
round: boolean;
|
|
37
|
+
square: boolean;
|
|
35
38
|
disabled: boolean;
|
|
36
39
|
loading: boolean;
|
|
37
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,6 +5,7 @@ export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
|
5
5
|
icon?: string | import("vue").Component;
|
|
6
6
|
size?: "large" | "default" | "small";
|
|
7
7
|
round?: boolean;
|
|
8
|
+
square?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
loading?: boolean;
|
|
10
11
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
@@ -13,6 +14,7 @@ export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
|
13
14
|
effect: "press" | "sweep" | "fill";
|
|
14
15
|
icon: string | import("vue").Component;
|
|
15
16
|
round: boolean;
|
|
17
|
+
square: boolean;
|
|
16
18
|
disabled: boolean;
|
|
17
19
|
loading: boolean;
|
|
18
20
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -28,6 +30,7 @@ export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
|
28
30
|
icon?: string | import("vue").Component;
|
|
29
31
|
size?: "large" | "default" | "small";
|
|
30
32
|
round?: boolean;
|
|
33
|
+
square?: boolean;
|
|
31
34
|
disabled?: boolean;
|
|
32
35
|
loading?: boolean;
|
|
33
36
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
@@ -36,6 +39,7 @@ export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
|
36
39
|
effect: "press" | "sweep" | "fill";
|
|
37
40
|
icon: string | import("vue").Component;
|
|
38
41
|
round: boolean;
|
|
42
|
+
square: boolean;
|
|
39
43
|
disabled: boolean;
|
|
40
44
|
loading: boolean;
|
|
41
45
|
}>;
|
|
@@ -48,6 +52,7 @@ export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
|
48
52
|
icon?: string | import("vue").Component;
|
|
49
53
|
size?: "large" | "default" | "small";
|
|
50
54
|
round?: boolean;
|
|
55
|
+
square?: boolean;
|
|
51
56
|
disabled?: boolean;
|
|
52
57
|
loading?: boolean;
|
|
53
58
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
@@ -56,6 +61,7 @@ export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
|
56
61
|
effect: "press" | "sweep" | "fill";
|
|
57
62
|
icon: string | import("vue").Component;
|
|
58
63
|
round: boolean;
|
|
64
|
+
square: boolean;
|
|
59
65
|
disabled: boolean;
|
|
60
66
|
loading: boolean;
|
|
61
67
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type CascaderModel = string | number | Array<string | number> | null | undefined;
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue?: CascaderModel;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_12: string, __VLS_13: any;
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
[K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
visibleChange: (visible: boolean) => any;
|
|
11
|
+
"update:modelValue": (value: CascaderModel) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
13
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((value: CascaderModel) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const ZyCascader: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
modelValue?: string | number | (string | number)[] | null | undefined;
|
|
4
|
+
}> & Readonly<{
|
|
5
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | null | undefined) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
visibleChange: (visible: boolean) => any;
|
|
9
|
+
"update:modelValue": (value: string | number | (string | number)[] | null | undefined) => any;
|
|
10
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<{
|
|
18
|
+
modelValue?: string | number | (string | number)[] | null | undefined;
|
|
19
|
+
}> & Readonly<{
|
|
20
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | null | undefined) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, {}>;
|
|
23
|
+
__isFragment?: never;
|
|
24
|
+
__isTeleport?: never;
|
|
25
|
+
__isSuspense?: never;
|
|
26
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
27
|
+
modelValue?: string | number | (string | number)[] | null | undefined;
|
|
28
|
+
}> & Readonly<{
|
|
29
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | null | undefined) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
visibleChange: (visible: boolean) => any;
|
|
33
|
+
"update:modelValue": (value: string | number | (string | number)[] | null | undefined) => any;
|
|
34
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
35
|
+
$slots: {
|
|
36
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
37
|
+
};
|
|
38
|
+
})>;
|
|
39
|
+
export default ZyCascader;
|