3h1-ui 3.0.0-next.66 → 3.0.0-next.68
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 +13 -21
- package/es/style.css +3 -108
- package/lib/index.js +16 -24
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, resolveDynamicComponent, withDirectives, vShow, getCurrentInstance, inject, onUnmounted, provide, onBeforeUnmount, reactive, toRef, toRefs, TransitionGroup, getCurrentScope, onScopeDispose, defineAsyncComponent, isRef, toRaw, shallowRef, isVNode, readonly, useAttrs as useAttrs$2, shallowReactive, withKeys, render as render$1, resolveDirective, pushScopeId, popScopeId, useCssVars, triggerRef, Comment, Text, withModifiers } 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$1, Image, Progress, Tag, Alert, Upload, Space, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker as TimePicker$1, Col, Form, Row, Spin, PageHeader, CheckboxGroup, TableSummaryRow, TableSummaryCell, TableSummary, Badge, FormItemRest, Drawer, Avatar, Descriptions, DescriptionsItem, theme, Breadcrumb, Timeline, TimelineItem } from "ant-design-vue";
|
|
3
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$8, isBoolean as isBoolean$1, 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
|
-
import { useAttrs as useAttrs$1, useRuleFormItem, useDesign as useDesign$1, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$3, useI18n as useI18n$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";
|
|
4
|
+
import { useAttrs as useAttrs$1, useRuleFormItem, useDesign as useDesign$1, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$3, getVarColor, useI18n as useI18n$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";
|
|
7
7
|
import dayjs from "dayjs";
|
|
@@ -5922,7 +5922,6 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
5922
5922
|
{ [`${prefixCls2}-show-span`]: props2.span && slots.default }
|
|
5923
5923
|
]);
|
|
5924
5924
|
return (_ctx, _cache) => {
|
|
5925
|
-
var _a2, _b, _c;
|
|
5926
5925
|
return openBlock(), createElementBlock("span", {
|
|
5927
5926
|
class: normalizeClass(getClass.value)
|
|
5928
5927
|
}, [
|
|
@@ -5932,16 +5931,20 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
5932
5931
|
class: normalizeClass(`${unref(prefixCls2)}-help`),
|
|
5933
5932
|
text: __props.helpMessage
|
|
5934
5933
|
}, null, 8, ["class", "text"])) : createCommentVNode("", true),
|
|
5935
|
-
renderSlot(_ctx.$slots, "extra", {},
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5934
|
+
renderSlot(_ctx.$slots, "extra", {}, () => {
|
|
5935
|
+
var _a2, _b, _c;
|
|
5936
|
+
return [
|
|
5937
|
+
((_a2 = _ctx.$attrs) == null ? void 0 : _a2.extra) ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
5938
|
+
unref(isFunction$4)(_ctx.$attrs.extra) ? (_c = (_b = _ctx.$attrs).extra) == null ? void 0 : _c.call(_b) : h("span", _ctx.$attrs.extra)
|
|
5939
|
+
), { key: 0 })) : createCommentVNode("", true)
|
|
5940
|
+
];
|
|
5941
|
+
}, true)
|
|
5939
5942
|
], 2);
|
|
5940
5943
|
};
|
|
5941
5944
|
}
|
|
5942
5945
|
});
|
|
5943
|
-
const
|
|
5944
|
-
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-
|
|
5946
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_0b4494e8_lang = "";
|
|
5947
|
+
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-0b4494e8"]]);
|
|
5945
5948
|
const props$b = {
|
|
5946
5949
|
prefixCls: { type: String },
|
|
5947
5950
|
helpMessage: {
|
|
@@ -10244,16 +10247,6 @@ const buttonProps = {
|
|
|
10244
10247
|
iconSize: { type: Number, default: 14 },
|
|
10245
10248
|
onClick: { type: Function, default: null }
|
|
10246
10249
|
};
|
|
10247
|
-
const lessString = ":root {\n --primary-1: #dafbe1;\n --primary-2: #aceebb;\n --primary-3: #6fdd8b;\n --primary-4: #4ac26b;\n --primary-5: #2da44e;\n --primary-6: #1a7f37;\n --primary-7: #116329;\n --primary-8: #044f1e;\n --primary-9: #003d16;\n --primary-10: #002d11;\n --gray-0: #fff;\n --gray-1: #f6f8fa;\n --gray-2: #eaeef2;\n --gray-3: #d0d7de;\n --gray-4: #afb8c1;\n --gray-5: #8c959f;\n --gray-6: #6e7781;\n --gray-7: #57606a;\n --gray-8: #424a53;\n --gray-9: #32383f;\n --gray-10: #24292f;\n --green-1: #dafbe1;\n --green-2: #aceebb;\n --green-3: #6fdd8b;\n --green-4: #4ac26b;\n --green-5: #2da44e;\n --green-6: #1a7f37;\n --green-7: #116329;\n --green-8: #044f1e;\n --green-9: #003d16;\n --green-10: #002d11;\n --orange-1: #fff1e5;\n --orange-2: #ffd8b5;\n --orange-3: #ffb77c;\n --orange-4: #fb8f44;\n --orange-5: #e16f24;\n --orange-6: #bc4c00;\n --orange-7: #953800;\n --orange-8: #762c00;\n --orange-9: #5c2200;\n --orange-10: #471700;\n --pink-1: #ffeff7;\n --pink-2: #ffd3eb;\n --pink-3: #ffadda;\n --pink-4: #ff80c8;\n --pink-5: #e85aad;\n --pink-6: #bf3989;\n --pink-7: #99286e;\n --pink-8: #772057;\n --pink-9: #611347;\n --pink-10: #4d0336;\n --purple-1: #fbefff;\n --purple-2: #ecd8ff;\n --purple-3: #d8b9ff;\n --purple-4: #c297ff;\n --purple-5: #a475f9;\n --purple-6: #8250df;\n --purple-7: #6639ba;\n --purple-8: #512a97;\n --purple-9: #3e1f79;\n --purple-10: #2e1461;\n --red-1: #ffebe9;\n --red-2: #ffcecb;\n --red-3: #ffaba8;\n --red-4: #ff8182;\n --red-5: #fa4549;\n --red-6: #cf222e;\n --red-7: #a40e26;\n --red-8: #82071e;\n --red-9: #660018;\n --red-10: #4c0014;\n --yellow-1: #fff8c5;\n --yellow-2: #fae17d;\n --yellow-3: #eac54f;\n --yellow-4: #d4a72c;\n --yellow-5: #bf8700;\n --yellow-6: #9a6700;\n --yellow-7: #7d4e00;\n --yellow-8: #633c01;\n --yellow-9: #4d2d00;\n --yellow-10: #3b2300;\n --blue-1: #ddf4ff;\n --blue-2: #b6e3ff;\n --blue-3: #80ccff;\n --blue-4: #54aeff;\n --blue-5: #218bff;\n --blue-6: #0969da;\n --blue-7: #0550ae;\n --blue-8: #033d8b;\n --blue-9: #0a3069;\n --blue-10: #002155;\n --shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.02);\n --shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),\n 0px 1px px 0px rgba(0, 0, 0, 0.04);\n --shadow-4: 0px 8px 32px 0px rgba(0, 0, 0, 0.08),\n 0px 2px 20px 0px rgba(0, 0, 0, 0.04);\n --shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),\n 0px 8px 20px 0px rgba(0, 0, 0, 0.06);\n}";
|
|
10248
|
-
const keyValuePairs = lessString.match(/--\w+-\d+:\s#[a-fA-F0-9]+;/g);
|
|
10249
|
-
const keyValueMap = {};
|
|
10250
|
-
keyValuePairs.forEach((pair) => {
|
|
10251
|
-
const [key2, value] = pair.split(":");
|
|
10252
|
-
keyValueMap[key2.trim()] = value.slice(0, -1).trim();
|
|
10253
|
-
});
|
|
10254
|
-
const getVarColor = (name) => {
|
|
10255
|
-
return keyValueMap[name];
|
|
10256
|
-
};
|
|
10257
10250
|
const BasicButton = /* @__PURE__ */ defineComponent({
|
|
10258
10251
|
props: buttonProps,
|
|
10259
10252
|
setup(props2, {
|
|
@@ -10284,7 +10277,7 @@ const BasicButton = /* @__PURE__ */ defineComponent({
|
|
|
10284
10277
|
colorPrimary = getVarColor("--yellow-5");
|
|
10285
10278
|
break;
|
|
10286
10279
|
case "success":
|
|
10287
|
-
colorPrimary = getVarColor("--
|
|
10280
|
+
colorPrimary = getVarColor("--green-5");
|
|
10288
10281
|
break;
|
|
10289
10282
|
case "message":
|
|
10290
10283
|
colorPrimary = getVarColor("--blue-6");
|
|
@@ -10411,7 +10404,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10411
10404
|
renderSlot(_ctx.$slots, "centerFooter"),
|
|
10412
10405
|
_ctx.showOkBtn ? (openBlock(), createBlock(_component_BasicButton, mergeProps({
|
|
10413
10406
|
key: 1,
|
|
10414
|
-
type: "
|
|
10407
|
+
type: "primary",
|
|
10415
10408
|
onClick: _ctx.handleOk,
|
|
10416
10409
|
loading: _ctx.confirmLoading
|
|
10417
10410
|
}, _ctx.okButtonProps), {
|
|
@@ -39774,7 +39767,6 @@ export {
|
|
|
39774
39767
|
createLoading,
|
|
39775
39768
|
descriptionsForm,
|
|
39776
39769
|
getGlobalAdvancedType,
|
|
39777
|
-
getVarColor,
|
|
39778
39770
|
registerGlobalConfig,
|
|
39779
39771
|
searchType,
|
|
39780
39772
|
searchTypeDate,
|
package/es/style.css
CHANGED
|
@@ -1124,7 +1124,7 @@ span.iconify {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
.shy-basic-help__wrap p {
|
|
1126
1126
|
margin-bottom: 0;
|
|
1127
|
-
}.shy-basic-title[data-v-
|
|
1127
|
+
}.shy-basic-title[data-v-0b4494e8] {
|
|
1128
1128
|
position: relative;
|
|
1129
1129
|
display: flex;
|
|
1130
1130
|
font-family: PingFangSC, PingFang SC;
|
|
@@ -1134,15 +1134,10 @@ span.iconify {
|
|
|
1134
1134
|
line-height: 20px;
|
|
1135
1135
|
padding: 0 0 0 10px;
|
|
1136
1136
|
margin: 10px 0;
|
|
1137
|
-
justify-content: space-between;
|
|
1138
1137
|
align-items: center;
|
|
1139
|
-
}
|
|
1140
|
-
.shy-basic-title-label[data-v-b0cf71c3] {
|
|
1141
|
-
display: flex;
|
|
1142
1138
|
gap: 8px;
|
|
1143
|
-
align-items: center;
|
|
1144
1139
|
}
|
|
1145
|
-
.shy-basic-title-show-span[data-v-
|
|
1140
|
+
.shy-basic-title-show-span[data-v-0b4494e8]::before {
|
|
1146
1141
|
content: '';
|
|
1147
1142
|
position: absolute;
|
|
1148
1143
|
width: 2px;
|
|
@@ -1153,7 +1148,7 @@ span.iconify {
|
|
|
1153
1148
|
top: 50%;
|
|
1154
1149
|
transform: translateY(-50%);
|
|
1155
1150
|
}
|
|
1156
|
-
.shy-basic-title-help[data-v-
|
|
1151
|
+
.shy-basic-title-help[data-v-0b4494e8] {
|
|
1157
1152
|
margin-left: 10px;
|
|
1158
1153
|
}.shy-collapse-container-arrow {
|
|
1159
1154
|
font-size: 14px !important;
|
|
@@ -1649,106 +1644,6 @@ span.iconify {
|
|
|
1649
1644
|
0px 2px 20px 0px rgba(0, 0, 0, 0.04);
|
|
1650
1645
|
--shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),
|
|
1651
1646
|
0px 8px 20px 0px rgba(0, 0, 0, 0.06);
|
|
1652
|
-
}:root {
|
|
1653
|
-
--primary-1: #dafbe1;
|
|
1654
|
-
--primary-2: #aceebb;
|
|
1655
|
-
--primary-3: #6fdd8b;
|
|
1656
|
-
--primary-4: #4ac26b;
|
|
1657
|
-
--primary-5: #2da44e;
|
|
1658
|
-
--primary-6: #1a7f37;
|
|
1659
|
-
--primary-7: #116329;
|
|
1660
|
-
--primary-8: #044f1e;
|
|
1661
|
-
--primary-9: #003d16;
|
|
1662
|
-
--primary-10: #002d11;
|
|
1663
|
-
--gray-0: #fff;
|
|
1664
|
-
--gray-1: #f6f8fa;
|
|
1665
|
-
--gray-2: #eaeef2;
|
|
1666
|
-
--gray-3: #d0d7de;
|
|
1667
|
-
--gray-4: #afb8c1;
|
|
1668
|
-
--gray-5: #8c959f;
|
|
1669
|
-
--gray-6: #6e7781;
|
|
1670
|
-
--gray-7: #57606a;
|
|
1671
|
-
--gray-8: #424a53;
|
|
1672
|
-
--gray-9: #32383f;
|
|
1673
|
-
--gray-10: #24292f;
|
|
1674
|
-
--green-1: #dafbe1;
|
|
1675
|
-
--green-2: #aceebb;
|
|
1676
|
-
--green-3: #6fdd8b;
|
|
1677
|
-
--green-4: #4ac26b;
|
|
1678
|
-
--green-5: #2da44e;
|
|
1679
|
-
--green-6: #1a7f37;
|
|
1680
|
-
--green-7: #116329;
|
|
1681
|
-
--green-8: #044f1e;
|
|
1682
|
-
--green-9: #003d16;
|
|
1683
|
-
--green-10: #002d11;
|
|
1684
|
-
--orange-1: #fff1e5;
|
|
1685
|
-
--orange-2: #ffd8b5;
|
|
1686
|
-
--orange-3: #ffb77c;
|
|
1687
|
-
--orange-4: #fb8f44;
|
|
1688
|
-
--orange-5: #e16f24;
|
|
1689
|
-
--orange-6: #bc4c00;
|
|
1690
|
-
--orange-7: #953800;
|
|
1691
|
-
--orange-8: #762c00;
|
|
1692
|
-
--orange-9: #5c2200;
|
|
1693
|
-
--orange-10: #471700;
|
|
1694
|
-
--pink-1: #ffeff7;
|
|
1695
|
-
--pink-2: #ffd3eb;
|
|
1696
|
-
--pink-3: #ffadda;
|
|
1697
|
-
--pink-4: #ff80c8;
|
|
1698
|
-
--pink-5: #e85aad;
|
|
1699
|
-
--pink-6: #bf3989;
|
|
1700
|
-
--pink-7: #99286e;
|
|
1701
|
-
--pink-8: #772057;
|
|
1702
|
-
--pink-9: #611347;
|
|
1703
|
-
--pink-10: #4d0336;
|
|
1704
|
-
--purple-1: #fbefff;
|
|
1705
|
-
--purple-2: #ecd8ff;
|
|
1706
|
-
--purple-3: #d8b9ff;
|
|
1707
|
-
--purple-4: #c297ff;
|
|
1708
|
-
--purple-5: #a475f9;
|
|
1709
|
-
--purple-6: #8250df;
|
|
1710
|
-
--purple-7: #6639ba;
|
|
1711
|
-
--purple-8: #512a97;
|
|
1712
|
-
--purple-9: #3e1f79;
|
|
1713
|
-
--purple-10: #2e1461;
|
|
1714
|
-
--red-1: #ffebe9;
|
|
1715
|
-
--red-2: #ffcecb;
|
|
1716
|
-
--red-3: #ffaba8;
|
|
1717
|
-
--red-4: #ff8182;
|
|
1718
|
-
--red-5: #fa4549;
|
|
1719
|
-
--red-6: #cf222e;
|
|
1720
|
-
--red-7: #a40e26;
|
|
1721
|
-
--red-8: #82071e;
|
|
1722
|
-
--red-9: #660018;
|
|
1723
|
-
--red-10: #4c0014;
|
|
1724
|
-
--yellow-1: #fff8c5;
|
|
1725
|
-
--yellow-2: #fae17d;
|
|
1726
|
-
--yellow-3: #eac54f;
|
|
1727
|
-
--yellow-4: #d4a72c;
|
|
1728
|
-
--yellow-5: #bf8700;
|
|
1729
|
-
--yellow-6: #9a6700;
|
|
1730
|
-
--yellow-7: #7d4e00;
|
|
1731
|
-
--yellow-8: #633c01;
|
|
1732
|
-
--yellow-9: #4d2d00;
|
|
1733
|
-
--yellow-10: #3b2300;
|
|
1734
|
-
--blue-1: #ddf4ff;
|
|
1735
|
-
--blue-2: #b6e3ff;
|
|
1736
|
-
--blue-3: #80ccff;
|
|
1737
|
-
--blue-4: #54aeff;
|
|
1738
|
-
--blue-5: #218bff;
|
|
1739
|
-
--blue-6: #0969da;
|
|
1740
|
-
--blue-7: #0550ae;
|
|
1741
|
-
--blue-8: #033d8b;
|
|
1742
|
-
--blue-9: #0a3069;
|
|
1743
|
-
--blue-10: #002155;
|
|
1744
|
-
--shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),
|
|
1745
|
-
0px 1px 1px 0px rgba(0, 0, 0, 0.02);
|
|
1746
|
-
--shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
|
|
1747
|
-
0px 1px px 0px rgba(0, 0, 0, 0.04);
|
|
1748
|
-
--shadow-4: 0px 8px 32px 0px rgba(0, 0, 0, 0.08),
|
|
1749
|
-
0px 2px 20px 0px rgba(0, 0, 0, 0.04);
|
|
1750
|
-
--shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),
|
|
1751
|
-
0px 8px 20px 0px rgba(0, 0, 0, 0.06);
|
|
1752
1647
|
}
|
|
1753
1648
|
.shy-basic-help {
|
|
1754
1649
|
display: inline-block;
|
package/lib/index.js
CHANGED
|
@@ -5946,7 +5946,6 @@ const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5946
5946
|
{ [`${prefixCls2}-show-span`]: props2.span && slots.default }
|
|
5947
5947
|
]);
|
|
5948
5948
|
return (_ctx, _cache) => {
|
|
5949
|
-
var _a2, _b, _c;
|
|
5950
5949
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
5951
5950
|
class: vue.normalizeClass(getClass.value)
|
|
5952
5951
|
}, [
|
|
@@ -5956,16 +5955,20 @@ const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5956
5955
|
class: vue.normalizeClass(`${vue.unref(prefixCls2)}-help`),
|
|
5957
5956
|
text: __props.helpMessage
|
|
5958
5957
|
}, null, 8, ["class", "text"])) : vue.createCommentVNode("", true),
|
|
5959
|
-
vue.renderSlot(_ctx.$slots, "extra", {},
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5958
|
+
vue.renderSlot(_ctx.$slots, "extra", {}, () => {
|
|
5959
|
+
var _a2, _b, _c;
|
|
5960
|
+
return [
|
|
5961
|
+
((_a2 = _ctx.$attrs) == null ? void 0 : _a2.extra) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
5962
|
+
vue.unref(utils.isFunction)(_ctx.$attrs.extra) ? (_c = (_b = _ctx.$attrs).extra) == null ? void 0 : _c.call(_b) : vue.h("span", _ctx.$attrs.extra)
|
|
5963
|
+
), { key: 0 })) : vue.createCommentVNode("", true)
|
|
5964
|
+
];
|
|
5965
|
+
}, true)
|
|
5963
5966
|
], 2);
|
|
5964
5967
|
};
|
|
5965
5968
|
}
|
|
5966
5969
|
});
|
|
5967
|
-
const
|
|
5968
|
-
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-
|
|
5970
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_0b4494e8_lang = "";
|
|
5971
|
+
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-0b4494e8"]]);
|
|
5969
5972
|
const props$b = {
|
|
5970
5973
|
prefixCls: { type: String },
|
|
5971
5974
|
helpMessage: {
|
|
@@ -10268,16 +10271,6 @@ const buttonProps = {
|
|
|
10268
10271
|
iconSize: { type: Number, default: 14 },
|
|
10269
10272
|
onClick: { type: Function, default: null }
|
|
10270
10273
|
};
|
|
10271
|
-
const lessString = ":root {\n --primary-1: #dafbe1;\n --primary-2: #aceebb;\n --primary-3: #6fdd8b;\n --primary-4: #4ac26b;\n --primary-5: #2da44e;\n --primary-6: #1a7f37;\n --primary-7: #116329;\n --primary-8: #044f1e;\n --primary-9: #003d16;\n --primary-10: #002d11;\n --gray-0: #fff;\n --gray-1: #f6f8fa;\n --gray-2: #eaeef2;\n --gray-3: #d0d7de;\n --gray-4: #afb8c1;\n --gray-5: #8c959f;\n --gray-6: #6e7781;\n --gray-7: #57606a;\n --gray-8: #424a53;\n --gray-9: #32383f;\n --gray-10: #24292f;\n --green-1: #dafbe1;\n --green-2: #aceebb;\n --green-3: #6fdd8b;\n --green-4: #4ac26b;\n --green-5: #2da44e;\n --green-6: #1a7f37;\n --green-7: #116329;\n --green-8: #044f1e;\n --green-9: #003d16;\n --green-10: #002d11;\n --orange-1: #fff1e5;\n --orange-2: #ffd8b5;\n --orange-3: #ffb77c;\n --orange-4: #fb8f44;\n --orange-5: #e16f24;\n --orange-6: #bc4c00;\n --orange-7: #953800;\n --orange-8: #762c00;\n --orange-9: #5c2200;\n --orange-10: #471700;\n --pink-1: #ffeff7;\n --pink-2: #ffd3eb;\n --pink-3: #ffadda;\n --pink-4: #ff80c8;\n --pink-5: #e85aad;\n --pink-6: #bf3989;\n --pink-7: #99286e;\n --pink-8: #772057;\n --pink-9: #611347;\n --pink-10: #4d0336;\n --purple-1: #fbefff;\n --purple-2: #ecd8ff;\n --purple-3: #d8b9ff;\n --purple-4: #c297ff;\n --purple-5: #a475f9;\n --purple-6: #8250df;\n --purple-7: #6639ba;\n --purple-8: #512a97;\n --purple-9: #3e1f79;\n --purple-10: #2e1461;\n --red-1: #ffebe9;\n --red-2: #ffcecb;\n --red-3: #ffaba8;\n --red-4: #ff8182;\n --red-5: #fa4549;\n --red-6: #cf222e;\n --red-7: #a40e26;\n --red-8: #82071e;\n --red-9: #660018;\n --red-10: #4c0014;\n --yellow-1: #fff8c5;\n --yellow-2: #fae17d;\n --yellow-3: #eac54f;\n --yellow-4: #d4a72c;\n --yellow-5: #bf8700;\n --yellow-6: #9a6700;\n --yellow-7: #7d4e00;\n --yellow-8: #633c01;\n --yellow-9: #4d2d00;\n --yellow-10: #3b2300;\n --blue-1: #ddf4ff;\n --blue-2: #b6e3ff;\n --blue-3: #80ccff;\n --blue-4: #54aeff;\n --blue-5: #218bff;\n --blue-6: #0969da;\n --blue-7: #0550ae;\n --blue-8: #033d8b;\n --blue-9: #0a3069;\n --blue-10: #002155;\n --shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.02);\n --shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),\n 0px 1px px 0px rgba(0, 0, 0, 0.04);\n --shadow-4: 0px 8px 32px 0px rgba(0, 0, 0, 0.08),\n 0px 2px 20px 0px rgba(0, 0, 0, 0.04);\n --shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),\n 0px 8px 20px 0px rgba(0, 0, 0, 0.06);\n}";
|
|
10272
|
-
const keyValuePairs = lessString.match(/--\w+-\d+:\s#[a-fA-F0-9]+;/g);
|
|
10273
|
-
const keyValueMap = {};
|
|
10274
|
-
keyValuePairs.forEach((pair) => {
|
|
10275
|
-
const [key2, value] = pair.split(":");
|
|
10276
|
-
keyValueMap[key2.trim()] = value.slice(0, -1).trim();
|
|
10277
|
-
});
|
|
10278
|
-
const getVarColor = (name) => {
|
|
10279
|
-
return keyValueMap[name];
|
|
10280
|
-
};
|
|
10281
10274
|
const BasicButton = /* @__PURE__ */ vue.defineComponent({
|
|
10282
10275
|
props: buttonProps,
|
|
10283
10276
|
setup(props2, {
|
|
@@ -10302,19 +10295,19 @@ const BasicButton = /* @__PURE__ */ vue.defineComponent({
|
|
|
10302
10295
|
let colorPrimary;
|
|
10303
10296
|
switch (props2.type || props2.color) {
|
|
10304
10297
|
case "danger":
|
|
10305
|
-
colorPrimary = getVarColor("--red-6");
|
|
10298
|
+
colorPrimary = use.getVarColor("--red-6");
|
|
10306
10299
|
break;
|
|
10307
10300
|
case "waring":
|
|
10308
|
-
colorPrimary = getVarColor("--yellow-5");
|
|
10301
|
+
colorPrimary = use.getVarColor("--yellow-5");
|
|
10309
10302
|
break;
|
|
10310
10303
|
case "success":
|
|
10311
|
-
colorPrimary = getVarColor("--
|
|
10304
|
+
colorPrimary = use.getVarColor("--green-5");
|
|
10312
10305
|
break;
|
|
10313
10306
|
case "message":
|
|
10314
|
-
colorPrimary = getVarColor("--blue-6");
|
|
10307
|
+
colorPrimary = use.getVarColor("--blue-6");
|
|
10315
10308
|
break;
|
|
10316
10309
|
default:
|
|
10317
|
-
colorPrimary = getVarColor("--primary-5");
|
|
10310
|
+
colorPrimary = use.getVarColor("--primary-5");
|
|
10318
10311
|
break;
|
|
10319
10312
|
}
|
|
10320
10313
|
return colorPrimary;
|
|
@@ -10435,7 +10428,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10435
10428
|
vue.renderSlot(_ctx.$slots, "centerFooter"),
|
|
10436
10429
|
_ctx.showOkBtn ? (vue.openBlock(), vue.createBlock(_component_BasicButton, vue.mergeProps({
|
|
10437
10430
|
key: 1,
|
|
10438
|
-
type: "
|
|
10431
|
+
type: "primary",
|
|
10439
10432
|
onClick: _ctx.handleOk,
|
|
10440
10433
|
loading: _ctx.confirmLoading
|
|
10441
10434
|
}, _ctx.okButtonProps), {
|
|
@@ -39797,7 +39790,6 @@ exports.componentMap = componentMap$3;
|
|
|
39797
39790
|
exports.createLoading = createLoading;
|
|
39798
39791
|
exports.descriptionsForm = descriptionsForm;
|
|
39799
39792
|
exports.getGlobalAdvancedType = getGlobalAdvancedType;
|
|
39800
|
-
exports.getVarColor = getVarColor;
|
|
39801
39793
|
exports.registerGlobalConfig = registerGlobalConfig;
|
|
39802
39794
|
exports.searchType = searchType;
|
|
39803
39795
|
exports.searchTypeDate = searchTypeDate;
|
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.68",
|
|
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/tinymce": "^1.0.6",
|
|
33
32
|
"@shy-plugins/utils": "1.0.0-next.1",
|
|
34
|
-
"@shy-plugins/use": "1.0.
|
|
33
|
+
"@shy-plugins/use": "1.0.1-next.1",
|
|
34
|
+
"@shy-plugins/tinymce": "^1.0.6"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|
|
37
37
|
"devDependencies": {
|