@robot-admin/naive-ui-components 0.36.0 → 0.37.1
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 +15 -0
- package/README.md +2 -1
- package/README_EN.md +16 -15
- package/dist/BPMN.cjs +1 -0
- package/dist/BPMN.js +1 -0
- package/dist/C_ActionBar.css +68 -55
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.cjs +1 -1
- package/dist/C_AntV.css +156 -153
- package/dist/C_AntV.js +1 -1
- package/dist/C_AntV2.cjs +1 -4
- package/dist/C_AntV2.js +1 -4
- package/dist/C_AudioPlayer.css +74 -61
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AutoComplete.css +3 -3
- package/dist/C_AutoComplete2.cjs +1 -1
- package/dist/C_AutoComplete2.js +1 -1
- package/dist/C_AvatarGroup.css +38 -38
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_Barcode.css +9 -9
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Breadcrumb.css +73 -60
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.css +74 -40
- package/dist/C_Captcha.d.ts +2 -2
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat.css +136 -115
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +57 -56
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.cjs +1 -1
- package/dist/C_Code.css +110 -45
- package/dist/C_Code.js +1 -1
- package/dist/C_Code2.cjs +2 -1
- package/dist/C_Code2.js +2 -1
- package/dist/C_CollapsePanel.css +67 -54
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +36 -23
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +144 -131
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_DataPicker.css +84 -84
- package/dist/C_DataPicker.d.ts +2 -2
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Date.css +5 -5
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Draggable.css +71 -71
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +51 -76
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +109 -109
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +64 -74
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +64 -74
- package/dist/C_Form.d.cts +1 -2
- package/dist/C_Form.d.ts +1 -2
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.css +69 -56
- package/dist/C_FormModal.d.ts +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +99 -99
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormulaEditor.css +171 -150
- package/dist/C_FullCalendar.css +35 -11
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch.css +221 -200
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +37 -24
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.css +13 -0
- package/dist/C_Icon2.cjs +1 -1
- package/dist/C_Icon2.js +1 -1
- package/dist/C_ImageCropper.css +41 -40
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Language.css +15 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Loading.css +18 -18
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +88 -54
- package/dist/C_Login.d.ts +2 -2
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +13 -13
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Markdown.css +69 -60
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +173 -199
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.css +16 -16
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_PageLoading.css +33 -33
- package/dist/C_QRCode.css +14 -14
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Select.css +4 -4
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Signature.css +25 -25
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Skeleton.css +28 -16
- package/dist/C_Skeleton2.cjs +1 -1
- package/dist/C_Skeleton2.js +1 -1
- package/dist/C_SplitPane.css +82 -70
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Steps.css +48 -48
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +302 -299
- package/dist/C_Table.css +238 -225
- package/dist/C_Table.d.ts +3 -2
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Tabs.css +11 -51
- package/dist/C_TagsView.css +91 -84
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +13 -0
- package/dist/C_Time.css +5 -5
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.css +112 -71
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +69 -60
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +30 -30
- package/dist/C_Tree.d.ts +3 -2
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +113 -116
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.css +2 -2
- package/dist/C_UserPicker.d.ts +2 -2
- package/dist/C_VideoPlayer.cjs +1 -1
- package/dist/C_VideoPlayer.css +138 -119
- package/dist/C_VideoPlayer.js +1 -1
- package/dist/C_VideoPlayer2.cjs +3 -3
- package/dist/C_VideoPlayer2.js +3 -3
- package/dist/C_VtableGantt.css +37 -40
- package/dist/C_WaterFall.css +55 -46
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +456 -520
- package/dist/C_WorkFlow.d.ts +2 -2
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/Dynamic.cjs +1 -1
- package/dist/Dynamic.js +1 -1
- package/dist/ER.cjs +1 -0
- package/dist/ER.js +1 -0
- package/dist/NodeConfigModal.cjs +1 -1
- package/dist/NodeConfigModal.js +1 -1
- package/dist/SearchFieldSettings.cjs +1 -1
- package/dist/SearchFieldSettings.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/UML.cjs +4 -0
- package/dist/UML.js +4 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -10
- package/dist/config.d.ts +3 -10
- package/dist/config.js +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.cjs +1 -0
- package/dist/{useFormConfig.d.cts → context.d.cts} +8 -2
- package/dist/{useFormConfig.d.ts → context.d.ts} +8 -2
- package/dist/context.js +1 -0
- package/dist/createPageLoading.cjs +1 -1
- package/dist/createPageLoading.js +1 -1
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/data3.cjs +1 -1
- package/dist/data3.js +1 -1
- package/dist/dateRange.d.ts +1 -1
- package/dist/editors.d.cts +2 -2
- package/dist/editors.d.ts +2 -2
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +1 -1
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +6 -6
- package/dist/index.vue.d.ts +6 -6
- package/dist/index10.vue.d.cts +5 -2
- package/dist/index10.vue.d.ts +4 -4
- package/dist/index11.vue.d.cts +4 -4
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +4 -5
- package/dist/index14.vue.d.cts +4 -5
- package/dist/index15.vue.d.ts +1 -1
- package/dist/index16.vue.d.cts +1 -1
- package/dist/index16.vue.d.ts +3 -3
- package/dist/index17.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +9 -9
- package/dist/index18.vue.d.cts +9 -9
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index19.vue.d.cts +2 -2
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +4 -4
- package/dist/index22.vue.d.cts +4 -4
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index28.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index31.vue.d.cts +2 -2
- package/dist/index31.vue.d.ts +2 -2
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +5 -5
- package/dist/index4.vue.d.ts +5 -5
- package/dist/index7.vue.d.ts +4 -2
- package/dist/index8.vue.d.cts +4 -2
- package/dist/index9.vue.d.ts +5 -2
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/readonlyGraph.cjs +1 -0
- package/dist/readonlyGraph.js +1 -0
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/shared-tokens.css +1 -1
- package/dist/source.cjs +1 -1
- package/dist/source.js +1 -1
- package/dist/style.css +3601 -3554
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.cts +73 -0
- package/dist/theme.d.ts +73 -0
- package/dist/theme.js +1 -0
- package/dist/theme2.cjs +1 -0
- package/dist/theme2.js +1 -0
- package/dist/useCollapsePanel.d.cts +2 -2
- package/dist/useCollapsePanel.d.ts +2 -2
- package/dist/useComponentDensity.cjs +1 -0
- package/dist/useComponentDensity.js +1 -0
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useComponentTheme.cjs +1 -0
- package/dist/useComponentTheme.js +1 -0
- package/dist/useCropperCore.d.cts +4 -4
- package/dist/useCropperCore.d.ts +4 -4
- package/dist/useDynamicFormState.d.cts +1 -1
- package/dist/useDynamicFormState.d.ts +1 -1
- package/dist/useEdgeInteraction.cjs +1 -0
- package/dist/useEdgeInteraction.d.cts +22 -5
- package/dist/useEdgeInteraction.d.ts +22 -5
- package/dist/useEdgeInteraction.js +1 -0
- package/dist/useFormConfig.cjs +1 -1
- package/dist/useFormConfig.js +1 -1
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFormulaEvaluator.cjs +2 -2
- package/dist/useFormulaEvaluator.js +2 -2
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useGraphExport.cjs +1 -0
- package/dist/useGraphExport.js +1 -0
- package/dist/useInfiniteScroll.d.cts +5 -5
- package/dist/useInfiniteScroll.d.ts +5 -5
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +5 -5
- package/dist/useSignatureHistory.d.ts +5 -5
- package/dist/useSplitResize.d.cts +4 -4
- package/dist/useSplitResize.d.ts +4 -4
- package/dist/useWorkflowValidation.d.cts +104 -104
- package/dist/useWorkflowValidation.d.ts +104 -104
- package/dist/verification.d.cts +4 -5
- package/dist/verification.d.ts +4 -5
- package/docs/guides/theme.md +81 -0
- package/package.json +1 -1
- /package/dist/{config2.d.ts → component-config.d.ts} +0 -0
package/dist/C_FormModal.css
CHANGED
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
inset: 0;
|
|
34
34
|
}
|
|
35
35
|
.c-icon__spinner[data-v-075758a0] {
|
|
36
|
+
display: block;
|
|
37
|
+
box-sizing: border-box;
|
|
36
38
|
width: 100%;
|
|
37
39
|
height: 100%;
|
|
38
40
|
border: 2px solid currentColor;
|
|
@@ -58,6 +60,17 @@
|
|
|
58
60
|
transform: rotate(360deg);
|
|
59
61
|
}
|
|
60
62
|
}
|
|
63
|
+
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
.c-icon[data-v-075758a0],
|
|
65
|
+
.c-icon__spinner[data-v-075758a0] {
|
|
66
|
+
animation: none;
|
|
67
|
+
transition: none;
|
|
68
|
+
}
|
|
69
|
+
.c-icon--clickable[data-v-075758a0]:hover,
|
|
70
|
+
.c-icon--clickable[data-v-075758a0]:active {
|
|
71
|
+
transform: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
61
74
|
|
|
62
75
|
/* layer: default */
|
|
63
76
|
.inline-flex[data-v-075758a0]{display:inline-flex;}
|
|
@@ -66,38 +79,38 @@
|
|
|
66
79
|
|
|
67
80
|
/* 通用操作按钮组件样式 */
|
|
68
81
|
/* ================= 主容器 ================= */
|
|
69
|
-
.c-action-bar[data-v-
|
|
82
|
+
.c-action-bar[data-v-9807c815] {
|
|
70
83
|
display: flex;
|
|
71
84
|
min-width: 0;
|
|
72
85
|
align-items: center;
|
|
73
86
|
justify-content: space-between;
|
|
74
87
|
padding: 16px;
|
|
75
88
|
margin-bottom: 16px;
|
|
76
|
-
background: var(--c-bg-card);
|
|
77
|
-
border-radius: var(--c-radius);
|
|
78
|
-
border: 1px solid var(--c-border);
|
|
89
|
+
background: var(--c-bg-card, var(--c-theme-bg-card));
|
|
90
|
+
border-radius: var(--c-radius, var(--c-theme-radius));
|
|
91
|
+
border: 1px solid var(--c-border, var(--c-theme-border));
|
|
79
92
|
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
80
93
|
}
|
|
81
|
-
.c-action-bar.is-align-left[data-v-
|
|
94
|
+
.c-action-bar.is-align-left[data-v-9807c815] {
|
|
82
95
|
justify-content: flex-start;
|
|
83
96
|
}
|
|
84
|
-
.c-action-bar.is-align-center[data-v-
|
|
97
|
+
.c-action-bar.is-align-center[data-v-9807c815] {
|
|
85
98
|
justify-content: center;
|
|
86
99
|
}
|
|
87
|
-
.c-action-bar.is-align-right[data-v-
|
|
100
|
+
.c-action-bar.is-align-right[data-v-9807c815] {
|
|
88
101
|
justify-content: flex-end;
|
|
89
102
|
}
|
|
90
|
-
.c-action-bar.is-align-space-between[data-v-
|
|
103
|
+
.c-action-bar.is-align-space-between[data-v-9807c815] {
|
|
91
104
|
justify-content: space-between;
|
|
92
105
|
}
|
|
93
|
-
.c-action-bar.is-align-space-around[data-v-
|
|
106
|
+
.c-action-bar.is-align-space-around[data-v-9807c815] {
|
|
94
107
|
justify-content: space-around;
|
|
95
108
|
}
|
|
96
|
-
.c-action-bar.is-compact[data-v-
|
|
109
|
+
.c-action-bar.is-compact[data-v-9807c815] {
|
|
97
110
|
padding: 8px;
|
|
98
111
|
margin-bottom: 8px;
|
|
99
112
|
}
|
|
100
|
-
.c-action-bar.is-inline[data-v-
|
|
113
|
+
.c-action-bar.is-inline[data-v-9807c815] {
|
|
101
114
|
padding: 0;
|
|
102
115
|
margin-bottom: 0;
|
|
103
116
|
background: transparent;
|
|
@@ -105,104 +118,104 @@
|
|
|
105
118
|
border-radius: 0;
|
|
106
119
|
box-shadow: none;
|
|
107
120
|
}
|
|
108
|
-
.c-action-bar.is-wrap[data-v-
|
|
121
|
+
.c-action-bar.is-wrap[data-v-9807c815] {
|
|
109
122
|
flex-wrap: wrap;
|
|
110
123
|
gap: 8px;
|
|
111
124
|
}
|
|
112
|
-
.c-action-bar.is-wrap .actions-group[data-v-
|
|
125
|
+
.c-action-bar.is-wrap .actions-group[data-v-9807c815] {
|
|
113
126
|
flex-wrap: wrap;
|
|
114
127
|
min-width: 0;
|
|
115
128
|
max-width: 100%;
|
|
116
129
|
}
|
|
117
130
|
@media (max-width: 768px) {
|
|
118
|
-
.c-action-bar[data-v-
|
|
131
|
+
.c-action-bar[data-v-9807c815] {
|
|
119
132
|
flex-direction: column;
|
|
120
133
|
gap: 12px;
|
|
121
134
|
}
|
|
122
|
-
.c-action-bar .actions-group[data-v-
|
|
135
|
+
.c-action-bar .actions-group[data-v-9807c815] {
|
|
123
136
|
width: 100%;
|
|
124
137
|
justify-content: center;
|
|
125
138
|
}
|
|
126
139
|
}
|
|
127
140
|
|
|
128
141
|
/* ================= 按钮组 ================= */
|
|
129
|
-
.actions-group[data-v-
|
|
142
|
+
.actions-group[data-v-9807c815] {
|
|
130
143
|
display: flex;
|
|
131
144
|
align-items: center;
|
|
132
145
|
gap: 12px;
|
|
133
146
|
flex-wrap: nowrap;
|
|
134
147
|
flex-shrink: 0;
|
|
135
148
|
}
|
|
136
|
-
.actions-group.actions-left[data-v-
|
|
149
|
+
.actions-group.actions-left[data-v-9807c815] {
|
|
137
150
|
justify-content: flex-start;
|
|
138
151
|
}
|
|
139
|
-
.actions-group.actions-right[data-v-
|
|
152
|
+
.actions-group.actions-right[data-v-9807c815] {
|
|
140
153
|
justify-content: flex-end;
|
|
141
154
|
}
|
|
142
|
-
.c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-
|
|
155
|
+
.c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-9807c815], .c-action-bar.has-only-right.is-align-center .actions-group.actions-right[data-v-9807c815] {
|
|
143
156
|
width: 100%;
|
|
144
157
|
justify-content: center;
|
|
145
158
|
}
|
|
146
|
-
.c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-
|
|
159
|
+
.c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-9807c815], .c-action-bar.has-only-right.is-align-space-between .actions-group.actions-right[data-v-9807c815] {
|
|
147
160
|
width: 100%;
|
|
148
161
|
justify-content: space-between;
|
|
149
162
|
}
|
|
150
|
-
.c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-
|
|
163
|
+
.c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-9807c815], .c-action-bar.has-only-right.is-align-space-around .actions-group.actions-right[data-v-9807c815] {
|
|
151
164
|
width: 100%;
|
|
152
165
|
justify-content: space-around;
|
|
153
166
|
}
|
|
154
|
-
.c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-
|
|
167
|
+
.c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-9807c815] {
|
|
155
168
|
width: 100%;
|
|
156
169
|
justify-content: flex-end;
|
|
157
170
|
}
|
|
158
|
-
.c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-
|
|
171
|
+
.c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-9807c815] {
|
|
159
172
|
width: 100%;
|
|
160
173
|
justify-content: flex-start;
|
|
161
174
|
}
|
|
162
|
-
.actions-group[data-v-
|
|
175
|
+
.actions-group[data-v-9807c815] .n-button {
|
|
163
176
|
flex-shrink: 0;
|
|
164
177
|
transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
|
|
165
178
|
font-weight: 500;
|
|
166
179
|
}
|
|
167
|
-
.actions-group[data-v-
|
|
180
|
+
.actions-group[data-v-9807c815] .n-button .n-icon {
|
|
168
181
|
transition: transform 0.3s ease;
|
|
169
182
|
}
|
|
170
|
-
.actions-group[data-v-
|
|
183
|
+
.actions-group[data-v-9807c815] .n-button:hover:not(:disabled) {
|
|
171
184
|
transform: translateY(-1px);
|
|
172
185
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
173
186
|
}
|
|
174
|
-
.actions-group[data-v-
|
|
187
|
+
.actions-group[data-v-9807c815] .n-button:hover:not(:disabled) .n-icon {
|
|
175
188
|
transform: scale(1.1);
|
|
176
189
|
}
|
|
177
|
-
.actions-group[data-v-
|
|
190
|
+
.actions-group[data-v-9807c815] .n-button:active:not(:disabled) {
|
|
178
191
|
transform: translateY(0);
|
|
179
192
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
180
193
|
}
|
|
181
|
-
.actions-group[data-v-
|
|
194
|
+
.actions-group[data-v-9807c815] .n-button:disabled {
|
|
182
195
|
cursor: not-allowed;
|
|
183
196
|
opacity: 0.5;
|
|
184
197
|
}
|
|
185
|
-
.actions-group[data-v-
|
|
198
|
+
.actions-group[data-v-9807c815] .n-button.n-button--loading {
|
|
186
199
|
pointer-events: none;
|
|
187
200
|
}
|
|
188
|
-
.actions-group[data-v-
|
|
201
|
+
.actions-group[data-v-9807c815] .n-button--primary-type:hover:not(:disabled) {
|
|
189
202
|
box-shadow: 0 4px 12px rgba(24, 160, 88, 0.3);
|
|
190
203
|
}
|
|
191
|
-
.actions-group[data-v-
|
|
204
|
+
.actions-group[data-v-9807c815] .n-button--info-type:hover:not(:disabled) {
|
|
192
205
|
box-shadow: 0 4px 12px rgba(42, 148, 125, 0.3);
|
|
193
206
|
}
|
|
194
|
-
.actions-group[data-v-
|
|
207
|
+
.actions-group[data-v-9807c815] .n-button--success-type:hover:not(:disabled) {
|
|
195
208
|
box-shadow: 0 4px 12px rgba(99, 226, 183, 0.3);
|
|
196
209
|
}
|
|
197
|
-
.actions-group[data-v-
|
|
210
|
+
.actions-group[data-v-9807c815] .n-button--warning-type:hover:not(:disabled) {
|
|
198
211
|
box-shadow: 0 4px 12px rgba(240, 138, 0, 0.3);
|
|
199
212
|
}
|
|
200
|
-
.actions-group[data-v-
|
|
213
|
+
.actions-group[data-v-9807c815] .n-button--error-type:hover:not(:disabled) {
|
|
201
214
|
box-shadow: 0 4px 12px rgba(208, 48, 80, 0.3);
|
|
202
215
|
}
|
|
203
216
|
|
|
204
217
|
/* ================= 中间插槽区域 ================= */
|
|
205
|
-
.actions-center[data-v-
|
|
218
|
+
.actions-center[data-v-9807c815] {
|
|
206
219
|
display: flex;
|
|
207
220
|
align-items: center;
|
|
208
221
|
justify-content: center;
|
|
@@ -212,32 +225,32 @@
|
|
|
212
225
|
}
|
|
213
226
|
|
|
214
227
|
/* ================= 分隔线 ================= */
|
|
215
|
-
.action-divider[data-v-
|
|
228
|
+
.action-divider[data-v-9807c815] {
|
|
216
229
|
margin: 0 8px !important;
|
|
217
230
|
height: 20px;
|
|
218
231
|
opacity: 0.3;
|
|
219
232
|
transition: opacity 0.3s ease;
|
|
220
233
|
}
|
|
221
|
-
.action-divider[data-v-
|
|
234
|
+
.action-divider[data-v-9807c815]:hover {
|
|
222
235
|
opacity: 0.6;
|
|
223
236
|
}
|
|
224
237
|
|
|
225
238
|
/* ================= 下拉菜单优化 ================= */
|
|
226
|
-
[data-v-
|
|
239
|
+
[data-v-9807c815] .n-dropdown-option {
|
|
227
240
|
transition: all 0.2s ease;
|
|
228
241
|
}
|
|
229
|
-
[data-v-
|
|
242
|
+
[data-v-9807c815] .n-dropdown-option:hover {
|
|
230
243
|
transform: translateX(4px);
|
|
231
244
|
}
|
|
232
|
-
[data-v-
|
|
245
|
+
[data-v-9807c815] .n-dropdown-option .n-icon {
|
|
233
246
|
transition: transform 0.2s ease;
|
|
234
247
|
}
|
|
235
|
-
[data-v-
|
|
248
|
+
[data-v-9807c815] .n-dropdown-option:hover .n-icon {
|
|
236
249
|
transform: scale(1.15);
|
|
237
250
|
}
|
|
238
251
|
|
|
239
252
|
/* ================= 加载动画 ================= */
|
|
240
|
-
@keyframes button-loading-
|
|
253
|
+
@keyframes button-loading-9807c815 {
|
|
241
254
|
0% {
|
|
242
255
|
opacity: 0.6;
|
|
243
256
|
}
|
|
@@ -248,12 +261,12 @@
|
|
|
248
261
|
opacity: 0.6;
|
|
249
262
|
}
|
|
250
263
|
}
|
|
251
|
-
[data-v-
|
|
252
|
-
animation: button-loading-
|
|
264
|
+
[data-v-9807c815] .n-button--loading {
|
|
265
|
+
animation: button-loading-9807c815 1.5s ease-in-out infinite;
|
|
253
266
|
}
|
|
254
267
|
|
|
255
268
|
/* ================= Tooltip 样式 ================= */
|
|
256
|
-
[data-v-
|
|
269
|
+
[data-v-9807c815] .n-tooltip .n-tooltip__content {
|
|
257
270
|
font-size: 12px;
|
|
258
271
|
padding: 6px 10px;
|
|
259
272
|
border-radius: 4px;
|
|
@@ -262,27 +275,27 @@
|
|
|
262
275
|
}
|
|
263
276
|
|
|
264
277
|
/* ================= 暗黑模式适配 ================= */
|
|
265
|
-
html.dark .c-action-bar[data-v-
|
|
278
|
+
html.dark .c-action-bar[data-v-9807c815] {
|
|
266
279
|
border-color: rgba(255, 255, 255, 0.09);
|
|
267
280
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
268
281
|
}
|
|
269
|
-
html.dark .actions-group[data-v-
|
|
282
|
+
html.dark .actions-group[data-v-9807c815] .n-button:hover:not(:disabled) {
|
|
270
283
|
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
|
|
271
284
|
}
|
|
272
|
-
html.dark .action-divider[data-v-
|
|
285
|
+
html.dark .action-divider[data-v-9807c815] {
|
|
273
286
|
opacity: 0.15;
|
|
274
287
|
}
|
|
275
|
-
html.dark .action-divider[data-v-
|
|
288
|
+
html.dark .action-divider[data-v-9807c815]:hover {
|
|
276
289
|
opacity: 0.4;
|
|
277
290
|
}
|
|
278
291
|
|
|
279
292
|
/* layer: default */
|
|
280
|
-
.m4[data-v-
|
|
281
|
-
.m5[data-v-
|
|
282
|
-
.m6[data-v-
|
|
283
|
-
.inline[data-v-
|
|
284
|
-
.px[data-v-
|
|
293
|
+
.m4[data-v-9807c815]{margin:1rem;}
|
|
294
|
+
.m5[data-v-9807c815]{margin:1.25rem;}
|
|
295
|
+
.m6[data-v-9807c815]{margin:1.5rem;}
|
|
296
|
+
.inline[data-v-9807c815]{display:inline;}
|
|
297
|
+
.px[data-v-9807c815]{padding-left:1rem;padding-right:1rem;}
|
|
285
298
|
|
|
286
299
|
|
|
287
300
|
/* layer: default */
|
|
288
|
-
.visible[data-v-
|
|
301
|
+
.visible[data-v-89f4fef7]{visibility:visible;}
|
package/dist/C_FormModal.d.ts
CHANGED
package/dist/C_FormModal2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./observer.cjs`),n=require(`./data2.cjs`),r=require(`./feedback.cjs`),i=require(`./export-helper.cjs`),
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./observer.cjs`),n=require(`./data2.cjs`),r=require(`./feedback.cjs`),i=require(`./useComponentTheme.cjs`),a=require(`./export-helper.cjs`),o=require(`./useActionTask.cjs`),s=require(`./C_ActionBar2.cjs`),c=require(`./useFormConfig.cjs`),l=require(`./fieldRenderers.cjs`),u=require(`./formModal.cjs`);let d=require(`vue`),f=require(`naive-ui`);const p={key:0,role:`status`,style:{margin:`0 0 8px`}},m=(0,d.defineComponent)({name:`C_FormModal`,__name:`index`,props:{editor:{},options:{},config:{default:()=>({})},renderers:{},width:{default:`min(620px, calc(100vw - 24px))`},createText:{default:`创建`},saveText:{default:`保存`},cancelText:{default:`取消`},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`submit`,`close`],setup(a,{emit:m}){let h=i.n(),g=a,_=m,v=(0,d.ref)(null),y=c.o(),b=(0,d.computed)(()=>c.r(g.config,y)),x=r.t(()=>b.value.feedback),S=(0,d.computed)(()=>g.config?.density??y.density??`compact`),C=(0,d.computed)({get:()=>g.editor.visible.value,set:e=>{e||P()}}),w=(0,d.computed)(()=>g.editor.title.value),T=(0,d.ref)(0),E=(0,d.ref)(!1),D=o.t(),O=(0,d.computed)(()=>D.isRunning(T.value)),k=(0,d.computed)(()=>O.value||g.editor.loading.value||!!v.value?.isSubmitting);(0,d.watch)([()=>g.editor,()=>g.editor.visible.value],([e,t],[n])=>{(t||e!==n)&&(T.value++,E.value=!1)},{flush:`sync`}),(0,d.onScopeDispose)(()=>{T.value++});let A=(0,d.computed)(()=>u.t(g.width,S.value)),j=(0,d.computed)({get:()=>g.editor.model.value??{},set:e=>{O.value||g.editor.setModel(e)}}),M=e=>e===void 0||n.a(e,v.value?.getModel())?!0:(E.value=!0,!1),N=(0,d.computed)(()=>({...g.config,...O.value?{disabled:!0}:{},density:S.value,mode:g.editor.mode.value,showActions:!1,submitSuccessText:``,onSubmit:async(e,r)=>{let{editor:i,config:a}=g,o=T.value;E.value=!1;let s=()=>o===T.value&&!r?.signal.aborted&&i.visible.value,c;a?.onSubmit&&(c=n.t(e.model),await a.onSubmit(e,r));let l=await D.run(o,()=>i.submit(e.model),()=>s()&&M(c));if(!l.executed)return;let u=l.value;if(o!==T.value||!u&&!s())return;_(`submit`,e,u);let d=b.value.submitSuccessText;u&&d&&t.t(()=>x.success(d))}})),P=()=>{k.value||!C.value||(g.editor.close(),_(`close`))},F=(0,d.computed)(()=>{let t=e.t(S.value);return{align:`right`,size:b.value.size??(S.value===`compact`?`tiny`:t.size),gap:t.gap,compact:S.value===`compact`}}),I=(0,d.computed)(()=>s.a([{key:`cancel`,label:g.cancelText,disabled:k,onClick:P},{key:g.editor.mode.value===`create`?`create`:`save`,label:g.editor.mode.value===`create`?g.createText:g.saveText,loading:k,onClick:async()=>{await v.value?.submit()}}]));return(e,t)=>((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(f.NModal),{show:C.value,"onUpdate:show":t[1]||=e=>C.value=e,preset:`card`,title:w.value,"aria-label":w.value,style:(0,d.normalizeStyle)({...(0,d.unref)(h),...A.value.shell}),"header-style":A.value.header,"content-style":A.value.content,"footer-style":A.value.footer,"footer-class":`c-form-modal__footer`,"mask-closable":a.maskClosable&&!k.value,"close-on-esc":a.closeOnEsc&&!k.value,closable:a.closable&&!k.value,class:(0,d.normalizeClass)([`c-form-modal`,`c-form-modal--${S.value}`])},{footer:(0,d.withCtx)(()=>[E.value?((0,d.openBlock)(),(0,d.createElementBlock)(`p`,p,` 表单已修改,请重新保存。 `)):(0,d.createCommentVNode)(`v-if`,!0),((0,d.openBlock)(),(0,d.createBlock)(s.t,{key:T.value,actions:I.value,config:F.value},null,8,[`actions`,`config`]))]),default:(0,d.withCtx)(()=>[C.value&&a.editor.model.value?((0,d.openBlock)(),(0,d.createBlock)((0,d.unref)(l.o),{key:T.value,ref_key:`formRef`,ref:v,modelValue:j.value,"onUpdate:modelValue":t[0]||=e=>j.value=e,options:a.options,config:N.value,renderers:a.renderers,inert:O.value},(0,d.createSlots)({_:2},[(0,d.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,d.withCtx)(t=>[(0,d.renderSlot)(e.$slots,n,(0,d.normalizeProps)((0,d.guardReactiveProps)(t)),void 0,!0)])}))]),1032,[`modelValue`,`options`,`config`,`renderers`,`inert`])):(0,d.createCommentVNode)(`v-if`,!0)]),_:3},8,[`show`,`title`,`aria-label`,`style`,`header-style`,`content-style`,`footer-style`,`mask-closable`,`close-on-esc`,`closable`,`class`]))}});var h=a.t(m,[[`__scopeId`,`data-v-89f4fef7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
package/dist/C_FormModal2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./density.js";import{t}from"./observer.js";import{a as n,t as r}from"./data2.js";import{t as i}from"./feedback.js";import{
|
|
1
|
+
import{t as e}from"./density.js";import{t}from"./observer.js";import{a as n,t as r}from"./data2.js";import{t as i}from"./feedback.js";import{n as a}from"./useComponentTheme.js";import{t as o}from"./export-helper.js";import{t as s}from"./useActionTask.js";import{a as c,t as l}from"./C_ActionBar2.js";import{o as u,r as d}from"./useFormConfig.js";import{o as f}from"./fieldRenderers.js";import{t as p}from"./formModal.js";import{computed as m,createBlock as h,createCommentVNode as g,createElementBlock as _,createSlots as v,defineComponent as y,guardReactiveProps as b,normalizeClass as x,normalizeProps as S,normalizeStyle as C,onScopeDispose as w,openBlock as T,ref as E,renderList as D,renderSlot as O,unref as k,watch as A,withCtx as j}from"vue";import{NModal as M}from"naive-ui";const N={key:0,role:`status`,style:{margin:`0 0 8px`}};var P=o(y({name:`C_FormModal`,__name:`index`,props:{editor:{},options:{},config:{default:()=>({})},renderers:{},width:{default:`min(620px, calc(100vw - 24px))`},createText:{default:`创建`},saveText:{default:`保存`},cancelText:{default:`取消`},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`submit`,`close`],setup(o,{emit:y}){let P=a(),F=o,I=y,L=E(null),R=u(),z=m(()=>d(F.config,R)),B=i(()=>z.value.feedback),V=m(()=>F.config?.density??R.density??`compact`),H=m({get:()=>F.editor.visible.value,set:e=>{e||$()}}),U=m(()=>F.editor.title.value),W=E(0),G=E(!1),K=s(),q=m(()=>K.isRunning(W.value)),J=m(()=>q.value||F.editor.loading.value||!!L.value?.isSubmitting);A([()=>F.editor,()=>F.editor.visible.value],([e,t],[n])=>{(t||e!==n)&&(W.value++,G.value=!1)},{flush:`sync`}),w(()=>{W.value++});let Y=m(()=>p(F.width,V.value)),X=m({get:()=>F.editor.model.value??{},set:e=>{q.value||F.editor.setModel(e)}}),Z=e=>e===void 0||n(e,L.value?.getModel())?!0:(G.value=!0,!1),Q=m(()=>({...F.config,...q.value?{disabled:!0}:{},density:V.value,mode:F.editor.mode.value,showActions:!1,submitSuccessText:``,onSubmit:async(e,n)=>{let{editor:i,config:a}=F,o=W.value;G.value=!1;let s=()=>o===W.value&&!n?.signal.aborted&&i.visible.value,c;a?.onSubmit&&(c=r(e.model),await a.onSubmit(e,n));let l=await K.run(o,()=>i.submit(e.model),()=>s()&&Z(c));if(!l.executed)return;let u=l.value;if(o!==W.value||!u&&!s())return;I(`submit`,e,u);let d=z.value.submitSuccessText;u&&d&&t(()=>B.success(d))}})),$=()=>{J.value||!H.value||(F.editor.close(),I(`close`))},ee=m(()=>{let t=e(V.value);return{align:`right`,size:z.value.size??(V.value===`compact`?`tiny`:t.size),gap:t.gap,compact:V.value===`compact`}}),te=m(()=>c([{key:`cancel`,label:F.cancelText,disabled:J,onClick:$},{key:F.editor.mode.value===`create`?`create`:`save`,label:F.editor.mode.value===`create`?F.createText:F.saveText,loading:J,onClick:async()=>{await L.value?.submit()}}]));return(e,t)=>(T(),h(k(M),{show:H.value,"onUpdate:show":t[1]||=e=>H.value=e,preset:`card`,title:U.value,"aria-label":U.value,style:C({...k(P),...Y.value.shell}),"header-style":Y.value.header,"content-style":Y.value.content,"footer-style":Y.value.footer,"footer-class":`c-form-modal__footer`,"mask-closable":o.maskClosable&&!J.value,"close-on-esc":o.closeOnEsc&&!J.value,closable:o.closable&&!J.value,class:x([`c-form-modal`,`c-form-modal--${V.value}`])},{footer:j(()=>[G.value?(T(),_(`p`,N,` 表单已修改,请重新保存。 `)):g(`v-if`,!0),(T(),h(l,{key:W.value,actions:te.value,config:ee.value},null,8,[`actions`,`config`]))]),default:j(()=>[H.value&&o.editor.model.value?(T(),h(k(f),{key:W.value,ref_key:`formRef`,ref:L,modelValue:X.value,"onUpdate:modelValue":t[0]||=e=>X.value=e,options:o.options,config:Q.value,renderers:o.renderers,inert:q.value},v({_:2},[D(e.$slots,(t,n)=>({name:n,fn:j(t=>[O(e.$slots,n,S(b(t)),void 0,!0)])}))]),1032,[`modelValue`,`options`,`config`,`renderers`,`inert`])):g(`v-if`,!0)]),_:3},8,[`show`,`title`,`aria-label`,`style`,`header-style`,`content-style`,`footer-style`,`mask-closable`,`close-on-esc`,`closable`,`class`]))}}),[[`__scopeId`,`data-v-89f4fef7`]]);export{P as t};
|