3h1-ui 3.0.0-next.234 → 3.0.0-next.235
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/es/index.js +7 -6
- package/lib/index.js +6 -5
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode, Transition, mergeProps, openBlock, createBlock, toHandlers, withCtx, renderSlot, computed, createElementBlock, normalizeClass, normalizeStyle as normalizeStyle$1, createElementVNode, ref, watch, onMounted, unref, nextTick, resolveComponent, getCurrentScope, onScopeDispose, getCurrentInstance, onUnmounted, readonly, watchEffect, Fragment, renderList, createCommentVNode, h as h$2, useSlots, resolveDynamicComponent, createTextVNode, toDisplayString, withDirectives, vShow, inject, provide, onBeforeUnmount, reactive, toRef, toRefs, TransitionGroup, shallowRef, isVNode, createSlots, normalizeProps, guardReactiveProps, toRaw, defineAsyncComponent, isRef, triggerRef, Comment, Text, cloneVNode, resolveDirective, onUpdated, withModifiers, onBeforeMount, Teleport, render as render$1, useAttrs as useAttrs$2, useCssVars } from "vue";
|
|
2
2
|
import { Input, Popover, Pagination as Pagination$1, Empty as Empty$3, Tooltip as Tooltip$2, Skeleton, Modal as Modal$2, Button as Button$1, ConfigProvider, Popconfirm, PageHeader, Space, Radio, Select, Tree, TreeSelect, Cascader, Transfer, Col as Col$1, Form as Form$1, Row as Row$1, Menu, Divider as Divider$1, Spin, FormItemRest as FormItemRest$1, InputNumber, AutoComplete, Switch, Checkbox, DatePicker as DatePicker$1, TimePicker as TimePicker$1, Dropdown, CheckboxGroup, Tag, Table, TableSummary, TableSummaryRow, TableSummaryCell, Image, Badge, FormItem as FormItem$3, Progress, Alert, Upload, theme, Collapse, CollapsePanel, Slider, Rate, Drawer, Avatar, Descriptions as Descriptions$2, DescriptionsItem as DescriptionsItem$1, Breadcrumb } from "ant-design-vue";
|
|
3
|
-
import { getSlot as getSlot$2, addClass as addClass$2, removeClass as removeClass$2, isString as isString$3, getPopupContainer, isArray as isArray$3, isFunction as isFunction$6, triggerWindowResize, off, on, addResizeListener, removeResizeListener, extendSlots as extendSlots$1, withInstall as withInstall$7, isNumber as isNumber$3, isBoolean as isBoolean$2, isNull, isObject as isObject$7, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$2, getDynamicProps, forEach as forEach$1, isClient as isClient$1, buildProps, createBEM, filter, treeToList as treeToList$1, eachTree,
|
|
3
|
+
import { getSlot as getSlot$2, addClass as addClass$2, removeClass as removeClass$2, isString as isString$3, getPopupContainer, isArray as isArray$3, isFunction as isFunction$6, triggerWindowResize, off, on, addResizeListener, removeResizeListener, extendSlots as extendSlots$1, withInstall as withInstall$7, isNumber as isNumber$3, isBoolean as isBoolean$2, isNull, isObject as isObject$7, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$2, isEmpty, getDynamicProps, forEach as forEach$1, isClient as isClient$1, buildProps, createBEM, filter, treeToList as treeToList$1, eachTree, findNodeAll, buildUUID, isServer, isNullAndUnDef, formatToDate, isMap as isMap$2, getViewportOffset, warn as warn$2, downloadByUrl, dataURLtoBlob, deepMergeObjects } from "@shy-plugins/utils";
|
|
4
4
|
import Iconify from "@purge-icons/generated";
|
|
5
5
|
import { useCopyToClipboard, useMessage, usePagination as usePagination$2, useDesign as useDesign$1, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useTheme, useAttrs as useAttrs$1, useContentHeight, useRuleFormItem, useContext as useContext$1, createContext as createContext$2, onMountedOrActivated, useI18n as useI18n$1, useSortable } from "@shy-plugins/use";
|
|
6
6
|
import { isBoolean as isBoolean$1 } from "xe-utils";
|
|
@@ -11732,7 +11732,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11732
11732
|
const isTableForm = computed(() => !!formProps2.value.formLabelInInput);
|
|
11733
11733
|
const componentsPropsRef = ref({});
|
|
11734
11734
|
watch(() => props2.formModel, () => {
|
|
11735
|
-
var _a2, _b, _c, _d, _e;
|
|
11735
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
11736
11736
|
const {
|
|
11737
11737
|
schema: schema2,
|
|
11738
11738
|
tableAction: tableAction2,
|
|
@@ -11782,12 +11782,13 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11782
11782
|
};
|
|
11783
11783
|
}
|
|
11784
11784
|
if (schema2.component === "Input" || schema2.component === "InputTextArea") {
|
|
11785
|
-
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength)
|
|
11785
|
+
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_e = config == null ? void 0 : config.Input) == null ? void 0 : _e.maxlength) || 100;
|
|
11786
11786
|
componentProps = Object.assign({}, componentProps, {
|
|
11787
11787
|
maxlength
|
|
11788
11788
|
});
|
|
11789
11789
|
componentProps.onInputEvent = (e2) => {
|
|
11790
|
-
|
|
11790
|
+
var _a3;
|
|
11791
|
+
componentProps.maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_a3 = config == null ? void 0 : config.Input) == null ? void 0 : _a3.maxlength) || 100;
|
|
11791
11792
|
if (!get$1(getValues.value.model, getValues.value.schema.field)) {
|
|
11792
11793
|
componentProps.showCount = true;
|
|
11793
11794
|
} else {
|
|
@@ -11796,7 +11797,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11796
11797
|
};
|
|
11797
11798
|
}
|
|
11798
11799
|
if (schema2.component === "Select") {
|
|
11799
|
-
const label = ((
|
|
11800
|
+
const label = ((_f = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _f.label) || "label";
|
|
11800
11801
|
componentProps = Object.assign({}, componentProps, {
|
|
11801
11802
|
showSearch: true,
|
|
11802
11803
|
filterOption: (input, option) => {
|
|
@@ -25748,7 +25749,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
|
|
|
25748
25749
|
}
|
|
25749
25750
|
}
|
|
25750
25751
|
if ((_b = (_a2 = schema == null ? void 0 : schema.component) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, "Input")) {
|
|
25751
|
-
schema.defaultValue = schema.defaultValue
|
|
25752
|
+
schema.defaultValue = !isEmpty(schema.defaultValue) ? schema.defaultValue : "";
|
|
25752
25753
|
}
|
|
25753
25754
|
if (schema.component === "Table") {
|
|
25754
25755
|
schema.defaultValue = schema.defaultValue || reactive([]);
|
package/lib/index.js
CHANGED
|
@@ -11756,7 +11756,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11756
11756
|
const isTableForm = vue.computed(() => !!formProps2.value.formLabelInInput);
|
|
11757
11757
|
const componentsPropsRef = vue.ref({});
|
|
11758
11758
|
vue.watch(() => props2.formModel, () => {
|
|
11759
|
-
var _a2, _b, _c, _d, _e;
|
|
11759
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
11760
11760
|
const {
|
|
11761
11761
|
schema: schema2,
|
|
11762
11762
|
tableAction: tableAction2,
|
|
@@ -11806,12 +11806,13 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11806
11806
|
};
|
|
11807
11807
|
}
|
|
11808
11808
|
if (schema2.component === "Input" || schema2.component === "InputTextArea") {
|
|
11809
|
-
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength)
|
|
11809
|
+
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_e = config == null ? void 0 : config.Input) == null ? void 0 : _e.maxlength) || 100;
|
|
11810
11810
|
componentProps = Object.assign({}, componentProps, {
|
|
11811
11811
|
maxlength
|
|
11812
11812
|
});
|
|
11813
11813
|
componentProps.onInputEvent = (e2) => {
|
|
11814
|
-
|
|
11814
|
+
var _a3;
|
|
11815
|
+
componentProps.maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_a3 = config == null ? void 0 : config.Input) == null ? void 0 : _a3.maxlength) || 100;
|
|
11815
11816
|
if (!get$1(getValues.value.model, getValues.value.schema.field)) {
|
|
11816
11817
|
componentProps.showCount = true;
|
|
11817
11818
|
} else {
|
|
@@ -11820,7 +11821,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11820
11821
|
};
|
|
11821
11822
|
}
|
|
11822
11823
|
if (schema2.component === "Select") {
|
|
11823
|
-
const label = ((
|
|
11824
|
+
const label = ((_f = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _f.label) || "label";
|
|
11824
11825
|
componentProps = Object.assign({}, componentProps, {
|
|
11825
11826
|
showSearch: true,
|
|
11826
11827
|
filterOption: (input, option) => {
|
|
@@ -25772,7 +25773,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
25772
25773
|
}
|
|
25773
25774
|
}
|
|
25774
25775
|
if ((_b = (_a2 = schema == null ? void 0 : schema.component) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, "Input")) {
|
|
25775
|
-
schema.defaultValue = schema.defaultValue
|
|
25776
|
+
schema.defaultValue = !utils$1.isEmpty(schema.defaultValue) ? schema.defaultValue : "";
|
|
25776
25777
|
}
|
|
25777
25778
|
if (schema.component === "Table") {
|
|
25778
25779
|
schema.defaultValue = schema.defaultValue || vue.reactive([]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.235",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vue-json-pretty": "^2.2.3",
|
|
30
30
|
"vxe-table": "^4.3.6",
|
|
31
31
|
"xe-utils": "^3.5.7",
|
|
32
|
-
"@shy-plugins/
|
|
32
|
+
"@shy-plugins/tinymce": "^1.0.6",
|
|
33
33
|
"@shy-plugins/utils": "1.0.0-next.1",
|
|
34
|
-
"@shy-plugins/
|
|
34
|
+
"@shy-plugins/use": "1.0.1-next.5"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|
|
37
37
|
"devDependencies": {
|