@ftjs/antd 0.4.2 → 0.4.3
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/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './form/define-form';
|
|
2
|
-
export { registerForm } from './form/register';
|
|
2
|
+
export { registerForm, defineFormItem } from './form/register';
|
|
3
3
|
export type { FtAntdFormColumn, AntdColumnBase, RegisterColumnMap, } from './form/register';
|
|
4
4
|
export * from './vxe-table';
|
|
5
5
|
export * from './antd-table';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { getField, useFormItem, unrefs, useForm, set, get, cloneDeep, useTable } from "@ftjs/core";
|
|
2
|
-
import { computed, toValue, createVNode, mergeProps, unref, createTextVNode, isVNode, defineComponent, createElementBlock, openBlock, Fragment, renderList, createBlock, resolveDynamicComponent, ref, useId, withCtx, createCommentVNode, createElementVNode, toDisplayString, reactive, watch, h, onMounted, onUnmounted, useTemplateRef, nextTick, normalizeStyle, renderSlot, createSlots, normalizeProps
|
|
2
|
+
import { computed, toValue, createVNode, mergeProps, unref, createTextVNode, isVNode, defineComponent, createElementBlock, openBlock, Fragment, renderList, createBlock, resolveDynamicComponent, ref, useId, withCtx, createCommentVNode, createElementVNode, toDisplayString, reactive, watch, h, onMounted, onUnmounted, useTemplateRef, nextTick, normalizeStyle, renderSlot, createSlots, normalizeProps } from "vue";
|
|
3
3
|
import { FormItem, Input, Select, DatePicker, RangePicker, Radio, Textarea, Upload, Cascader, AutoComplete, CheckboxGroup, InputNumber, Mentions, Rate, Slider, Switch, TreeSelect, Form, Button, Modal, Tree, Divider, Table, Spin, Pagination } from "ant-design-vue";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { SwapOutlined, SettingOutlined } from "@ant-design/icons-vue";
|
|
6
|
+
import { VxeGrid } from "vxe-table";
|
|
6
7
|
const useFormItemProps = (column) => {
|
|
7
8
|
return computed(() => {
|
|
8
9
|
const field = getField(column);
|
|
@@ -1508,7 +1509,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1508
1509
|
refresh
|
|
1509
1510
|
});
|
|
1510
1511
|
return (_ctx, _cache) => {
|
|
1511
|
-
const _component_VxeGrid = resolveComponent("VxeGrid");
|
|
1512
1512
|
return openBlock(), createElementBlock("div", {
|
|
1513
1513
|
ref_key: "containerRef",
|
|
1514
1514
|
ref: containerRef,
|
|
@@ -1527,7 +1527,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1527
1527
|
}
|
|
1528
1528
|
})], 64)) : createCommentVNode("", true), createElementVNode("div", {
|
|
1529
1529
|
style: normalizeStyle(unref(tableStyle))
|
|
1530
|
-
}, [createVNode(
|
|
1530
|
+
}, [createVNode(unref(VxeGrid), mergeProps({
|
|
1531
1531
|
ref_key: "gridRef",
|
|
1532
1532
|
ref: gridRef,
|
|
1533
1533
|
border: "",
|
|
@@ -1580,6 +1580,7 @@ export {
|
|
|
1580
1580
|
_sfc_main$2 as FtAntdFormSearch,
|
|
1581
1581
|
_sfc_main$1 as FtAntdTable,
|
|
1582
1582
|
_sfc_main as FtVxeTable,
|
|
1583
|
+
defineFormItem,
|
|
1583
1584
|
editMap,
|
|
1584
1585
|
isComponentTuple,
|
|
1585
1586
|
registerEdit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ftjs/antd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vite": "^6.1.0",
|
|
31
31
|
"vite-plugin-dts": "^4.5.0",
|
|
32
32
|
"vue-tsc": "2.2.0",
|
|
33
|
-
"@ftjs/core": "0.4.
|
|
33
|
+
"@ftjs/core": "0.4.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@ant-design/icons-vue": ">=7.0.0",
|