@ftjs/tdesign 0.5.7 → 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 +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, toValue, createVNode, mergeProps, createTextVNode, h, isVNode, defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, createElementBlock, Fragment, renderList, normalizeStyle, ref, useId, withCtx, renderSlot, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { getField, set, useFormItem, useFormInject, unrefs, useForm } from "@ftjs/core";
|
|
2
|
+
import { getField, set, useFormItem, useFormInject, toValueWithForm, unrefs, useForm } from "@ftjs/core";
|
|
3
3
|
import { FormItem, AutoComplete as AutoComplete$1, Cascader as Cascader$1, CheckboxGroup, ColorPicker as ColorPicker$1, DatePicker as DatePicker$1, DateRangePicker as DateRangePicker$1, Input as Input$1, InputAdornment, InputNumber as InputNumber$1, Tag, TagInput as TagInput$1, RadioGroup, RangeInput as RangeInput$1, Select as Select$1, Slider as Slider$1, Switch as Switch$1, Textarea as Textarea$1, TimePicker as TimePicker$1, TreeSelect as TreeSelect$1, Form, Button, Dialog, Tree } from "tdesign-vue-next";
|
|
4
4
|
import { MoveIcon, SettingIcon } from "tdesign-icons-vue-next";
|
|
5
5
|
const useFormItemProps = (column) => {
|
|
@@ -582,7 +582,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
582
582
|
const props = __props;
|
|
583
583
|
const { form } = useFormInject();
|
|
584
584
|
const isView = computed(() => {
|
|
585
|
-
return
|
|
585
|
+
return toValueWithForm(props.column.isView, form) ?? props.isView;
|
|
586
586
|
});
|
|
587
587
|
const unrefsProps = computed(() => {
|
|
588
588
|
return unrefs(props.column.props);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ftjs/tdesign",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"vite": "^6.1.0",
|
|
30
30
|
"vite-plugin-dts": "^4.5.0",
|
|
31
31
|
"vue-tsc": "2.2.0",
|
|
32
|
-
"@ftjs/core": "
|
|
32
|
+
"@ftjs/core": "1.2.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"vue": ">=3.3.0",
|
|
36
|
-
"@ftjs/core": ">=0.
|
|
36
|
+
"@ftjs/core": ">=1.2.0<2.0.0",
|
|
37
37
|
"dayjs": ">=1.0.0",
|
|
38
38
|
"tdesign-vue-next": ">=1.11.5"
|
|
39
39
|
},
|