@ccn-ui-kit/divider 0.1.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.
Files changed (79) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.js +47 -0
  3. package/dist/packages/components/__tests__/loading.spec.d.ts +1 -0
  4. package/dist/packages/components/badge/index.d.ts +10 -0
  5. package/dist/packages/components/badge/src/badge.d.ts +25 -0
  6. package/dist/packages/components/breadcrumb/index.d.ts +12 -0
  7. package/dist/packages/components/breadcrumb/src/breadcrumb-item.d.ts +13 -0
  8. package/dist/packages/components/breadcrumb/src/breadcrumb.d.ts +10 -0
  9. package/dist/packages/components/button/index.d.ts +10 -0
  10. package/dist/packages/components/button/src/button.d.ts +25 -0
  11. package/dist/packages/components/date-picker/index.d.ts +10 -0
  12. package/dist/packages/components/date-picker/src/date-picker.d.ts +20 -0
  13. package/dist/packages/components/descriptions/index.d.ts +12 -0
  14. package/dist/packages/components/descriptions/src/descriptions-item.d.ts +13 -0
  15. package/dist/packages/components/descriptions/src/descriptions.d.ts +17 -0
  16. package/dist/packages/components/divider/index.d.ts +10 -0
  17. package/dist/packages/components/divider/src/divider.d.ts +20 -0
  18. package/dist/packages/components/divider/src/divider.vue.d.ts +41 -0
  19. package/dist/packages/components/dropdown/index.d.ts +12 -0
  20. package/dist/packages/components/dropdown/src/dropdown-item.d.ts +20 -0
  21. package/dist/packages/components/dropdown/src/dropdown.d.ts +46 -0
  22. package/dist/packages/components/form/index.d.ts +12 -0
  23. package/dist/packages/components/form/src/form-item.d.ts +45 -0
  24. package/dist/packages/components/form/src/form.d.ts +96 -0
  25. package/dist/packages/components/icon/index.d.ts +11 -0
  26. package/dist/packages/components/icon/src/icon.d.ts +18 -0
  27. package/dist/packages/components/icon/src/icons.d.ts +50 -0
  28. package/dist/packages/components/input/index.d.ts +10 -0
  29. package/dist/packages/components/input/src/input.d.ts +25 -0
  30. package/dist/packages/components/link/index.d.ts +10 -0
  31. package/dist/packages/components/link/src/link.d.ts +25 -0
  32. package/dist/packages/components/loading/index.d.ts +10 -0
  33. package/dist/packages/components/loading/src/loading.d.ts +15 -0
  34. package/dist/packages/components/menu/index.d.ts +14 -0
  35. package/dist/packages/components/menu/src/menu-item.d.ts +12 -0
  36. package/dist/packages/components/menu/src/menu.d.ts +40 -0
  37. package/dist/packages/components/menu/src/sub-menu.d.ts +12 -0
  38. package/dist/packages/components/message/index.d.ts +12 -0
  39. package/dist/packages/components/message/src/manager.d.ts +14 -0
  40. package/dist/packages/components/message/src/message.d.ts +28 -0
  41. package/dist/packages/components/modal/index.d.ts +10 -0
  42. package/dist/packages/components/modal/src/modal.d.ts +46 -0
  43. package/dist/packages/components/notification/index.d.ts +12 -0
  44. package/dist/packages/components/notification/src/manager.d.ts +14 -0
  45. package/dist/packages/components/notification/src/notification.d.ts +44 -0
  46. package/dist/packages/components/pagination/index.d.ts +10 -0
  47. package/dist/packages/components/pagination/src/pagination.d.ts +30 -0
  48. package/dist/packages/components/popconfirm/index.d.ts +10 -0
  49. package/dist/packages/components/popconfirm/src/popconfirm.d.ts +56 -0
  50. package/dist/packages/components/rich-editor/index.d.ts +10 -0
  51. package/dist/packages/components/rich-editor/src/rich-editor.d.ts +36 -0
  52. package/dist/packages/components/select/index.d.ts +10 -0
  53. package/dist/packages/components/select/src/select.d.ts +45 -0
  54. package/dist/packages/components/space/index.d.ts +10 -0
  55. package/dist/packages/components/space/src/space.d.ts +33 -0
  56. package/dist/packages/components/steps/index.d.ts +12 -0
  57. package/dist/packages/components/steps/src/step.d.ts +28 -0
  58. package/dist/packages/components/steps/src/steps.d.ts +46 -0
  59. package/dist/packages/components/table/index.d.ts +10 -0
  60. package/dist/packages/components/table/src/table.d.ts +56 -0
  61. package/dist/packages/components/tabs/index.d.ts +12 -0
  62. package/dist/packages/components/tabs/src/tab-pane.d.ts +22 -0
  63. package/dist/packages/components/tabs/src/tabs.d.ts +43 -0
  64. package/dist/packages/components/tree/index.d.ts +10 -0
  65. package/dist/packages/components/tree/src/tree.d.ts +134 -0
  66. package/dist/packages/components/upload/index.d.ts +10 -0
  67. package/dist/packages/components/upload/src/upload.d.ts +103 -0
  68. package/dist/packages/directives/index.d.ts +2 -0
  69. package/dist/packages/directives/loading/index.d.ts +11 -0
  70. package/dist/packages/directives/permission/index.d.ts +3 -0
  71. package/dist/packages/ui-kit/index.d.ts +34 -0
  72. package/dist/packages/utils/dom.d.ts +5 -0
  73. package/dist/packages/utils/index.d.ts +3 -0
  74. package/dist/packages/utils/types.d.ts +7 -0
  75. package/dist/packages/utils/vue-helper.d.ts +9 -0
  76. package/dist/play/main.d.ts +1 -0
  77. package/dist/play/vite.config.d.ts +2 -0
  78. package/package.json +27 -0
  79. package/style/index.scss +71 -0
@@ -0,0 +1,50 @@
1
+ export declare const icons: {
2
+ readonly search: "<circle cx=\"11\" cy=\"11\" r=\"8\" /><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\" />";
3
+ readonly plus: "<line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\" /><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" />";
4
+ readonly minus: "<line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" />";
5
+ readonly close: "<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" /><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />";
6
+ readonly check: "<polyline points=\"20 6 9 17 4 12\" />";
7
+ readonly loading: "<path d=\"M21 12a9 9 0 1 1-6.219-8.56\" />";
8
+ readonly refresh: "<polyline points=\"23 4 23 10 17 10\" /><polyline points=\"1 20 1 14 7 14\" /><path d=\"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15\" />";
9
+ readonly edit: "<path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\" /><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\" />";
10
+ readonly delete: "<polyline points=\"3 6 5 6 21 6\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" /><line x1=\"10\" y1=\"11\" x2=\"10\" y2=\"17\" /><line x1=\"14\" y1=\"11\" x2=\"14\" y2=\"17\" />";
11
+ readonly download: "<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" /><polyline points=\"7 10 12 15 17 10\" /><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\" />";
12
+ readonly upload: "<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" /><polyline points=\"17 8 12 3 7 8\" /><line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\" />";
13
+ readonly setting: "<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z\" />";
14
+ readonly user: "<path d=\"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\" /><circle cx=\"12\" cy=\"7\" r=\"4\" />";
15
+ readonly home: "<path d=\"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" /><polyline points=\"9 22 9 12 15 12 15 22\" />";
16
+ readonly calendar: "<rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" /><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" /><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" /><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />";
17
+ readonly clock: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12 16 14\" />";
18
+ readonly star: "<polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />";
19
+ readonly heart: "<path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\" />";
20
+ readonly message: "<path d=\"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z\" />";
21
+ readonly bell: "<path d=\"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9\" /><path d=\"M13.73 21a2 2 0 0 1-3.46 0\" />";
22
+ readonly mail: "<path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\" /><polyline points=\"22,6 12,13 2,6\" />";
23
+ readonly eye: "<path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />";
24
+ readonly lock: "<rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\" /><path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />";
25
+ readonly link: "<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\" /><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\" />";
26
+ readonly 'arrow-up': "<line x1=\"12\" y1=\"19\" x2=\"12\" y2=\"5\" /><polyline points=\"5 12 12 5 19 12\" />";
27
+ readonly 'arrow-down': "<line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\" /><polyline points=\"19 12 12 19 5 12\" />";
28
+ readonly 'arrow-left': "<line x1=\"19\" y1=\"12\" x2=\"5\" y2=\"12\" /><polyline points=\"12 19 5 12 12 5\" />";
29
+ readonly 'arrow-right': "<line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\" /><polyline points=\"12 5 19 12 12 19\" />";
30
+ readonly 'chevron-up': "<polyline points=\"18 15 12 9 6 15\" />";
31
+ readonly 'chevron-down': "<polyline points=\"6 9 12 15 18 9\" />";
32
+ readonly 'chevron-left': "<polyline points=\"15 18 9 12 15 6\" />";
33
+ readonly 'chevron-right': "<polyline points=\"9 18 15 12 9 6\" />";
34
+ readonly more: "<circle cx=\"12\" cy=\"12\" r=\"1\" /><circle cx=\"19\" cy=\"12\" r=\"1\" /><circle cx=\"5\" cy=\"12\" r=\"1\" />";
35
+ readonly menu: "<line x1=\"3\" y1=\"12\" x2=\"21\" y2=\"12\" /><line x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\" /><line x1=\"3\" y1=\"18\" x2=\"21\" y2=\"18\" />";
36
+ readonly filter: "<polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\" />";
37
+ readonly copy: "<rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\" /><path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\" />";
38
+ readonly 'external-link': "<path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" /><polyline points=\"15 3 21 3 21 9\" /><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\" />";
39
+ readonly zap: "<polygon points=\"13 2 3 14 12 14 11 22 21 10 12 10 13 2\" />";
40
+ readonly 'log-out': "<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><polyline points=\"16 17 21 12 16 7\" /><line x1=\"21\" y1=\"12\" x2=\"9\" y2=\"12\" />";
41
+ readonly grid: "<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" />";
42
+ readonly info: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\" /><line x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\" />";
43
+ readonly success: "<path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\" /><polyline points=\"22 4 12 14.01 9 11.01\" />";
44
+ readonly warning: "<path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\" /><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\" /><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\" />";
45
+ readonly error: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\" /><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\" />";
46
+ readonly question: "<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" /><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\" />";
47
+ readonly 'plus-circle': "<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"16\" /><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\" />";
48
+ };
49
+ export type IconName = keyof typeof icons;
50
+ export declare function hasIcon(name: string): name is IconName;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Input } from './src/input.vue';
3
+
4
+ export declare const InputPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Input };
9
+ export default Input;
10
+ export * from './src/input';
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const inputProps: {
4
+ readonly modelValue: {
5
+ readonly type: StringConstructor;
6
+ readonly default: undefined;
7
+ };
8
+ readonly type: {
9
+ readonly type: StringConstructor;
10
+ readonly default: "text";
11
+ };
12
+ readonly placeholder: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "";
15
+ };
16
+ readonly disabled: BooleanConstructor;
17
+ readonly clearable: BooleanConstructor;
18
+ };
19
+ export declare const inputEmits: {
20
+ 'update:modelValue': (val: string) => boolean;
21
+ input: (val: string) => boolean;
22
+ change: (val: string) => boolean;
23
+ clear: () => boolean;
24
+ };
25
+ export type InputProps = ExtractPropTypes<typeof inputProps>;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Link } from './src/link.vue';
3
+
4
+ export declare const LinkPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Link };
9
+ export default Link;
10
+ export * from './src/link';
@@ -0,0 +1,25 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const linkProps: {
4
+ readonly type: {
5
+ readonly type: StringConstructor;
6
+ readonly default: "default";
7
+ };
8
+ readonly href: {
9
+ readonly type: StringConstructor;
10
+ readonly default: "";
11
+ };
12
+ readonly target: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "_self";
15
+ };
16
+ readonly underline: {
17
+ readonly type: BooleanConstructor;
18
+ readonly default: true;
19
+ };
20
+ readonly disabled: BooleanConstructor;
21
+ };
22
+ export declare const linkEmits: {
23
+ click: (e: MouseEvent) => boolean;
24
+ };
25
+ export type LinkProps = ExtractPropTypes<typeof linkProps>;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Loading } from './src/loading.vue';
3
+
4
+ export declare const LoadingPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Loading };
9
+ export default Loading;
10
+ export * from './src/loading';
@@ -0,0 +1,15 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const loadingProps: {
4
+ readonly visible: BooleanConstructor;
5
+ readonly text: {
6
+ readonly type: StringConstructor;
7
+ readonly default: "";
8
+ };
9
+ readonly fullscreen: BooleanConstructor;
10
+ readonly background: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "";
13
+ };
14
+ };
15
+ export type LoadingProps = ExtractPropTypes<typeof loadingProps>;
@@ -0,0 +1,14 @@
1
+ import { App } from 'vue';
2
+ import { default as Menu } from './src/menu.vue';
3
+ import { default as MenuItem } from './src/menu-item.vue';
4
+ import { default as SubMenu } from './src/sub-menu.vue';
5
+
6
+ export declare const MenuPlugin: {
7
+ name: string;
8
+ install(app: App): void;
9
+ };
10
+ export { Menu, MenuItem, SubMenu };
11
+ export default Menu;
12
+ export * from './src/menu';
13
+ export * from './src/menu-item';
14
+ export * from './src/sub-menu';
@@ -0,0 +1,12 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const menuItemProps: {
4
+ /** 唯一索引,选中时通过 select 事件回传 */
5
+ readonly index: {
6
+ readonly type: StringConstructor;
7
+ readonly required: true;
8
+ };
9
+ /** 是否禁用 */
10
+ readonly disabled: BooleanConstructor;
11
+ };
12
+ export type MenuItemProps = ExtractPropTypes<typeof menuItemProps>;
@@ -0,0 +1,40 @@
1
+ import { ExtractPropTypes, InjectionKey, Ref } from 'vue';
2
+
3
+ export declare const menuProps: {
4
+ /** 菜单模式:vertical | horizontal */
5
+ readonly mode: {
6
+ readonly type: StringConstructor;
7
+ readonly default: "vertical";
8
+ };
9
+ /** 当前激活菜单项索引 */
10
+ readonly defaultActive: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "";
13
+ };
14
+ /** 是否只允许展开一个子菜单 */
15
+ readonly uniqueOpened: BooleanConstructor;
16
+ };
17
+ export declare const menuEmits: {
18
+ /** 点击菜单项时触发,参数为该菜单项索引 */
19
+ select: (index: string) => boolean;
20
+ /** 子菜单展开时触发 */
21
+ open: (index: string) => boolean;
22
+ /** 子菜单收起时触发 */
23
+ close: (index: string) => boolean;
24
+ };
25
+ export type MenuProps = ExtractPropTypes<typeof menuProps>;
26
+ /** 提供给 MenuItem / SubMenu 的上下文 */
27
+ export interface MenuContext {
28
+ mode: string;
29
+ activeIndex: Ref<string>;
30
+ uniqueOpened: boolean;
31
+ select: (index: string) => void;
32
+ subMenuOpenIndexes: Ref<string[]>;
33
+ /** 垂直模式:点击标题展开/收起(收起时连带关闭子孙) */
34
+ toggleSubMenu: (index: string) => void;
35
+ /** 水平模式:悬停展开(只保留当前一个,联动关闭其他) */
36
+ openSubMenu: (index: string) => void;
37
+ /** 水平模式:移出后收起 */
38
+ closeSubMenu: (index: string) => void;
39
+ }
40
+ export declare const menuContextKey: InjectionKey<MenuContext>;
@@ -0,0 +1,12 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const subMenuProps: {
4
+ /** 唯一索引,用于控制展开/收起 */
5
+ readonly index: {
6
+ readonly type: StringConstructor;
7
+ readonly required: true;
8
+ };
9
+ /** 是否禁用展开 */
10
+ readonly disabled: BooleanConstructor;
11
+ };
12
+ export type SubMenuProps = ExtractPropTypes<typeof subMenuProps>;
@@ -0,0 +1,12 @@
1
+ import { App } from 'vue';
2
+ import { default as Message } from './src/message.vue';
3
+ import { message } from './src/manager';
4
+
5
+ export declare const MessagePlugin: {
6
+ name: string;
7
+ install(app: App): void;
8
+ };
9
+ export { Message, message };
10
+ export default message;
11
+ export * from './src/message';
12
+ export * from './src/manager';
@@ -0,0 +1,14 @@
1
+ import { VNode } from 'vue';
2
+ import { MessageHandler, MessageOptions } from './message';
3
+
4
+ type MessageShorthand = (message: string | VNode, options?: Omit<MessageOptions, 'message' | 'type'>) => MessageHandler;
5
+ /** message() 函数本身及其快捷方法(success/warning/info/error) */
6
+ export interface MessageFn {
7
+ (options: MessageOptions | string): MessageHandler;
8
+ success: MessageShorthand;
9
+ warning: MessageShorthand;
10
+ info: MessageShorthand;
11
+ error: MessageShorthand;
12
+ }
13
+ export declare const message: MessageFn;
14
+ export {};
@@ -0,0 +1,28 @@
1
+ import { ExtractPropTypes, PropType, VNode } from 'vue';
2
+
3
+ export type MessageType = 'success' | 'warning' | 'info' | 'error';
4
+ export declare const messageProps: {
5
+ /** 提示类型,决定图标与配色 */
6
+ readonly type: {
7
+ readonly type: PropType<MessageType>;
8
+ readonly default: "info";
9
+ };
10
+ /** 是否显示关闭按钮 */
11
+ readonly showClose: BooleanConstructor;
12
+ };
13
+ export type MessageProps = ExtractPropTypes<typeof messageProps>;
14
+ /** message() 命令式调用时的选项 */
15
+ export interface MessageOptions {
16
+ /** 提示内容,支持字符串或 VNode */
17
+ message: string | VNode;
18
+ type?: MessageType;
19
+ /** 自动关闭时间(ms),0 表示不自动关闭,默认 3000 */
20
+ duration?: number;
21
+ showClose?: boolean;
22
+ /** 关闭(含自动关闭)后回调 */
23
+ onClose?: () => void;
24
+ }
25
+ /** message() 返回的句柄,可手动调用 close() 关闭 */
26
+ export interface MessageHandler {
27
+ close: () => void;
28
+ }
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Modal } from './src/modal.vue';
3
+
4
+ export declare const ModalPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Modal };
9
+ export default Modal;
10
+ export * from './src/modal';
@@ -0,0 +1,46 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const modalProps: {
4
+ /** 是否显示,支持 v-model */
5
+ readonly modelValue: BooleanConstructor;
6
+ /** 标题(可被 #header 插槽覆盖) */
7
+ readonly title: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "";
10
+ };
11
+ /** 宽度:数字按 px,字符串作为 CSS 长度(如 '30%') */
12
+ readonly width: {
13
+ readonly type: [NumberConstructor, StringConstructor];
14
+ readonly default: 500;
15
+ };
16
+ /** 距顶部距离;center 生效时忽略 */
17
+ readonly top: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "15vh";
20
+ };
21
+ /** 点击遮罩关闭 */
22
+ readonly closeOnClickMask: {
23
+ readonly type: BooleanConstructor;
24
+ readonly default: true;
25
+ };
26
+ /** 显示右上角关闭按钮 */
27
+ readonly showClose: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: true;
30
+ };
31
+ /** 垂直居中显示 */
32
+ readonly center: BooleanConstructor;
33
+ /** 自定义 z-index;缺省时自动递增,保证后打开的盖在之前之上 */
34
+ readonly zIndex: NumberConstructor;
35
+ };
36
+ export declare const modalEmits: {
37
+ /** v-model */
38
+ 'update:modelValue': (value: boolean) => boolean;
39
+ /** 打开开始 */
40
+ open: () => boolean;
41
+ /** 关闭开始 */
42
+ close: () => boolean;
43
+ /** 关闭动画结束 */
44
+ closed: () => boolean;
45
+ };
46
+ export type ModalProps = ExtractPropTypes<typeof modalProps>;
@@ -0,0 +1,12 @@
1
+ import { App } from 'vue';
2
+ import { default as Notification } from './src/notification.vue';
3
+ import { notification } from './src/manager';
4
+
5
+ export declare const NotificationPlugin: {
6
+ name: string;
7
+ install(app: App): void;
8
+ };
9
+ export { Notification, notification };
10
+ export default notification;
11
+ export * from './src/notification';
12
+ export * from './src/manager';
@@ -0,0 +1,14 @@
1
+ import { VNode } from 'vue';
2
+ import { NotificationHandler, NotificationOptions } from './notification';
3
+
4
+ type NotificationShorthand = (message: string | VNode, options?: Omit<NotificationOptions, 'message' | 'type'>) => NotificationHandler;
5
+ /** notification() 函数本身及其快捷方法(success/warning/info/error) */
6
+ export interface NotificationFn {
7
+ (options: NotificationOptions | string): NotificationHandler;
8
+ success: NotificationShorthand;
9
+ warning: NotificationShorthand;
10
+ info: NotificationShorthand;
11
+ error: NotificationShorthand;
12
+ }
13
+ export declare const notification: NotificationFn;
14
+ export {};
@@ -0,0 +1,44 @@
1
+ import { ExtractPropTypes, PropType, VNode } from 'vue';
2
+
3
+ export type NotificationType = 'success' | 'warning' | 'info' | 'error';
4
+ export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
5
+ export declare const notificationProps: {
6
+ /** 通知类型,决定图标与配色 */
7
+ readonly type: {
8
+ readonly type: PropType<NotificationType>;
9
+ readonly default: "info";
10
+ };
11
+ /** 标题 */
12
+ readonly title: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "";
15
+ };
16
+ /** 是否显示关闭按钮 */
17
+ readonly showClose: {
18
+ readonly type: BooleanConstructor;
19
+ readonly default: true;
20
+ };
21
+ };
22
+ export type NotificationProps = ExtractPropTypes<typeof notificationProps>;
23
+ /** notification() 命令式调用时的选项 */
24
+ export interface NotificationOptions {
25
+ /** 正文内容,支持字符串或 VNode */
26
+ message: string | VNode;
27
+ /** 标题 */
28
+ title?: string;
29
+ type?: NotificationType;
30
+ /** 自动关闭时间(ms),0 表示不自动关闭,默认 4500 */
31
+ duration?: number;
32
+ /** 出现位置,默认右上角 */
33
+ position?: NotificationPosition;
34
+ /** 是否显示关闭按钮,默认 true */
35
+ showClose?: boolean;
36
+ /** 点击通知卡片回调 */
37
+ onClick?: () => void;
38
+ /** 关闭(含自动关闭)后回调 */
39
+ onClose?: () => void;
40
+ }
41
+ /** notification() 返回的句柄,可手动调用 close() 关闭 */
42
+ export interface NotificationHandler {
43
+ close: () => void;
44
+ }
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Pagination } from './src/pagination.vue';
3
+
4
+ export declare const PaginationPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Pagination };
9
+ export default Pagination;
10
+ export * from './src/pagination';
@@ -0,0 +1,30 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const paginationProps: {
4
+ readonly modelValue: {
5
+ readonly type: NumberConstructor;
6
+ readonly default: 1;
7
+ };
8
+ readonly total: {
9
+ readonly type: NumberConstructor;
10
+ readonly default: 0;
11
+ };
12
+ readonly pageSize: {
13
+ readonly type: NumberConstructor;
14
+ readonly default: 10;
15
+ };
16
+ readonly pagerCount: {
17
+ readonly type: NumberConstructor;
18
+ readonly default: 7;
19
+ };
20
+ readonly layout: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "prev, pager, next";
23
+ };
24
+ readonly disabled: BooleanConstructor;
25
+ };
26
+ export declare const paginationEmits: {
27
+ 'update:modelValue': (page: number) => boolean;
28
+ change: (page: number) => boolean;
29
+ };
30
+ export type PaginationProps = ExtractPropTypes<typeof paginationProps>;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Popconfirm } from './src/popconfirm.vue';
3
+
4
+ export declare const PopconfirmPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Popconfirm };
9
+ export default Popconfirm;
10
+ export * from './src/popconfirm';
@@ -0,0 +1,56 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+
3
+ export declare const popconfirmProps: {
4
+ /** 是否显示(v-model) */
5
+ readonly modelValue: {
6
+ readonly type: BooleanConstructor;
7
+ readonly default: false;
8
+ };
9
+ /** 提示文案,也可用 #title 插槽自定义 */
10
+ readonly title: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "";
13
+ };
14
+ /** 确认按钮文案 */
15
+ readonly confirmText: {
16
+ readonly type: StringConstructor;
17
+ readonly default: "确定";
18
+ };
19
+ /** 取消按钮文案 */
20
+ readonly cancelText: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "取消";
23
+ };
24
+ /** 确认按钮类型 */
25
+ readonly confirmButtonType: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "primary";
28
+ };
29
+ /** 面板弹出位置 */
30
+ readonly placement: {
31
+ readonly type: StringConstructor;
32
+ readonly default: "top";
33
+ };
34
+ /** 面板基础宽度(min-width):内容更长时随按钮/文案自适应变宽 */
35
+ readonly width: {
36
+ readonly type: [NumberConstructor, StringConstructor];
37
+ readonly default: 180;
38
+ };
39
+ /** 触发方式:click | hover */
40
+ readonly trigger: {
41
+ readonly type: StringConstructor;
42
+ readonly default: "click";
43
+ };
44
+ /** 是否禁用 */
45
+ readonly disabled: BooleanConstructor;
46
+ };
47
+ export declare const popconfirmEmits: {
48
+ 'update:modelValue': (visible: boolean) => boolean;
49
+ /** 点击确认 */
50
+ confirm: () => boolean;
51
+ /** 点击取消 */
52
+ cancel: () => boolean;
53
+ /** 面板显隐变化 */
54
+ 'visible-change': (visible: boolean) => boolean;
55
+ };
56
+ export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as RichEditor } from './src/rich-editor.vue';
3
+
4
+ export declare const RichEditorPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { RichEditor };
9
+ export default RichEditor;
10
+ export * from './src/rich-editor';
@@ -0,0 +1,36 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+
3
+ export declare const richEditorProps: {
4
+ /** 富文本 HTML 内容(v-model) */
5
+ readonly modelValue: {
6
+ readonly type: StringConstructor;
7
+ readonly default: undefined;
8
+ };
9
+ /** 空内容时的占位文案 */
10
+ readonly placeholder: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "请输入内容";
13
+ };
14
+ /** 是否禁用 */
15
+ readonly disabled: BooleanConstructor;
16
+ /** 编辑区最小高度:数字按 px,字符串作为 CSS 长度 */
17
+ readonly minHeight: {
18
+ readonly type: [NumberConstructor, StringConstructor];
19
+ readonly default: 120;
20
+ };
21
+ /** 工具栏按钮子集(key 见 Tool 配置);缺省展示全部 */
22
+ readonly toolbar: {
23
+ readonly type: PropType<string[]>;
24
+ readonly default: undefined;
25
+ };
26
+ };
27
+ export declare const richEditorEmits: {
28
+ 'update:modelValue': (val: string) => boolean;
29
+ /** 内容变化时触发 */
30
+ input: (val: string) => boolean;
31
+ /** 失焦时触发(提交值) */
32
+ change: (val: string) => boolean;
33
+ focus: () => boolean;
34
+ blur: () => boolean;
35
+ };
36
+ export type RichEditorProps = ExtractPropTypes<typeof richEditorProps>;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as Select } from './src/select.vue';
3
+
4
+ export declare const SelectPlugin: {
5
+ name: string;
6
+ install(app: App): void;
7
+ };
8
+ export { Select };
9
+ export default Select;
10
+ export * from './src/select';
@@ -0,0 +1,45 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+
3
+ /** 下拉选项 */
4
+ export interface SelectOption {
5
+ label: string;
6
+ value: string | number;
7
+ disabled?: boolean;
8
+ }
9
+ export type SelectValue = string | number;
10
+ export type SelectValues = SelectValue[];
11
+ export declare const selectProps: {
12
+ /** 选中值(v-model)。multiple 时为数组 */
13
+ readonly modelValue: {
14
+ readonly type: PropType<SelectValue | SelectValues | undefined>;
15
+ readonly default: undefined;
16
+ };
17
+ /** 选项列表 */
18
+ readonly options: {
19
+ readonly type: PropType<SelectOption[]>;
20
+ readonly default: () => SelectOption[];
21
+ };
22
+ /** 空状态占位文案 */
23
+ readonly placeholder: {
24
+ readonly type: StringConstructor;
25
+ readonly default: "请选择";
26
+ };
27
+ /** 是否禁用 */
28
+ readonly disabled: BooleanConstructor;
29
+ /** 是否显示清除按钮 */
30
+ readonly clearable: BooleanConstructor;
31
+ /** 是否多选 */
32
+ readonly multiple: BooleanConstructor;
33
+ /** 是否可输入过滤 */
34
+ readonly filterable: BooleanConstructor;
35
+ };
36
+ export declare const selectEmits: {
37
+ 'update:modelValue': (_val: unknown) => boolean;
38
+ /** 选中值变化时触发(单选为值,多选为数组) */
39
+ change: (_val: unknown) => boolean;
40
+ /** 点击清除按钮触发 */
41
+ clear: () => boolean;
42
+ /** 下拉面板显隐变化 */
43
+ 'visible-change': (visible: boolean) => boolean;
44
+ };
45
+ export type SelectProps = ExtractPropTypes<typeof selectProps>;