@funcho/ui 1.1.14 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cjs/business/DataTable/DataTable.vue.js +5 -0
  2. package/dist/cjs/business/EditFormCard/EditFormCard.vue.js +238 -0
  3. package/dist/cjs/business/EditFormCard/EditFormCard.vue3.js +10 -0
  4. package/dist/cjs/business/EditFormCard/index.js +12 -0
  5. package/dist/cjs/business/FormDialog/FormDialog.vue.js +129 -0
  6. package/dist/cjs/business/FormDialog/FormDialog.vue3.js +10 -0
  7. package/dist/cjs/business/FormDialog/index.js +12 -0
  8. package/dist/cjs/business/ProForm/ProForm.vue.js +44 -8
  9. package/dist/cjs/business/index.js +4 -0
  10. package/dist/cjs/components/Button/DangerButton.vue.js +2 -2
  11. package/dist/cjs/index.js +10 -6
  12. package/dist/cjs/packages/ui/package.json.js +1 -1
  13. package/dist/esm/business/DataTable/DataTable.vue.mjs +5 -0
  14. package/dist/esm/business/EditFormCard/EditFormCard.vue.mjs +234 -0
  15. package/dist/esm/business/EditFormCard/EditFormCard.vue3.mjs +6 -0
  16. package/dist/esm/business/EditFormCard/index.mjs +7 -0
  17. package/dist/esm/business/FormDialog/FormDialog.vue.mjs +125 -0
  18. package/dist/esm/business/FormDialog/FormDialog.vue3.mjs +6 -0
  19. package/dist/esm/business/FormDialog/index.mjs +7 -0
  20. package/dist/esm/business/ProForm/ProForm.vue.mjs +45 -9
  21. package/dist/esm/business/index.mjs +2 -0
  22. package/dist/esm/components/Button/DangerButton.vue.mjs +2 -2
  23. package/dist/esm/index.mjs +2 -0
  24. package/dist/esm/packages/ui/package.json.mjs +1 -1
  25. package/dist/style.css +14 -3
  26. package/dist/types/business/DataTable/DataTable.vue.d.ts +438 -1208
  27. package/dist/types/business/DataTable/index.d.ts +438 -1208
  28. package/dist/types/business/EditFormCard/EditFormCard.types.d.ts +1 -0
  29. package/dist/types/business/EditFormCard/EditFormCard.vue.d.ts +1169 -0
  30. package/dist/types/business/EditFormCard/index.d.ts +1569 -0
  31. package/dist/types/business/FormDialog/FormDialog.types.d.ts +1 -0
  32. package/dist/types/business/FormDialog/FormDialog.vue.d.ts +1006 -0
  33. package/dist/types/business/FormDialog/index.d.ts +1077 -0
  34. package/dist/types/business/ProForm/ProForm.types.d.ts +9 -0
  35. package/dist/types/business/ProForm/ProForm.vue.d.ts +37 -422
  36. package/dist/types/business/ProForm/index.d.ts +236 -1391
  37. package/dist/types/business/index.d.ts +2 -0
  38. package/dist/types/components/DatePicker/BzDatePicker.vue.d.ts +9 -1
  39. package/dist/types/components/DatePicker/DatePicker.vue.d.ts +4 -0
  40. package/dist/types/components/DatePicker/DatePickerRanger.vue.d.ts +27 -3
  41. package/dist/types/components/DatePicker/DateTimePicker.vue.d.ts +26 -2
  42. package/dist/types/components/DatePicker/DateTimePickerRanger.vue.d.ts +27 -3
  43. package/dist/types/components/DatePicker/index.d.ts +126 -10
  44. package/dist/types/components/Menu/Menu.vue.d.ts +4 -0
  45. package/dist/types/components/Menu/index.d.ts +12 -0
  46. package/dist/types/components/Table/Table.vue.d.ts +6 -6
  47. package/dist/types/components/Text/Text.vue.d.ts +1 -81
  48. package/dist/types/components/Text/index.d.ts +3 -243
  49. package/dist/types/components/TimePicker/TimePicker.vue.d.ts +4 -0
  50. package/dist/types/components/TimePicker/index.d.ts +12 -0
  51. package/dist/types/components/TreeSelect/TreeSelect.vue.d.ts +2 -500
  52. package/dist/types/components/TreeSelect/index.d.ts +27 -1521
  53. package/package.json +4 -2
@@ -0,0 +1,234 @@
1
+ import { defineComponent, ref, onMounted, resolveDirective, withDirectives, createBlock, openBlock, unref, createSlots, withCtx, createVNode, createElementBlock, createTextVNode, Fragment } from 'vue';
2
+ import { FcButton } from '../../components/Button/index.mjs';
3
+ import '../../components/Dialog/index.mjs';
4
+ import '../../components/ConfigProvider/index.mjs';
5
+ import '../../components/Input/index.mjs';
6
+ import '../../components/Tree/index.mjs';
7
+ import '../../components/Tabs/index.mjs';
8
+ import '../../components/TabPane/index.mjs';
9
+ import '../../components/Steps/index.mjs';
10
+ import '../../components/Step/index.mjs';
11
+ import '../../components/InputNumber/index.mjs';
12
+ import '../../components/Select/index.mjs';
13
+ import '../../components/Option/index.mjs';
14
+ import '../../components/DatePicker/index.mjs';
15
+ import '../../components/DatePickerPanel/index.mjs';
16
+ import '../../components/Tooltip/index.mjs';
17
+ import '../../components/Icon/index.mjs';
18
+ import { FcNotification } from '../../components/Notification/index.mjs';
19
+ import '../../components/Link/index.mjs';
20
+ import '../../components/Text/index.mjs';
21
+ import '../../components/Scrollbar/index.mjs';
22
+ import '../../components/Splitter/index.mjs';
23
+ import '../../components/SplitterPanel/index.mjs';
24
+ import '../../components/Autocomplete/index.mjs';
25
+ import '../../components/Cascader/index.mjs';
26
+ import '../../components/CascaderPanel/index.mjs';
27
+ import '../../components/Checkbox/index.mjs';
28
+ import '../../components/CheckboxGroup/index.mjs';
29
+ import '../../components/CheckboxButton/index.mjs';
30
+ import '../../components/Form/index.mjs';
31
+ import '../../components/FormItem/index.mjs';
32
+ import '../../components/InputTag/index.mjs';
33
+ import '../../components/Radio/index.mjs';
34
+ import '../../components/RadioGroup/index.mjs';
35
+ import '../../components/SelectV2/index.mjs';
36
+ import '../../components/Switch/index.mjs';
37
+ import '../../components/TimePicker/index.mjs';
38
+ import '../../components/TimeSelect/index.mjs';
39
+ import '../../components/TreeSelect/index.mjs';
40
+ import '../../components/Upload/index.mjs';
41
+ import '../../components/Avatar/index.mjs';
42
+ import '../../components/AvatarGroup/index.mjs';
43
+ import '../../components/Badge/index.mjs';
44
+ import { FcCard } from '../../components/Card/index.mjs';
45
+ import '../../components/Descriptions/index.mjs';
46
+ import '../../components/DescriptionsItem/index.mjs';
47
+ import '../../components/Empty/index.mjs';
48
+ import '../../components/Image/index.mjs';
49
+ import '../../components/ImageViewer/index.mjs';
50
+ import '../../components/Pagination/index.mjs';
51
+ import '../../components/Table/index.mjs';
52
+ import '../../components/TableColumn/index.mjs';
53
+ import '../../components/TableV2/index.mjs';
54
+ import '../../components/Tag/index.mjs';
55
+ import '../../components/Breadcrumb/index.mjs';
56
+ import '../../components/BreadcrumbItem/index.mjs';
57
+ import '../../components/Drawer/index.mjs';
58
+ import '../../components/Popconfirm/index.mjs';
59
+ import '../../components/IconComponent/index.mjs';
60
+ import '../../components/Popover/index.mjs';
61
+ import '../../components/Result/index.mjs';
62
+ import '../../components/Progress/index.mjs';
63
+ import '../../components/Divider/index.mjs';
64
+ import '../../components/Dropdown/index.mjs';
65
+ import '../../components/DropdownMenu/index.mjs';
66
+ import '../../components/DropdownItem/index.mjs';
67
+ import '../../components/Menu/index.mjs';
68
+ import '../../components/SubMenu/index.mjs';
69
+ import '../../components/MenuItem/index.mjs';
70
+ import '../../components/RadioButton/index.mjs';
71
+ import '../../components/MenuItemGroup/index.mjs';
72
+ import '../../components/Collapse/index.mjs';
73
+ import '../../components/CollapseItem/index.mjs';
74
+ import '../../components/ContextMenu/index.mjs';
75
+ import '../../components/CodeEditor/index.mjs';
76
+ import '../../components/RichEditor/index.mjs';
77
+ import _sfc_main$1 from '../ProForm/ProForm.vue.mjs';
78
+ /* empty css */
79
+ import cloneDeep from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs';
80
+
81
+ const _sfc_main = /* @__PURE__ */ defineComponent({
82
+ ...{
83
+ name: "FcProEditFormCard",
84
+ inheritAttrs: false
85
+ },
86
+ __name: "EditFormCard",
87
+ props: {
88
+ title: { default: "" },
89
+ showEditButton: { type: Boolean, default: true },
90
+ requestApi: { type: Function, default: void 0 },
91
+ submitApi: { type: Function, default: void 0 },
92
+ inline: { type: Boolean, default: true },
93
+ columns: {},
94
+ labelPosition: { default: "top" },
95
+ labelWidth: {},
96
+ fields: { default: () => [] },
97
+ rules: { default: () => ({}) }
98
+ },
99
+ emits: ["submit", "loaded"],
100
+ setup(__props, { expose: __expose, emit: __emit }) {
101
+ const isDisabled = ref(true);
102
+ const formRef = ref();
103
+ const props = __props;
104
+ let snapshot = {};
105
+ const loading = ref(false);
106
+ const submitting = ref(false);
107
+ const initData = async () => {
108
+ if (!props.requestApi) return;
109
+ try {
110
+ loading.value = true;
111
+ const res = await props.requestApi();
112
+ const data = res.data || res || {};
113
+ emits("loaded", data);
114
+ if (formRef.value) {
115
+ formRef.value.setValues(data);
116
+ }
117
+ } catch (err) {
118
+ console.error("获取详情失败", err);
119
+ } finally {
120
+ loading.value = false;
121
+ }
122
+ };
123
+ onMounted(initData);
124
+ const handleEditClick = () => {
125
+ isDisabled.value = false;
126
+ const model = formRef.value?.model;
127
+ snapshot = cloneDeep(model);
128
+ };
129
+ const handleCancelClick = () => {
130
+ formRef.value?.clearValidate();
131
+ isDisabled.value = true;
132
+ formRef.value?.setValues(snapshot);
133
+ };
134
+ const emits = __emit;
135
+ const handleSaveClick = async () => {
136
+ if (!formRef.value) return;
137
+ try {
138
+ await formRef.value.validate();
139
+ const model = formRef.value?.model;
140
+ if (!props.submitApi) {
141
+ isDisabled.value = true;
142
+ emits("submit", model);
143
+ return;
144
+ }
145
+ submitting.value = true;
146
+ const res = await props.submitApi(model);
147
+ isDisabled.value = true;
148
+ emits("submit", model, res);
149
+ FcNotification.success({
150
+ message: "修改成功!"
151
+ });
152
+ initData();
153
+ } catch (err) {
154
+ console.error("提交失败", err);
155
+ } finally {
156
+ submitting.value = false;
157
+ }
158
+ };
159
+ __expose(
160
+ new Proxy(
161
+ {},
162
+ {
163
+ get(_, key) {
164
+ if (key === "refresh") {
165
+ return initData;
166
+ }
167
+ return formRef.value?.[key];
168
+ },
169
+ has(_, key) {
170
+ if (key === "refresh") {
171
+ return true;
172
+ }
173
+ return key in formRef.value;
174
+ }
175
+ }
176
+ )
177
+ );
178
+ return (_ctx, _cache) => {
179
+ const _directive_loading = resolveDirective("loading");
180
+ return withDirectives((openBlock(), createBlock(unref(FcCard), { title: __props.title }, createSlots({
181
+ default: withCtx(() => [
182
+ createVNode(_sfc_main$1, {
183
+ ref_key: "formRef",
184
+ ref: formRef,
185
+ inline: __props.inline,
186
+ "label-position": __props.labelPosition,
187
+ fields: __props.fields,
188
+ disabled: isDisabled.value,
189
+ rules: __props.rules
190
+ }, null, 8, ["inline", "label-position", "fields", "disabled", "rules"])
191
+ ]),
192
+ _: 2
193
+ }, [
194
+ __props.showEditButton ? {
195
+ name: "tools",
196
+ fn: withCtx(() => [
197
+ isDisabled.value ? (openBlock(), createBlock(unref(FcButton), {
198
+ key: 0,
199
+ type: "primary",
200
+ onClick: handleEditClick
201
+ }, {
202
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
203
+ createTextVNode("编辑", -1)
204
+ ])]),
205
+ _: 1
206
+ })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
207
+ createVNode(unref(FcButton), { onClick: handleCancelClick }, {
208
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
209
+ createTextVNode("取消", -1)
210
+ ])]),
211
+ _: 1
212
+ }),
213
+ createVNode(unref(FcButton), {
214
+ type: "success",
215
+ loading: submitting.value,
216
+ onClick: handleSaveClick
217
+ }, {
218
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
219
+ createTextVNode("保存", -1)
220
+ ])]),
221
+ _: 1
222
+ }, 8, ["loading"])
223
+ ], 64))
224
+ ]),
225
+ key: "0"
226
+ } : void 0
227
+ ]), 1032, ["title"])), [
228
+ [_directive_loading, loading.value]
229
+ ]);
230
+ };
231
+ }
232
+ });
233
+
234
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './EditFormCard.vue.mjs';
2
+ /* empty css */
3
+
4
+
5
+
6
+ export { _sfc_main as default };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './EditFormCard.vue.mjs';
2
+ /* empty css */
3
+ import { withInstall } from '../../_utils/with-install.mjs';
4
+
5
+ const FcProEditFormCard = withInstall(_sfc_main);
6
+
7
+ export { FcProEditFormCard, FcProEditFormCard as default };
@@ -0,0 +1,125 @@
1
+ import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createVNode, mergeProps, createCommentVNode, createTextVNode, toDisplayString, nextTick } from 'vue';
2
+ import _sfc_main$3 from '../../components/Button/Button.vue.mjs';
3
+ /* empty css */
4
+ import _sfc_main$1 from '../../components/Dialog/Dialog.vue.mjs';
5
+ /* empty css */
6
+ import _sfc_main$2 from '../ProForm/ProForm.vue.mjs';
7
+ /* empty css */
8
+ import { FcNotification } from '../../components/Notification/index.mjs';
9
+ import { useNamespace } from '../../hooks/use-namespace.mjs';
10
+
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...{
13
+ name: "FcProFormDialog",
14
+ inheritAttrs: false
15
+ },
16
+ __name: "FormDialog",
17
+ props: {
18
+ title: { default: "新增" },
19
+ width: { default: 400 },
20
+ cancelButtonText: { default: "取消" },
21
+ confirmButtonText: { default: "确定" },
22
+ showCancelButton: { type: Boolean, default: true },
23
+ submitApi: { type: Function, default: void 0 },
24
+ inline: { type: Boolean, default: false },
25
+ columns: {},
26
+ labelPosition: { default: "left" },
27
+ labelWidth: { default: "5em" },
28
+ fields: { default: () => [] },
29
+ rules: { default: () => ({}) }
30
+ },
31
+ emits: ["submit", "cancel"],
32
+ setup(__props, { expose: __expose, emit: __emit }) {
33
+ const ns = useNamespace("form-dialog");
34
+ const formRef = ref();
35
+ const props = __props;
36
+ const visible = ref(false);
37
+ const emits = __emit;
38
+ const submitting = ref(false);
39
+ const handleConfirmClick = async () => {
40
+ if (!formRef.value) return;
41
+ try {
42
+ await formRef.value.validate();
43
+ const model = formRef.value?.model;
44
+ if (!props.submitApi) {
45
+ emits("submit", model);
46
+ visible.value = false;
47
+ return;
48
+ }
49
+ submitting.value = true;
50
+ const res = await props.submitApi(model);
51
+ emits("submit", model, res);
52
+ FcNotification.success({
53
+ message: "提交成功!"
54
+ });
55
+ visible.value = false;
56
+ } catch (err) {
57
+ console.error("提交失败", err);
58
+ } finally {
59
+ submitting.value = false;
60
+ }
61
+ };
62
+ const open = (data) => {
63
+ visible.value = true;
64
+ nextTick(() => {
65
+ formRef.value?.setValues(data || {});
66
+ });
67
+ };
68
+ const handleCancelClick = () => {
69
+ visible.value = false;
70
+ emits("cancel");
71
+ };
72
+ const close = () => {
73
+ visible.value = false;
74
+ };
75
+ __expose({
76
+ open,
77
+ close
78
+ });
79
+ return (_ctx, _cache) => {
80
+ return openBlock(), createBlock(_sfc_main$1, {
81
+ modelValue: visible.value,
82
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
83
+ title: __props.title,
84
+ width: __props.width,
85
+ "body-class": unref(ns).e("body")
86
+ }, {
87
+ footer: withCtx(() => [
88
+ __props.showCancelButton ? (openBlock(), createBlock(_sfc_main$3, {
89
+ key: 0,
90
+ onClick: handleCancelClick
91
+ }, {
92
+ default: withCtx(() => [
93
+ createTextVNode(toDisplayString(__props.cancelButtonText), 1)
94
+ ]),
95
+ _: 1
96
+ })) : createCommentVNode("", true),
97
+ createVNode(_sfc_main$3, {
98
+ type: "primary",
99
+ loading: submitting.value,
100
+ onClick: handleConfirmClick
101
+ }, {
102
+ default: withCtx(() => [
103
+ createTextVNode(toDisplayString(__props.confirmButtonText), 1)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["loading"])
107
+ ]),
108
+ default: withCtx(() => [
109
+ createVNode(_sfc_main$2, mergeProps({
110
+ ref_key: "formRef",
111
+ ref: formRef,
112
+ inline: __props.inline,
113
+ "label-position": __props.labelPosition,
114
+ "label-width": __props.labelWidth,
115
+ fields: __props.fields,
116
+ rules: __props.rules
117
+ }, _ctx.$attrs), null, 16, ["inline", "label-position", "label-width", "fields", "rules"])
118
+ ]),
119
+ _: 1
120
+ }, 8, ["modelValue", "title", "width", "body-class"]);
121
+ };
122
+ }
123
+ });
124
+
125
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './FormDialog.vue.mjs';
2
+ /* empty css */
3
+
4
+
5
+
6
+ export { _sfc_main as default };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './FormDialog.vue.mjs';
2
+ /* empty css */
3
+ import { withInstall } from '../../_utils/with-install.mjs';
4
+
5
+ const FcProFormDialog = withInstall(_sfc_main);
6
+
7
+ export { FcProFormDialog, FcProFormDialog as default };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, unref, mergeProps, withCtx, createElementBlock, Fragment, renderList, normalizeStyle, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, ref, createBlock, openBlock, unref, mergeProps, withCtx, createElementBlock, Fragment, renderList, normalizeStyle, createSlots, resolveDynamicComponent, createElementVNode, normalizeClass, createVNode, toDisplayString } from 'vue';
2
2
  import { useNamespace } from '../../hooks/use-namespace.mjs';
3
3
  import '../../components/Button/index.mjs';
4
4
  import '../../components/Dialog/index.mjs';
@@ -14,7 +14,7 @@ import '../../components/Select/index.mjs';
14
14
  import '../../components/Option/index.mjs';
15
15
  import '../../components/DatePicker/index.mjs';
16
16
  import '../../components/DatePickerPanel/index.mjs';
17
- import '../../components/Tooltip/index.mjs';
17
+ import { FcTooltip } from '../../components/Tooltip/index.mjs';
18
18
  import '../../components/Icon/index.mjs';
19
19
  import '../../components/Notification/index.mjs';
20
20
  import '../../components/Link/index.mjs';
@@ -57,7 +57,7 @@ import '../../components/Breadcrumb/index.mjs';
57
57
  import '../../components/BreadcrumbItem/index.mjs';
58
58
  import '../../components/Drawer/index.mjs';
59
59
  import '../../components/Popconfirm/index.mjs';
60
- import '../../components/IconComponent/index.mjs';
60
+ import { FcIconComponent } from '../../components/IconComponent/index.mjs';
61
61
  import '../../components/Popover/index.mjs';
62
62
  import '../../components/Result/index.mjs';
63
63
  import '../../components/Progress/index.mjs';
@@ -76,6 +76,8 @@ import '../../components/ContextMenu/index.mjs';
76
76
  import '../../components/CodeEditor/index.mjs';
77
77
  import '../../components/RichEditor/index.mjs';
78
78
  import { ComponentsMap } from './componentsMap.mjs';
79
+ import isPlainObject from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs';
80
+ import cloneDeep from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs';
79
81
 
80
82
  const _sfc_main = /* @__PURE__ */ defineComponent({
81
83
  ...{
@@ -84,14 +86,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
86
  __name: "ProForm",
85
87
  props: {
86
88
  inline: { type: Boolean, default: false },
89
+ columns: { default: "auto-fill" },
87
90
  labelPosition: { default: "top" },
88
- fields: { default: () => [] }
91
+ labelWidth: { default: "" },
92
+ fields: { default: () => [] },
93
+ rules: { default: () => ({}) }
89
94
  },
90
95
  setup(__props, { expose: __expose }) {
91
96
  const ns = useNamespace("pro-form");
92
97
  const formModel = ref({});
93
98
  const setValues = (data) => {
94
- formModel.value = Object.assign({}, formModel.value, data);
99
+ if (isPlainObject(data)) {
100
+ formModel.value = cloneDeep(data || {});
101
+ } else {
102
+ console.warn("setValues 只能接受一个对象");
103
+ }
95
104
  };
96
105
  const getGridItemStyle = (item) => {
97
106
  if (item.span === "full") {
@@ -147,7 +156,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
147
156
  model: formModel.value,
148
157
  class: { [unref(ns).e("container")]: true, [unref(ns).is("inline")]: __props.inline },
149
158
  inline: __props.inline,
150
- "label-position": __props.labelPosition
159
+ "label-position": __props.labelPosition,
160
+ "label-width": __props.labelWidth,
161
+ style: { "--grid-columns": __props.columns },
162
+ rules: __props.rules
151
163
  }), {
152
164
  default: withCtx(() => [
153
165
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.fields, (item) => {
@@ -156,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
168
  label: item.label,
157
169
  prop: item.prop,
158
170
  style: normalizeStyle(getGridItemStyle(item))
159
- }, {
171
+ }, createSlots({
160
172
  default: withCtx(() => [
161
173
  item.render ? (openBlock(), createBlock(resolveDynamicComponent(item.render(formModel.value, item.prop, item.label)), mergeProps({
162
174
  key: 0,
@@ -179,11 +191,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
179
191
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"]))
180
192
  ]),
181
193
  _: 2
182
- }, 1032, ["label", "prop", "style"]);
194
+ }, [
195
+ item.tooltip ? {
196
+ name: "label",
197
+ fn: withCtx(() => [
198
+ createElementVNode("div", {
199
+ class: normalizeClass(unref(ns).e("label-with-tooltip"))
200
+ }, [
201
+ createElementVNode("span", null, toDisplayString(item.label), 1),
202
+ createVNode(unref(FcTooltip), {
203
+ content: item.tooltip,
204
+ placement: "top"
205
+ }, {
206
+ default: withCtx(() => [
207
+ createVNode(unref(FcIconComponent), {
208
+ name: "QuestionFilled",
209
+ size: 14
210
+ })
211
+ ]),
212
+ _: 1
213
+ }, 8, ["content"])
214
+ ], 2)
215
+ ]),
216
+ key: "0"
217
+ } : void 0
218
+ ]), 1032, ["label", "prop", "style"]);
183
219
  }), 128))
184
220
  ]),
185
221
  _: 1
186
- }, 16, ["model", "class", "inline", "label-position"]);
222
+ }, 16, ["model", "class", "inline", "label-position", "label-width", "style", "rules"]);
187
223
  };
188
224
  }
189
225
  });
@@ -3,3 +3,5 @@ export { FcProDataTable } from './DataTable/index.mjs';
3
3
  export { FcProForm } from './ProForm/index.mjs';
4
4
  export { FcProTreeCheckFilter } from './TreeCheckFilter/index.mjs';
5
5
  export { FcProTreeTransfer } from './TreeTransfer/index.mjs';
6
+ export { FcProEditFormCard } from './EditFormCard/index.mjs';
7
+ export { FcProFormDialog } from './FormDialog/index.mjs';
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  createVNode(_sfc_main$2, mergeProps(_ctx.$attrs, {
39
39
  ref: "elRef",
40
40
  type: "danger",
41
- link: ""
41
+ link: __props.link
42
42
  }), createSlots({ _: 2 }, [
43
43
  renderList(_ctx.$slots, (_, name) => {
44
44
  return {
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  ])
49
49
  };
50
50
  })
51
- ]), 1040)
51
+ ]), 1040, ["link"])
52
52
  ]),
53
53
  _: 3
54
54
  }, 8, ["title"])
@@ -89,6 +89,8 @@ export { FcProDataTable } from './business/DataTable/index.mjs';
89
89
  export { FcProForm } from './business/ProForm/index.mjs';
90
90
  export { FcProTreeCheckFilter } from './business/TreeCheckFilter/index.mjs';
91
91
  export { FcProTreeTransfer } from './business/TreeTransfer/index.mjs';
92
+ export { FcProEditFormCard } from './business/EditFormCard/index.mjs';
93
+ export { FcProFormDialog } from './business/FormDialog/index.mjs';
92
94
 
93
95
  const components = Object.keys(index$1).map((key) => {
94
96
  return index$1[key];
@@ -1,3 +1,3 @@
1
- const version = "1.1.14";
1
+ const version = "1.1.16";
2
2
 
3
3
  export { version };
package/dist/style.css CHANGED
@@ -12783,7 +12783,7 @@
12783
12783
  .fc-ui-table {
12784
12784
  --fc-ui-table-border-color: var(--fc-ui-border-color-lighter);
12785
12785
  --fc-ui-table-border: 1px solid var(--fc-ui-table-border-color);
12786
- --fc-ui-table-text-color: var(--fc-ui-text-color-regular);
12786
+ --fc-ui-table-text-color: #181818;
12787
12787
  --fc-ui-table-header-text-color: var(--fc-ui-text-color-secondary);
12788
12788
  --fc-ui-table-row-hover-bg-color: var(--fc-ui-fill-color-light);
12789
12789
  --fc-ui-table-current-row-bg-color: var(--fc-ui-color-primary-light-9);
@@ -13400,7 +13400,7 @@
13400
13400
  .fc-ui-table-v2 {
13401
13401
  --fc-ui-table-border-color: var(--fc-ui-border-color-lighter);
13402
13402
  --fc-ui-table-border: 1px solid var(--fc-ui-table-border-color);
13403
- --fc-ui-table-text-color: var(--fc-ui-text-color-regular);
13403
+ --fc-ui-table-text-color: #181818;
13404
13404
  --fc-ui-table-header-text-color: var(--fc-ui-text-color-secondary);
13405
13405
  --fc-ui-table-row-hover-bg-color: var(--fc-ui-fill-color-light);
13406
13406
  --fc-ui-table-current-row-bg-color: var(--fc-ui-color-primary-light-9);
@@ -17063,11 +17063,20 @@ to {
17063
17063
  --fc-ui-border-color-light: transparent;
17064
17064
  }.fc-mkui-pro-form__container.is-inline {
17065
17065
  display: grid;
17066
- grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
17066
+ grid-template-columns: repeat(var(--grid-columns, auto-fill), minmax(220px, 1fr));
17067
17067
  column-gap: 24px;
17068
17068
  }
17069
17069
  .fc-mkui-pro-form__container.is-inline .fc-ui-form-item {
17070
17070
  margin-right: 0;
17071
+ }
17072
+ .fc-mkui-pro-form__container .fc-mkui-pro-form__label-with-tooltip {
17073
+ display: inline-flex;
17074
+ align-items: center;
17075
+ gap: 2px;
17076
+ }
17077
+ .fc-mkui-pro-form__container .fc-mkui-pro-form__label-with-tooltip .fc-ui-icon {
17078
+ color: #7a7a7a;
17079
+ cursor: pointer;
17071
17080
  }.fc-mkui-data-table {
17072
17081
  height: 100%;
17073
17082
  }
@@ -17197,4 +17206,6 @@ to {
17197
17206
  .fc-mkui-pro-tree-transfer__center .fc-mkui-pro-tree-transfer__left:hover {
17198
17207
  background: #f5f7fa;
17199
17208
  cursor: pointer;
17209
+ }.fc-mkui-form-dialog__body {
17210
+ padding-bottom: 0;
17200
17211
  }