@ccn-ui-kit/form 0.1.2 → 0.1.3

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.
@@ -0,0 +1,23 @@
1
+ import { Component } from 'vue';
2
+
3
+ /**
4
+ * 组件目录:路由与侧边栏的唯一数据源。
5
+ * key 对应页面文件 play/pages/components/{key}.vue 与 demo 前缀。
6
+ */
7
+ export interface CatalogItem {
8
+ /** 组件 key,即路由 path 片段 /components/{key} */
9
+ key: string;
10
+ /** 英文名,如 Button */
11
+ name: string;
12
+ /** 侧边栏显示名,如 Button 按钮 */
13
+ title: string;
14
+ /** 页面简介,取自 docs/components/*.md 首段 */
15
+ desc: string;
16
+ /** 懒加载页面组件 */
17
+ component: () => Promise<Component>;
18
+ }
19
+ export interface CatalogGroup {
20
+ text: string;
21
+ items: CatalogItem[];
22
+ }
23
+ export declare const catalog: CatalogGroup[];
@@ -0,0 +1,4 @@
1
+ import { Component } from 'vue';
2
+
3
+ export declare function getDemoComponent(name: string): Component | undefined;
4
+ export declare function getDemoSource(name: string): string;
@@ -0,0 +1 @@
1
+ export declare const router: import('vue-router')._RouterClassic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccn-ui-kit/form",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",