@ftjs/antd 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getField, useFormItem, unrefs, useFormInject, useForm, set, useTable, get } from "@ftjs/core";
|
|
1
|
+
import { getField, useFormItem, unrefs, useFormInject, toValueWithForm, useForm, set, useTable, get } from "@ftjs/core";
|
|
2
2
|
import { computed, toValue, createVNode, mergeProps, unref, createTextVNode, isVNode, defineComponent, createBlock, openBlock, resolveDynamicComponent, createElementBlock, Fragment, renderList, ref, useId, withCtx, renderSlot, createCommentVNode, createElementVNode, toDisplayString, onMounted, h, useTemplateRef, normalizeStyle, 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, Spin, Pagination } from "ant-design-vue";
|
|
4
4
|
import dayjs from "dayjs";
|
|
@@ -501,7 +501,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
501
501
|
const props = __props;
|
|
502
502
|
const { form } = useFormInject();
|
|
503
503
|
const isView = computed(() => {
|
|
504
|
-
return
|
|
504
|
+
return toValueWithForm(props.column.isView, form) ?? props.isView;
|
|
505
505
|
});
|
|
506
506
|
return (_ctx, _cache) => {
|
|
507
507
|
return isView.value && _ctx.column.viewRender ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.column.viewRender), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ftjs/antd",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"vite": "^6.1.0",
|
|
31
31
|
"vite-plugin-dts": "^4.5.0",
|
|
32
32
|
"vue-tsc": "2.2.0",
|
|
33
|
-
"@ftjs/core": "1.
|
|
33
|
+
"@ftjs/core": "1.2.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@ant-design/icons-vue": ">=7.0.0",
|
|
37
37
|
"vue": ">=3.3.0",
|
|
38
|
-
"@ftjs/core": ">=1.
|
|
38
|
+
"@ftjs/core": ">=1.2.0<2.0.0",
|
|
39
39
|
"ant-design-vue": ">=4.0.0",
|
|
40
40
|
"dayjs": ">=1.0.0",
|
|
41
41
|
"vxe-table": ">=4.0.0"
|