@robot-admin/naive-ui-components 0.9.3 → 0.10.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 +82 -76
- package/LICENSE +21 -0
- package/README.md +314 -294
- package/dist/C_AvatarGroup.cjs +1 -1
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_AvatarGroup.js +1 -1
- package/dist/C_Cascade-CmCrLVft.css.map +1 -0
- package/dist/C_Cascade-U6A5AJJb.css.map +1 -0
- package/dist/C_Cascade.css +3 -3
- package/dist/C_Cascade.d.cts +2 -2
- package/dist/C_Cascade.d.ts +2 -2
- package/dist/C_Cascade.js.map +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Cascade2.js.map +1 -1
- package/dist/{C_Form-SCq-DZaZ.css.map → C_Form-B_2ql62V.css.map} +1 -1
- package/dist/{C_Form-mcd1nKvF.css.map → C_Form-CX-7xsz3.css.map} +1 -1
- package/dist/C_Form.css +60 -60
- package/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Form.js.map +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/C_Form2.js.map +1 -1
- package/dist/C_FullCalendar.js.map +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_FullCalendar2.js.map +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Icon.js.map +1 -1
- package/dist/C_Icon2.js.map +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Language.js.map +1 -1
- package/dist/C_Language2.js.map +1 -1
- package/dist/C_Steps-27Exh7PM.css.map +1 -0
- package/dist/C_Steps-DU9ZsFrs.css.map +1 -0
- package/dist/C_Steps.css +38 -38
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Steps.js.map +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Steps2.js.map +1 -1
- package/dist/C_Table.js.map +1 -1
- package/dist/C_Table2.js +3 -3
- package/dist/C_Table2.js.map +1 -1
- package/dist/{C_TagsView-COjGNM9h.css.map → C_TagsView-BN8vMRsY.css.map} +1 -1
- package/dist/{C_TagsView-zUDj9S06.css.map → C_TagsView-s1dnSJAV.css.map} +1 -1
- package/dist/C_TagsView.css +36 -36
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_TagsView.js.map +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_TagsView2.js.map +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Theme.js.map +1 -1
- package/dist/C_Theme2.js.map +1 -1
- package/dist/C_Timeline.cjs +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Timeline.js +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.ts +2 -2
- package/dist/constants4.d.ts +5 -5
- package/dist/data.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.vue.d.ts +1 -1
- package/dist/index10.vue.d.ts +2 -2
- package/dist/index11.vue.d.ts +3 -3
- package/dist/index12.vue.d.ts +1 -1
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index14.vue.d.ts +2 -2
- package/dist/index15.vue.d.ts +29 -9
- package/dist/index16.vue.d.ts +11 -4
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index2.vue.d.ts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.ts +3 -3
- package/dist/index23.vue.d.ts +15 -4
- package/dist/index24.vue.d.ts +13 -4
- package/dist/index25.vue.d.ts +4 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index27.vue.d.ts +3 -3
- package/dist/index28.vue.d.ts +4 -4
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index4.vue.d.ts +4 -4
- package/dist/index7.vue.d.ts +7 -5
- package/dist/index8.vue.d.ts +1 -1
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.cts +2 -21
- package/dist/resolver.d.ts +2 -21
- package/dist/resolver.js +1 -1
- package/dist/resolver.js.map +1 -1
- package/dist/style.css +141 -141
- package/dist/useCalendarEvents.d.ts +8 -5
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDraggableLayout.d.ts +4 -4
- package/dist/useDynamicFormState.d.ts +29 -3724
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useModalEdit.d.ts +5 -5
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.ts +1 -1
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useTimeSelection.d.ts +3 -3
- package/dist/useTreeOperations.d.ts +7 -7
- package/dist/useWorkflowValidation.d.ts +2 -2
- package/package.json +9 -1
- package/dist/C_Cascade-BE7t1OX5.css.map +0 -1
- package/dist/C_Cascade-CpDiau1y.css.map +0 -1
- package/dist/C_Steps-Buyg7Axn.css.map +0 -1
- package/dist/C_Steps-DNY91VbQ.css.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["C_Code","C_Icon","C_Upload","C_Barcode","C_Captcha","C_Cascade","C_Guide","C_Progress","C_Steps","C_ActionBar","C_Theme","C_Language","C_Date","C_Editor","C_Markdown","C_Map","C_City","C_VtableGantt","C_Signature","C_SplitPane","C_CollapsePanel","C_Time","C_FormSearch","C_Tree","C_QRCode","C_ImageCropper","C_Draggable","C_WaterFall","C_FullCalendar","C_NotificationCenter","C_Cron","C_FormulaEditor","C_AntV","C_VideoPlayer","C_FilePreview","C_WorkFlow","C_Form","C_Table","C_GlobalSearch","C_Menu","C_Breadcrumb","C_TagsView","C_AudioPlayer","C_AvatarGroup","C_Chat","C_ContextMenu","C_Login","C_Timeline","C_Transfer","C_Skeleton","C_OrgChart"],"sources":["../src/plugins/highlight.ts","../src/index.ts"],"sourcesContent":["\n\nimport type { App } from 'vue'\nimport type { HLJSApi, LanguageFn } from 'highlight.js'\nimport hljs from 'highlight.js/lib/core'\n\n// 导入默认主题样式\nimport 'highlight.js/styles/github.css'\n\n// 默认支持的语言包(常用语言预加载)\nimport javascript from 'highlight.js/lib/languages/javascript'\nimport typescript from 'highlight.js/lib/languages/typescript'\nimport json from 'highlight.js/lib/languages/json'\nimport xml from 'highlight.js/lib/languages/xml' // HTML\nimport css from 'highlight.js/lib/languages/css'\nimport bash from 'highlight.js/lib/languages/bash'\nimport yaml from 'highlight.js/lib/languages/yaml'\nimport markdown from 'highlight.js/lib/languages/markdown'\nimport java from 'highlight.js/lib/languages/java'\nimport csharp from 'highlight.js/lib/languages/csharp'\nimport go from 'highlight.js/lib/languages/go'\nimport python from 'highlight.js/lib/languages/python'\n\n// 可选语言包映射(懒加载)\nconst OPTIONAL_LANGUAGES: Record<\n string,\n () => Promise<{ default: LanguageFn }>\n> = {\n cpp: () => import('highlight.js/lib/languages/cpp'),\n c: () => import('highlight.js/lib/languages/c'),\n php: () => import('highlight.js/lib/languages/php'),\n ruby: () => import('highlight.js/lib/languages/ruby'),\n rust: () => import('highlight.js/lib/languages/rust'),\n swift: () => import('highlight.js/lib/languages/swift'),\n kotlin: () => import('highlight.js/lib/languages/kotlin'),\n scss: () => import('highlight.js/lib/languages/scss'),\n less: () => import('highlight.js/lib/languages/less'),\n sql: () => import('highlight.js/lib/languages/sql'),\n dockerfile: () => import('highlight.js/lib/languages/dockerfile'),\n powershell: () => import('highlight.js/lib/languages/powershell'),\n}\n\n// 插件配置选项\nexport interface HighlightPluginOptions {\n autoDetect?: boolean\n extraLanguages?: string[]\n}\n\n// 状态管理\nconst loadedLanguages = new Set<string>()\nconst hlJsInstance: HLJSApi = hljs\n\n/**\n * * @description 注册语言包到 highlight.js 实例\n * ? @param name - 语言名称\n * ? @param languageFn - 语言定义函数\n * ! @return void\n */\nfunction registerLanguage(name: string, languageFn: LanguageFn): void {\n hlJsInstance.registerLanguage(name, languageFn)\n loadedLanguages.add(name)\n}\n\n/**\n * * @description 初始化核心配置,注册默认语言包\n * ? @param options - 插件配置选项\n * ! @return void\n */\nfunction initializeCore(options: HighlightPluginOptions): void {\n // 注册默认语言包\n const defaultLanguages = [\n ['javascript', javascript],\n ['typescript', typescript],\n ['json', json],\n ['html', xml],\n ['xml', xml],\n ['css', css],\n ['bash', bash],\n ['shell', bash],\n ['yaml', yaml],\n ['yml', yaml],\n ['markdown', markdown],\n ['java', java],\n ['csharp', csharp],\n ['go', go],\n ['python', python],\n ] as const\n\n defaultLanguages.forEach(([name, langFn]) => {\n registerLanguage(name, langFn)\n })\n\n // 配置 highlight.js\n hlJsInstance.configure({\n ignoreUnescapedHTML: true,\n languages: options.autoDetect ? undefined : [],\n })\n\n // 预加载额外语言\n if (options.extraLanguages?.length) {\n loadLanguages(options.extraLanguages)\n }\n}\n\n/**\n * * @description 批量加载多个语言包\n * ? @param languages - 要加载的语言名称数组\n * ! @return Promise<string[]> 成功加载的语言名称数组\n */\nasync function loadLanguages(languages: string[]): Promise<string[]> {\n const loadPromises = languages.map(lang => loadLanguage(lang))\n const results = await Promise.allSettled(loadPromises)\n\n return results\n .map((result, index) =>\n result.status === 'fulfilled' ? languages[index] : null\n )\n .filter(Boolean) as string[]\n}\n\n/**\n * * @description 动态加载单个语言包\n * ? @param language - 要加载的语言名称\n * ! @return Promise<boolean> 是否加载成功\n */\nasync function loadLanguage(language: string): Promise<boolean> {\n if (loadedLanguages.has(language)) {\n return true\n }\n\n const loader = OPTIONAL_LANGUAGES[language.toLowerCase()]\n if (!loader) {\n console.warn(`[HighlightPlugin] Language '${language}' not supported`)\n return false\n }\n\n try {\n const languageModule = await loader()\n registerLanguage(language, languageModule.default)\n console.log(`[HighlightPlugin] Language '${language}' loaded successfully`)\n return true\n } catch (error) {\n console.error(\n `[HighlightPlugin] Failed to load language '${language}':`,\n error\n )\n return false\n }\n}\n\n/**\n * * @description 获取 highlight 功能的 API 接口\n * ! @return highlight API 对象,包含所有可用方法\n */\nexport const useHighlight = () => {\n return {\n // 核心方法\n getHljs: () => hlJsInstance,\n\n // 语言管理\n loadLanguage: (language: string) => loadLanguage(language),\n loadLanguages: (languages: string[]) => loadLanguages(languages),\n getLoadedLanguages: () => Array.from(loadedLanguages),\n }\n}\n\n/**\n * * @description 安装 highlight.js 插件到 Vue 应用\n * ? @param app - Vue 应用实例\n * ? @param options - 插件配置选项\n * ! @return void\n */\nexport function setupHighlight(app: App, options: HighlightPluginOptions = {}) {\n const pluginOptions: HighlightPluginOptions = {\n autoDetect: false,\n extraLanguages: [],\n ...options,\n }\n\n // 初始化核心配置\n initializeCore(pluginOptions)\n\n // 挂载到全局\n if (typeof window !== 'undefined') {\n window.hljs = hlJsInstance\n }\n\n // 提供给 Vue 应用\n const highlightAPI = useHighlight()\n app.provide('highlightManager', highlightAPI)\n app.config.globalProperties.$highlight = highlightAPI\n\n console.log('[HighlightPlugin] 🎨 highlight.js plugin installed successfully')\n}\n\n// 导出默认配置\nexport const defaultHighlightOptions: HighlightPluginOptions = {\n autoDetect: false,\n extraLanguages: [],\n}\n\n// 类型声明\ndeclare global {\n interface Window {\n hljs: HLJSApi\n }\n}\n","import type { App, Component } from 'vue'\n\n// ====== 全局样式由 sass CLI 编译到 dist/style.css,不再通过 JS 导入 ======\n\n// ====== 组件导入(仅用于 install 全量注册) ======\nimport { C_Code } from './components/C_Code'\nimport { C_Icon } from './components/C_Icon'\nimport { C_Upload } from './components/C_Upload'\nimport { C_Barcode } from './components/C_Barcode'\nimport { C_Captcha } from './components/C_Captcha'\nimport { C_Cascade } from './components/C_Cascade'\nimport { C_Guide } from './components/C_Guide'\nimport { C_Progress } from './components/C_Progress'\nimport { C_Steps } from './components/C_Steps'\nimport { C_ActionBar } from './components/C_ActionBar'\nimport { C_Theme } from './components/C_Theme'\nimport { C_Language } from './components/C_Language'\nimport { C_Date } from './components/C_Date'\nimport { C_Editor } from './components/C_Editor'\nimport { C_Markdown } from './components/C_Markdown'\nimport { C_Map } from './components/C_Map'\nimport { C_City } from './components/C_City'\nimport { C_VtableGantt } from './components/C_VtableGantt'\nimport { C_Signature } from './components/C_Signature'\nimport { C_SplitPane } from './components/C_SplitPane'\nimport { C_CollapsePanel } from './components/C_CollapsePanel'\nimport { C_Time } from './components/C_Time'\nimport { C_FormSearch } from './components/C_FormSearch'\nimport { C_Tree } from './components/C_Tree'\nimport { C_QRCode } from './components/C_QRCode'\nimport { C_ImageCropper } from './components/C_ImageCropper'\nimport { C_Draggable } from './components/C_Draggable'\nimport { C_WaterFall } from './components/C_WaterFall'\nimport { C_FullCalendar } from './components/C_FullCalendar'\nimport { C_NotificationCenter } from './components/C_NotificationCenter'\nimport { C_Cron } from './components/C_Cron'\nimport { C_FormulaEditor } from './components/C_FormulaEditor'\nimport { C_AntV } from './components/C_AntV'\nimport { C_VideoPlayer } from './components/C_VideoPlayer'\nimport { C_FilePreview } from './components/C_FilePreview'\nimport { C_WorkFlow } from './components/C_WorkFlow'\nimport { C_Form } from './components/C_Form'\nimport { C_Table } from './components/C_Table'\nimport { C_GlobalSearch } from './components/C_GlobalSearch'\nimport { C_Menu } from './components/C_Menu'\nimport { C_Breadcrumb } from './components/C_Breadcrumb'\nimport { C_TagsView } from './components/C_TagsView'\nimport { C_AudioPlayer } from './components/C_AudioPlayer'\nimport { C_AvatarGroup } from './components/C_AvatarGroup'\nimport { C_Chat } from './components/C_Chat'\nimport { C_ContextMenu } from './components/C_ContextMenu'\nimport { C_Login } from './components/C_Login'\nimport { C_Timeline } from './components/C_Timeline'\nimport { C_Transfer } from './components/C_Transfer'\nimport { C_Skeleton } from './components/C_Skeleton'\nimport { C_OrgChart } from './components/C_OrgChart'\n\n// ====== 插件 ======\nimport { setupHighlight, useHighlight } from './plugins/highlight'\n\n// ====== 安装选项 ======\nexport interface ComponentLibOptions {\n highlight?: import('./plugins/highlight').HighlightPluginOptions\n}\n\n// ====== 组件列表(全量注册使用) ======\nconst components: Component[] = [\n C_Code,\n C_Icon,\n C_Upload,\n C_Barcode,\n C_Captcha,\n C_Cascade,\n C_Guide,\n C_Progress,\n C_Steps,\n C_ActionBar,\n C_Theme,\n C_Language,\n C_Date,\n C_Editor,\n C_Markdown,\n C_Map,\n C_City,\n C_VtableGantt,\n C_Signature,\n C_SplitPane,\n C_CollapsePanel,\n C_Time,\n C_FormSearch,\n C_Tree,\n C_QRCode,\n C_ImageCropper,\n C_Draggable,\n C_WaterFall,\n C_FullCalendar,\n C_NotificationCenter,\n C_Cron,\n C_FormulaEditor,\n C_AntV,\n C_VideoPlayer,\n C_FilePreview,\n C_WorkFlow,\n C_Form,\n C_Table,\n C_GlobalSearch,\n C_Menu,\n C_Breadcrumb,\n C_TagsView,\n C_AudioPlayer,\n C_AvatarGroup,\n C_Chat,\n C_ContextMenu,\n C_Login,\n C_Timeline,\n C_Transfer,\n C_Skeleton,\n C_OrgChart,\n]\n\n// ====== Barrel Re-exports:所有组件 + composables + types + constants ======\nexport * from './components/C_Code'\nexport * from './components/C_Icon'\nexport * from './components/C_Upload'\nexport * from './components/C_Barcode'\nexport * from './components/C_Captcha'\nexport * from './components/C_Cascade'\nexport * from './components/C_Guide'\nexport * from './components/C_Progress'\nexport * from './components/C_Steps'\nexport * from './components/C_ActionBar'\nexport * from './components/C_Theme'\nexport * from './components/C_Language'\nexport * from './components/C_Date'\nexport * from './components/C_Editor'\nexport * from './components/C_Markdown'\nexport * from './components/C_Map'\nexport * from './components/C_City'\nexport * from './components/C_VtableGantt'\nexport * from './components/C_Signature'\nexport * from './components/C_SplitPane'\nexport * from './components/C_CollapsePanel'\nexport * from './components/C_Time'\nexport * from './components/C_FormSearch'\nexport * from './components/C_Tree'\nexport * from './components/C_QRCode'\nexport * from './components/C_ImageCropper'\nexport * from './components/C_Draggable'\nexport * from './components/C_WaterFall'\nexport * from './components/C_FullCalendar'\nexport * from './components/C_NotificationCenter'\nexport * from './components/C_Cron'\nexport * from './components/C_FormulaEditor'\nexport * from './components/C_AntV'\nexport * from './components/C_VideoPlayer'\nexport * from './components/C_FilePreview'\nexport * from './components/C_WorkFlow'\nexport * from './components/C_Form'\nexport * from './components/C_Table'\nexport * from './components/C_GlobalSearch'\nexport * from './components/C_Menu'\nexport * from './components/C_Breadcrumb'\nexport * from './components/C_TagsView'\nexport * from './components/C_AudioPlayer'\nexport * from './components/C_AvatarGroup'\nexport * from './components/C_Chat'\nexport * from './components/C_ContextMenu'\nexport * from './components/C_Login'\nexport * from './components/C_Timeline'\nexport * from './components/C_Transfer'\nexport * from './components/C_Skeleton'\nexport * from './components/C_OrgChart'\n\n// ====== 共享类型 + 适配器 ======\nexport * from './components/_shared'\n\n// ====== 工具函数(不属于任何组件的公共工具) ======\nexport { setItem, getItem, removeItem, removeAllItem } from './utils/storage'\n\n// ====== 插件导出 ======\nexport { setupHighlight, useHighlight }\nexport type { HighlightPluginOptions } from './plugins/highlight'\n\n// ====== 全量安装 ======\nconst install = (app: App, options: ComponentLibOptions = {}) => {\n components.forEach(component => {\n const name =\n (component as any).__name || (component as any).name || 'UnknownComponent'\n app.component(name, component)\n })\n\n if (options.highlight !== undefined) {\n setupHighlight(app, options.highlight)\n }\n}\n\nexport default {\n install,\n} satisfies { install: (app: App, options?: ComponentLibOptions) => void }\n"],"mappings":"itHAwBA,MAAM,GAGF,CACF,QAAW,OAAO,kCAClB,MAAS,OAAO,gCAChB,QAAW,OAAO,kCAClB,SAAY,OAAO,mCACnB,SAAY,OAAO,mCACnB,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C_Captcha","C_Cascade","C_Guide","C_Progress","C_Steps","C_ActionBar","C_Theme","C_Language","C_Date","C_Editor","C_Markdown","C_Map","C_City","C_VtableGantt","C_Signature","C_SplitPane","C_CollapsePanel","C_Time","C_FormSearch","C_Tree","C_QRCode","C_ImageCropper","C_Draggable","C_WaterFall","C_FullCalendar","C_NotificationCenter","C_Cron","C_FormulaEditor","C_AntV","C_VideoPlayer","C_FilePreview","C_WorkFlow","C_Form","C_Table","C_GlobalSearch","C_Menu","C_Breadcrumb","C_TagsView","C_AudioPlayer","C_AvatarGroup","C_Chat","C_ContextMenu","C_Login","C_Timeline","C_Transfer","C_Skeleton","C_OrgChart"],"sources":["../src/plugins/highlight.ts","../src/index.ts"],"sourcesContent":["\n\nimport type { App } from 'vue'\nimport type { HLJSApi, LanguageFn } from 'highlight.js'\nimport hljs from 'highlight.js/lib/core'\n\n// 导入默认主题样式\nimport 'highlight.js/styles/github.css'\n\n// 默认支持的语言包(常用语言预加载)\nimport javascript from 'highlight.js/lib/languages/javascript'\nimport typescript from 'highlight.js/lib/languages/typescript'\nimport json from 'highlight.js/lib/languages/json'\nimport xml from 'highlight.js/lib/languages/xml' // HTML\nimport css from 'highlight.js/lib/languages/css'\nimport bash from 'highlight.js/lib/languages/bash'\nimport yaml from 'highlight.js/lib/languages/yaml'\nimport markdown from 'highlight.js/lib/languages/markdown'\nimport java from 'highlight.js/lib/languages/java'\nimport csharp from 'highlight.js/lib/languages/csharp'\nimport go from 'highlight.js/lib/languages/go'\nimport python from 'highlight.js/lib/languages/python'\n\n// 可选语言包映射(懒加载)\nconst OPTIONAL_LANGUAGES: Record<\n string,\n () => Promise<{ default: LanguageFn }>\n> = {\n cpp: () => import('highlight.js/lib/languages/cpp'),\n c: () => import('highlight.js/lib/languages/c'),\n php: () => import('highlight.js/lib/languages/php'),\n ruby: () => import('highlight.js/lib/languages/ruby'),\n rust: () => import('highlight.js/lib/languages/rust'),\n swift: () => import('highlight.js/lib/languages/swift'),\n kotlin: () => import('highlight.js/lib/languages/kotlin'),\n scss: () => import('highlight.js/lib/languages/scss'),\n less: () => import('highlight.js/lib/languages/less'),\n sql: () => import('highlight.js/lib/languages/sql'),\n dockerfile: () => import('highlight.js/lib/languages/dockerfile'),\n powershell: () => import('highlight.js/lib/languages/powershell'),\n}\n\n// 插件配置选项\nexport interface HighlightPluginOptions {\n autoDetect?: boolean\n extraLanguages?: string[]\n}\n\n// 状态管理\nconst loadedLanguages = new Set<string>()\nconst hlJsInstance: HLJSApi = hljs\n\n/**\n * * @description 注册语言包到 highlight.js 实例\n * ? @param name - 语言名称\n * ? @param languageFn - 语言定义函数\n * ! @return void\n */\nfunction registerLanguage(name: string, languageFn: LanguageFn): void {\n hlJsInstance.registerLanguage(name, languageFn)\n loadedLanguages.add(name)\n}\n\n/**\n * * @description 初始化核心配置,注册默认语言包\n * ? @param options - 插件配置选项\n * ! @return void\n */\nfunction initializeCore(options: HighlightPluginOptions): void {\n // 注册默认语言包\n const defaultLanguages = [\n ['javascript', javascript],\n ['typescript', typescript],\n ['json', json],\n ['html', xml],\n ['xml', xml],\n ['css', css],\n ['bash', bash],\n ['shell', bash],\n ['yaml', yaml],\n ['yml', yaml],\n ['markdown', markdown],\n ['java', java],\n ['csharp', csharp],\n ['go', go],\n ['python', python],\n ] as const\n\n defaultLanguages.forEach(([name, langFn]) => {\n registerLanguage(name, langFn)\n })\n\n // 配置 highlight.js\n hlJsInstance.configure({\n ignoreUnescapedHTML: true,\n languages: options.autoDetect ? undefined : [],\n })\n\n // 预加载额外语言\n if (options.extraLanguages?.length) {\n loadLanguages(options.extraLanguages)\n }\n}\n\n/**\n * * @description 批量加载多个语言包\n * ? @param languages - 要加载的语言名称数组\n * ! @return Promise<string[]> 成功加载的语言名称数组\n */\nasync function loadLanguages(languages: string[]): Promise<string[]> {\n const loadPromises = languages.map(lang => loadLanguage(lang))\n const results = await Promise.allSettled(loadPromises)\n\n return results\n .map((result, index) =>\n result.status === 'fulfilled' ? languages[index] : null\n )\n .filter(Boolean) as string[]\n}\n\n/**\n * * @description 动态加载单个语言包\n * ? @param language - 要加载的语言名称\n * ! @return Promise<boolean> 是否加载成功\n */\nasync function loadLanguage(language: string): Promise<boolean> {\n if (loadedLanguages.has(language)) {\n return true\n }\n\n const loader = OPTIONAL_LANGUAGES[language.toLowerCase()]\n if (!loader) {\n console.warn(`[HighlightPlugin] Language '${language}' not supported`)\n return false\n }\n\n try {\n const languageModule = await loader()\n registerLanguage(language, languageModule.default)\n console.log(`[HighlightPlugin] Language '${language}' loaded successfully`)\n return true\n } catch (error) {\n console.error(\n `[HighlightPlugin] Failed to load language '${language}':`,\n error\n )\n return false\n }\n}\n\n/**\n * * @description 获取 highlight 功能的 API 接口\n * ! @return highlight API 对象,包含所有可用方法\n */\nexport const useHighlight = () => {\n return {\n // 核心方法\n getHljs: () => hlJsInstance,\n\n // 语言管理\n loadLanguage: (language: string) => loadLanguage(language),\n loadLanguages: (languages: string[]) => loadLanguages(languages),\n getLoadedLanguages: () => Array.from(loadedLanguages),\n }\n}\n\n/**\n * * @description 安装 highlight.js 插件到 Vue 应用\n * ? @param app - Vue 应用实例\n * ? @param options - 插件配置选项\n * ! @return void\n */\nexport function setupHighlight(app: App, options: HighlightPluginOptions = {}) {\n const pluginOptions: HighlightPluginOptions = {\n autoDetect: false,\n extraLanguages: [],\n ...options,\n }\n\n // 初始化核心配置\n initializeCore(pluginOptions)\n\n // 挂载到全局\n if (typeof window !== 'undefined') {\n window.hljs = hlJsInstance\n }\n\n // 提供给 Vue 应用\n const highlightAPI = useHighlight()\n app.provide('highlightManager', highlightAPI)\n app.config.globalProperties.$highlight = highlightAPI\n\n console.log('[HighlightPlugin] 🎨 highlight.js plugin installed successfully')\n}\n\n// 导出默认配置\nexport const defaultHighlightOptions: HighlightPluginOptions = {\n autoDetect: false,\n extraLanguages: [],\n}\n\n// 类型声明\ndeclare global {\n interface Window {\n hljs: HLJSApi\n }\n}\n","import type { App, Component } from 'vue'\n\n// ====== 全局样式由 sass CLI 编译到 dist/style.css,不再通过 JS 导入 ======\n\n// ====== 组件导入(仅用于 install 全量注册) ======\nimport { C_Code } from './components/C_Code'\nimport { C_Icon } from './components/C_Icon'\nimport { C_Upload } from './components/C_Upload'\nimport { C_Barcode } from './components/C_Barcode'\nimport { C_Captcha } from './components/C_Captcha'\nimport { C_Cascade } from './components/C_Cascade'\nimport { C_Guide } from './components/C_Guide'\nimport { C_Progress } from './components/C_Progress'\nimport { C_Steps } from './components/C_Steps'\nimport { C_ActionBar } from './components/C_ActionBar'\nimport { C_Theme } from './components/C_Theme'\nimport { C_Language } from './components/C_Language'\nimport { C_Date } from './components/C_Date'\nimport { C_Editor } from './components/C_Editor'\nimport { C_Markdown } from './components/C_Markdown'\nimport { C_Map } from './components/C_Map'\nimport { C_City } from './components/C_City'\nimport { C_VtableGantt } from './components/C_VtableGantt'\nimport { C_Signature } from './components/C_Signature'\nimport { C_SplitPane } from './components/C_SplitPane'\nimport { C_CollapsePanel } from './components/C_CollapsePanel'\nimport { C_Time } from './components/C_Time'\nimport { C_FormSearch } from './components/C_FormSearch'\nimport { C_Tree } from './components/C_Tree'\nimport { C_QRCode } from './components/C_QRCode'\nimport { C_ImageCropper } from './components/C_ImageCropper'\nimport { C_Draggable } from './components/C_Draggable'\nimport { C_WaterFall } from './components/C_WaterFall'\nimport { C_FullCalendar } from './components/C_FullCalendar'\nimport { C_NotificationCenter } from './components/C_NotificationCenter'\nimport { C_Cron } from './components/C_Cron'\nimport { C_FormulaEditor } from './components/C_FormulaEditor'\nimport { C_AntV } from './components/C_AntV'\nimport { C_VideoPlayer } from './components/C_VideoPlayer'\nimport { C_FilePreview } from './components/C_FilePreview'\nimport { C_WorkFlow } from './components/C_WorkFlow'\nimport { C_Form } from './components/C_Form'\nimport { C_Table } from './components/C_Table'\nimport { C_GlobalSearch } from './components/C_GlobalSearch'\nimport { C_Menu } from './components/C_Menu'\nimport { C_Breadcrumb } from './components/C_Breadcrumb'\nimport { C_TagsView } from './components/C_TagsView'\nimport { C_AudioPlayer } from './components/C_AudioPlayer'\nimport { C_AvatarGroup } from './components/C_AvatarGroup'\nimport { C_Chat } from './components/C_Chat'\nimport { C_ContextMenu } from './components/C_ContextMenu'\nimport { C_Login } from './components/C_Login'\nimport { C_Timeline } from './components/C_Timeline'\nimport { C_Transfer } from './components/C_Transfer'\nimport { C_Skeleton } from './components/C_Skeleton'\nimport { C_OrgChart } from './components/C_OrgChart'\n\n// ====== 插件 ======\nimport { setupHighlight, useHighlight } from './plugins/highlight'\n\n// ====== 安装选项 ======\nexport interface ComponentLibOptions {\n highlight?: import('./plugins/highlight').HighlightPluginOptions\n}\n\n// ====== 组件列表(全量注册使用) ======\nconst components: Component[] = [\n C_Code,\n C_Icon,\n C_Upload,\n C_Barcode,\n C_Captcha,\n C_Cascade,\n C_Guide,\n C_Progress,\n C_Steps,\n C_ActionBar,\n C_Theme,\n C_Language,\n C_Date,\n C_Editor,\n C_Markdown,\n C_Map,\n C_City,\n C_VtableGantt,\n C_Signature,\n C_SplitPane,\n C_CollapsePanel,\n C_Time,\n C_FormSearch,\n C_Tree,\n C_QRCode,\n C_ImageCropper,\n C_Draggable,\n C_WaterFall,\n C_FullCalendar,\n C_NotificationCenter,\n C_Cron,\n C_FormulaEditor,\n C_AntV,\n C_VideoPlayer,\n C_FilePreview,\n C_WorkFlow,\n C_Form,\n C_Table,\n C_GlobalSearch,\n C_Menu,\n C_Breadcrumb,\n C_TagsView,\n C_AudioPlayer,\n C_AvatarGroup,\n C_Chat,\n C_ContextMenu,\n C_Login,\n C_Timeline,\n C_Transfer,\n C_Skeleton,\n C_OrgChart,\n]\n\n// ====== Barrel Re-exports:所有组件 + composables + types + constants ======\nexport * from './components/C_Code'\nexport * from './components/C_Icon'\nexport * from './components/C_Upload'\nexport * from './components/C_Barcode'\nexport * from './components/C_Captcha'\nexport * from './components/C_Cascade'\nexport * from './components/C_Guide'\nexport * from './components/C_Progress'\nexport * from './components/C_Steps'\nexport * from './components/C_ActionBar'\nexport * from './components/C_Theme'\nexport * from './components/C_Language'\nexport * from './components/C_Date'\nexport * from './components/C_Editor'\nexport * from './components/C_Markdown'\nexport * from './components/C_Map'\nexport * from './components/C_City'\nexport * from './components/C_VtableGantt'\nexport * from './components/C_Signature'\nexport * from './components/C_SplitPane'\nexport * from './components/C_CollapsePanel'\nexport * from './components/C_Time'\nexport * from './components/C_FormSearch'\nexport * from './components/C_Tree'\nexport * from './components/C_QRCode'\nexport * from './components/C_ImageCropper'\nexport * from './components/C_Draggable'\nexport * from './components/C_WaterFall'\nexport * from './components/C_FullCalendar'\nexport * from './components/C_NotificationCenter'\nexport * from './components/C_Cron'\nexport * from './components/C_FormulaEditor'\nexport * from './components/C_AntV'\nexport * from './components/C_VideoPlayer'\nexport * from './components/C_FilePreview'\nexport * from './components/C_WorkFlow'\nexport * from './components/C_Form'\nexport * from './components/C_Table'\nexport * from './components/C_GlobalSearch'\nexport * from './components/C_Menu'\nexport * from './components/C_Breadcrumb'\nexport * from './components/C_TagsView'\nexport * from './components/C_AudioPlayer'\nexport * from './components/C_AvatarGroup'\nexport * from './components/C_Chat'\nexport * from './components/C_ContextMenu'\nexport * from './components/C_Login'\nexport * from './components/C_Timeline'\nexport * from './components/C_Transfer'\nexport * from './components/C_Skeleton'\nexport * from './components/C_OrgChart'\n\n// ====== 共享类型 + 适配器 ======\nexport * from './components/_shared'\n\n// ====== 工具函数(不属于任何组件的公共工具) ======\nexport { setItem, getItem, removeItem, removeAllItem } from './utils/storage'\n\n// ====== 插件导出 ======\nexport { setupHighlight, useHighlight }\nexport type { HighlightPluginOptions } from './plugins/highlight'\n\n// ====== 全量安装 ======\nconst install = (app: App, options: ComponentLibOptions = {}) => {\n components.forEach(component => {\n const name =\n (component as any).__name || (component as any).name || 'UnknownComponent'\n app.component(name, component)\n })\n\n if (options.highlight !== undefined) {\n setupHighlight(app, options.highlight)\n }\n}\n\nexport default {\n install,\n} satisfies { install: (app: App, options?: ComponentLibOptions) => void }\n"],"mappings":"ytHA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Q,YAAc,IAAA,IACxB,EAAe,EAAK,EAAQ,UAAU,EAMzC"}
|
package/dist/index.vue.d.ts
CHANGED
|
@@ -63,10 +63,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
|
|
|
63
63
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
64
64
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
config: ActionBarConfig;
|
|
67
66
|
actions: ActionItem[];
|
|
68
67
|
leftActions: ActionItem[];
|
|
69
68
|
rightActions: ActionItem[];
|
|
69
|
+
config: ActionBarConfig;
|
|
70
70
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
71
71
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
72
72
|
declare const _default: typeof __VLS_export;
|
package/dist/index10.vue.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
25
25
|
copyCode: typeof copyCode;
|
|
26
26
|
toggleFullscreen: typeof toggleFullscreen;
|
|
27
27
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
28
|
-
copy: (code: string) => any;
|
|
29
28
|
click: (event: MouseEvent) => any;
|
|
29
|
+
copy: (code: string) => any;
|
|
30
30
|
fullscreen: (isFullscreen: boolean) => any;
|
|
31
31
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
-
onCopy?: ((code: string) => any) | undefined;
|
|
33
32
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
33
|
+
onCopy?: ((code: string) => any) | undefined;
|
|
34
34
|
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
36
|
trim: boolean;
|
package/dist/index11.vue.d.ts
CHANGED
|
@@ -62,21 +62,21 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
|
|
|
62
62
|
visible: vue.ComputedRef<boolean>;
|
|
63
63
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
64
64
|
select: (item: ContextMenuItem) => any;
|
|
65
|
+
close: () => any;
|
|
65
66
|
open: (position: {
|
|
66
67
|
x: number;
|
|
67
68
|
y: number;
|
|
68
69
|
}) => any;
|
|
69
|
-
close: () => any;
|
|
70
70
|
}, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
|
|
71
71
|
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
72
|
+
onClose?: (() => any) | undefined;
|
|
72
73
|
onOpen?: ((position: {
|
|
73
74
|
x: number;
|
|
74
75
|
y: number;
|
|
75
76
|
}) => any) | undefined;
|
|
76
|
-
onClose?: (() => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
disabled: boolean;
|
|
79
78
|
items: ContextMenuItem[];
|
|
79
|
+
disabled: boolean;
|
|
80
80
|
zIndex: number;
|
|
81
81
|
minWidth: number;
|
|
82
82
|
maxWidth: number;
|
package/dist/index12.vue.d.ts
CHANGED
|
@@ -38,9 +38,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
38
38
|
"onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
39
39
|
"onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
|
+
mode: DatePickerMode;
|
|
41
42
|
placeholder: string;
|
|
42
43
|
disabled: boolean;
|
|
43
|
-
mode: DatePickerMode;
|
|
44
44
|
startPlaceholder: string;
|
|
45
45
|
endPlaceholder: string;
|
|
46
46
|
disabledBeforeToday: boolean;
|
package/dist/index13.vue.d.ts
CHANGED
|
@@ -28,11 +28,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
28
28
|
"onEditor-mounted"?: ((editor: any) => any) | undefined;
|
|
29
29
|
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
+
height: number;
|
|
31
32
|
modelValue: string;
|
|
32
33
|
placeholder: string;
|
|
33
34
|
disabled: boolean;
|
|
34
35
|
theme: "light" | "dark";
|
|
35
|
-
height: number;
|
|
36
36
|
readonly: boolean;
|
|
37
37
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
package/dist/index14.vue.d.ts
CHANGED
|
@@ -79,14 +79,14 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
79
79
|
resetCompleted: () => void;
|
|
80
80
|
isCompleted: () => boolean;
|
|
81
81
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
82
|
-
close: (currentStep: number) => any;
|
|
83
82
|
start: () => any;
|
|
84
83
|
complete: () => any;
|
|
84
|
+
close: (currentStep: number) => any;
|
|
85
85
|
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
87
|
-
onClose?: ((currentStep: number) => any) | undefined;
|
|
88
87
|
onStart?: (() => any) | undefined;
|
|
89
88
|
onComplete?: (() => any) | undefined;
|
|
89
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
90
90
|
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
92
|
keyboard: boolean;
|
package/dist/index15.vue.d.ts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/C_Icon/
|
|
3
|
+
//#region src/components/C_Icon/types.d.ts
|
|
4
4
|
interface IconProps {
|
|
5
|
+
name: string | unknown;
|
|
6
|
+
type?: 'iconify' | 'unocss' | 'component' | 'svg' | 'image';
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: number | string;
|
|
9
|
+
svgPath?: string;
|
|
10
|
+
viewBox?: string;
|
|
11
|
+
alt?: string;
|
|
12
|
+
clickable?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
fallbackIcon?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
customClass?: string;
|
|
18
|
+
rotate?: number;
|
|
19
|
+
flip?: 'horizontal' | 'vertical' | 'both';
|
|
20
|
+
componentProps?: Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/C_Icon/index.vue.d.ts
|
|
24
|
+
interface LegacyIconProps extends IconProps {
|
|
5
25
|
/** 图标名称/路径/组件实例 */
|
|
6
26
|
name: string | any;
|
|
7
27
|
/** 图标类型 */
|
|
@@ -35,7 +55,7 @@ interface IconProps {
|
|
|
35
55
|
/** 传递给组件的额外属性(仅type=component时使用) */
|
|
36
56
|
componentProps?: Record<string, any>;
|
|
37
57
|
}
|
|
38
|
-
declare const __VLS_export: vue.DefineComponent<
|
|
58
|
+
declare const __VLS_export: vue.DefineComponent<LegacyIconProps, {
|
|
39
59
|
/** 重新验证配置 */validate: () => void; /** 是否有错误 */
|
|
40
60
|
hasError: Readonly<vue.Ref<boolean, boolean>>; /** 错误信息 */
|
|
41
61
|
errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
|
|
@@ -44,29 +64,29 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
|
44
64
|
error: (type: string, error?: any) => any;
|
|
45
65
|
click: (event: MouseEvent) => any;
|
|
46
66
|
load: () => any;
|
|
47
|
-
}, string, vue.PublicProps, Readonly<
|
|
67
|
+
}, string, vue.PublicProps, Readonly<LegacyIconProps> & Readonly<{
|
|
48
68
|
onError?: ((type: string, error?: any) => any) | undefined;
|
|
49
69
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
50
70
|
onLoad?: (() => any) | undefined;
|
|
51
71
|
}>, {
|
|
52
|
-
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
53
|
-
name: string | any;
|
|
54
72
|
size: number | string;
|
|
55
73
|
color: string;
|
|
74
|
+
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
75
|
+
clickable: boolean;
|
|
76
|
+
title: string;
|
|
56
77
|
loading: boolean;
|
|
57
78
|
flip: "horizontal" | "vertical" | "both";
|
|
58
|
-
|
|
59
|
-
clickable: boolean;
|
|
60
|
-
rotate: number;
|
|
79
|
+
name: string | any;
|
|
61
80
|
svgPath: string;
|
|
62
81
|
viewBox: string;
|
|
63
82
|
alt: string;
|
|
64
83
|
fallbackIcon: string;
|
|
65
84
|
ariaLabel: string;
|
|
66
85
|
customClass: string;
|
|
86
|
+
rotate: number;
|
|
67
87
|
componentProps: Record<string, any>;
|
|
68
88
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
69
89
|
declare const _default: typeof __VLS_export;
|
|
70
90
|
//#endregion
|
|
71
|
-
export {
|
|
91
|
+
export { IconProps as n, _default as t };
|
|
72
92
|
//# sourceMappingURL=index15.vue.d.ts.map
|
package/dist/index16.vue.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/C_Language/
|
|
3
|
+
//#region src/components/C_Language/types.d.ts
|
|
4
4
|
interface LanguageOption {
|
|
5
5
|
key: string;
|
|
6
6
|
label: string;
|
|
7
7
|
iconClass?: string;
|
|
8
8
|
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/C_Language/index.vue.d.ts
|
|
11
|
+
interface LegacyLanguageOption extends LanguageOption {
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
iconClass?: string;
|
|
15
|
+
}
|
|
9
16
|
type __VLS_Props = {
|
|
10
17
|
modelValue?: string;
|
|
11
|
-
options?:
|
|
18
|
+
options?: LegacyLanguageOption[]; /** Tooltip 文案,默认 "语言切换" */
|
|
12
19
|
tooltip?: string;
|
|
13
20
|
};
|
|
14
21
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
@@ -19,10 +26,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
19
26
|
onChange?: ((key: string) => any) | undefined;
|
|
20
27
|
}>, {
|
|
21
28
|
modelValue: string;
|
|
22
|
-
options:
|
|
29
|
+
options: LegacyLanguageOption[];
|
|
23
30
|
tooltip: string;
|
|
24
31
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
25
32
|
declare const _default: typeof __VLS_export;
|
|
26
33
|
//#endregion
|
|
27
|
-
export {
|
|
34
|
+
export { LanguageOption as n, _default as t };
|
|
28
35
|
//# sourceMappingURL=index16.vue.d.ts.map
|
package/dist/index17.vue.d.ts
CHANGED
|
@@ -99,9 +99,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
|
99
99
|
"onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
|
|
100
100
|
"onRegister-send-code"?: ((phone: string) => any) | undefined;
|
|
101
101
|
}>, {
|
|
102
|
-
loading: boolean;
|
|
103
102
|
title: string;
|
|
104
103
|
storageKey: string;
|
|
104
|
+
loading: boolean;
|
|
105
105
|
defaultUsername: string;
|
|
106
106
|
defaultPassword: string;
|
|
107
107
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index18.vue.d.ts
CHANGED
|
@@ -58,11 +58,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
58
58
|
"onAuto-save"?: ((text: string) => any) | undefined;
|
|
59
59
|
"onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
|
+
mode: "edit" | "editable" | "preview";
|
|
62
|
+
height: string | number;
|
|
61
63
|
modelValue: string;
|
|
62
64
|
placeholder: string;
|
|
63
65
|
disabled: boolean;
|
|
64
|
-
height: string | number;
|
|
65
|
-
mode: "edit" | "editable" | "preview";
|
|
66
66
|
tocNavPosition: "left" | "right";
|
|
67
67
|
defaultFullscreen: boolean;
|
|
68
68
|
autofocus: boolean;
|
package/dist/index2.vue.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
70
70
|
onPlay?: ((index: number) => any) | undefined;
|
|
71
71
|
onModeChange?: ((mode: string) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
|
-
theme: "default" | "minimal";
|
|
74
73
|
mode: "list" | "single" | "loop" | "shuffle";
|
|
74
|
+
theme: "default" | "minimal";
|
|
75
75
|
autoplay: boolean;
|
|
76
76
|
initialIndex: number;
|
|
77
77
|
showPlaylist: boolean;
|
package/dist/index20.vue.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
|
78
78
|
"onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
|
|
79
79
|
}>, {
|
|
80
80
|
direction: OrgChartDirection;
|
|
81
|
+
collapsible: boolean;
|
|
81
82
|
lineColor: string;
|
|
82
83
|
lineStyle: OrgChartLineStyle;
|
|
83
84
|
lineWidth: number;
|
|
@@ -88,7 +89,6 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
|
88
89
|
initialZoom: number;
|
|
89
90
|
minZoom: number;
|
|
90
91
|
maxZoom: number;
|
|
91
|
-
collapsible: boolean;
|
|
92
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
package/dist/index21.vue.d.ts
CHANGED
|
@@ -34,12 +34,12 @@ type __VLS_Slots = {} & {
|
|
|
34
34
|
indicator?: (props: typeof __VLS_9) => any;
|
|
35
35
|
};
|
|
36
36
|
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
37
|
-
status: "default" | "success" | "error" | "warning" | "info";
|
|
38
37
|
percentage: number | number[];
|
|
39
38
|
isAnimation: boolean;
|
|
40
39
|
time: number;
|
|
41
40
|
indicatorPlacement: "inside" | "outside";
|
|
42
41
|
showIndicator: boolean;
|
|
42
|
+
status: "default" | "success" | "error" | "warning" | "info";
|
|
43
43
|
strokeWidth: number;
|
|
44
44
|
unit: string;
|
|
45
45
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index22.vue.d.ts
CHANGED
|
@@ -86,11 +86,11 @@ type __VLS_Slots = {} & {
|
|
|
86
86
|
default?: (props: typeof __VLS_1) => any;
|
|
87
87
|
};
|
|
88
88
|
declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
89
|
-
repeat: number;
|
|
90
|
-
loading: boolean;
|
|
91
89
|
borderRadius: string;
|
|
92
|
-
animation: SkeletonAnimation;
|
|
93
90
|
preset: SkeletonPreset;
|
|
91
|
+
loading: boolean;
|
|
92
|
+
animation: SkeletonAnimation;
|
|
93
|
+
repeat: number;
|
|
94
94
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
95
95
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
96
96
|
declare const _default: typeof __VLS_export;
|
package/dist/index23.vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/C_Steps/
|
|
3
|
+
//#region src/components/C_Steps/types.d.ts
|
|
4
4
|
interface StepItem {
|
|
5
5
|
title: string;
|
|
6
6
|
description?: string;
|
|
@@ -10,8 +10,19 @@ interface StepItem {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
detail?: string;
|
|
12
12
|
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/C_Steps/index.vue.d.ts
|
|
15
|
+
interface LegacyStepItem extends StepItem {
|
|
16
|
+
title: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
time?: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
status?: 'wait' | 'process' | 'finish' | 'error';
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
detail?: string;
|
|
23
|
+
}
|
|
13
24
|
type __VLS_Props = {
|
|
14
|
-
steps:
|
|
25
|
+
steps: LegacyStepItem[];
|
|
15
26
|
current?: number;
|
|
16
27
|
direction?: 'horizontal' | 'vertical';
|
|
17
28
|
clickable?: boolean; /** 水平模式下线条是否与图标紧密相连,默认 false(两端留有对称间距)*/
|
|
@@ -24,12 +35,12 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
24
35
|
onChange?: ((args_0: number) => any) | undefined;
|
|
25
36
|
"onUpdate:current"?: ((args_0: number) => any) | undefined;
|
|
26
37
|
}>, {
|
|
27
|
-
direction: "horizontal" | "vertical";
|
|
28
38
|
clickable: boolean;
|
|
39
|
+
direction: "horizontal" | "vertical";
|
|
29
40
|
current: number;
|
|
30
41
|
connected: boolean;
|
|
31
42
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
32
43
|
declare const _default: typeof __VLS_export;
|
|
33
44
|
//#endregion
|
|
34
|
-
export {
|
|
45
|
+
export { StepItem as n, _default as t };
|
|
35
46
|
//# sourceMappingURL=index23.vue.d.ts.map
|
package/dist/index24.vue.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare function useTagsView(options?: UseTagsViewOptions): {
|
|
|
34
34
|
removeAllTags: () => void;
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region src/components/C_TagsView/
|
|
37
|
+
//#region src/components/C_TagsView/types.d.ts
|
|
38
38
|
interface ContextMenuLabels {
|
|
39
39
|
close?: string;
|
|
40
40
|
closeOthers?: string;
|
|
@@ -42,6 +42,15 @@ interface ContextMenuLabels {
|
|
|
42
42
|
closeRight?: string;
|
|
43
43
|
closeAll?: string;
|
|
44
44
|
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/C_TagsView/index.vue.d.ts
|
|
47
|
+
interface LegacyContextMenuLabels extends ContextMenuLabels {
|
|
48
|
+
close?: string;
|
|
49
|
+
closeOthers?: string;
|
|
50
|
+
closeLeft?: string;
|
|
51
|
+
closeRight?: string;
|
|
52
|
+
closeAll?: string;
|
|
53
|
+
}
|
|
45
54
|
type __VLS_Props = {
|
|
46
55
|
/**
|
|
47
56
|
* 标签文本格式化函数(用于 i18n)
|
|
@@ -51,7 +60,7 @@ type __VLS_Props = {
|
|
|
51
60
|
homeTitle?: string; /** 首页图标 */
|
|
52
61
|
homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
|
|
53
62
|
persistKey?: string; /** 右键菜单文案(国际化适配) */
|
|
54
|
-
contextMenuLabels?:
|
|
63
|
+
contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
|
|
55
64
|
tagsViewOptions?: UseTagsViewOptions;
|
|
56
65
|
};
|
|
57
66
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
@@ -80,9 +89,9 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
|
80
89
|
homePath: string;
|
|
81
90
|
homeTitle: string;
|
|
82
91
|
homeIcon: string;
|
|
83
|
-
contextMenuLabels:
|
|
92
|
+
contextMenuLabels: LegacyContextMenuLabels;
|
|
84
93
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
85
94
|
declare const _default: typeof __VLS_export;
|
|
86
95
|
//#endregion
|
|
87
|
-
export { useTagsView as i,
|
|
96
|
+
export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
|
|
88
97
|
//# sourceMappingURL=index24.vue.d.ts.map
|
package/dist/index25.vue.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/C_Theme/
|
|
3
|
+
//#region src/components/C_Theme/types.d.ts
|
|
4
4
|
type ThemeMode = 'system' | 'light' | 'dark';
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/C_Theme/index.vue.d.ts
|
|
5
7
|
type __VLS_Props = {
|
|
6
8
|
modelValue?: ThemeMode;
|
|
7
9
|
};
|
|
@@ -14,5 +16,5 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
14
16
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
15
17
|
declare const _default: typeof __VLS_export;
|
|
16
18
|
//#endregion
|
|
17
|
-
export {
|
|
19
|
+
export { ThemeMode as n, _default as t };
|
|
18
20
|
//# sourceMappingURL=index25.vue.d.ts.map
|
package/dist/index26.vue.d.ts
CHANGED
|
@@ -90,10 +90,10 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
|
90
90
|
onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
|
|
91
91
|
"onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
|
|
92
92
|
}>, {
|
|
93
|
-
reverse: boolean;
|
|
94
93
|
size: "small" | "medium" | "large";
|
|
95
|
-
items: TimelineItem[];
|
|
96
94
|
mode: "vertical" | "horizontal";
|
|
95
|
+
reverse: boolean;
|
|
96
|
+
items: TimelineItem[];
|
|
97
97
|
labelPlacement: "left" | "right" | "alternate";
|
|
98
98
|
pending: boolean;
|
|
99
99
|
pendingText: string;
|
package/dist/index27.vue.d.ts
CHANGED
|
@@ -62,14 +62,14 @@ type __VLS_Props = {
|
|
|
62
62
|
};
|
|
63
63
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
64
64
|
"update:modelValue": (value: (string | number)[]) => any;
|
|
65
|
-
change: (targetKeys: (string | number)[], direction: "
|
|
65
|
+
change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
67
|
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
68
|
-
onChange?: ((targetKeys: (string | number)[], direction: "
|
|
68
|
+
onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
|
|
69
69
|
}>, {
|
|
70
70
|
size: "small" | "medium" | "large";
|
|
71
|
-
filterable: boolean;
|
|
72
71
|
titles: [string, string];
|
|
72
|
+
filterable: boolean;
|
|
73
73
|
filterPlaceholder: string;
|
|
74
74
|
showSelectAll: boolean;
|
|
75
75
|
sourceEmptyText: string;
|
package/dist/index28.vue.d.ts
CHANGED
|
@@ -647,13 +647,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
647
647
|
onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
|
|
648
648
|
onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
|
|
649
649
|
}>, {
|
|
650
|
-
theme: "light" | "dark";
|
|
651
|
-
options: GanttOptions;
|
|
652
650
|
height: string | number;
|
|
653
|
-
title: string;
|
|
654
651
|
data: GanttTask[];
|
|
655
|
-
|
|
652
|
+
title: string;
|
|
656
653
|
preset: GanttPreset;
|
|
654
|
+
options: GanttOptions;
|
|
655
|
+
theme: "light" | "dark";
|
|
656
|
+
showToolbar: boolean;
|
|
657
657
|
showFullscreenButton: boolean;
|
|
658
658
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
659
659
|
declare const _default: typeof __VLS_export;
|
package/dist/index3.vue.d.ts
CHANGED
|
@@ -73,14 +73,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
73
73
|
onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
75
|
size: number;
|
|
76
|
-
overlap: number;
|
|
77
|
-
direction: "ltr" | "rtl";
|
|
78
76
|
max: number;
|
|
77
|
+
overlap: number;
|
|
79
78
|
shape: "circle" | "square";
|
|
80
79
|
showStatus: boolean;
|
|
81
80
|
showTooltip: boolean;
|
|
82
81
|
clickable: boolean;
|
|
83
82
|
overflowClickable: boolean;
|
|
83
|
+
direction: "ltr" | "rtl";
|
|
84
84
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
85
85
|
declare const _default: typeof __VLS_export;
|
|
86
86
|
//#endregion
|
package/dist/index4.vue.d.ts
CHANGED
|
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
|
|
|
20
20
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
21
21
|
onError?: ((error: Error) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
+
showBorder: boolean;
|
|
23
24
|
label: string;
|
|
24
|
-
|
|
25
|
+
showLabel: boolean;
|
|
25
26
|
height: number;
|
|
26
|
-
|
|
27
|
+
width: number;
|
|
27
28
|
format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
|
|
28
29
|
showText: boolean;
|
|
30
|
+
fontSize: number;
|
|
29
31
|
textPosition: "bottom" | "top";
|
|
30
32
|
lineColor: string;
|
|
31
33
|
background: string;
|
|
32
|
-
showBorder: boolean;
|
|
33
|
-
showLabel: boolean;
|
|
34
34
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
36
36
|
//#endregion
|
package/dist/index7.vue.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/C_Cascade/
|
|
3
|
+
//#region src/components/C_Cascade/types.d.ts
|
|
4
4
|
interface CascadeItem {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string | number;
|
|
7
7
|
children?: CascadeItem[];
|
|
8
8
|
}
|
|
9
9
|
interface CascadeValue {
|
|
10
|
-
primary?: Pick<CascadeItem,
|
|
11
|
-
secondary?: Pick<CascadeItem,
|
|
12
|
-
tertiary?: Pick<CascadeItem,
|
|
10
|
+
primary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
11
|
+
secondary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
12
|
+
tertiary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
13
13
|
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/C_Cascade/index.vue.d.ts
|
|
14
16
|
type __VLS_Props = {
|
|
15
17
|
data: CascadeItem[];
|
|
16
18
|
placeholders?: string[];
|
|
@@ -27,5 +29,5 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
27
29
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
28
30
|
declare const _default: typeof __VLS_export;
|
|
29
31
|
//#endregion
|
|
30
|
-
export {
|
|
32
|
+
export { CascadeItem as n, CascadeValue as r, _default as t };
|
|
31
33
|
//# sourceMappingURL=index7.vue.d.ts.map
|
package/dist/index8.vue.d.ts
CHANGED
|
@@ -105,11 +105,11 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
|
105
105
|
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
107
|
placeholder: string;
|
|
108
|
-
title: string;
|
|
109
108
|
showContacts: boolean;
|
|
110
109
|
showTimestamp: boolean;
|
|
111
110
|
showSendBtn: boolean;
|
|
112
111
|
loadingHistory: boolean;
|
|
112
|
+
title: string;
|
|
113
113
|
contacts: ChatContact[];
|
|
114
114
|
messages: ChatMessage[];
|
|
115
115
|
currentContactId: string;
|