3h1-ui 3.0.0-next.233 → 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 +16 -6
- package/es/style.css +15 -10
- package/lib/index.js +15 -5
- package/lib/style.css +15 -10
- 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([]);
|
|
@@ -49538,6 +49539,15 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49538
49539
|
if (isArray$3(group)) {
|
|
49539
49540
|
let _slot2;
|
|
49540
49541
|
const props3 = pick$1(unref(getProps), ["bordered"]);
|
|
49542
|
+
const isAllShowFalse = group.every((schema) => {
|
|
49543
|
+
const {
|
|
49544
|
+
isShow: isShow2,
|
|
49545
|
+
isIfShow: isIfShow2
|
|
49546
|
+
} = getShow(schema);
|
|
49547
|
+
return !isShow2 || !isIfShow2;
|
|
49548
|
+
});
|
|
49549
|
+
if (isAllShowFalse)
|
|
49550
|
+
return null;
|
|
49541
49551
|
return createVNode(Descriptions$1, props3, _isSlot(_slot2 = group.map((schema) => renderDescriptionsItem(schema))) ? _slot2 : {
|
|
49542
49552
|
default: () => [_slot2]
|
|
49543
49553
|
});
|
package/es/style.css
CHANGED
|
@@ -10048,8 +10048,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10048
10048
|
}
|
|
10049
10049
|
.shy-basic-descriptions .group {
|
|
10050
10050
|
display: flex;
|
|
10051
|
-
flex-grow: 0;
|
|
10052
|
-
flex-shrink: 0;
|
|
10051
|
+
flex-grow: 0 !important;
|
|
10052
|
+
flex-shrink: 0 !important;
|
|
10053
|
+
flex-wrap: wrap !important;
|
|
10053
10054
|
overflow: hidden;
|
|
10054
10055
|
flex: calc(var(--col-span) - var(--gap));
|
|
10055
10056
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10057,8 +10058,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10057
10058
|
}
|
|
10058
10059
|
.shy-basic-descriptions-divider {
|
|
10059
10060
|
display: flex;
|
|
10060
|
-
flex-grow: 0;
|
|
10061
|
-
flex-shrink: 0;
|
|
10061
|
+
flex-grow: 0 !important;
|
|
10062
|
+
flex-shrink: 0 !important;
|
|
10063
|
+
flex-wrap: wrap !important;
|
|
10062
10064
|
overflow: hidden;
|
|
10063
10065
|
flex: calc(var(--col-span) - var(--gap));
|
|
10064
10066
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10071,8 +10073,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10071
10073
|
}
|
|
10072
10074
|
.shy-basic-descriptions-group {
|
|
10073
10075
|
display: flex;
|
|
10074
|
-
flex-grow: 0;
|
|
10075
|
-
flex-shrink: 0;
|
|
10076
|
+
flex-grow: 0 !important;
|
|
10077
|
+
flex-shrink: 0 !important;
|
|
10078
|
+
flex-wrap: wrap !important;
|
|
10076
10079
|
overflow: hidden;
|
|
10077
10080
|
flex: calc(var(--col-span) - var(--gap));
|
|
10078
10081
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10093,8 +10096,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10093
10096
|
}
|
|
10094
10097
|
.shy-basic-descriptions-custom {
|
|
10095
10098
|
display: flex;
|
|
10096
|
-
flex-grow: 0;
|
|
10097
|
-
flex-shrink: 0;
|
|
10099
|
+
flex-grow: 0 !important;
|
|
10100
|
+
flex-shrink: 0 !important;
|
|
10101
|
+
flex-wrap: wrap !important;
|
|
10098
10102
|
overflow: hidden;
|
|
10099
10103
|
flex: calc(var(--col-span) - var(--gap));
|
|
10100
10104
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10102,8 +10106,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10102
10106
|
}
|
|
10103
10107
|
.shy-basic-descriptions-origin {
|
|
10104
10108
|
display: flex;
|
|
10105
|
-
flex-grow: 0;
|
|
10106
|
-
flex-shrink: 0;
|
|
10109
|
+
flex-grow: 0 !important;
|
|
10110
|
+
flex-shrink: 0 !important;
|
|
10111
|
+
flex-wrap: wrap !important;
|
|
10107
10112
|
overflow: hidden;
|
|
10108
10113
|
flex: calc(var(--col-span) - var(--gap));
|
|
10109
10114
|
width: calc(var(--col-span) - var(--gap));
|
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([]);
|
|
@@ -49562,6 +49563,15 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49562
49563
|
if (utils$1.isArray(group)) {
|
|
49563
49564
|
let _slot2;
|
|
49564
49565
|
const props3 = pick$1(vue.unref(getProps), ["bordered"]);
|
|
49566
|
+
const isAllShowFalse = group.every((schema) => {
|
|
49567
|
+
const {
|
|
49568
|
+
isShow: isShow2,
|
|
49569
|
+
isIfShow: isIfShow2
|
|
49570
|
+
} = getShow(schema);
|
|
49571
|
+
return !isShow2 || !isIfShow2;
|
|
49572
|
+
});
|
|
49573
|
+
if (isAllShowFalse)
|
|
49574
|
+
return null;
|
|
49565
49575
|
return vue.createVNode(Descriptions$1, props3, _isSlot(_slot2 = group.map((schema) => renderDescriptionsItem(schema))) ? _slot2 : {
|
|
49566
49576
|
default: () => [_slot2]
|
|
49567
49577
|
});
|
package/lib/style.css
CHANGED
|
@@ -10048,8 +10048,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10048
10048
|
}
|
|
10049
10049
|
.shy-basic-descriptions .group {
|
|
10050
10050
|
display: flex;
|
|
10051
|
-
flex-grow: 0;
|
|
10052
|
-
flex-shrink: 0;
|
|
10051
|
+
flex-grow: 0 !important;
|
|
10052
|
+
flex-shrink: 0 !important;
|
|
10053
|
+
flex-wrap: wrap !important;
|
|
10053
10054
|
overflow: hidden;
|
|
10054
10055
|
flex: calc(var(--col-span) - var(--gap));
|
|
10055
10056
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10057,8 +10058,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10057
10058
|
}
|
|
10058
10059
|
.shy-basic-descriptions-divider {
|
|
10059
10060
|
display: flex;
|
|
10060
|
-
flex-grow: 0;
|
|
10061
|
-
flex-shrink: 0;
|
|
10061
|
+
flex-grow: 0 !important;
|
|
10062
|
+
flex-shrink: 0 !important;
|
|
10063
|
+
flex-wrap: wrap !important;
|
|
10062
10064
|
overflow: hidden;
|
|
10063
10065
|
flex: calc(var(--col-span) - var(--gap));
|
|
10064
10066
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10071,8 +10073,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10071
10073
|
}
|
|
10072
10074
|
.shy-basic-descriptions-group {
|
|
10073
10075
|
display: flex;
|
|
10074
|
-
flex-grow: 0;
|
|
10075
|
-
flex-shrink: 0;
|
|
10076
|
+
flex-grow: 0 !important;
|
|
10077
|
+
flex-shrink: 0 !important;
|
|
10078
|
+
flex-wrap: wrap !important;
|
|
10076
10079
|
overflow: hidden;
|
|
10077
10080
|
flex: calc(var(--col-span) - var(--gap));
|
|
10078
10081
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10093,8 +10096,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10093
10096
|
}
|
|
10094
10097
|
.shy-basic-descriptions-custom {
|
|
10095
10098
|
display: flex;
|
|
10096
|
-
flex-grow: 0;
|
|
10097
|
-
flex-shrink: 0;
|
|
10099
|
+
flex-grow: 0 !important;
|
|
10100
|
+
flex-shrink: 0 !important;
|
|
10101
|
+
flex-wrap: wrap !important;
|
|
10098
10102
|
overflow: hidden;
|
|
10099
10103
|
flex: calc(var(--col-span) - var(--gap));
|
|
10100
10104
|
width: calc(var(--col-span) - var(--gap));
|
|
@@ -10102,8 +10106,9 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
|
|
|
10102
10106
|
}
|
|
10103
10107
|
.shy-basic-descriptions-origin {
|
|
10104
10108
|
display: flex;
|
|
10105
|
-
flex-grow: 0;
|
|
10106
|
-
flex-shrink: 0;
|
|
10109
|
+
flex-grow: 0 !important;
|
|
10110
|
+
flex-shrink: 0 !important;
|
|
10111
|
+
flex-wrap: wrap !important;
|
|
10107
10112
|
overflow: hidden;
|
|
10108
10113
|
flex: calc(var(--col-span) - var(--gap));
|
|
10109
10114
|
width: calc(var(--col-span) - var(--gap));
|
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/use": "1.0.1-next.5",
|
|
33
32
|
"@shy-plugins/tinymce": "^1.0.6",
|
|
34
|
-
"@shy-plugins/utils": "1.0.0-next.1"
|
|
33
|
+
"@shy-plugins/utils": "1.0.0-next.1",
|
|
34
|
+
"@shy-plugins/use": "1.0.1-next.5"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|
|
37
37
|
"devDependencies": {
|