3h1-ui 3.0.0-next.24 → 3.0.0-next.26
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 +284 -281
- package/es/style.css +134 -231
- package/index.ts +42 -0
- package/lib/index.js +283 -280
- package/lib/style.css +134 -231
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, nextTick, createVNode, defineComponent, ref, computed, unref, watchEffect, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createSlots, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, onMounted, normalizeClass, createCommentVNode, normalizeStyle as normalizeStyle$1, Transition, toHandlers, useSlots, withDirectives, vShow, getCurrentInstance, inject, onUnmounted, provide, onBeforeUnmount, resolveDynamicComponent, reactive, toRef, toRefs, TransitionGroup, getCurrentScope, onScopeDispose, readonly, defineAsyncComponent, isRef, toRaw, shallowRef, isVNode, useAttrs as useAttrs$2, shallowReactive, withKeys, withModifiers, render as render$1, resolveDirective, pushScopeId, popScopeId, useCssVars, triggerRef, Comment, Text } from "vue";
|
|
2
2
|
import { Radio, Select, Tree, TreeSelect, Cascader, Transfer, Input, Tooltip, Skeleton, Popover, Pagination as Pagination$1, Empty as Empty$3, Button as Button$1, Table as Table$2, FormItem, DatePicker as DatePicker$1, InputNumber, Modal as Modal$3, ConfigProvider, Popconfirm, Menu, Dropdown, Divider as Divider$2, Image, Progress, Tag, Alert, Upload, Space, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker as TimePicker$1, Col, Form, Row, MenuItem, MenuDivider, Spin, PageHeader, CheckboxGroup, TableSummaryRow, TableSummaryCell, TableSummary, Badge, FormItemRest, Drawer, Avatar, Descriptions, DescriptionsItem, theme } from "ant-design-vue";
|
|
3
|
-
import { isFunction as isFunction$4, isString as isString$4, isArray as isArray$4, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, buildUUID,
|
|
3
|
+
import { isFunction as isFunction$4, isString as isString$4, isArray as isArray$4, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, buildUUID, extendSlots as extendSlots$1, withInstall as withInstall$7, isBoolean, isNumber as isNumber$2, isDef as isDef$1, warn as warn$1, downloadByUrl, isObject as isObject$4, isNull, dateUtil, isNullOrUnDef, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, formatToDate, isMap as isMap$2, findNodeAll, getViewportOffset, isNullAndUnDef, dataURLtoBlob, deepMergeObjects } from "@shy-plugins/utils";
|
|
4
4
|
import { useAttrs as useAttrs$1, useRuleFormItem, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$3, useI18n as useI18n$1, useDesign as useDesign$1, useSortable, createContext as createContext$1, useContext as useContext$2, useBreakpoint, useContentHeight, useWindowSizeFn as useWindowSizeFn$1, onMountedOrActivated, useEventListener as useEventListener$1 } from "@shy-plugins/use";
|
|
5
5
|
import { zxcvbn } from "@zxcvbn-ts/core";
|
|
6
6
|
import Iconify from "@purge-icons/generated";
|
|
@@ -5319,7 +5319,7 @@ const _sfc_main$1D = defineComponent({
|
|
|
5319
5319
|
};
|
|
5320
5320
|
}
|
|
5321
5321
|
});
|
|
5322
|
-
const
|
|
5322
|
+
const StrengthMeter_vue_vue_type_style_index_0_scoped_678d40fd_lang = "";
|
|
5323
5323
|
const _hoisted_1$F = ["data-score"];
|
|
5324
5324
|
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5325
5325
|
const _component_InputPassword = resolveComponent("InputPassword");
|
|
@@ -5351,7 +5351,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5351
5351
|
], 2)
|
|
5352
5352
|
], 2);
|
|
5353
5353
|
}
|
|
5354
|
-
const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$X], ["__scopeId", "data-v-
|
|
5354
|
+
const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$X], ["__scopeId", "data-v-678d40fd"]]);
|
|
5355
5355
|
const _sfc_main$1C = defineComponent({
|
|
5356
5356
|
name: "SvgIcon",
|
|
5357
5357
|
props: {
|
|
@@ -5387,7 +5387,7 @@ const _sfc_main$1C = defineComponent({
|
|
|
5387
5387
|
return { symbolId, prefixCls: prefixCls2, getStyle };
|
|
5388
5388
|
}
|
|
5389
5389
|
});
|
|
5390
|
-
const
|
|
5390
|
+
const SvgIcon_vue_vue_type_style_index_0_scoped_905fa4a6_lang = "";
|
|
5391
5391
|
const _hoisted_1$E = ["xlink:href"];
|
|
5392
5392
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5393
5393
|
return openBlock(), createElementBlock("svg", {
|
|
@@ -5398,7 +5398,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5398
5398
|
createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$E)
|
|
5399
5399
|
], 6);
|
|
5400
5400
|
}
|
|
5401
|
-
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$W], ["__scopeId", "data-v-
|
|
5401
|
+
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$W], ["__scopeId", "data-v-905fa4a6"]]);
|
|
5402
5402
|
const SVG_END_WITH_FLAG = "|svg";
|
|
5403
5403
|
const _sfc_main$1B = defineComponent({
|
|
5404
5404
|
name: "Icon",
|
|
@@ -5709,8 +5709,8 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
5709
5709
|
};
|
|
5710
5710
|
}
|
|
5711
5711
|
});
|
|
5712
|
-
const
|
|
5713
|
-
const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-
|
|
5712
|
+
const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
|
|
5713
|
+
const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-fea26917"]]);
|
|
5714
5714
|
const props$c = {
|
|
5715
5715
|
/**
|
|
5716
5716
|
* Help text max-width
|
|
@@ -5852,8 +5852,8 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5852
5852
|
};
|
|
5853
5853
|
}
|
|
5854
5854
|
});
|
|
5855
|
-
const
|
|
5856
|
-
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["__scopeId", "data-v-
|
|
5855
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_59bc8f76_lang = "";
|
|
5856
|
+
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["__scopeId", "data-v-59bc8f76"]]);
|
|
5857
5857
|
const props$b = {
|
|
5858
5858
|
prefixCls: { type: String },
|
|
5859
5859
|
helpMessage: {
|
|
@@ -8429,8 +8429,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8429
8429
|
};
|
|
8430
8430
|
}
|
|
8431
8431
|
});
|
|
8432
|
-
const
|
|
8433
|
-
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-
|
|
8432
|
+
const Table_vue_vue_type_style_index_0_scoped_95018c58_lang = "";
|
|
8433
|
+
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-95018c58"]]);
|
|
8434
8434
|
const modal = "";
|
|
8435
8435
|
const modalProps = {
|
|
8436
8436
|
visible: { type: Boolean },
|
|
@@ -8488,7 +8488,11 @@ const basicProps$7 = Object.assign({}, modalProps, {
|
|
|
8488
8488
|
visible: { type: Boolean },
|
|
8489
8489
|
width: [String, Number],
|
|
8490
8490
|
wrapClassName: { type: String },
|
|
8491
|
-
zIndex: { type: Number }
|
|
8491
|
+
zIndex: { type: Number },
|
|
8492
|
+
size: {
|
|
8493
|
+
type: String,
|
|
8494
|
+
default: "default"
|
|
8495
|
+
}
|
|
8492
8496
|
});
|
|
8493
8497
|
function is(val, type) {
|
|
8494
8498
|
return toString.call(val) === `[object ${type}]`;
|
|
@@ -8883,16 +8887,20 @@ function useModalContext() {
|
|
|
8883
8887
|
return useContext$1(key$5);
|
|
8884
8888
|
}
|
|
8885
8889
|
const props$7 = {
|
|
8886
|
-
loading: { type: Boolean },
|
|
8890
|
+
loading: { type: Boolean, default: true },
|
|
8887
8891
|
useWrapper: { type: Boolean, default: true },
|
|
8888
|
-
modalHeaderHeight: { type: Number, default:
|
|
8889
|
-
modalFooterHeight: { type: Number, default:
|
|
8890
|
-
minHeight: { type: Number, default:
|
|
8892
|
+
modalHeaderHeight: { type: Number, default: 56 },
|
|
8893
|
+
modalFooterHeight: { type: Number, default: 56 },
|
|
8894
|
+
minHeight: { type: Number, default: 500 - 158 },
|
|
8891
8895
|
height: { type: Number },
|
|
8892
8896
|
footerOffset: { type: Number, default: 0 },
|
|
8893
8897
|
visible: { type: Boolean },
|
|
8894
8898
|
fullScreen: { type: Boolean },
|
|
8895
|
-
loadingTip: { type: String }
|
|
8899
|
+
loadingTip: { type: String },
|
|
8900
|
+
size: {
|
|
8901
|
+
type: String,
|
|
8902
|
+
default: "default"
|
|
8903
|
+
}
|
|
8896
8904
|
};
|
|
8897
8905
|
const _sfc_main$1l = defineComponent({
|
|
8898
8906
|
name: "ModalWrapper",
|
|
@@ -8905,6 +8913,12 @@ const _sfc_main$1l = defineComponent({
|
|
|
8905
8913
|
const spinRef = ref(null);
|
|
8906
8914
|
const realHeightRef = ref(0);
|
|
8907
8915
|
const minRealHeightRef = ref(0);
|
|
8916
|
+
let maxHeightEnum;
|
|
8917
|
+
((maxHeightEnum2) => {
|
|
8918
|
+
maxHeightEnum2[maxHeightEnum2["small"] = 500] = "small";
|
|
8919
|
+
maxHeightEnum2[maxHeightEnum2["default"] = 600] = "default";
|
|
8920
|
+
maxHeightEnum2[maxHeightEnum2["large"] = 700] = "large";
|
|
8921
|
+
})(maxHeightEnum || (maxHeightEnum = {}));
|
|
8908
8922
|
let realHeight = 0;
|
|
8909
8923
|
useWindowSizeFn(setModalHeight.bind(null, false));
|
|
8910
8924
|
useMutationObserver(
|
|
@@ -8923,7 +8937,11 @@ const _sfc_main$1l = defineComponent({
|
|
|
8923
8937
|
const spinStyle = computed(() => {
|
|
8924
8938
|
return {
|
|
8925
8939
|
minHeight: `${props2.minHeight}px`,
|
|
8926
|
-
[props2.fullScreen ? "height" : "maxHeight"]: `${unref(
|
|
8940
|
+
[props2.fullScreen ? "height" : "maxHeight"]: `${unref(
|
|
8941
|
+
realHeightRef
|
|
8942
|
+
)}px`,
|
|
8943
|
+
overflow: "auto",
|
|
8944
|
+
margin: "16px"
|
|
8927
8945
|
};
|
|
8928
8946
|
});
|
|
8929
8947
|
watchEffect(() => {
|
|
@@ -8946,36 +8964,11 @@ const _sfc_main$1l = defineComponent({
|
|
|
8946
8964
|
});
|
|
8947
8965
|
onUnmounted(() => {
|
|
8948
8966
|
});
|
|
8949
|
-
async function scrollTop() {
|
|
8950
|
-
nextTick(() => {
|
|
8951
|
-
var _a2;
|
|
8952
|
-
const wrapperRefDom = unref(wrapperRef);
|
|
8953
|
-
if (!wrapperRefDom)
|
|
8954
|
-
return;
|
|
8955
|
-
(_a2 = wrapperRefDom == null ? void 0 : wrapperRefDom.scrollTo) == null ? void 0 : _a2.call(wrapperRefDom, 0);
|
|
8956
|
-
});
|
|
8957
|
-
}
|
|
8958
8967
|
async function setModalHeight() {
|
|
8959
8968
|
if (!props2.visible)
|
|
8960
8969
|
return;
|
|
8961
|
-
const wrapperRefDom = unref(wrapperRef);
|
|
8962
|
-
if (!wrapperRefDom)
|
|
8963
|
-
return;
|
|
8964
|
-
const bodyDom = wrapperRefDom.$el.parentElement;
|
|
8965
|
-
if (!bodyDom)
|
|
8966
|
-
return;
|
|
8967
|
-
bodyDom.style.padding = "0";
|
|
8968
|
-
await nextTick();
|
|
8969
8970
|
try {
|
|
8970
|
-
|
|
8971
|
-
if (!modalDom)
|
|
8972
|
-
return;
|
|
8973
|
-
const modalRect = getComputedStyle(modalDom).top;
|
|
8974
|
-
const modalTop = Number.parseInt(modalRect);
|
|
8975
|
-
let maxHeight = window.innerHeight - modalTop * 2 + (props2.footerOffset || 0) - props2.modalFooterHeight - props2.modalHeaderHeight;
|
|
8976
|
-
if (modalTop < 40) {
|
|
8977
|
-
maxHeight -= 26;
|
|
8978
|
-
}
|
|
8971
|
+
let maxHeight = maxHeightEnum[props2.size] - props2.modalFooterHeight - props2.modalHeaderHeight - 32;
|
|
8979
8972
|
await nextTick();
|
|
8980
8973
|
const spinEl = unref(spinRef);
|
|
8981
8974
|
if (!spinEl)
|
|
@@ -8991,24 +8984,18 @@ const _sfc_main$1l = defineComponent({
|
|
|
8991
8984
|
} catch (error2) {
|
|
8992
8985
|
}
|
|
8993
8986
|
}
|
|
8994
|
-
return { wrapperRef, spinRef, spinStyle,
|
|
8987
|
+
return { wrapperRef, spinRef, spinStyle, setModalHeight };
|
|
8995
8988
|
}
|
|
8996
8989
|
});
|
|
8997
8990
|
const _hoisted_1$y = ["loading-tip"];
|
|
8998
8991
|
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
}, [
|
|
9007
|
-
renderSlot(_ctx.$slots, "default")
|
|
9008
|
-
], 12, _hoisted_1$y)
|
|
9009
|
-
]),
|
|
9010
|
-
_: 3
|
|
9011
|
-
}, 512);
|
|
8992
|
+
return openBlock(), createElementBlock("div", {
|
|
8993
|
+
ref: "spinRef",
|
|
8994
|
+
style: normalizeStyle$1(_ctx.spinStyle),
|
|
8995
|
+
"loading-tip": _ctx.loadingTip
|
|
8996
|
+
}, [
|
|
8997
|
+
renderSlot(_ctx.$slots, "default")
|
|
8998
|
+
], 12, _hoisted_1$y);
|
|
9012
8999
|
}
|
|
9013
9000
|
const ModalWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$M]]);
|
|
9014
9001
|
function getKey$2(namespace, key2) {
|
|
@@ -9120,12 +9107,164 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9120
9107
|
], 2);
|
|
9121
9108
|
}
|
|
9122
9109
|
const ModalClose = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$L]]);
|
|
9110
|
+
const validColors = ["error", "warning", "success", ""];
|
|
9111
|
+
const buttonProps = {
|
|
9112
|
+
type: {
|
|
9113
|
+
type: String,
|
|
9114
|
+
default: "default"
|
|
9115
|
+
},
|
|
9116
|
+
color: {
|
|
9117
|
+
type: String,
|
|
9118
|
+
validator: (v) => validColors.includes(v),
|
|
9119
|
+
default: ""
|
|
9120
|
+
},
|
|
9121
|
+
loading: { type: Boolean },
|
|
9122
|
+
disabled: { type: Boolean },
|
|
9123
|
+
/**
|
|
9124
|
+
* Text before icon.
|
|
9125
|
+
*/
|
|
9126
|
+
preIcon: { type: String },
|
|
9127
|
+
/**
|
|
9128
|
+
* Text after icon.
|
|
9129
|
+
*/
|
|
9130
|
+
postIcon: { type: String },
|
|
9131
|
+
/**
|
|
9132
|
+
* preIcon and postIcon icon size.
|
|
9133
|
+
* @default: 14
|
|
9134
|
+
*/
|
|
9135
|
+
iconSize: { type: Number, default: 14 },
|
|
9136
|
+
onClick: { type: Function, default: null }
|
|
9137
|
+
};
|
|
9138
|
+
const BasicButton = /* @__PURE__ */ defineComponent({
|
|
9139
|
+
props: buttonProps,
|
|
9140
|
+
setup(props2, {
|
|
9141
|
+
attrs,
|
|
9142
|
+
slots
|
|
9143
|
+
}) {
|
|
9144
|
+
const getBindValue = computed(() => {
|
|
9145
|
+
return {
|
|
9146
|
+
...attrs,
|
|
9147
|
+
...props2,
|
|
9148
|
+
type: ["danger", "waring", "success", "message"].includes(props2.type) ? "primary" : props2.type
|
|
9149
|
+
};
|
|
9150
|
+
});
|
|
9151
|
+
const renderButton = () => {
|
|
9152
|
+
const isDanger = () => {
|
|
9153
|
+
return props2.type === "danger" ? {
|
|
9154
|
+
type: void 0,
|
|
9155
|
+
danger: true
|
|
9156
|
+
} : {};
|
|
9157
|
+
};
|
|
9158
|
+
const getColor = () => {
|
|
9159
|
+
let colorPrimary;
|
|
9160
|
+
switch (props2.type || props2.color) {
|
|
9161
|
+
case "danger":
|
|
9162
|
+
colorPrimary = "#CF222E";
|
|
9163
|
+
break;
|
|
9164
|
+
case "waring":
|
|
9165
|
+
colorPrimary = "#BF8700";
|
|
9166
|
+
break;
|
|
9167
|
+
case "success":
|
|
9168
|
+
colorPrimary = "#2DA44E";
|
|
9169
|
+
break;
|
|
9170
|
+
case "message":
|
|
9171
|
+
colorPrimary = "#0969DA";
|
|
9172
|
+
break;
|
|
9173
|
+
default:
|
|
9174
|
+
colorPrimary = "#2DA44E";
|
|
9175
|
+
break;
|
|
9176
|
+
}
|
|
9177
|
+
return colorPrimary;
|
|
9178
|
+
};
|
|
9179
|
+
const getTypeToken = () => {
|
|
9180
|
+
return {
|
|
9181
|
+
token: {
|
|
9182
|
+
colorPrimary: getColor()
|
|
9183
|
+
}
|
|
9184
|
+
};
|
|
9185
|
+
};
|
|
9186
|
+
const isLinkColorStyle = () => {
|
|
9187
|
+
return props2.type === "link" ? {
|
|
9188
|
+
color: getColor()
|
|
9189
|
+
} : {};
|
|
9190
|
+
};
|
|
9191
|
+
return createVNode(ConfigProvider, {
|
|
9192
|
+
"theme": getTypeToken()
|
|
9193
|
+
}, {
|
|
9194
|
+
default: () => [createVNode(Button$1, mergeProps(getBindValue.value, isDanger(), {
|
|
9195
|
+
"onClick": props2.onClick,
|
|
9196
|
+
"style": isLinkColorStyle()
|
|
9197
|
+
}), {
|
|
9198
|
+
default: (data) => {
|
|
9199
|
+
var _a2;
|
|
9200
|
+
return createVNode(Fragment, null, [props2.preIcon ? createVNode(Icon2, {
|
|
9201
|
+
"icon": props2.preIcon,
|
|
9202
|
+
"size": props2.iconSize
|
|
9203
|
+
}, null) : null, (_a2 = slots == null ? void 0 : slots.default) == null ? void 0 : _a2.call(slots, data), props2.postIcon ? createVNode(Icon2, {
|
|
9204
|
+
"icon": props2.postIcon,
|
|
9205
|
+
"size": props2.iconSize
|
|
9206
|
+
}, null) : null]);
|
|
9207
|
+
}
|
|
9208
|
+
})]
|
|
9209
|
+
});
|
|
9210
|
+
};
|
|
9211
|
+
return () => {
|
|
9212
|
+
return renderButton();
|
|
9213
|
+
};
|
|
9214
|
+
}
|
|
9215
|
+
});
|
|
9216
|
+
function _isSlot$6(s) {
|
|
9217
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9218
|
+
}
|
|
9219
|
+
const props$6 = {
|
|
9220
|
+
enable: {
|
|
9221
|
+
type: Boolean,
|
|
9222
|
+
default: true
|
|
9223
|
+
}
|
|
9224
|
+
};
|
|
9225
|
+
const PopConfirmButton = /* @__PURE__ */ defineComponent({
|
|
9226
|
+
inheritAttrs: false,
|
|
9227
|
+
props: props$6,
|
|
9228
|
+
setup(props2, {
|
|
9229
|
+
slots
|
|
9230
|
+
}) {
|
|
9231
|
+
const attrs = useAttrs$1();
|
|
9232
|
+
const getBindValues = computed(() => {
|
|
9233
|
+
return Object.assign({
|
|
9234
|
+
okText: "确定",
|
|
9235
|
+
cancelText: "取消"
|
|
9236
|
+
}, {
|
|
9237
|
+
...props2,
|
|
9238
|
+
...unref(attrs)
|
|
9239
|
+
});
|
|
9240
|
+
});
|
|
9241
|
+
return () => {
|
|
9242
|
+
const bindValues = omit$1(unref(getBindValues), "icon");
|
|
9243
|
+
const btnBind = omit$1(bindValues, "title");
|
|
9244
|
+
if (btnBind.disabled)
|
|
9245
|
+
btnBind.color = "";
|
|
9246
|
+
const Button2 = () => {
|
|
9247
|
+
let _slot;
|
|
9248
|
+
return createVNode(BasicButton, btnBind, _isSlot$6(_slot = extendSlots$1(slots)) ? _slot : {
|
|
9249
|
+
default: () => [_slot]
|
|
9250
|
+
});
|
|
9251
|
+
};
|
|
9252
|
+
if (!props2.enable) {
|
|
9253
|
+
return Button2();
|
|
9254
|
+
}
|
|
9255
|
+
return createVNode(Popconfirm, bindValues, {
|
|
9256
|
+
default: Button2
|
|
9257
|
+
});
|
|
9258
|
+
};
|
|
9259
|
+
}
|
|
9260
|
+
});
|
|
9261
|
+
const Button = withInstall$7(BasicButton);
|
|
9123
9262
|
const _sfc_main$1j = defineComponent({
|
|
9124
9263
|
name: "BasicModalFooter",
|
|
9125
9264
|
props: basicProps$7,
|
|
9126
9265
|
emits: ["ok", "cancel"],
|
|
9127
9266
|
components: {
|
|
9128
|
-
|
|
9267
|
+
BasicButton
|
|
9129
9268
|
},
|
|
9130
9269
|
setup(_, { emit }) {
|
|
9131
9270
|
function handleOk(e) {
|
|
@@ -9138,19 +9277,22 @@ const _sfc_main$1j = defineComponent({
|
|
|
9138
9277
|
}
|
|
9139
9278
|
});
|
|
9140
9279
|
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9141
|
-
const
|
|
9280
|
+
const _component_BasicButton = resolveComponent("BasicButton");
|
|
9142
9281
|
return openBlock(), createElementBlock("div", null, [
|
|
9143
9282
|
renderSlot(_ctx.$slots, "insertFooter"),
|
|
9144
|
-
_ctx.showCancelBtn ? (openBlock(), createBlock(
|
|
9283
|
+
_ctx.showCancelBtn ? (openBlock(), createBlock(_component_BasicButton, mergeProps({
|
|
9284
|
+
key: 0,
|
|
9285
|
+
type: "danger"
|
|
9286
|
+
}, _ctx.cancelButtonProps, { onClick: _ctx.handleCancel }), {
|
|
9145
9287
|
default: withCtx(() => [
|
|
9146
9288
|
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
9147
9289
|
]),
|
|
9148
9290
|
_: 1
|
|
9149
9291
|
}, 16, ["onClick"])) : createCommentVNode("", true),
|
|
9150
9292
|
renderSlot(_ctx.$slots, "centerFooter"),
|
|
9151
|
-
_ctx.showOkBtn ? (openBlock(), createBlock(
|
|
9293
|
+
_ctx.showOkBtn ? (openBlock(), createBlock(_component_BasicButton, mergeProps({
|
|
9152
9294
|
key: 1,
|
|
9153
|
-
type:
|
|
9295
|
+
type: "success",
|
|
9154
9296
|
onClick: _ctx.handleOk,
|
|
9155
9297
|
loading: _ctx.confirmLoading
|
|
9156
9298
|
}, _ctx.okButtonProps), {
|
|
@@ -9158,7 +9300,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9158
9300
|
createTextVNode(toDisplayString(_ctx.okText), 1)
|
|
9159
9301
|
]),
|
|
9160
9302
|
_: 1
|
|
9161
|
-
}, 16, ["
|
|
9303
|
+
}, 16, ["onClick", "loading"])) : createCommentVNode("", true),
|
|
9162
9304
|
renderSlot(_ctx.$slots, "appendFooter")
|
|
9163
9305
|
]);
|
|
9164
9306
|
}
|
|
@@ -9190,7 +9332,7 @@ function useDesign(scope) {
|
|
|
9190
9332
|
// style,
|
|
9191
9333
|
};
|
|
9192
9334
|
}
|
|
9193
|
-
const props$
|
|
9335
|
+
const props$5 = {
|
|
9194
9336
|
/**
|
|
9195
9337
|
* Help text max-width
|
|
9196
9338
|
* @default: 600px
|
|
@@ -9241,7 +9383,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
9241
9383
|
components: {
|
|
9242
9384
|
Tooltip
|
|
9243
9385
|
},
|
|
9244
|
-
props: props$
|
|
9386
|
+
props: props$5,
|
|
9245
9387
|
setup(props2, {
|
|
9246
9388
|
slots
|
|
9247
9389
|
}) {
|
|
@@ -9333,8 +9475,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
9333
9475
|
};
|
|
9334
9476
|
}
|
|
9335
9477
|
});
|
|
9336
|
-
const
|
|
9337
|
-
const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
9478
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_fdc837af_lang = "";
|
|
9479
|
+
const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-fdc837af"]]);
|
|
9338
9480
|
const _sfc_main$1g = defineComponent({
|
|
9339
9481
|
name: "BasicModalHeader",
|
|
9340
9482
|
components: { BasicTitle },
|
|
@@ -9433,7 +9575,7 @@ const _sfc_main$1f = defineComponent({
|
|
|
9433
9575
|
const attr = {
|
|
9434
9576
|
...attrs,
|
|
9435
9577
|
...unref(getMergeProps),
|
|
9436
|
-
|
|
9578
|
+
open: unref(visibleRef),
|
|
9437
9579
|
wrapClassName: unref(getWrapClassName)
|
|
9438
9580
|
};
|
|
9439
9581
|
if (unref(fullScreenRef)) {
|
|
@@ -9442,12 +9584,15 @@ const _sfc_main$1f = defineComponent({
|
|
|
9442
9584
|
return omit$1(attr, "title");
|
|
9443
9585
|
});
|
|
9444
9586
|
const omitBindValue = computed(() => {
|
|
9445
|
-
return
|
|
9446
|
-
getProps.
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9587
|
+
return {
|
|
9588
|
+
size: unref(getProps).size,
|
|
9589
|
+
...omit$1(
|
|
9590
|
+
getProps.value.wrapperProps,
|
|
9591
|
+
"visible",
|
|
9592
|
+
"height",
|
|
9593
|
+
"modalFooterHeight"
|
|
9594
|
+
)
|
|
9595
|
+
};
|
|
9451
9596
|
});
|
|
9452
9597
|
const omitSlotKeys = computed(() => {
|
|
9453
9598
|
return Object.keys(omit$1(slots, ["default"]));
|
|
@@ -9464,10 +9609,8 @@ const _sfc_main$1f = defineComponent({
|
|
|
9464
9609
|
watch(
|
|
9465
9610
|
() => unref(visibleRef),
|
|
9466
9611
|
(v) => {
|
|
9467
|
-
var _a2;
|
|
9468
9612
|
emit("visible-change", v);
|
|
9469
9613
|
emit("update:visible", v);
|
|
9470
|
-
instance && ((_a2 = modalMethods.emitVisible) == null ? void 0 : _a2.call(modalMethods, v, instance.uid));
|
|
9471
9614
|
nextTick(() => {
|
|
9472
9615
|
if (props2.scrollTop && v && unref(modalWrapperRef)) {
|
|
9473
9616
|
unref(modalWrapperRef).scrollTop();
|
|
@@ -9920,158 +10063,6 @@ function getBase64WithFile(file) {
|
|
|
9920
10063
|
reader.onerror = (error2) => reject(error2);
|
|
9921
10064
|
});
|
|
9922
10065
|
}
|
|
9923
|
-
const validColors = ["error", "warning", "success", ""];
|
|
9924
|
-
const buttonProps = {
|
|
9925
|
-
type: {
|
|
9926
|
-
type: String,
|
|
9927
|
-
default: "default"
|
|
9928
|
-
},
|
|
9929
|
-
color: {
|
|
9930
|
-
type: String,
|
|
9931
|
-
validator: (v) => validColors.includes(v),
|
|
9932
|
-
default: ""
|
|
9933
|
-
},
|
|
9934
|
-
loading: { type: Boolean },
|
|
9935
|
-
disabled: { type: Boolean },
|
|
9936
|
-
/**
|
|
9937
|
-
* Text before icon.
|
|
9938
|
-
*/
|
|
9939
|
-
preIcon: { type: String },
|
|
9940
|
-
/**
|
|
9941
|
-
* Text after icon.
|
|
9942
|
-
*/
|
|
9943
|
-
postIcon: { type: String },
|
|
9944
|
-
/**
|
|
9945
|
-
* preIcon and postIcon icon size.
|
|
9946
|
-
* @default: 14
|
|
9947
|
-
*/
|
|
9948
|
-
iconSize: { type: Number, default: 14 },
|
|
9949
|
-
onClick: { type: Function, default: null }
|
|
9950
|
-
};
|
|
9951
|
-
const BasicButton = /* @__PURE__ */ defineComponent({
|
|
9952
|
-
props: buttonProps,
|
|
9953
|
-
setup(props2, {
|
|
9954
|
-
attrs,
|
|
9955
|
-
slots
|
|
9956
|
-
}) {
|
|
9957
|
-
const getBindValue = computed(() => {
|
|
9958
|
-
return {
|
|
9959
|
-
...attrs,
|
|
9960
|
-
...props2,
|
|
9961
|
-
type: ["danger", "waring", "success", "message"].includes(props2.type) ? "primary" : props2.type
|
|
9962
|
-
};
|
|
9963
|
-
});
|
|
9964
|
-
const renderButton = () => {
|
|
9965
|
-
const isDanger = () => {
|
|
9966
|
-
return props2.type === "danger" ? {
|
|
9967
|
-
type: void 0,
|
|
9968
|
-
danger: true
|
|
9969
|
-
} : {};
|
|
9970
|
-
};
|
|
9971
|
-
const getColor = () => {
|
|
9972
|
-
let colorPrimary;
|
|
9973
|
-
switch (props2.type || props2.color) {
|
|
9974
|
-
case "danger":
|
|
9975
|
-
colorPrimary = "#CF222E";
|
|
9976
|
-
break;
|
|
9977
|
-
case "waring":
|
|
9978
|
-
colorPrimary = "#BF8700";
|
|
9979
|
-
break;
|
|
9980
|
-
case "success":
|
|
9981
|
-
colorPrimary = "#2DA44E";
|
|
9982
|
-
break;
|
|
9983
|
-
case "message":
|
|
9984
|
-
colorPrimary = "#0969DA";
|
|
9985
|
-
break;
|
|
9986
|
-
default:
|
|
9987
|
-
colorPrimary = "#2DA44E";
|
|
9988
|
-
break;
|
|
9989
|
-
}
|
|
9990
|
-
return colorPrimary;
|
|
9991
|
-
};
|
|
9992
|
-
const getTypeToken = () => {
|
|
9993
|
-
return {
|
|
9994
|
-
token: {
|
|
9995
|
-
colorPrimary: getColor()
|
|
9996
|
-
}
|
|
9997
|
-
};
|
|
9998
|
-
};
|
|
9999
|
-
const isLinkColorStyle = () => {
|
|
10000
|
-
return props2.type === "link" ? {
|
|
10001
|
-
color: getColor()
|
|
10002
|
-
} : {};
|
|
10003
|
-
};
|
|
10004
|
-
return createVNode(ConfigProvider, {
|
|
10005
|
-
"theme": getTypeToken()
|
|
10006
|
-
}, {
|
|
10007
|
-
default: () => [createVNode(Button$1, mergeProps(getBindValue.value, isDanger(), {
|
|
10008
|
-
"onClick": props2.onClick,
|
|
10009
|
-
"style": isLinkColorStyle()
|
|
10010
|
-
}), {
|
|
10011
|
-
default: (data) => {
|
|
10012
|
-
var _a2;
|
|
10013
|
-
return createVNode(Fragment, null, [props2.preIcon ? createVNode(Icon2, {
|
|
10014
|
-
"icon": props2.preIcon,
|
|
10015
|
-
"size": props2.iconSize
|
|
10016
|
-
}, null) : null, (_a2 = slots == null ? void 0 : slots.default) == null ? void 0 : _a2.call(slots, data), props2.postIcon ? createVNode(Icon2, {
|
|
10017
|
-
"icon": props2.postIcon,
|
|
10018
|
-
"size": props2.iconSize
|
|
10019
|
-
}, null) : null]);
|
|
10020
|
-
}
|
|
10021
|
-
})]
|
|
10022
|
-
});
|
|
10023
|
-
};
|
|
10024
|
-
return () => {
|
|
10025
|
-
return renderButton();
|
|
10026
|
-
};
|
|
10027
|
-
}
|
|
10028
|
-
});
|
|
10029
|
-
function _isSlot$6(s) {
|
|
10030
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
10031
|
-
}
|
|
10032
|
-
const props$5 = {
|
|
10033
|
-
enable: {
|
|
10034
|
-
type: Boolean,
|
|
10035
|
-
default: true
|
|
10036
|
-
}
|
|
10037
|
-
};
|
|
10038
|
-
const PopConfirmButton = /* @__PURE__ */ defineComponent({
|
|
10039
|
-
inheritAttrs: false,
|
|
10040
|
-
props: props$5,
|
|
10041
|
-
setup(props2, {
|
|
10042
|
-
slots
|
|
10043
|
-
}) {
|
|
10044
|
-
const attrs = useAttrs$1();
|
|
10045
|
-
const getBindValues = computed(() => {
|
|
10046
|
-
return Object.assign({
|
|
10047
|
-
okText: "确定",
|
|
10048
|
-
cancelText: "取消"
|
|
10049
|
-
}, {
|
|
10050
|
-
...props2,
|
|
10051
|
-
...unref(attrs)
|
|
10052
|
-
});
|
|
10053
|
-
});
|
|
10054
|
-
return () => {
|
|
10055
|
-
const bindValues = omit$1(unref(getBindValues), "icon");
|
|
10056
|
-
const btnBind = omit$1(bindValues, "title");
|
|
10057
|
-
if (btnBind.disabled)
|
|
10058
|
-
btnBind.color = "";
|
|
10059
|
-
const Button2 = () => {
|
|
10060
|
-
let _slot;
|
|
10061
|
-
return createVNode(BasicButton, btnBind, _isSlot$6(_slot = extendSlots$1(slots)) ? _slot : {
|
|
10062
|
-
default: () => [_slot]
|
|
10063
|
-
});
|
|
10064
|
-
};
|
|
10065
|
-
if (!props2.enable) {
|
|
10066
|
-
return Button2();
|
|
10067
|
-
}
|
|
10068
|
-
return createVNode(Popconfirm, bindValues, {
|
|
10069
|
-
default: Button2
|
|
10070
|
-
});
|
|
10071
|
-
};
|
|
10072
|
-
}
|
|
10073
|
-
});
|
|
10074
|
-
const Button = withInstall$7(BasicButton);
|
|
10075
10066
|
const _hoisted_1$x = { class: "ml-1" };
|
|
10076
10067
|
const _hoisted_2$b = { class: "ml-1" };
|
|
10077
10068
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
@@ -13509,8 +13500,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
13509
13500
|
};
|
|
13510
13501
|
}
|
|
13511
13502
|
});
|
|
13512
|
-
const
|
|
13513
|
-
const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-
|
|
13503
|
+
const TreeHeader_vue_vue_type_style_index_0_scoped_6d3f2554_lang = "";
|
|
13504
|
+
const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-6d3f2554"]]);
|
|
13514
13505
|
process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
13515
13506
|
process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
13516
13507
|
const isString$1 = (val) => typeof val === "string";
|
|
@@ -14399,7 +14390,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
14399
14390
|
return { prefixCls: prefixCls2, getCalcContentWidth };
|
|
14400
14391
|
}
|
|
14401
14392
|
});
|
|
14402
|
-
const
|
|
14393
|
+
const PageFooter_vue_vue_type_style_index_0_scoped_44a47dbd_lang = "";
|
|
14403
14394
|
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14404
14395
|
return openBlock(), createElementBlock("div", {
|
|
14405
14396
|
class: normalizeClass(_ctx.prefixCls),
|
|
@@ -14418,7 +14409,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14418
14409
|
], 2)
|
|
14419
14410
|
], 6);
|
|
14420
14411
|
}
|
|
14421
|
-
const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$F], ["__scopeId", "data-v-
|
|
14412
|
+
const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$F], ["__scopeId", "data-v-44a47dbd"]]);
|
|
14422
14413
|
const _sfc_main$_ = defineComponent({
|
|
14423
14414
|
name: "PageWrapper",
|
|
14424
14415
|
components: { PageFooter, PageHeader },
|
|
@@ -17033,8 +17024,8 @@ const _sfc_main$S = defineComponent({
|
|
|
17033
17024
|
return { isVisibleAdvancedSearch, handleIconClick };
|
|
17034
17025
|
}
|
|
17035
17026
|
});
|
|
17036
|
-
const
|
|
17037
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
17027
|
+
const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_f74ee46a_lang = "";
|
|
17028
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-f74ee46a"), n = n(), popScopeId(), n);
|
|
17038
17029
|
const _hoisted_1$q = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", null, "高级搜索", -1));
|
|
17039
17030
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17040
17031
|
const _component_FilterOutlined = resolveComponent("FilterOutlined");
|
|
@@ -17052,7 +17043,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17052
17043
|
_: 1
|
|
17053
17044
|
});
|
|
17054
17045
|
}
|
|
17055
|
-
const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$z], ["__scopeId", "data-v-
|
|
17046
|
+
const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$z], ["__scopeId", "data-v-f74ee46a"]]);
|
|
17056
17047
|
const index$4 = "";
|
|
17057
17048
|
const searchType = [
|
|
17058
17049
|
{
|
|
@@ -18425,8 +18416,8 @@ const _sfc_main$L = defineComponent({
|
|
|
18425
18416
|
};
|
|
18426
18417
|
}
|
|
18427
18418
|
});
|
|
18428
|
-
const
|
|
18429
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
18419
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
|
|
18420
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-90331d26"), n = n(), popScopeId(), n);
|
|
18430
18421
|
const _hoisted_1$l = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
|
|
18431
18422
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
|
|
18432
18423
|
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -18484,7 +18475,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18484
18475
|
])
|
|
18485
18476
|
], 4);
|
|
18486
18477
|
}
|
|
18487
|
-
const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$u], ["__scopeId", "data-v-
|
|
18478
|
+
const TableGlobalSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$u], ["__scopeId", "data-v-90331d26"]]);
|
|
18488
18479
|
const _sfc_main$K = defineComponent({
|
|
18489
18480
|
components: {
|
|
18490
18481
|
TableAdvancedSearch: TableAdvancedSearch$1,
|
|
@@ -19038,7 +19029,7 @@ const _sfc_main$I = defineComponent({
|
|
|
19038
19029
|
setup() {
|
|
19039
19030
|
}
|
|
19040
19031
|
});
|
|
19041
|
-
const
|
|
19032
|
+
const TableDict_vue_vue_type_style_index_0_scoped_7d89a0e9_lang = "";
|
|
19042
19033
|
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19043
19034
|
var _a2;
|
|
19044
19035
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -19067,7 +19058,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19067
19058
|
]), 1032, ["color"])
|
|
19068
19059
|
]);
|
|
19069
19060
|
}
|
|
19070
|
-
const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$r], ["__scopeId", "data-v-
|
|
19061
|
+
const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$r], ["__scopeId", "data-v-7d89a0e9"]]);
|
|
19071
19062
|
const index$3 = "";
|
|
19072
19063
|
function useTable(tableProps) {
|
|
19073
19064
|
const tableRef = ref(null);
|
|
@@ -19338,8 +19329,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
19338
19329
|
};
|
|
19339
19330
|
}
|
|
19340
19331
|
});
|
|
19341
|
-
const
|
|
19342
|
-
const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
19332
|
+
const Modal_vue_vue_type_style_index_0_scoped_4dc415ac_lang = "";
|
|
19333
|
+
const Modal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-4dc415ac"]]);
|
|
19343
19334
|
const _hoisted_1$h = { class: "api-modal-select" };
|
|
19344
19335
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
19345
19336
|
__name: "ApiModalSelect",
|
|
@@ -19486,8 +19477,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
19486
19477
|
};
|
|
19487
19478
|
}
|
|
19488
19479
|
});
|
|
19489
|
-
const
|
|
19490
|
-
const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
19480
|
+
const ApiModalSelect_vue_vue_type_style_index_0_scoped_fb4fe18d_lang = "";
|
|
19481
|
+
const ApiModalSelect$1 = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-fb4fe18d"]]);
|
|
19491
19482
|
const Description$1 = "";
|
|
19492
19483
|
const basicColProps = 24;
|
|
19493
19484
|
const basicProps$3 = reactive({
|
|
@@ -19955,9 +19946,7 @@ const _sfc_main$C = defineComponent({
|
|
|
19955
19946
|
() => visibleRef.value,
|
|
19956
19947
|
(visible) => {
|
|
19957
19948
|
nextTick(() => {
|
|
19958
|
-
var _a2;
|
|
19959
19949
|
emit("visible-change", visible);
|
|
19960
|
-
instance && ((_a2 = drawerInstance.emitVisible) == null ? void 0 : _a2.call(drawerInstance, visible, instance.uid));
|
|
19961
19950
|
});
|
|
19962
19951
|
}
|
|
19963
19952
|
);
|
|
@@ -23508,7 +23497,7 @@ const _sfc_main$z = defineComponent({
|
|
|
23508
23497
|
};
|
|
23509
23498
|
}
|
|
23510
23499
|
});
|
|
23511
|
-
const
|
|
23500
|
+
const CropperAvatar_vue_vue_type_style_index_0_scoped_31315934_lang = "";
|
|
23512
23501
|
const _hoisted_1$d = ["src"];
|
|
23513
23502
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23514
23503
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -23559,7 +23548,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23559
23548
|
}, null, 8, ["onRegister", "onUploadSuccess", "onBeforeUpload", "uploadApi", "src"])
|
|
23560
23549
|
], 6);
|
|
23561
23550
|
}
|
|
23562
|
-
const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
23551
|
+
const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$l], ["__scopeId", "data-v-31315934"]]);
|
|
23563
23552
|
const props = {
|
|
23564
23553
|
startVal: { type: Number, default: 0 },
|
|
23565
23554
|
endVal: { type: Number, default: 2021 },
|
|
@@ -23730,7 +23719,7 @@ const _sfc_main$w = defineComponent({
|
|
|
23730
23719
|
}
|
|
23731
23720
|
}
|
|
23732
23721
|
});
|
|
23733
|
-
const
|
|
23722
|
+
const Loading_vue_vue_type_style_index_0_scoped_ee545744_lang = "";
|
|
23734
23723
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23735
23724
|
const _component_Spin = resolveComponent("Spin");
|
|
23736
23725
|
return withDirectives((openBlock(), createElementBlock("section", {
|
|
@@ -23746,7 +23735,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23746
23735
|
[vShow, _ctx.loading]
|
|
23747
23736
|
]);
|
|
23748
23737
|
}
|
|
23749
|
-
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
23738
|
+
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$j], ["__scopeId", "data-v-ee545744"]]);
|
|
23750
23739
|
function createLoading(props2, target, wait = false) {
|
|
23751
23740
|
let vm = null;
|
|
23752
23741
|
const data = reactive({
|
|
@@ -25536,7 +25525,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
25536
25525
|
setup(__props, { expose }) {
|
|
25537
25526
|
const props2 = __props;
|
|
25538
25527
|
useCssVars((_ctx) => ({
|
|
25539
|
-
"
|
|
25528
|
+
"989efb00": props2.labelWidth
|
|
25540
25529
|
}));
|
|
25541
25530
|
const form = ref({});
|
|
25542
25531
|
const formRef = ref();
|
|
@@ -25706,8 +25695,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
25706
25695
|
};
|
|
25707
25696
|
}
|
|
25708
25697
|
});
|
|
25709
|
-
const
|
|
25710
|
-
const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
25698
|
+
const DescriptionsForm_vue_vue_type_style_index_0_scoped_2d2eda80_lang = "";
|
|
25699
|
+
const descriptionsForm = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-2d2eda80"]]);
|
|
25711
25700
|
const DescriptionsForm = withInstall$7(descriptionsForm);
|
|
25712
25701
|
const basicResizeWrapperProps = reactive({
|
|
25713
25702
|
designWidth: {
|
|
@@ -25752,8 +25741,8 @@ const __default__$1 = defineComponent({
|
|
|
25752
25741
|
});
|
|
25753
25742
|
const __injectCSSVars__ = () => {
|
|
25754
25743
|
useCssVars((_ctx) => ({
|
|
25755
|
-
"
|
|
25756
|
-
"
|
|
25744
|
+
"0aaa544f": _ctx.designWidth,
|
|
25745
|
+
"30d13bbe": _ctx.designHeight
|
|
25757
25746
|
}));
|
|
25758
25747
|
};
|
|
25759
25748
|
const __setup__ = __default__$1.setup;
|
|
@@ -26233,7 +26222,7 @@ const styles = `.vue-colorful {
|
|
|
26233
26222
|
border-color: transparent;
|
|
26234
26223
|
border-bottom: 12px solid #000;
|
|
26235
26224
|
border-radius: 8px 8px 0 0;
|
|
26236
|
-
background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0))
|
|
26225
|
+
background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
|
|
26237
26226
|
linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
|
|
26238
26227
|
}
|
|
26239
26228
|
.vue-colorful__pointer-fill, .vue-colorful__alpha-gradient {
|
|
@@ -26254,15 +26243,15 @@ const styles = `.vue-colorful {
|
|
|
26254
26243
|
height: 24px;
|
|
26255
26244
|
}
|
|
26256
26245
|
.vue-colorful__hue {
|
|
26257
|
-
background: linear-gradient(
|
|
26258
|
-
to right
|
|
26259
|
-
#f00 0
|
|
26260
|
-
#ff0 17
|
|
26261
|
-
#0f0 33
|
|
26262
|
-
#0ff 50
|
|
26263
|
-
#00f 67
|
|
26264
|
-
#f0f 83
|
|
26265
|
-
#f00 100
|
|
26246
|
+
background: linear-gradient(
|
|
26247
|
+
to right,
|
|
26248
|
+
#f00 0%,
|
|
26249
|
+
#ff0 17%,
|
|
26250
|
+
#0f0 33%,
|
|
26251
|
+
#0ff 50%,
|
|
26252
|
+
#00f 67%,
|
|
26253
|
+
#f0f 83%,
|
|
26254
|
+
#f00 100%
|
|
26266
26255
|
);
|
|
26267
26256
|
}
|
|
26268
26257
|
.vue-colorful__last-control {
|
|
@@ -30815,6 +30804,10 @@ const setConstConfig = (config) => {
|
|
|
30815
30804
|
DEFAULT_ALIGN = config.align;
|
|
30816
30805
|
};
|
|
30817
30806
|
const shyTableBasicProps = reactive({
|
|
30807
|
+
isShowTitle: {
|
|
30808
|
+
type: Boolean,
|
|
30809
|
+
default: true
|
|
30810
|
+
},
|
|
30818
30811
|
headerAlign: {
|
|
30819
30812
|
type: String,
|
|
30820
30813
|
default: "left"
|
|
@@ -32317,8 +32310,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
32317
32310
|
};
|
|
32318
32311
|
}
|
|
32319
32312
|
});
|
|
32320
|
-
const
|
|
32321
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
32313
|
+
const Table_vue_vue_type_style_index_0_scoped_6380f8c9_lang = "";
|
|
32314
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-6380f8c9"]]);
|
|
32322
32315
|
const ShyComponentMap = /* @__PURE__ */ new Map();
|
|
32323
32316
|
ShyComponentMap.set("Input", Input);
|
|
32324
32317
|
ShyComponentMap.set("InputGroup", Input.Group);
|
|
@@ -34201,8 +34194,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
34201
34194
|
};
|
|
34202
34195
|
}
|
|
34203
34196
|
});
|
|
34204
|
-
const
|
|
34205
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
34197
|
+
const Modal_vue_vue_type_style_index_0_scoped_0ca4fd85_lang = "";
|
|
34198
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0ca4fd85"]]);
|
|
34206
34199
|
const _hoisted_1$3 = { class: "api-modal-select" };
|
|
34207
34200
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
34208
34201
|
__name: "ApiModalSelect",
|
|
@@ -34349,8 +34342,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34349
34342
|
};
|
|
34350
34343
|
}
|
|
34351
34344
|
});
|
|
34352
|
-
const
|
|
34353
|
-
const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
34345
|
+
const ApiModalSelect_vue_vue_type_style_index_0_scoped_45845a8d_lang = "";
|
|
34346
|
+
const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-45845a8d"]]);
|
|
34354
34347
|
function useTableForm(propsRef, slots, fetch, getLoading) {
|
|
34355
34348
|
const getFormConfig = computed(() => {
|
|
34356
34349
|
const { formConfig } = unref(propsRef);
|
|
@@ -36333,6 +36326,9 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36333
36326
|
headerAlign: {
|
|
36334
36327
|
type: String,
|
|
36335
36328
|
default: "left"
|
|
36329
|
+
},
|
|
36330
|
+
isShowTitle: {
|
|
36331
|
+
type: Boolean
|
|
36336
36332
|
}
|
|
36337
36333
|
},
|
|
36338
36334
|
setup(props2, {
|
|
@@ -36348,6 +36344,16 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36348
36344
|
"onColumnsChange": handleColumnChange
|
|
36349
36345
|
}, null) : null;
|
|
36350
36346
|
};
|
|
36347
|
+
const isShowTitle = () => {
|
|
36348
|
+
return props2.isShowTitle ? createVNode(ShyTableTitle, null, {
|
|
36349
|
+
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36350
|
+
var _a2;
|
|
36351
|
+
return props2.title || ((_a2 = slots == null ? void 0 : slots.title) == null ? void 0 : _a2.call(slots));
|
|
36352
|
+
} : null
|
|
36353
|
+
}) : createVNode("div", {
|
|
36354
|
+
"class": `${prefixCls2}-placeholder`
|
|
36355
|
+
}, null);
|
|
36356
|
+
};
|
|
36351
36357
|
const handleColumnChange = (data) => {
|
|
36352
36358
|
emit("columns-change", data);
|
|
36353
36359
|
};
|
|
@@ -36358,12 +36364,7 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36358
36364
|
"class": prefixCls2
|
|
36359
36365
|
}, [createVNode("div", {
|
|
36360
36366
|
"class": getAlignClass.value
|
|
36361
|
-
}, [
|
|
36362
|
-
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36363
|
-
var _a3;
|
|
36364
|
-
return props2.title || ((_a3 = slots == null ? void 0 : slots.title) == null ? void 0 : _a3.call(slots));
|
|
36365
|
-
} : null
|
|
36366
|
-
}), createVNode("div", {
|
|
36367
|
+
}, [isShowTitle(), createVNode("div", {
|
|
36367
36368
|
"class": `${prefixCls2}-button`
|
|
36368
36369
|
}, [(_a2 = slots == null ? void 0 : slots.toolbar) == null ? void 0 : _a2.call(slots)])]), createVNode("div", {
|
|
36369
36370
|
"class": `${prefixCls2}-toolbar`
|
|
@@ -36378,6 +36379,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36378
36379
|
const getHeaderProps = computed(() => {
|
|
36379
36380
|
const {
|
|
36380
36381
|
title = null,
|
|
36382
|
+
isShowTitle,
|
|
36381
36383
|
showTableSetting,
|
|
36382
36384
|
titleHelpMessage,
|
|
36383
36385
|
tableSetting,
|
|
@@ -36388,6 +36390,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36388
36390
|
return {};
|
|
36389
36391
|
}
|
|
36390
36392
|
const headerProps = {
|
|
36393
|
+
isShowTitle,
|
|
36391
36394
|
headerAlign,
|
|
36392
36395
|
title,
|
|
36393
36396
|
titleHelpMessage,
|
|
@@ -37135,8 +37138,8 @@ const _sfc_main$2 = defineComponent({
|
|
|
37135
37138
|
};
|
|
37136
37139
|
}
|
|
37137
37140
|
});
|
|
37138
|
-
const
|
|
37139
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
37141
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_b3419d34_lang = "";
|
|
37142
|
+
const _withScopeId = (n) => (pushScopeId("data-v-b3419d34"), n = n(), popScopeId(), n);
|
|
37140
37143
|
const _hoisted_1$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
|
|
37141
37144
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
|
|
37142
37145
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -37194,7 +37197,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37194
37197
|
])
|
|
37195
37198
|
], 4);
|
|
37196
37199
|
}
|
|
37197
|
-
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
37200
|
+
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-b3419d34"]]);
|
|
37198
37201
|
const _sfc_main$1 = defineComponent({
|
|
37199
37202
|
name: "EditTableHeaderIcon",
|
|
37200
37203
|
components: { FormOutlined: FormOutlined$1 },
|