jky-component-lib 0.0.122 → 0.0.123

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 (119) hide show
  1. package/dist/es/add-input/AddInput.vue.d.ts +27 -0
  2. package/dist/es/add-input/index.d.ts +5 -0
  3. package/dist/es/amap/AMap.vue.d.ts +61 -0
  4. package/dist/es/amap/AMarker.vue.d.ts +38 -0
  5. package/dist/es/amap/ATrackPlayback.vue.d.ts +69 -0
  6. package/dist/es/amap/index.d.ts +9 -0
  7. package/dist/es/amap/style.css +2 -13
  8. package/dist/es/amap/style2.css +13 -2
  9. package/dist/es/button/Button.vue.d.ts +33 -0
  10. package/dist/es/button/index.d.ts +4 -0
  11. package/dist/es/button-nav/ButtonNav.vue.d.ts +36 -0
  12. package/dist/es/button-nav/index.d.ts +4 -0
  13. package/dist/es/code-mirror-editor/CodeMirrorEditor.vue.d.ts +25 -0
  14. package/dist/es/code-mirror-editor/index.d.ts +5 -0
  15. package/dist/es/components.d.ts +18 -0
  16. package/dist/es/form/Form.vue.d.ts +461 -0
  17. package/dist/es/form/Form.vue.js +3 -22
  18. package/dist/es/form/FormItem.vue.d.ts +6 -0
  19. package/dist/es/form/FormItem.vue.js +1 -0
  20. package/dist/es/form/SelectTable.vue.d.ts +38 -0
  21. package/dist/es/form/index.d.ts +5 -0
  22. package/dist/es/index.d.ts +8 -0
  23. package/dist/es/menu/Menu.vue.d.ts +23 -0
  24. package/dist/es/menu/MenuItem.vue.d.ts +7 -0
  25. package/dist/es/menu/index.d.ts +5 -0
  26. package/dist/es/modal/Footer.vue.d.ts +10 -0
  27. package/dist/es/modal/Header.vue.d.ts +37 -0
  28. package/dist/es/modal/Modal.vue.d.ts +75 -0
  29. package/dist/es/modal/index.d.ts +5 -0
  30. package/dist/es/package.json.js +1 -1
  31. package/dist/es/page-header/PageHeader.vue.d.ts +31 -0
  32. package/dist/es/page-header/PopoverMenu.vue.d.ts +13 -0
  33. package/dist/es/page-header/index.d.ts +5 -0
  34. package/dist/es/page-layout/PageLayout.vue.d.ts +18 -0
  35. package/dist/es/page-layout/index.d.ts +5 -0
  36. package/dist/es/page-table/ActionColumn.vue.d.ts +11 -0
  37. package/dist/es/page-table/PageTable.vue.d.ts +5573 -0
  38. package/dist/es/page-table/PageTableColumn.vue.d.ts +36 -0
  39. package/dist/es/page-table/Toolbar.vue.d.ts +33 -0
  40. package/dist/es/page-table/index.d.ts +9 -0
  41. package/dist/es/page-table-v2/PageTableV2.vue.d.ts +1024 -0
  42. package/dist/es/page-table-v2/index.d.ts +4 -0
  43. package/dist/es/resolver.d.ts +2 -0
  44. package/dist/es/rich-editor/RichEditor.vue.d.ts +78 -0
  45. package/dist/es/rich-editor/index.d.ts +5 -0
  46. package/dist/es/say-hello/SayHello.vue.d.ts +5 -0
  47. package/dist/es/say-hello/index.d.ts +4 -0
  48. package/dist/es/tabs/ContextMenu.vue.d.ts +30 -0
  49. package/dist/es/tabs/Tabs.vue.d.ts +13 -0
  50. package/dist/es/tabs/config.d.ts +2 -0
  51. package/dist/es/tabs/createTabsGuard.d.ts +5 -0
  52. package/dist/es/tabs/index.d.ts +7 -0
  53. package/dist/es/tabs/useTabsStore.d.ts +6 -0
  54. package/dist/es/utils/index.d.ts +5 -0
  55. package/dist/es/utils/installer.d.ts +13 -0
  56. package/dist/es/utils/responsive-toolbar.d.ts +78 -0
  57. package/dist/es/utils/string.d.ts +18 -0
  58. package/dist/es/utils/types.d.ts +12 -0
  59. package/dist/es/utils/with-install.d.ts +2 -0
  60. package/dist/lib/add-input/AddInput.vue.d.ts +27 -0
  61. package/dist/lib/add-input/index.d.ts +5 -0
  62. package/dist/lib/amap/AMap.vue.d.ts +61 -0
  63. package/dist/lib/amap/AMarker.vue.d.ts +38 -0
  64. package/dist/lib/amap/ATrackPlayback.vue.d.ts +69 -0
  65. package/dist/lib/amap/index.d.ts +9 -0
  66. package/dist/lib/amap/style.css +2 -13
  67. package/dist/lib/amap/style2.css +13 -2
  68. package/dist/lib/button/Button.vue.d.ts +33 -0
  69. package/dist/lib/button/index.d.ts +4 -0
  70. package/dist/lib/button-nav/ButtonNav.vue.d.ts +36 -0
  71. package/dist/lib/button-nav/index.d.ts +4 -0
  72. package/dist/lib/code-mirror-editor/CodeMirrorEditor.vue.d.ts +25 -0
  73. package/dist/lib/code-mirror-editor/index.d.ts +5 -0
  74. package/dist/lib/components.d.ts +18 -0
  75. package/dist/lib/form/Form.vue.d.ts +461 -0
  76. package/dist/lib/form/Form.vue.js +3 -22
  77. package/dist/lib/form/FormItem.vue.d.ts +6 -0
  78. package/dist/lib/form/FormItem.vue.js +1 -0
  79. package/dist/lib/form/SelectTable.vue.d.ts +38 -0
  80. package/dist/lib/form/index.d.ts +5 -0
  81. package/dist/lib/index.d.ts +8 -0
  82. package/dist/lib/menu/Menu.vue.d.ts +23 -0
  83. package/dist/lib/menu/MenuItem.vue.d.ts +7 -0
  84. package/dist/lib/menu/index.d.ts +5 -0
  85. package/dist/lib/modal/Footer.vue.d.ts +10 -0
  86. package/dist/lib/modal/Header.vue.d.ts +37 -0
  87. package/dist/lib/modal/Modal.vue.d.ts +75 -0
  88. package/dist/lib/modal/index.d.ts +5 -0
  89. package/dist/lib/package.json.js +1 -1
  90. package/dist/lib/page-header/PageHeader.vue.d.ts +31 -0
  91. package/dist/lib/page-header/PopoverMenu.vue.d.ts +13 -0
  92. package/dist/lib/page-header/index.d.ts +5 -0
  93. package/dist/lib/page-layout/PageLayout.vue.d.ts +18 -0
  94. package/dist/lib/page-layout/index.d.ts +5 -0
  95. package/dist/lib/page-table/ActionColumn.vue.d.ts +11 -0
  96. package/dist/lib/page-table/PageTable.vue.d.ts +5573 -0
  97. package/dist/lib/page-table/PageTableColumn.vue.d.ts +36 -0
  98. package/dist/lib/page-table/Toolbar.vue.d.ts +33 -0
  99. package/dist/lib/page-table/index.d.ts +9 -0
  100. package/dist/lib/page-table-v2/PageTableV2.vue.d.ts +1024 -0
  101. package/dist/lib/page-table-v2/index.d.ts +4 -0
  102. package/dist/lib/resolver.d.ts +2 -0
  103. package/dist/lib/rich-editor/RichEditor.vue.d.ts +78 -0
  104. package/dist/lib/rich-editor/index.d.ts +5 -0
  105. package/dist/lib/say-hello/SayHello.vue.d.ts +5 -0
  106. package/dist/lib/say-hello/index.d.ts +4 -0
  107. package/dist/lib/tabs/ContextMenu.vue.d.ts +30 -0
  108. package/dist/lib/tabs/Tabs.vue.d.ts +13 -0
  109. package/dist/lib/tabs/config.d.ts +2 -0
  110. package/dist/lib/tabs/createTabsGuard.d.ts +5 -0
  111. package/dist/lib/tabs/index.d.ts +7 -0
  112. package/dist/lib/tabs/useTabsStore.d.ts +6 -0
  113. package/dist/lib/utils/index.d.ts +5 -0
  114. package/dist/lib/utils/installer.d.ts +13 -0
  115. package/dist/lib/utils/responsive-toolbar.d.ts +78 -0
  116. package/dist/lib/utils/string.d.ts +18 -0
  117. package/dist/lib/utils/types.d.ts +12 -0
  118. package/dist/lib/utils/with-install.d.ts +2 -0
  119. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ import { InstallWithSFC } from '../utils/types';
2
+ import { default as PageTableV2 } from './PageTableV2.vue';
3
+ export declare const JkyPageTableV2: InstallWithSFC<typeof PageTableV2>;
4
+ export default JkyPageTableV2;
@@ -0,0 +1,2 @@
1
+ import { ComponentResolver } from 'unplugin-vue-components';
2
+ export declare function JkyComponentLibResolver(): ComponentResolver;
@@ -0,0 +1,78 @@
1
+ import { RichEditorProps } from './types';
2
+ type __VLS_Props = RichEditorProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
7
+ editor: globalThis.Ref<any, any>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: string) => any;
10
+ } & {
11
+ "update:modelValue": (value: string) => any;
12
+ change: (value: string) => any;
13
+ blur: (event: Event) => any;
14
+ focus: (event: Event) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ onChange?: ((value: string) => any) | undefined;
18
+ onBlur?: ((event: Event) => any) | undefined;
19
+ onFocus?: ((event: Event) => any) | undefined;
20
+ }>, {
21
+ height: string;
22
+ modelValue: string;
23
+ disabled: boolean;
24
+ readonly: boolean;
25
+ placeholder: string;
26
+ toolbar: string | string[];
27
+ language: string;
28
+ plugins: string;
29
+ menubar: boolean | string;
30
+ branding: boolean;
31
+ statusbar: boolean;
32
+ apiKey: string;
33
+ init: Record<string, any>;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
35
+ editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').CopyProps<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').IPropTypes>>>, () => any, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
36
+ init: any;
37
+ apiKey: any;
38
+ licenseKey: any;
39
+ cloudChannel: any;
40
+ id: any;
41
+ initialValue: any;
42
+ outputFormat: any;
43
+ inline: any;
44
+ modelEvents: any;
45
+ plugins: any;
46
+ tagName: any;
47
+ toolbar: any;
48
+ modelValue: any;
49
+ disabled: any;
50
+ readonly: any;
51
+ tinymceScriptSrc: any;
52
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
53
+ P: {};
54
+ B: {};
55
+ D: {};
56
+ C: {};
57
+ M: {};
58
+ Defaults: {};
59
+ }, Readonly<globalThis.ExtractPropTypes<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').CopyProps<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').IPropTypes>>>, () => any, {}, {}, {}, {
60
+ init: any;
61
+ apiKey: any;
62
+ licenseKey: any;
63
+ cloudChannel: any;
64
+ id: any;
65
+ initialValue: any;
66
+ outputFormat: any;
67
+ inline: any;
68
+ modelEvents: any;
69
+ plugins: any;
70
+ tagName: any;
71
+ toolbar: any;
72
+ modelValue: any;
73
+ disabled: any;
74
+ readonly: any;
75
+ tinymceScriptSrc: any;
76
+ }> | null;
77
+ }, HTMLDivElement>;
78
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as RichEditor } from './RichEditor.vue';
3
+ export type { RichEditorEmits, RichEditorProps } from './types';
4
+ export declare const JkyRichEditor: InstallWithSFC<typeof RichEditor>;
5
+ export default JkyRichEditor;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as SayHello } from './SayHello.vue';
3
+ export declare const JkySayHello: InstallWithSFC<typeof SayHello>;
4
+ export default JkySayHello;
@@ -0,0 +1,30 @@
1
+ import { TabsContextMenuItem, TabsContextMenuProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<TabsContextMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ command: (command: {
13
+ key: string;
14
+ tab: TabsContextMenuProps["tab"];
15
+ }) => any;
16
+ }, string, import('vue').PublicProps, Readonly<TabsContextMenuProps> & Readonly<{
17
+ onCommand?: ((command: {
18
+ key: string;
19
+ tab: TabsContextMenuProps["tab"];
20
+ }) => any) | undefined;
21
+ }>, {
22
+ menuItems: TabsContextMenuItem[];
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,13 @@
1
+ import { Store } from 'pinia';
2
+ import { TabsProps, TabsStoreActions, TabsStoreState } from './types';
3
+ type __VLS_Props = TabsProps & {
4
+ store: Store<'tabs', TabsStoreState, object, TabsStoreActions>;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ round: boolean;
8
+ mode: "route" | "manual";
9
+ closable: boolean;
10
+ cachable: boolean;
11
+ contextMenu: boolean;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { TabsConfig } from './types';
2
+ export declare const defaultTabsConfig: TabsConfig;
@@ -0,0 +1,5 @@
1
+ import { Router } from 'vue-router';
2
+ import { TabsConfig } from './types';
3
+ export declare function createTabsGuard(router: Router, config?: Partial<TabsConfig>): {
4
+ syncCurrentRoute: () => void;
5
+ };
@@ -0,0 +1,7 @@
1
+ import { InstallWithSFC } from '../utils/types';
2
+ import { default as Tabs } from './Tabs.vue';
3
+ export { createTabsGuard } from './createTabsGuard';
4
+ export type { TabItem, TabsConfig, TabsContextMenuEmits, TabsContextMenuItem, TabsContextMenuProps, TabsProps, TabsStoreActions, TabsStoreState, } from './types';
5
+ export { createTabsStore } from './useTabsStore';
6
+ export declare const JkyTabs: InstallWithSFC<typeof Tabs>;
7
+ export default JkyTabs;
@@ -0,0 +1,6 @@
1
+ import { Store } from 'pinia';
2
+ import { TabsConfig, TabsStoreActions, TabsStoreState } from './types';
3
+ export declare function createTabsStore(config?: Partial<TabsConfig>): {
4
+ useTabsStore: () => Store<'tabs', TabsStoreState, object, TabsStoreActions>;
5
+ config: TabsConfig;
6
+ };
@@ -0,0 +1,5 @@
1
+ export * from './installer';
2
+ export * from './responsive-toolbar';
3
+ export * from './string';
4
+ export * from './types';
5
+ export * from './with-install';
@@ -0,0 +1,13 @@
1
+ import { App, Plugin } from 'vue';
2
+ import { InstallerOptions } from './types';
3
+ export declare const INSTALLED_KEY: unique symbol;
4
+ declare module 'vue' {
5
+ interface App {
6
+ [INSTALLED_KEY]?: boolean;
7
+ }
8
+ }
9
+ export interface JkyInstaller {
10
+ install: (app: App, options?: InstallerOptions) => void;
11
+ version: string;
12
+ }
13
+ export declare function createInstaller(components?: Plugin[]): JkyInstaller;
@@ -0,0 +1,78 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * 响应式工具栏配置
4
+ */
5
+ export interface UseResponsiveToolbarOptions {
6
+ /** 工具栏容器引用 */
7
+ toolbarRef: Ref<HTMLElement | null>;
8
+ /** 按钮数量限制(可选),超出此数量则折叠 */
9
+ buttonLimit?: number;
10
+ /** 按钮之间的间距(像素) */
11
+ buttonGap?: number;
12
+ /** 最小可见按钮数量(即使空间不够也会显示) */
13
+ minVisibleButtons?: number;
14
+ /** 工具栏可用宽度百分比(默认 0.5,即 50%) */
15
+ widthPercentage?: number;
16
+ }
17
+ /**
18
+ * 响应式工具栏返回值
19
+ */
20
+ export interface UseResponsiveToolbarReturn {
21
+ /** 可见的按钮数量 */
22
+ visibleCount: Ref<number>;
23
+ /** 是否需要折叠 */
24
+ needCollapse: Ref<boolean>;
25
+ /** 窗口宽度 */
26
+ windowWidth: Ref<number>;
27
+ /** 窗口高度 */
28
+ windowHeight: Ref<number>;
29
+ }
30
+ /**
31
+ * 响应式工具栏 Hook
32
+ * 用于监听窗口大小变化,自动计算工具栏按钮的折叠状态
33
+ *
34
+ * @param options 配置选项
35
+ * @returns 工具栏状态
36
+ *
37
+ * @example
38
+ * ```vue
39
+ * <script setup lang="ts">
40
+ * import { useResponsiveToolbar } from '../utils'
41
+ *
42
+ * const toolbarRef = ref<HTMLElement | null>(null)
43
+ * const { visibleCount, needCollapse, windowWidth } = useResponsiveToolbar({
44
+ * toolbarRef,
45
+ * buttonLimit: 3, // 最多显示 3 个按钮
46
+ * buttonGap: 8, // 按钮间距 8px
47
+ * minVisibleButtons: 1, // 至少显示 1 个按钮
48
+ * })
49
+ * </script>
50
+ *
51
+ * <template>
52
+ * <div ref="toolbarRef" class="toolbar">
53
+ * <template v-for="(button, index) in buttons" :key="index">
54
+ * <ElButton
55
+ * v-if="index < visibleCount || !needCollapse"
56
+ * :type="index < visibleCount ? 'primary' : 'default'"
57
+ * >
58
+ * {{ button.label }}
59
+ * </ElButton>
60
+ * </template>
61
+ * <ElDropdown v-if="needCollapse">
62
+ * <ElButton>更多</ElButton>
63
+ * <template #dropdown>
64
+ * <ElDropdownMenu>
65
+ * <ElDropdownItem
66
+ * v-for="(button, index) in buttons.slice(visibleCount)"
67
+ * :key="index"
68
+ * >
69
+ * {{ button.label }}
70
+ * </ElDropdownItem>
71
+ * </ElDropdownMenu>
72
+ * </template>
73
+ * </ElDropdown>
74
+ * </div>
75
+ * </template>
76
+ * ```
77
+ */
78
+ export declare function useResponsiveToolbar(options: UseResponsiveToolbarOptions): UseResponsiveToolbarReturn;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Convert a string to lowercase
3
+ * @param str - The string to convert
4
+ * @returns The lowercase string
5
+ */
6
+ export declare function toLowerCase(str: string): string;
7
+ /**
8
+ * Convert a string to kebab-case
9
+ * @param str - The string to convert
10
+ * @returns The kebab-case string
11
+ */
12
+ export declare function toKebabCase(str: string): string;
13
+ /**
14
+ * Convert a string to PascalCase
15
+ * @param str - The string to convert
16
+ * @returns The PascalCase string
17
+ */
18
+ export declare function toPascalCase(str: string): string;
@@ -0,0 +1,12 @@
1
+ import { ConfigProviderProps } from 'element-plus';
2
+ import { Plugin } from 'vue';
3
+ export type InstallWithSFC<T> = T & Plugin;
4
+ export interface ElementPlusOptions extends Partial<ConfigProviderProps> {
5
+ }
6
+ export interface InstallerOptions {
7
+ /**
8
+ * Element Plus configuration options
9
+ * These options will be passed to Element Plus when installing
10
+ */
11
+ elementPlusOptions?: ElementPlusOptions;
12
+ }
@@ -0,0 +1,2 @@
1
+ import { InstallWithSFC } from './types';
2
+ export declare function installWithSFC<T, E extends Record<string, any>>(main: T, extra?: E): InstallWithSFC<T> & E;
@@ -0,0 +1,27 @@
1
+ import { AddInputItem, AddInputProps } from './types';
2
+ type __VLS_Props = AddInputProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: AddInputItem[];
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: AddInputItem[]) => any;
8
+ } & {
9
+ "update:modelValue": (value: AddInputItem[]) => any;
10
+ change: (value: AddInputItem[]) => any;
11
+ add: () => any;
12
+ delete: (index: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: AddInputItem[]) => any) | undefined;
15
+ onChange?: ((value: AddInputItem[]) => any) | undefined;
16
+ onAdd?: (() => any) | undefined;
17
+ onDelete?: ((index: number) => any) | undefined;
18
+ }>, {
19
+ modelValue: AddInputItem[];
20
+ disabled: boolean;
21
+ readonly: boolean;
22
+ keyPlaceholder: string;
23
+ valuePlaceholder: string;
24
+ addButtonText: string;
25
+ deleteButtonText: string;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as AddInput } from './AddInput.vue';
3
+ export type { AddInputEmits, AddInputItem, AddInputProps } from './types';
4
+ export declare const JkyAddInput: InstallWithSFC<typeof AddInput>;
5
+ export default JkyAddInput;
@@ -0,0 +1,61 @@
1
+ import { AMapProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {
8
+ mapRef: HTMLDivElement;
9
+ };
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<AMapProps, {
14
+ getMapInstance: () => any;
15
+ addMarker: (options: any) => any;
16
+ removeMarker: (marker: any) => void;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ click: (data: any) => any;
19
+ moveend: (center: {
20
+ lng: number;
21
+ lat: number;
22
+ }) => any;
23
+ zoomend: (zoom: number) => any;
24
+ ready: (map: any) => any;
25
+ }, string, import('vue').PublicProps, Readonly<AMapProps> & Readonly<{
26
+ onClick?: ((data: any) => any) | undefined;
27
+ onMoveend?: ((center: {
28
+ lng: number;
29
+ lat: number;
30
+ }) => any) | undefined;
31
+ onZoomend?: ((zoom: number) => any) | undefined;
32
+ onReady?: ((map: any) => any) | undefined;
33
+ }>, {
34
+ width: string;
35
+ height: string;
36
+ token: string;
37
+ zoom: number;
38
+ viewMode: import('./types').MapViewMode;
39
+ showScale: boolean;
40
+ showHawkEye: boolean;
41
+ showToolbar: boolean;
42
+ showControlBar: boolean;
43
+ showGeolocation: boolean;
44
+ scalePosition: import('./types').ControlPosition;
45
+ hawkEyePosition: import('./types').ControlPosition;
46
+ toolbarPosition: import('./types').ControlPosition;
47
+ controlBarPosition: import('./types').ControlBarPosition;
48
+ geolocationPosition: import('./types').ControlPosition;
49
+ enableHighAccuracy: boolean;
50
+ timeout: number;
51
+ zoomToAccuracy: boolean;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
53
+ mapRef: HTMLDivElement;
54
+ }, HTMLDivElement>;
55
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ export default _default;
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
@@ -0,0 +1,38 @@
1
+ import { AMapMarkerProps, MarkerData } from './types';
2
+ declare function removeMarkers(): void;
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<AMapMarkerProps, {
13
+ getMarkers: () => any[];
14
+ clearMarkers: typeof removeMarkers;
15
+ addMarker: (data: MarkerData) => any;
16
+ removeMarker: (marker: any) => void;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ click: (marker: any, data: MarkerData) => any;
19
+ dragend: (marker: any, data: MarkerData) => any;
20
+ mouseout: (marker: any, data: MarkerData) => any;
21
+ mouseover: (marker: any, data: MarkerData) => any;
22
+ }, string, import('vue').PublicProps, Readonly<AMapMarkerProps> & Readonly<{
23
+ onClick?: ((marker: any, data: MarkerData) => any) | undefined;
24
+ onDragend?: ((marker: any, data: MarkerData) => any) | undefined;
25
+ onMouseout?: ((marker: any, data: MarkerData) => any) | undefined;
26
+ onMouseover?: ((marker: any, data: MarkerData) => any) | undefined;
27
+ }>, {
28
+ draggable: boolean;
29
+ visible: boolean;
30
+ updateMode: "incremental" | "full";
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,69 @@
1
+ import { AMapTrackPlaybackProps } from './types';
2
+ declare function startAnimation(): void;
3
+ declare function pauseAnimation(): void;
4
+ declare function resumeAnimation(): void;
5
+ declare function stopAnimation(): void;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ isPlaying: boolean;
11
+ isPaused: boolean;
12
+ start: typeof startAnimation;
13
+ pause: typeof pauseAnimation;
14
+ resume: typeof resumeAnimation;
15
+ stop: typeof stopAnimation;
16
+ }): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<AMapTrackPlaybackProps, {
23
+ start: typeof startAnimation;
24
+ pause: typeof pauseAnimation;
25
+ resume: typeof resumeAnimation;
26
+ stop: typeof stopAnimation;
27
+ isPlaying: globalThis.Ref<boolean, boolean>;
28
+ isPaused: globalThis.Ref<boolean, boolean>;
29
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
30
+ stop: () => any;
31
+ pause: () => any;
32
+ start: () => any;
33
+ resume: () => any;
34
+ end: () => any;
35
+ moving: (data: {
36
+ passedPath: import('./types').MapCenter[];
37
+ target: any;
38
+ }) => any;
39
+ }, string, import('vue').PublicProps, Readonly<AMapTrackPlaybackProps> & Readonly<{
40
+ onStop?: (() => any) | undefined;
41
+ onPause?: (() => any) | undefined;
42
+ onStart?: (() => any) | undefined;
43
+ onResume?: (() => any) | undefined;
44
+ onEnd?: (() => any) | undefined;
45
+ onMoving?: ((data: {
46
+ passedPath: import('./types').MapCenter[];
47
+ target: any;
48
+ }) => any) | undefined;
49
+ }>, {
50
+ duration: number;
51
+ autoPlay: boolean;
52
+ autoRotation: boolean;
53
+ loop: boolean;
54
+ showPath: boolean;
55
+ showPassedPath: boolean;
56
+ pathColor: string;
57
+ passedPathColor: string;
58
+ pathWeight: number;
59
+ carIcon: string;
60
+ carIconOffset: [number, number];
61
+ initialZoom: number;
62
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -0,0 +1,9 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as AMap } from './AMap.vue';
3
+ import { default as AMarker } from './AMarker.vue';
4
+ import { default as ATrackPlayback } from './ATrackPlayback.vue';
5
+ export declare const JkyAMap: InstallWithSFC<typeof AMap>;
6
+ export declare const JkyAMarker: InstallWithSFC<typeof AMarker>;
7
+ export declare const JkyATrackPlayback: InstallWithSFC<typeof ATrackPlayback>;
8
+ export default JkyAMap;
9
+ export { AMarker, ATrackPlayback };
@@ -1,14 +1,3 @@
1
- /* AMap 高德地图组件样式 */
2
- .jky-amap-container {
3
- /* 地图容器样式 */
4
- position: relative;
5
- overflow: hidden;
6
1
 
7
- /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
- .amap-logo {
9
- display: none !important;
10
- }
11
- .amap-copyright {
12
- display: none !important;
13
- }
14
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -1,3 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
14
+ }
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
3
+ size?: 'large' | 'default' | 'small';
4
+ disabled?: boolean;
5
+ loading?: boolean;
6
+ icon?: string;
7
+ iconPosition?: 'prefix' | 'suffix';
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ icon?(_: {}): any;
13
+ icon?(_: {}): any;
14
+ icon?(_: {}): any;
15
+ default?(_: {}): any;
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLButtonElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ click: () => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onClick?: (() => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,4 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as Button } from './Button.vue';
3
+ export declare const JkyButton: InstallWithSFC<typeof Button>;
4
+ export default JkyButton;
@@ -0,0 +1,36 @@
1
+ import { ButtonProps } from 'element-plus/es/components/button';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ type __VLS_Props = {
4
+ modelValue?: string | number;
5
+ items?: NavItem[];
6
+ limit?: number;
7
+ size?: ButtonProps['size'];
8
+ type?: ButtonProps['type'];
9
+ plain?: boolean;
10
+ buttonWidth?: string;
11
+ route?: boolean;
12
+ };
13
+ interface NavItem {
14
+ label: string;
15
+ value: string | number;
16
+ disabled?: boolean;
17
+ icon?: string;
18
+ to?: RouteLocationRaw;
19
+ }
20
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "update:modelValue": (value: string | number) => any;
22
+ change: (value: string | number) => any;
23
+ navClick: (item: NavItem) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
26
+ onChange?: ((value: string | number) => any) | undefined;
27
+ onNavClick?: ((item: NavItem) => any) | undefined;
28
+ }>, {
29
+ size: "" | "default" | "large" | "small";
30
+ type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
31
+ plain: boolean;
32
+ items: NavItem[];
33
+ limit: number;
34
+ route: boolean;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
36
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as ButtonNav } from './ButtonNav.vue';
3
+ export declare const JkyButtonNav: InstallWithSFC<typeof ButtonNav>;
4
+ export default JkyButtonNav;