@robot-admin/naive-ui-components 0.4.3 → 0.4.4
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/dist/C_ActionBar.cjs +1 -5
- package/dist/C_ActionBar.js +1 -4
- package/dist/C_ActionBar.js.map +1 -0
- package/dist/C_ActionBar2.js +1 -195
- package/dist/C_ActionBar2.js.map +1 -1
- package/dist/C_AntV.cjs +1 -8
- package/dist/C_AntV.js +1 -4
- package/dist/C_AntV.js.map +1 -0
- package/dist/C_AntV2.js +4 -3149
- package/dist/C_AntV2.js.map +1 -1
- package/dist/C_Barcode.cjs +1 -4
- package/dist/C_Barcode.js +1 -3
- package/dist/C_Barcode.js.map +1 -0
- package/dist/C_Barcode2.js +1 -67
- package/dist/C_Barcode2.js.map +1 -1
- package/dist/C_Captcha.cjs +1 -4
- package/dist/C_Captcha.js +1 -3
- package/dist/C_Captcha.js.map +1 -0
- package/dist/C_Captcha2.js +1 -154
- package/dist/C_Captcha2.js.map +1 -1
- package/dist/C_Cascade.cjs +1 -4
- package/dist/C_Cascade.js +1 -3
- package/dist/C_Cascade.js.map +1 -0
- package/dist/C_Cascade2.js +1 -102
- package/dist/C_Cascade2.js.map +1 -1
- package/dist/C_City.cjs +1 -4
- package/dist/C_City.js +1 -3
- package/dist/C_City.js.map +1 -0
- package/dist/C_City2.js +1 -840
- package/dist/C_City2.js.map +1 -1
- package/dist/C_Code.cjs +1 -5
- package/dist/C_Code.js +1 -4
- package/dist/C_Code.js.map +1 -0
- package/dist/C_Code2.js +1 -346
- package/dist/C_Code2.js.map +1 -1
- package/dist/C_CollapsePanel.cjs +1 -6
- package/dist/C_CollapsePanel.js +1 -4
- package/dist/C_CollapsePanel.js.map +1 -0
- package/dist/C_CollapsePanel2.js +1 -318
- package/dist/C_CollapsePanel2.js.map +1 -1
- package/dist/C_Cron.cjs +1 -15
- package/dist/C_Cron.js +1 -4
- package/dist/C_Cron.js.map +1 -0
- package/dist/C_Cron2.js +1 -1209
- package/dist/C_Cron2.js.map +1 -1
- package/dist/C_Date.cjs +1 -4
- package/dist/C_Date.js +1 -3
- package/dist/C_Date.js.map +1 -0
- package/dist/C_Date2.js +1 -218
- package/dist/C_Date2.js.map +1 -1
- package/dist/C_Draggable.cjs +1 -5
- package/dist/C_Draggable.js +1 -3
- package/dist/C_Draggable.js.map +1 -0
- package/dist/C_Draggable2.js +1 -294
- package/dist/C_Draggable2.js.map +1 -1
- package/dist/C_Editor.cjs +1 -4
- package/dist/C_Editor.js +1 -3
- package/dist/C_Editor.js.map +1 -0
- package/dist/C_Editor2.js +1 -159
- package/dist/C_Editor2.js.map +1 -1
- package/dist/C_FilePreview.cjs +1 -7
- package/dist/C_FilePreview.js +1 -4
- package/dist/C_FilePreview.js.map +1 -0
- package/dist/C_FilePreview2.js +1 -1031
- package/dist/C_FilePreview2.js.map +1 -1
- package/dist/C_Form.cjs +1 -16
- package/dist/C_Form.js +1 -5
- package/dist/C_Form.js.map +1 -0
- package/dist/C_Form2.js +1 -2569
- package/dist/C_Form2.js.map +1 -1
- package/dist/C_FormSearch.cjs +1 -6
- package/dist/C_FormSearch.js +1 -3
- package/dist/C_FormSearch.js.map +1 -0
- package/dist/C_FormSearch2.js +1 -355
- package/dist/C_FormSearch2.js.map +1 -1
- package/dist/C_FormulaEditor.cjs +1 -13
- package/dist/C_FormulaEditor.js +1 -4
- package/dist/C_FormulaEditor.js.map +1 -0
- package/dist/C_FormulaEditor2.js +1 -1432
- package/dist/C_FormulaEditor2.js.map +1 -1
- package/dist/C_FullCalendar.cjs +1 -9
- package/dist/C_FullCalendar.js +1 -3
- package/dist/C_FullCalendar.js.map +1 -0
- package/dist/C_FullCalendar2.js +1 -376
- package/dist/C_FullCalendar2.js.map +1 -1
- package/dist/C_GlobalSearch.cjs +1 -5
- package/dist/C_GlobalSearch.js +1 -3
- package/dist/C_GlobalSearch.js.map +1 -0
- package/dist/C_GlobalSearch2.js +1 -335
- package/dist/C_GlobalSearch2.js.map +1 -1
- package/dist/C_Guide.cjs +1 -5
- package/dist/C_Guide.js +1 -4
- package/dist/C_Guide.js.map +1 -0
- package/dist/C_Guide2.js +1 -60
- package/dist/C_Guide2.js.map +1 -1
- package/dist/C_Icon.cjs +1 -4
- package/dist/C_Icon.js +1 -3
- package/dist/C_Icon.js.map +1 -0
- package/dist/C_Icon2.js +1 -285
- package/dist/C_Icon2.js.map +1 -1
- package/dist/C_ImageCropper.cjs +1 -6
- package/dist/C_ImageCropper.js +1 -4
- package/dist/C_ImageCropper.js.map +1 -0
- package/dist/C_ImageCropper2.js +1 -722
- package/dist/C_ImageCropper2.js.map +1 -1
- package/dist/C_Language.cjs +1 -5
- package/dist/C_Language.js +1 -4
- package/dist/C_Language.js.map +1 -0
- package/dist/C_Language2.js +1 -78
- package/dist/C_Language2.js.map +1 -1
- package/dist/C_Map.cjs +1 -7
- package/dist/C_Map.js +1 -3
- package/dist/C_Map.js.map +1 -0
- package/dist/C_Map2.js +1 -198
- package/dist/C_Map2.js.map +1 -1
- package/dist/C_Markdown.cjs +1 -4
- package/dist/C_Markdown.js +1 -3
- package/dist/C_Markdown.js.map +1 -0
- package/dist/C_Markdown2.js +1 -185
- package/dist/C_Markdown2.js.map +1 -1
- package/dist/C_NotificationCenter.cjs +1 -20
- package/dist/C_NotificationCenter.js +1 -4
- package/dist/C_NotificationCenter.js.map +1 -0
- package/dist/C_NotificationCenter2.js +1 -1383
- package/dist/C_NotificationCenter2.js.map +1 -1
- package/dist/C_Progress.cjs +1 -4
- package/dist/C_Progress.js +1 -3
- package/dist/C_Progress.js.map +1 -0
- package/dist/C_Progress2.js +1 -102
- package/dist/C_Progress2.js.map +1 -1
- package/dist/C_QRCode.cjs +1 -5
- package/dist/C_QRCode.js +1 -3
- package/dist/C_QRCode.js.map +1 -0
- package/dist/C_QRCode2.js +1 -217
- package/dist/C_QRCode2.js.map +1 -1
- package/dist/C_Signature.cjs +1 -8
- package/dist/C_Signature.js +1 -4
- package/dist/C_Signature.js.map +1 -0
- package/dist/C_Signature2.js +1 -617
- package/dist/C_Signature2.js.map +1 -1
- package/dist/C_SplitPane.cjs +1 -6
- package/dist/C_SplitPane.js +1 -4
- package/dist/C_SplitPane.js.map +1 -0
- package/dist/C_SplitPane2.js +1 -355
- package/dist/C_SplitPane2.js.map +1 -1
- package/dist/C_Steps.cjs +1 -4
- package/dist/C_Steps.js +1 -3
- package/dist/C_Steps.js.map +1 -0
- package/dist/C_Steps2.js +1 -81
- package/dist/C_Steps2.js.map +1 -1
- package/dist/C_Table.cjs +1 -20
- package/dist/C_Table.js +1 -6
- package/dist/C_Table.js.map +1 -0
- package/dist/C_Table2.js +1 -3023
- package/dist/C_Table2.js.map +1 -1
- package/dist/C_Theme.cjs +1 -5
- package/dist/C_Theme.js +1 -4
- package/dist/C_Theme.js.map +1 -0
- package/dist/C_Theme2.js +1 -63
- package/dist/C_Theme2.js.map +1 -1
- package/dist/C_Time.cjs +1 -5
- package/dist/C_Time.js +1 -3
- package/dist/C_Time.js.map +1 -0
- package/dist/C_Time2.js +1 -198
- package/dist/C_Time2.js.map +1 -1
- package/dist/C_Tree.cjs +1 -7
- package/dist/C_Tree.js +1 -4
- package/dist/C_Tree.js.map +1 -0
- package/dist/C_Tree2.js +1 -440
- package/dist/C_Tree2.js.map +1 -1
- package/dist/C_Upload.cjs +1 -12
- package/dist/C_Upload.js +1 -4
- package/dist/C_Upload.js.map +1 -0
- package/dist/C_Upload2.js +2 -1365
- package/dist/C_Upload2.js.map +1 -1
- package/dist/C_VideoPlayer.cjs +1 -23
- package/dist/C_VideoPlayer.js +1 -3
- package/dist/C_VideoPlayer.js.map +1 -0
- package/dist/C_VideoPlayer2.js +3 -1932
- package/dist/C_VideoPlayer2.js.map +1 -1
- package/dist/C_VtableGantt.cjs +1 -6
- package/dist/C_VtableGantt.js +1 -4
- package/dist/C_VtableGantt.js.map +1 -0
- package/dist/C_VtableGantt2.js +1 -872
- package/dist/C_VtableGantt2.js.map +1 -1
- package/dist/C_WaterFall.cjs +1 -13
- package/dist/C_WaterFall.js +1 -3
- package/dist/C_WaterFall.js.map +1 -0
- package/dist/C_WaterFall2.js +1 -364
- package/dist/C_WaterFall2.js.map +1 -1
- package/dist/C_WorkFlow.cjs +1 -8
- package/dist/C_WorkFlow.js +1 -4
- package/dist/C_WorkFlow.js.map +1 -0
- package/dist/C_WorkFlow2.js +1 -1983
- package/dist/C_WorkFlow2.js.map +1 -1
- package/dist/chunk.js +1 -18
- package/dist/city.js +1 -4816
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.ts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.ts +5 -5
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.ts +1 -1
- package/dist/export-helper.js +1 -9
- package/dist/index.cjs +2 -413
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -231
- package/dist/index.js.map +1 -1
- package/dist/index.vue.d.ts +2 -2
- package/dist/index10.vue.d.ts +5 -5
- package/dist/index12.vue.d.ts +3 -3
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.ts +3 -3
- package/dist/index16.vue.d.ts +3 -3
- package/dist/index3.vue.d.ts +3 -3
- package/dist/index5.vue.d.ts +1 -1
- package/dist/index7.vue.d.ts +4 -4
- package/dist/index8.vue.d.ts +2 -2
- package/dist/resolver.cjs +2 -89
- package/dist/resolver.cjs.map +1 -0
- package/dist/resolver.js +1 -86
- package/dist/resolver.js.map +1 -1
- package/dist/storage.js +1 -30
- package/dist/storage.js.map +1 -1
- package/dist/useCollapsePanel.d.ts +2 -2
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDraggableLayout.d.ts +4 -4
- package/dist/useDynamicFormState.d.ts +7 -7
- 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 +1 -1
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSearchState.d.ts +2 -2
- package/dist/useSignatureHistory.d.ts +1 -1
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.ts +6 -6
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/package.json +1 -2
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants2.d.ts.map +0 -1
- package/dist/constants3.d.ts.map +0 -1
- package/dist/constants4.d.ts.map +0 -1
- package/dist/constants5.d.ts.map +0 -1
- package/dist/data.d.ts.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.vue.d.ts.map +0 -1
- package/dist/index10.vue.d.ts.map +0 -1
- package/dist/index11.vue.d.ts.map +0 -1
- package/dist/index12.vue.d.ts.map +0 -1
- package/dist/index13.vue.d.ts.map +0 -1
- package/dist/index14.vue.d.ts.map +0 -1
- package/dist/index15.vue.d.ts.map +0 -1
- package/dist/index16.vue.d.ts.map +0 -1
- package/dist/index2.vue.d.ts.map +0 -1
- package/dist/index3.vue.d.ts.map +0 -1
- package/dist/index4.vue.d.ts.map +0 -1
- package/dist/index5.vue.d.ts.map +0 -1
- package/dist/index6.vue.d.ts.map +0 -1
- package/dist/index7.vue.d.ts.map +0 -1
- package/dist/index8.vue.d.ts.map +0 -1
- package/dist/index9.vue.d.ts.map +0 -1
- package/dist/resolver.d.cts.map +0 -1
- package/dist/resolver.d.ts.map +0 -1
- package/dist/useCalendarEvents.d.ts.map +0 -1
- package/dist/useCollapsePanel.d.ts.map +0 -1
- package/dist/useCropperCore.d.ts.map +0 -1
- package/dist/useDraggableLayout.d.ts.map +0 -1
- package/dist/useDynamicFormState.d.ts.map +0 -1
- package/dist/useEdgeInteraction.d.ts.map +0 -1
- package/dist/useFullscreen.d.ts.map +0 -1
- package/dist/useGlobalSearch.d.ts.map +0 -1
- package/dist/useInfiniteScroll.d.ts.map +0 -1
- package/dist/useModalEdit.d.ts.map +0 -1
- package/dist/useQRCode.d.ts.map +0 -1
- package/dist/useSearchState.d.ts.map +0 -1
- package/dist/useSignatureHistory.d.ts.map +0 -1
- package/dist/useSplitResize.d.ts.map +0 -1
- package/dist/useTimeSelection.d.ts.map +0 -1
- package/dist/useTreeOperations.d.ts.map +0 -1
- package/dist/useWorkflowValidation.d.ts.map +0 -1
package/dist/resolver.cjs
CHANGED
|
@@ -1,89 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
//#region src/resolver.ts
|
|
4
|
-
/**
|
|
5
|
-
* @robot-admin/naive-ui-components Resolver
|
|
6
|
-
* 用于 unplugin-vue-components 的自动导入解析器
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* // vite.config.ts
|
|
11
|
-
* import Components from 'unplugin-vue-components/vite'
|
|
12
|
-
* import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'
|
|
13
|
-
*
|
|
14
|
-
* export default defineConfig({
|
|
15
|
-
* plugins: [
|
|
16
|
-
* Components({
|
|
17
|
-
* resolvers: [RobotNaiveUiResolver()]
|
|
18
|
-
* })
|
|
19
|
-
* ]
|
|
20
|
-
* })
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
const PKG_NAME = "@robot-admin/naive-ui-components";
|
|
24
|
-
/** 组件库包含的所有组件名称 */
|
|
25
|
-
const componentNames = [
|
|
26
|
-
"C_ActionBar",
|
|
27
|
-
"C_AntV",
|
|
28
|
-
"C_Barcode",
|
|
29
|
-
"C_Captcha",
|
|
30
|
-
"C_Cascade",
|
|
31
|
-
"C_City",
|
|
32
|
-
"C_Code",
|
|
33
|
-
"C_CollapsePanel",
|
|
34
|
-
"C_Cron",
|
|
35
|
-
"C_Date",
|
|
36
|
-
"C_Draggable",
|
|
37
|
-
"C_Editor",
|
|
38
|
-
"C_FilePreview",
|
|
39
|
-
"C_Form",
|
|
40
|
-
"C_FormSearch",
|
|
41
|
-
"C_FormulaEditor",
|
|
42
|
-
"C_FullCalendar",
|
|
43
|
-
"C_GlobalSearch",
|
|
44
|
-
"C_Guide",
|
|
45
|
-
"C_Icon",
|
|
46
|
-
"C_ImageCropper",
|
|
47
|
-
"C_Language",
|
|
48
|
-
"C_Map",
|
|
49
|
-
"C_Markdown",
|
|
50
|
-
"C_NotificationCenter",
|
|
51
|
-
"C_Progress",
|
|
52
|
-
"C_QRCode",
|
|
53
|
-
"C_Signature",
|
|
54
|
-
"C_SplitPane",
|
|
55
|
-
"C_Steps",
|
|
56
|
-
"C_Table",
|
|
57
|
-
"C_Theme",
|
|
58
|
-
"C_Time",
|
|
59
|
-
"C_Tree",
|
|
60
|
-
"C_Upload",
|
|
61
|
-
"C_VideoPlayer",
|
|
62
|
-
"C_VtableGantt",
|
|
63
|
-
"C_WaterFall",
|
|
64
|
-
"C_WorkFlow"
|
|
65
|
-
];
|
|
66
|
-
/** 组件名称集合(快速查找) */
|
|
67
|
-
const componentSet = new Set(componentNames);
|
|
68
|
-
/**
|
|
69
|
-
* @robot-admin/naive-ui-components 组件自动导入解析器
|
|
70
|
-
*
|
|
71
|
-
* 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。
|
|
72
|
-
* 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。
|
|
73
|
-
*/
|
|
74
|
-
function RobotNaiveUiResolver(options = {}) {
|
|
75
|
-
const { importOnDemand = false } = options;
|
|
76
|
-
return {
|
|
77
|
-
type: "component",
|
|
78
|
-
resolve: (name) => {
|
|
79
|
-
if (componentSet.has(name)) return {
|
|
80
|
-
name,
|
|
81
|
-
from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
//#endregion
|
|
88
|
-
exports.RobotNaiveUiResolver = RobotNaiveUiResolver;
|
|
89
|
-
exports.componentNames = componentNames;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_Barcode.C_Captcha.C_Cascade.C_City.C_Code.C_CollapsePanel.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Map.C_Markdown.C_NotificationCenter.C_Progress.C_QRCode.C_Signature.C_SplitPane.C_Steps.C_Table.C_Theme.C_Time.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t))return{name:t,from:r?`${e}/${t}`:e}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
|
|
2
|
+
//# sourceMappingURL=resolver.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.cjs","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n return {\n name,\n from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME,\n }\n }\n },\n }\n}\n"],"mappings":"mEAoBA,MAAM,EAAW,mCAGJ,EAAiB,2aAwC7B,CAMK,EAAe,IAAI,IAAY,EAAe,CAiBpD,SAAgB,EACd,EAAuC,EAAE,CACzC,CACA,GAAM,CAAE,iBAAiB,IAAU,EAEnC,MAAO,CACL,KAAM,YACN,QAAU,GAAiB,CACzB,GAAI,EAAa,IAAI,EAAK,CACxB,MAAO,CACL,OACA,KAAM,EAAiB,GAAG,EAAS,GAAG,IAAS,EAChD,EAGN"}
|
package/dist/resolver.js
CHANGED
|
@@ -1,87 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @robot-admin/naive-ui-components Resolver
|
|
4
|
-
* 用于 unplugin-vue-components 的自动导入解析器
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* // vite.config.ts
|
|
9
|
-
* import Components from 'unplugin-vue-components/vite'
|
|
10
|
-
* import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'
|
|
11
|
-
*
|
|
12
|
-
* export default defineConfig({
|
|
13
|
-
* plugins: [
|
|
14
|
-
* Components({
|
|
15
|
-
* resolvers: [RobotNaiveUiResolver()]
|
|
16
|
-
* })
|
|
17
|
-
* ]
|
|
18
|
-
* })
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
const PKG_NAME = "@robot-admin/naive-ui-components";
|
|
22
|
-
/** 组件库包含的所有组件名称 */
|
|
23
|
-
const componentNames = [
|
|
24
|
-
"C_ActionBar",
|
|
25
|
-
"C_AntV",
|
|
26
|
-
"C_Barcode",
|
|
27
|
-
"C_Captcha",
|
|
28
|
-
"C_Cascade",
|
|
29
|
-
"C_City",
|
|
30
|
-
"C_Code",
|
|
31
|
-
"C_CollapsePanel",
|
|
32
|
-
"C_Cron",
|
|
33
|
-
"C_Date",
|
|
34
|
-
"C_Draggable",
|
|
35
|
-
"C_Editor",
|
|
36
|
-
"C_FilePreview",
|
|
37
|
-
"C_Form",
|
|
38
|
-
"C_FormSearch",
|
|
39
|
-
"C_FormulaEditor",
|
|
40
|
-
"C_FullCalendar",
|
|
41
|
-
"C_GlobalSearch",
|
|
42
|
-
"C_Guide",
|
|
43
|
-
"C_Icon",
|
|
44
|
-
"C_ImageCropper",
|
|
45
|
-
"C_Language",
|
|
46
|
-
"C_Map",
|
|
47
|
-
"C_Markdown",
|
|
48
|
-
"C_NotificationCenter",
|
|
49
|
-
"C_Progress",
|
|
50
|
-
"C_QRCode",
|
|
51
|
-
"C_Signature",
|
|
52
|
-
"C_SplitPane",
|
|
53
|
-
"C_Steps",
|
|
54
|
-
"C_Table",
|
|
55
|
-
"C_Theme",
|
|
56
|
-
"C_Time",
|
|
57
|
-
"C_Tree",
|
|
58
|
-
"C_Upload",
|
|
59
|
-
"C_VideoPlayer",
|
|
60
|
-
"C_VtableGantt",
|
|
61
|
-
"C_WaterFall",
|
|
62
|
-
"C_WorkFlow"
|
|
63
|
-
];
|
|
64
|
-
/** 组件名称集合(快速查找) */
|
|
65
|
-
const componentSet = new Set(componentNames);
|
|
66
|
-
/**
|
|
67
|
-
* @robot-admin/naive-ui-components 组件自动导入解析器
|
|
68
|
-
*
|
|
69
|
-
* 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。
|
|
70
|
-
* 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。
|
|
71
|
-
*/
|
|
72
|
-
function RobotNaiveUiResolver(options = {}) {
|
|
73
|
-
const { importOnDemand = false } = options;
|
|
74
|
-
return {
|
|
75
|
-
type: "component",
|
|
76
|
-
resolve: (name) => {
|
|
77
|
-
if (componentSet.has(name)) return {
|
|
78
|
-
name,
|
|
79
|
-
from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
export { RobotNaiveUiResolver, componentNames };
|
|
1
|
+
const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_Barcode.C_Captcha.C_Cascade.C_City.C_Code.C_CollapsePanel.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Map.C_Markdown.C_NotificationCenter.C_Progress.C_QRCode.C_Signature.C_SplitPane.C_Steps.C_Table.C_Theme.C_Time.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t))return{name:t,from:r?`${e}/${t}`:e}}}}export{r as RobotNaiveUiResolver,t as componentNames};
|
|
87
2
|
//# sourceMappingURL=resolver.js.map
|
package/dist/resolver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.js","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n return {\n name,\n from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME,\n }\n }\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolver.js","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n return {\n name,\n from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME,\n }\n }\n },\n }\n}\n"],"mappings":"AAoBA,MAAM,EAAW,mCAGJ,EAAiB,2aAwC7B,CAMK,EAAe,IAAI,IAAY,EAAe,CAiBpD,SAAgB,EACd,EAAuC,EAAE,CACzC,CACA,GAAM,CAAE,iBAAiB,IAAU,EAEnC,MAAO,CACL,KAAM,YACN,QAAU,GAAiB,CACzB,GAAI,EAAa,IAAI,EAAK,CACxB,MAAO,CACL,OACA,KAAM,EAAiB,GAAG,EAAS,GAAG,IAAS,EAChD,EAGN"}
|
package/dist/storage.js
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* 本地存储封装
|
|
4
|
-
*
|
|
5
|
-
* 组件库内部使用的 localStorage 工具函数。
|
|
6
|
-
* 提供类型安全的序列化/反序列化。
|
|
7
|
-
*/
|
|
8
|
-
const isSerializable = (value) => typeof value === "object" && value !== null && !(value instanceof Date);
|
|
9
|
-
/** 存储数据 */
|
|
10
|
-
const setItem = (key, value) => {
|
|
11
|
-
const storageValue = isSerializable(value) ? JSON.stringify(value) : value instanceof Date ? value.toISOString() : String(value);
|
|
12
|
-
window.localStorage.setItem(key, storageValue);
|
|
13
|
-
};
|
|
14
|
-
/** 获取数据(安全反序列化) */
|
|
15
|
-
const getItem = (key) => {
|
|
16
|
-
const data = window.localStorage.getItem(key);
|
|
17
|
-
if (data === null) return null;
|
|
18
|
-
try {
|
|
19
|
-
return JSON.parse(data);
|
|
20
|
-
} catch {
|
|
21
|
-
return data;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
/** 删除指定数据 */
|
|
25
|
-
const removeItem = (key) => window.localStorage.removeItem(key);
|
|
26
|
-
/** 删除所有数据 */
|
|
27
|
-
const removeAllItem = () => window.localStorage.clear();
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { setItem as i, removeAllItem as n, removeItem as r, getItem as t };
|
|
1
|
+
const e=e=>typeof e==`object`&&!!e&&!(e instanceof Date),t=(t,n)=>{let r=e(n)?JSON.stringify(n):n instanceof Date?n.toISOString():String(n);window.localStorage.setItem(t,r)},n=e=>{let t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return t}},r=e=>window.localStorage.removeItem(e),i=()=>window.localStorage.clear();export{t as i,i as n,r,n as t};
|
|
31
2
|
//# sourceMappingURL=storage.js.map
|
package/dist/storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","names":[],"sources":["../src/utils/storage.ts"],"sourcesContent":["/**\r\n * 本地存储封装\r\n *\r\n * 组件库内部使用的 localStorage 工具函数。\r\n * 提供类型安全的序列化/反序列化。\r\n */\r\n\r\nconst isSerializable = (value: unknown): value is object =>\r\n typeof value === \"object\" && value !== null && !(value instanceof Date);\r\n\r\n/** 存储数据 */\r\nexport const setItem = <T extends string | number | boolean | object | null>(\r\n key: string,\r\n value: T,\r\n): void => {\r\n const storageValue = isSerializable(value)\r\n ? JSON.stringify(value)\r\n : value instanceof Date\r\n ? value.toISOString()\r\n : String(value);\r\n\r\n window.localStorage.setItem(key, storageValue);\r\n};\r\n\r\n/** 获取数据(安全反序列化) */\r\nexport const getItem = <T = unknown>(key: string): T | null => {\r\n const data = window.localStorage.getItem(key);\r\n if (data === null) return null;\r\n\r\n try {\r\n return JSON.parse(data) as T;\r\n } catch {\r\n return data as T;\r\n }\r\n};\r\n\r\n/** 删除指定数据 */\r\nexport const removeItem = (key: string) => window.localStorage.removeItem(key);\r\n\r\n/** 删除所有数据 */\r\nexport const removeAllItem = () => window.localStorage.clear();\r\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage.js","names":[],"sources":["../src/utils/storage.ts"],"sourcesContent":["/**\r\n * 本地存储封装\r\n *\r\n * 组件库内部使用的 localStorage 工具函数。\r\n * 提供类型安全的序列化/反序列化。\r\n */\r\n\r\nconst isSerializable = (value: unknown): value is object =>\r\n typeof value === \"object\" && value !== null && !(value instanceof Date);\r\n\r\n/** 存储数据 */\r\nexport const setItem = <T extends string | number | boolean | object | null>(\r\n key: string,\r\n value: T,\r\n): void => {\r\n const storageValue = isSerializable(value)\r\n ? JSON.stringify(value)\r\n : value instanceof Date\r\n ? value.toISOString()\r\n : String(value);\r\n\r\n window.localStorage.setItem(key, storageValue);\r\n};\r\n\r\n/** 获取数据(安全反序列化) */\r\nexport const getItem = <T = unknown>(key: string): T | null => {\r\n const data = window.localStorage.getItem(key);\r\n if (data === null) return null;\r\n\r\n try {\r\n return JSON.parse(data) as T;\r\n } catch {\r\n return data as T;\r\n }\r\n};\r\n\r\n/** 删除指定数据 */\r\nexport const removeItem = (key: string) => window.localStorage.removeItem(key);\r\n\r\n/** 删除所有数据 */\r\nexport const removeAllItem = () => window.localStorage.clear();\r\n"],"mappings":"AAOA,MAAM,EAAkB,GACtB,OAAO,GAAU,YAAY,GAAkB,EAAE,aAAiB,MAGvD,GACX,EACA,IACS,CACT,IAAM,EAAe,EAAe,EAAM,CACtC,KAAK,UAAU,EAAM,CACrB,aAAiB,KACf,EAAM,aAAa,CACnB,OAAO,EAAM,CAEnB,OAAO,aAAa,QAAQ,EAAK,EAAa,EAInC,EAAwB,GAA0B,CAC7D,IAAM,EAAO,OAAO,aAAa,QAAQ,EAAI,CAC7C,GAAI,IAAS,KAAM,OAAO,KAE1B,GAAI,CACF,OAAO,KAAK,MAAM,EAAK,MACjB,CACN,OAAO,IAKE,EAAc,GAAgB,OAAO,aAAa,WAAW,EAAI,CAGjE,MAAsB,OAAO,aAAa,OAAO"}
|
|
@@ -78,12 +78,12 @@ declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}
|
|
|
78
78
|
onExpand?: ((key: string) => any) | undefined;
|
|
79
79
|
onCollapse?: ((key: string) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
|
-
bordered: boolean;
|
|
82
81
|
activeKeys: string[];
|
|
83
82
|
defaultActiveKeys: string[];
|
|
84
83
|
accordion: boolean;
|
|
85
84
|
variant: CollapsePanelVariant;
|
|
86
85
|
expandIconPosition: ExpandIconPosition;
|
|
86
|
+
bordered: boolean;
|
|
87
87
|
persistKey: string;
|
|
88
88
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
89
89
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -92,7 +92,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
92
92
|
new (): {
|
|
93
93
|
$slots: S;
|
|
94
94
|
};
|
|
95
|
-
};
|
|
95
|
+
};
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/components/C_CollapsePanel/composables/useCollapsePanel.d.ts
|
|
98
98
|
interface UseCollapsePanelOptions {
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -52,28 +52,28 @@ interface ImageCropperEmits {
|
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
error: (error: Event) => any;
|
|
55
|
-
ready: () => any;
|
|
56
|
-
cancel: () => any;
|
|
57
55
|
crop: (result: any) => any;
|
|
56
|
+
ready: () => any;
|
|
58
57
|
confirm: (result: any) => any;
|
|
58
|
+
cancel: () => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Event) => any) | undefined;
|
|
61
|
-
onReady?: (() => any) | undefined;
|
|
62
|
-
onCancel?: (() => any) | undefined;
|
|
63
61
|
onCrop?: ((result: any) => any) | undefined;
|
|
62
|
+
onReady?: (() => any) | undefined;
|
|
64
63
|
onConfirm?: ((result: any) => any) | undefined;
|
|
64
|
+
onCancel?: (() => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
height: string | number;
|
|
67
|
-
disabled: boolean;
|
|
68
|
-
showPreview: boolean;
|
|
69
|
-
aspectRatio: number;
|
|
70
|
-
showToolbar: boolean;
|
|
71
67
|
src: string;
|
|
68
|
+
aspectRatio: number;
|
|
72
69
|
outputFormat: CropOutputFormat;
|
|
73
70
|
outputQuality: number;
|
|
74
71
|
maxOutputWidth: number;
|
|
75
72
|
maxOutputHeight: number;
|
|
73
|
+
showPreview: boolean;
|
|
74
|
+
showToolbar: boolean;
|
|
76
75
|
circular: boolean;
|
|
76
|
+
disabled: boolean;
|
|
77
77
|
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -116,10 +116,12 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
116
116
|
"onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
|
|
117
117
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
|
+
direction: "vertical" | "horizontal";
|
|
119
120
|
sort: boolean;
|
|
120
|
-
disabled: boolean;
|
|
121
121
|
modelValue: DraggableItem[];
|
|
122
|
+
disabled: boolean;
|
|
122
123
|
delay: number;
|
|
124
|
+
emptyText: string;
|
|
123
125
|
group: string | GroupOptions;
|
|
124
126
|
animation: number;
|
|
125
127
|
handle: string;
|
|
@@ -131,10 +133,8 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
131
133
|
listClass: string;
|
|
132
134
|
itemClass: string;
|
|
133
135
|
showEmptyState: boolean;
|
|
134
|
-
emptyText: string;
|
|
135
136
|
swapThreshold: number;
|
|
136
137
|
invertSwap: boolean;
|
|
137
|
-
direction: "vertical" | "horizontal";
|
|
138
138
|
layout: LayoutMode;
|
|
139
139
|
gridColumns: number;
|
|
140
140
|
gridRows: number;
|
|
@@ -150,7 +150,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
150
150
|
new (): {
|
|
151
151
|
$slots: S;
|
|
152
152
|
};
|
|
153
|
-
};
|
|
153
|
+
};
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/components/C_Draggable/composables/useDraggableLayout.d.ts
|
|
156
156
|
type EmitFn = {
|
|
@@ -430,13 +430,13 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
|
|
|
430
430
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
431
431
|
"update:modelValue": (model: Record<string, any>) => any;
|
|
432
432
|
submit: (payload: SubmitEventPayload) => any;
|
|
433
|
-
"validate-error": (errors: unknown) => any;
|
|
434
433
|
"validate-success": (model: Record<string, any>) => any;
|
|
434
|
+
"validate-error": (errors: unknown) => any;
|
|
435
435
|
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
436
436
|
"onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
|
|
437
437
|
onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
|
|
438
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
439
438
|
"onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
|
|
439
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
440
440
|
}>, {
|
|
441
441
|
config: FormConfig;
|
|
442
442
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -446,7 +446,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
446
446
|
new (): {
|
|
447
447
|
$slots: S;
|
|
448
448
|
};
|
|
449
|
-
};
|
|
449
|
+
};
|
|
450
450
|
//#endregion
|
|
451
451
|
//#region src/components/C_Form/composables/useFormState.d.ts
|
|
452
452
|
/**
|
|
@@ -1353,9 +1353,8 @@ declare const useDynamicFormState: () => {
|
|
|
1353
1353
|
} | undefined;
|
|
1354
1354
|
readonly trigger?: string | readonly string[] | undefined;
|
|
1355
1355
|
readonly pattern?: (RegExp | string) | undefined;
|
|
1356
|
-
readonly level?: "warning" | "error" | undefined;
|
|
1357
1356
|
readonly key?: string | undefined;
|
|
1358
|
-
readonly
|
|
1357
|
+
readonly level?: "warning" | "error" | undefined;
|
|
1359
1358
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
1360
1359
|
readonly min?: number | undefined;
|
|
1361
1360
|
readonly max?: number | undefined;
|
|
@@ -1931,6 +1930,7 @@ declare const useDynamicFormState: () => {
|
|
|
1931
1930
|
readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
1932
1931
|
}[] | undefined;
|
|
1933
1932
|
readonly transform?: ((value: Value) => Value) | undefined;
|
|
1933
|
+
readonly message?: string | ((a?: string) => string) | undefined;
|
|
1934
1934
|
readonly renderMessage?: (() => vue.VNodeChild) | undefined;
|
|
1935
1935
|
readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
|
|
1936
1936
|
}[] | undefined;
|
|
@@ -3630,9 +3630,8 @@ declare const useDynamicFormState: () => {
|
|
|
3630
3630
|
} | undefined;
|
|
3631
3631
|
readonly trigger?: string | readonly string[] | undefined;
|
|
3632
3632
|
readonly pattern?: (RegExp | string) | undefined;
|
|
3633
|
-
readonly level?: "warning" | "error" | undefined;
|
|
3634
3633
|
readonly key?: string | undefined;
|
|
3635
|
-
readonly
|
|
3634
|
+
readonly level?: "warning" | "error" | undefined;
|
|
3636
3635
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
3637
3636
|
readonly min?: number | undefined;
|
|
3638
3637
|
readonly max?: number | undefined;
|
|
@@ -4208,6 +4207,7 @@ declare const useDynamicFormState: () => {
|
|
|
4208
4207
|
readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
4209
4208
|
}[] | undefined;
|
|
4210
4209
|
readonly transform?: ((value: Value) => Value) | undefined;
|
|
4210
|
+
readonly message?: string | ((a?: string) => string) | undefined;
|
|
4211
4211
|
readonly renderMessage?: (() => vue.VNodeChild) | undefined;
|
|
4212
4212
|
readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
|
|
4213
4213
|
}[] | undefined;
|
|
@@ -7541,9 +7541,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
7541
7541
|
}>, {
|
|
7542
7542
|
width: string | number;
|
|
7543
7543
|
height: string | number;
|
|
7544
|
+
showToolbar: boolean;
|
|
7544
7545
|
theme: "light" | "dark";
|
|
7545
7546
|
readonly: boolean;
|
|
7546
|
-
showToolbar: boolean;
|
|
7547
7547
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
7548
7548
|
declare const _default: typeof __VLS_export;
|
|
7549
7549
|
//#endregion
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
autoPreview?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
preview: (file: string | File) => any;
|
|
13
12
|
download: (file: string | File) => any;
|
|
13
|
+
preview: (file: string | File) => any;
|
|
14
14
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
16
15
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
fileName: string;
|
|
19
19
|
autoPreview: boolean;
|
package/dist/useModalEdit.d.ts
CHANGED
|
@@ -611,7 +611,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
611
611
|
new (): {
|
|
612
612
|
$slots: S;
|
|
613
613
|
};
|
|
614
|
-
};
|
|
614
|
+
};
|
|
615
615
|
//#endregion
|
|
616
616
|
//#region src/components/C_Table/composables/useTableColumns.d.ts
|
|
617
617
|
/** useTableColumns 中对 tableManager 的最小依赖接口 */
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,15 +50,15 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
+
size: number;
|
|
53
54
|
showBorder: boolean;
|
|
54
55
|
label: string;
|
|
55
56
|
showLabel: boolean;
|
|
56
|
-
mode: RenderMode;
|
|
57
|
-
size: number;
|
|
58
57
|
color: string;
|
|
59
|
-
margin: number;
|
|
60
58
|
bgColor: string;
|
|
61
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
60
|
+
margin: number;
|
|
61
|
+
mode: RenderMode;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
package/dist/useSearchState.d.ts
CHANGED
|
@@ -55,12 +55,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
55
55
|
cleanFn: () => void;
|
|
56
56
|
changeFoldState: () => void;
|
|
57
57
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
reset: () => any;
|
|
59
58
|
search: (params: SearchFormParams) => any;
|
|
59
|
+
reset: () => any;
|
|
60
60
|
"change-params": (params: SearchFormParams) => any;
|
|
61
61
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
62
|
-
onReset?: (() => any) | undefined;
|
|
63
62
|
onSearch?: ((params: SearchFormParams) => any) | undefined;
|
|
63
|
+
onReset?: (() => any) | undefined;
|
|
64
64
|
"onChange-params"?: ((params: SearchFormParams) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
size: "small" | "medium" | "large";
|
|
@@ -109,9 +109,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
109
109
|
}>, {
|
|
110
110
|
width: number | string;
|
|
111
111
|
height: number | string;
|
|
112
|
+
showToolbar: boolean;
|
|
112
113
|
disabled: boolean;
|
|
113
114
|
readonly: boolean;
|
|
114
|
-
showToolbar: boolean;
|
|
115
115
|
maxHistory: number;
|
|
116
116
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
117
117
|
declare const _default: typeof __VLS_export;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -68,25 +68,25 @@ type __VLS_Slots = {} & {
|
|
|
68
68
|
declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
69
69
|
expand: (target: CollapseTarget) => any;
|
|
70
70
|
collapse: (target: CollapseTarget) => any;
|
|
71
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
71
72
|
"drag-start": (size: number) => any;
|
|
72
73
|
"drag-end": (size: number) => any;
|
|
73
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
74
74
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
75
75
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
76
76
|
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
77
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
77
78
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
78
79
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
79
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
|
-
disabled: boolean;
|
|
82
|
-
step: number;
|
|
83
81
|
direction: SplitDirection;
|
|
84
|
-
|
|
82
|
+
disabled: boolean;
|
|
85
83
|
defaultSize: number;
|
|
86
84
|
minSize: number;
|
|
85
|
+
maxSize: number;
|
|
87
86
|
collapsible: boolean;
|
|
88
87
|
showCollapseButton: boolean;
|
|
89
88
|
gutterSize: number;
|
|
89
|
+
step: number;
|
|
90
90
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
92
|
declare const _default: typeof __VLS_export;
|
|
@@ -94,7 +94,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
94
94
|
new (): {
|
|
95
95
|
$slots: S;
|
|
96
96
|
};
|
|
97
|
-
};
|
|
97
|
+
};
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region src/components/C_SplitPane/composables/useSplitResize.d.ts
|
|
100
100
|
interface UseSplitResizeOptions {
|
|
@@ -49,11 +49,10 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
49
49
|
"onChange-end"?: ((time: number | null) => any) | undefined;
|
|
50
50
|
}>, {
|
|
51
51
|
format: string;
|
|
52
|
-
mode: TimeMode;
|
|
53
52
|
placeholder: string;
|
|
53
|
+
mode: TimeMode;
|
|
54
54
|
startPlaceholder: string;
|
|
55
55
|
endPlaceholder: string;
|
|
56
|
-
attrs: Record<string, any>;
|
|
57
56
|
useHours: boolean;
|
|
58
57
|
useMinutes: boolean;
|
|
59
58
|
useSeconds: boolean;
|
|
@@ -62,6 +61,7 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
62
61
|
secondStep: number;
|
|
63
62
|
startTimeProps: Record<string, any>;
|
|
64
63
|
endTimeProps: Record<string, any>;
|
|
64
|
+
attrs: Record<string, any>;
|
|
65
65
|
defaultStartTime: number | null;
|
|
66
66
|
defaultEndTime: number | null;
|
|
67
67
|
defaultSingleTime: number | null;
|
|
@@ -91,23 +91,24 @@ type __VLS_Slots = {} & {
|
|
|
91
91
|
};
|
|
92
92
|
declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
93
93
|
add: (parentNode?: TreeNodeData | undefined) => any;
|
|
94
|
+
refresh: () => any;
|
|
94
95
|
"node-select": (node: TreeNodeData | null, selectedKeys: (string | number)[]) => any;
|
|
95
96
|
"node-action": (action: string, node: TreeNodeData) => any;
|
|
96
97
|
"node-drop": (info: DropInfo) => any;
|
|
97
|
-
refresh: () => any;
|
|
98
98
|
}, string, vue.PublicProps, Readonly<TreeProps> & Readonly<{
|
|
99
99
|
onAdd?: ((parentNode?: TreeNodeData | undefined) => any) | undefined;
|
|
100
|
+
onRefresh?: (() => any) | undefined;
|
|
100
101
|
"onNode-select"?: ((node: TreeNodeData | null, selectedKeys: (string | number)[]) => any) | undefined;
|
|
101
102
|
"onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
|
|
102
103
|
"onNode-drop"?: ((info: DropInfo) => any) | undefined;
|
|
103
|
-
onRefresh?: (() => any) | undefined;
|
|
104
104
|
}>, {
|
|
105
|
-
|
|
105
|
+
showToolbar: boolean;
|
|
106
106
|
labelField: string;
|
|
107
107
|
childrenField: string;
|
|
108
|
+
mode: TreeMode;
|
|
108
109
|
draggable: boolean;
|
|
109
110
|
actions: ActionConfig[];
|
|
110
|
-
|
|
111
|
+
defaultExpandedKeys: (string | number)[];
|
|
111
112
|
keyField: string;
|
|
112
113
|
searchPattern: string;
|
|
113
114
|
searchable: boolean;
|
|
@@ -120,7 +121,6 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
|
|
|
120
121
|
iconConfig: IconConfig;
|
|
121
122
|
statusConfigs: StatusConfig[];
|
|
122
123
|
defaultExpandAll: boolean;
|
|
123
|
-
defaultExpandedKeys: (string | number)[];
|
|
124
124
|
defaultSelectedKeys: (string | number)[];
|
|
125
125
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
126
126
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -129,7 +129,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
129
129
|
new (): {
|
|
130
130
|
$slots: S;
|
|
131
131
|
};
|
|
132
|
-
};
|
|
132
|
+
};
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/components/C_Tree/data.d.ts
|
|
135
135
|
declare const presetConfigs: Record<TreeMode, Partial<TreeProps>>;
|
|
@@ -239,17 +239,17 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
239
239
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
240
240
|
change: (value: WorkflowData) => any;
|
|
241
241
|
"update:modelValue": (value: WorkflowData) => any;
|
|
242
|
-
"node-click": (node: WorkflowNode) => any;
|
|
243
|
-
"edge-click": (edge: WorkflowEdge) => any;
|
|
244
242
|
save: (data: WorkflowData) => any;
|
|
245
243
|
"validate-error": (errors: ValidationError[]) => any;
|
|
244
|
+
"node-click": (node: WorkflowNode) => any;
|
|
245
|
+
"edge-click": (edge: WorkflowEdge) => any;
|
|
246
246
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
247
247
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
248
248
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
249
|
-
"onNode-click"?: ((node: WorkflowNode) => any) | undefined;
|
|
250
|
-
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
251
249
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
252
250
|
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
251
|
+
"onNode-click"?: ((node: WorkflowNode) => any) | undefined;
|
|
252
|
+
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
253
253
|
}>, {
|
|
254
254
|
theme: "light" | "dark";
|
|
255
255
|
readonly: boolean;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.4.
|
|
6
|
+
"version": "0.4.4",
|
|
7
7
|
"description": "基于 Naive UI 的 Vue 3 组件库",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/index.cjs",
|
|
@@ -106,7 +106,6 @@
|
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
108
|
"@iconify/vue": "^5.0.0",
|
|
109
|
-
"@vueuse/core": "^13.6.0",
|
|
110
109
|
"highlight.js": "^11.11.1",
|
|
111
110
|
"spark-md5": "^3.0.2"
|
|
112
111
|
},
|