@ftjs/tdesign 3.0.0 → 3.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 +21 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, toValue, createVNode, mergeProps, createTextVNode, h, isVNode, defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, ref, useId, withCtx, renderSlot, createCommentVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
2
|
import { getField, set, useFormItem, useLocale, useFormInject, toValueWithForm, unrefs, useForm } from "@ftjs/core";
|
|
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";
|
|
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, Badge } from "tdesign-vue-next";
|
|
4
4
|
import { MoveIcon, SettingIcon } from "tdesign-icons-vue-next";
|
|
5
5
|
const useFormItemProps = (column) => {
|
|
6
6
|
return computed(() => {
|
|
@@ -863,6 +863,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
863
863
|
const toIndex = dropPosition > 0 ? dropNodeIndex + dropPosition : dropNodeIndex;
|
|
864
864
|
list.splice(toIndex, 0, dragItem);
|
|
865
865
|
};
|
|
866
|
+
const hideCountNum = computed(() => {
|
|
867
|
+
return props.cache ? props.columns.length - columnsChecked.value.length : 0;
|
|
868
|
+
});
|
|
866
869
|
__expose({
|
|
867
870
|
formInstance: formRef,
|
|
868
871
|
formData: form,
|
|
@@ -948,20 +951,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
948
951
|
createVNode(unref(FormItem), null, {
|
|
949
952
|
default: withCtx(() => [
|
|
950
953
|
createElementVNode("div", _hoisted_3, [
|
|
951
|
-
_ctx.cache ? (openBlock(), createBlock(unref(
|
|
954
|
+
_ctx.cache ? (openBlock(), createBlock(unref(Badge), {
|
|
952
955
|
key: 0,
|
|
953
|
-
|
|
954
|
-
ghost: "",
|
|
955
|
-
onClick: setting
|
|
956
|
+
count: hideCountNum.value
|
|
956
957
|
}, {
|
|
957
|
-
icon: withCtx(() => [
|
|
958
|
-
createVNode(unref(SettingIcon))
|
|
959
|
-
]),
|
|
960
958
|
default: withCtx(() => [
|
|
961
|
-
|
|
959
|
+
_ctx.cache ? (openBlock(), createBlock(unref(Button), {
|
|
960
|
+
key: 0,
|
|
961
|
+
theme: "primary",
|
|
962
|
+
ghost: "",
|
|
963
|
+
onClick: setting
|
|
964
|
+
}, {
|
|
965
|
+
icon: withCtx(() => [
|
|
966
|
+
createVNode(unref(SettingIcon))
|
|
967
|
+
]),
|
|
968
|
+
default: withCtx(() => [
|
|
969
|
+
createTextVNode(" " + toDisplayString(unref(locale).form.settings), 1)
|
|
970
|
+
]),
|
|
971
|
+
_: 1
|
|
972
|
+
})) : createCommentVNode("", true)
|
|
962
973
|
]),
|
|
963
974
|
_: 1
|
|
964
|
-
})) : createCommentVNode("", true),
|
|
975
|
+
}, 8, ["count"])) : createCommentVNode("", true),
|
|
965
976
|
createVNode(unref(Button), {
|
|
966
977
|
theme: "primary",
|
|
967
978
|
type: "submit"
|