lew-ui 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +13 -0
- package/dist/components/dropdown/src/props.d.ts +12 -0
- package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +3 -3
- package/dist/directives/context-menu/src/index.d.ts +30 -5
- package/dist/index.mjs +571 -123
- package/dist/index.umd.js +7 -7
- package/dist/locals/de.d.ts +56 -0
- package/dist/locals/en.d.ts +12 -2
- package/dist/locals/es.d.ts +56 -0
- package/dist/locals/fr.d.ts +56 -0
- package/dist/locals/index.d.ts +8 -1
- package/dist/locals/it.d.ts +56 -0
- package/dist/locals/ja.d.ts +56 -0
- package/dist/locals/ko.d.ts +56 -0
- package/dist/locals/pt.d.ts +56 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3697,7 +3697,7 @@ const _hoisted_3$m = {
|
|
|
3697
3697
|
key: 2,
|
|
3698
3698
|
class: "lew-image-box"
|
|
3699
3699
|
};
|
|
3700
|
-
const _hoisted_4$
|
|
3700
|
+
const _hoisted_4$f = ["src", "lazy", "alt"];
|
|
3701
3701
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
3702
3702
|
__name: "LewImage",
|
|
3703
3703
|
props: imageProps,
|
|
@@ -3767,7 +3767,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3767
3767
|
"object-position": _ctx.objectPosition
|
|
3768
3768
|
}),
|
|
3769
3769
|
alt: _ctx.alt
|
|
3770
|
-
}, null, 12, _hoisted_4$
|
|
3770
|
+
}, null, 12, _hoisted_4$f)
|
|
3771
3771
|
]))
|
|
3772
3772
|
]),
|
|
3773
3773
|
_: 3
|
|
@@ -7941,6 +7941,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7941
7941
|
key: 0,
|
|
7942
7942
|
onClick: _cache[0] || (_cache[0] = ($event) => isRef(collapse) ? collapse.value = !unref(collapse) : collapse = !unref(collapse)),
|
|
7943
7943
|
gap: "5",
|
|
7944
|
+
x: "center",
|
|
7944
7945
|
class: "lew-expand-btn"
|
|
7945
7946
|
}, {
|
|
7946
7947
|
default: withCtx(() => [
|
|
@@ -7958,7 +7959,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7958
7959
|
};
|
|
7959
7960
|
}
|
|
7960
7961
|
});
|
|
7961
|
-
const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-
|
|
7962
|
+
const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-c9d905d9"]]);
|
|
7962
7963
|
const backTopProps = {
|
|
7963
7964
|
right: {
|
|
7964
7965
|
type: Number,
|
|
@@ -8143,7 +8144,7 @@ const _hoisted_3$j = {
|
|
|
8143
8144
|
key: 4,
|
|
8144
8145
|
class: "index"
|
|
8145
8146
|
};
|
|
8146
|
-
const _hoisted_4$
|
|
8147
|
+
const _hoisted_4$e = { class: "lew-steps-item-info" };
|
|
8147
8148
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
8148
8149
|
__name: "LewSteps",
|
|
8149
8150
|
props: /* @__PURE__ */ mergeModels(stepsProps, {
|
|
@@ -8192,7 +8193,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
8192
8193
|
type: "check"
|
|
8193
8194
|
})) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString$1(index2 + 1), 1))
|
|
8194
8195
|
]),
|
|
8195
|
-
createElementVNode("div", _hoisted_4$
|
|
8196
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
8196
8197
|
createElementVNode("div", {
|
|
8197
8198
|
style: normalizeStyle({ maxWidth: unref(any2px)(_ctx.minWidth) }),
|
|
8198
8199
|
class: "lew-steps-item-title"
|
|
@@ -8697,6 +8698,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
8697
8698
|
}
|
|
8698
8699
|
});
|
|
8699
8700
|
const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-83c85c7d"]]);
|
|
8701
|
+
const dropdownModel = {
|
|
8702
|
+
selectedKeys: {
|
|
8703
|
+
type: Array,
|
|
8704
|
+
default: () => [],
|
|
8705
|
+
description: "选中项的key值"
|
|
8706
|
+
}
|
|
8707
|
+
};
|
|
8700
8708
|
const dropdownProps = {
|
|
8701
8709
|
trigger: {
|
|
8702
8710
|
type: String,
|
|
@@ -8752,13 +8760,22 @@ const dropdownProps = {
|
|
|
8752
8760
|
}
|
|
8753
8761
|
return true;
|
|
8754
8762
|
}
|
|
8763
|
+
},
|
|
8764
|
+
checkbox: {
|
|
8765
|
+
type: Boolean,
|
|
8766
|
+
default: false,
|
|
8767
|
+
description: "是否开启checkbox模式"
|
|
8755
8768
|
}
|
|
8756
8769
|
};
|
|
8757
8770
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
8758
8771
|
__name: "LewDropdown",
|
|
8759
|
-
props: dropdownProps,
|
|
8760
|
-
|
|
8772
|
+
props: /* @__PURE__ */ mergeModels(dropdownProps, {
|
|
8773
|
+
"selectedKeys": {},
|
|
8774
|
+
"selectedKeysModifiers": {}
|
|
8775
|
+
}),
|
|
8776
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:selectedKeys"]),
|
|
8761
8777
|
setup(__props2, { expose: __expose2, emit: __emit2 }) {
|
|
8778
|
+
const selectedKeys = useModel(__props2, "selectedKeys");
|
|
8762
8779
|
const emit2 = __emit2;
|
|
8763
8780
|
const lewPopoverRef = ref();
|
|
8764
8781
|
const show = () => {
|
|
@@ -8768,6 +8785,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8768
8785
|
lewPopoverRef.value.hide();
|
|
8769
8786
|
};
|
|
8770
8787
|
const change2 = (item) => {
|
|
8788
|
+
console.log(item);
|
|
8771
8789
|
emit2("change", item);
|
|
8772
8790
|
hide2();
|
|
8773
8791
|
};
|
|
@@ -8788,9 +8806,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8788
8806
|
]),
|
|
8789
8807
|
"popover-body": withCtx(() => [
|
|
8790
8808
|
createVNode(unref(_LewContextMenu), {
|
|
8809
|
+
"selected-keys": selectedKeys.value,
|
|
8810
|
+
"onUpdate:selectedKeys": _cache[0] || (_cache[0] = ($event) => selectedKeys.value = $event),
|
|
8811
|
+
checkbox: _ctx.checkbox,
|
|
8791
8812
|
options: _ctx.options,
|
|
8792
8813
|
onSelect: change2
|
|
8793
|
-
}, null, 8, ["options"])
|
|
8814
|
+
}, null, 8, ["selected-keys", "checkbox", "options"])
|
|
8794
8815
|
]),
|
|
8795
8816
|
_: 3
|
|
8796
8817
|
}, 8, ["trigger", "placement"]);
|
|
@@ -8853,7 +8874,7 @@ const _hoisted_3$h = {
|
|
|
8853
8874
|
key: 0,
|
|
8854
8875
|
class: "lew-breadcrumb-parting"
|
|
8855
8876
|
};
|
|
8856
|
-
const _hoisted_4$
|
|
8877
|
+
const _hoisted_4$d = {
|
|
8857
8878
|
key: 0,
|
|
8858
8879
|
viewBox: "0 0 48 48",
|
|
8859
8880
|
fill: "none",
|
|
@@ -8891,7 +8912,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
8891
8912
|
onClick: ($event) => emit2("change", item)
|
|
8892
8913
|
}, toDisplayString$1(item.label), 11, _hoisted_2$n),
|
|
8893
8914
|
index2 != _ctx.options.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
8894
|
-
_ctx.separator === "sprit" ? (openBlock(), createElementBlock("svg", _hoisted_4$
|
|
8915
|
+
_ctx.separator === "sprit" ? (openBlock(), createElementBlock("svg", _hoisted_4$d, _cache[0] || (_cache[0] = [
|
|
8895
8916
|
createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
|
|
8896
8917
|
]))) : createCommentVNode("", true),
|
|
8897
8918
|
_ctx.separator === "shoulder" ? (openBlock(), createElementBlock("svg", _hoisted_5$7, _cache[1] || (_cache[1] = [
|
|
@@ -12051,7 +12072,7 @@ const _hoisted_3$g = {
|
|
|
12051
12072
|
key: 1,
|
|
12052
12073
|
class: "lew-input-prefixes-icon"
|
|
12053
12074
|
};
|
|
12054
|
-
const _hoisted_4$
|
|
12075
|
+
const _hoisted_4$c = {
|
|
12055
12076
|
key: 2,
|
|
12056
12077
|
class: "lew-input-prefixes-select"
|
|
12057
12078
|
};
|
|
@@ -12231,7 +12252,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
12231
12252
|
type: prefixesValue.value
|
|
12232
12253
|
}, null, 8, ["size", "type"])
|
|
12233
12254
|
])) : createCommentVNode("", true),
|
|
12234
|
-
_ctx.prefixes === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12255
|
+
_ctx.prefixes === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
12235
12256
|
createVNode(unref(_sfc_main$O), {
|
|
12236
12257
|
placement: "bottom",
|
|
12237
12258
|
trigger: "click",
|
|
@@ -15110,7 +15131,7 @@ const _hoisted_3$e = {
|
|
|
15110
15131
|
key: 1,
|
|
15111
15132
|
class: "lew-result-count"
|
|
15112
15133
|
};
|
|
15113
|
-
const _hoisted_4$
|
|
15134
|
+
const _hoisted_4$b = ["onClick"];
|
|
15114
15135
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
15115
15136
|
__name: "LewSelect",
|
|
15116
15137
|
props: /* @__PURE__ */ mergeModels(selectProps, {
|
|
@@ -15443,7 +15464,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
15443
15464
|
type: "check"
|
|
15444
15465
|
})) : createCommentVNode("", true)
|
|
15445
15466
|
], 2))
|
|
15446
|
-
], 12, _hoisted_4$
|
|
15467
|
+
], 12, _hoisted_4$b)
|
|
15447
15468
|
]),
|
|
15448
15469
|
_: 3
|
|
15449
15470
|
}, 8, ["list", "minSize"])) : createCommentVNode("", true)
|
|
@@ -15579,7 +15600,7 @@ const _hoisted_3$d = {
|
|
|
15579
15600
|
key: 1,
|
|
15580
15601
|
class: "lew-result-count"
|
|
15581
15602
|
};
|
|
15582
|
-
const _hoisted_4$
|
|
15603
|
+
const _hoisted_4$a = ["onClick"];
|
|
15583
15604
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
15584
15605
|
__name: "LewSelectMultiple",
|
|
15585
15606
|
props: /* @__PURE__ */ mergeModels(selectMultipleProps, {
|
|
@@ -16003,7 +16024,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16003
16024
|
class: normalizeClass(["lew-select-label", { "is-group": templateProps.isGroup }])
|
|
16004
16025
|
}, null, 8, ["text", "class"])
|
|
16005
16026
|
], 2))
|
|
16006
|
-
], 12, _hoisted_4$
|
|
16027
|
+
], 12, _hoisted_4$a)
|
|
16007
16028
|
]),
|
|
16008
16029
|
_: 3
|
|
16009
16030
|
}, 8, ["list", "minSize", "style"])) : createCommentVNode("", true)
|
|
@@ -16414,7 +16435,7 @@ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
|
16414
16435
|
const _hoisted_1$r = { class: "lew-date" };
|
|
16415
16436
|
const _hoisted_2$g = { class: "lew-date-control-left" };
|
|
16416
16437
|
const _hoisted_3$c = { class: "cur-date" };
|
|
16417
|
-
const _hoisted_4$
|
|
16438
|
+
const _hoisted_4$9 = { class: "lew-date-control-right" };
|
|
16418
16439
|
const _hoisted_5$5 = { class: "lew-date-box" };
|
|
16419
16440
|
const _hoisted_6$4 = { class: "lew-date-num" };
|
|
16420
16441
|
const _hoisted_7$2 = ["onClick"];
|
|
@@ -16543,7 +16564,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
16543
16564
|
})
|
|
16544
16565
|
]),
|
|
16545
16566
|
createElementVNode("div", _hoisted_3$c, toDisplayString$1(unref(dayjs)(`${unref(dateState).year}-${unref(dateState).month}`).format("YYYY-MM")), 1),
|
|
16546
|
-
createElementVNode("div", _hoisted_4$
|
|
16567
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
16547
16568
|
createVNode(unref(LewButton), {
|
|
16548
16569
|
type: "light",
|
|
16549
16570
|
color: "gray",
|
|
@@ -16906,7 +16927,7 @@ const dateRangeProps = {
|
|
|
16906
16927
|
const _hoisted_1$p = { class: "lew-date-range" };
|
|
16907
16928
|
const _hoisted_2$e = { class: "lew-date" };
|
|
16908
16929
|
const _hoisted_3$b = { class: "lew-date-control-left" };
|
|
16909
|
-
const _hoisted_4$
|
|
16930
|
+
const _hoisted_4$8 = { class: "cur-date" };
|
|
16910
16931
|
const _hoisted_5$4 = { class: "lew-date-control-right" };
|
|
16911
16932
|
const _hoisted_6$3 = { class: "lew-date-box" };
|
|
16912
16933
|
const _hoisted_7$1 = { class: "lew-date-num" };
|
|
@@ -17223,7 +17244,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
17223
17244
|
_: 1
|
|
17224
17245
|
})
|
|
17225
17246
|
]),
|
|
17226
|
-
createElementVNode("div", _hoisted_4$
|
|
17247
|
+
createElementVNode("div", _hoisted_4$8, toDisplayString$1(unref(dayjs)(`${unref(dateState).year1}-${unref(dateState).month1}`).format("YYYY-MM")), 1),
|
|
17227
17248
|
createElementVNode("div", _hoisted_5$4, [
|
|
17228
17249
|
createVNode(unref(LewButton), {
|
|
17229
17250
|
type: "light",
|
|
@@ -17386,7 +17407,7 @@ const _hoisted_3$a = {
|
|
|
17386
17407
|
key: 1,
|
|
17387
17408
|
class: "lew-date-range-picker-dateValue lew-date-range-picker-start"
|
|
17388
17409
|
};
|
|
17389
|
-
const _hoisted_4$
|
|
17410
|
+
const _hoisted_4$7 = { class: "lew-date-range-picker-mid" };
|
|
17390
17411
|
const _hoisted_5$3 = {
|
|
17391
17412
|
key: 2,
|
|
17392
17413
|
class: "lew-date-range-picker-placeholder"
|
|
@@ -17497,7 +17518,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17497
17518
|
}, {
|
|
17498
17519
|
default: withCtx(() => [
|
|
17499
17520
|
!modelValue2.value || !modelValue2.value[unref(startKey)] ? (openBlock(), createElementBlock("div", _hoisted_2$d, toDisplayString$1(_ctx.placeholderStart ? _ctx.placeholderStart : unref(locale).t("dateRangePicker.placeholderStart")), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$a, toDisplayString$1(modelValue2.value[unref(startKey)]), 1)),
|
|
17500
|
-
createElementVNode("div", _hoisted_4$
|
|
17521
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
17501
17522
|
createVNode(Icon, {
|
|
17502
17523
|
size: 14,
|
|
17503
17524
|
type: "minus"
|
|
@@ -18290,7 +18311,7 @@ const _hoisted_3$8 = {
|
|
|
18290
18311
|
key: 0,
|
|
18291
18312
|
class: "result-count"
|
|
18292
18313
|
};
|
|
18293
|
-
const _hoisted_4$
|
|
18314
|
+
const _hoisted_4$6 = { class: "tree-select-wrapper lew-scrollbar" };
|
|
18294
18315
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
18295
18316
|
__name: "LewTreeSelect",
|
|
18296
18317
|
props: /* @__PURE__ */ mergeModels(treeSelectProps, {
|
|
@@ -18521,7 +18542,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18521
18542
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
18522
18543
|
createElementVNode("div", _hoisted_2$b, [
|
|
18523
18544
|
_ctx.searchable && (unref(state).treeList || []).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$8, " 共 " + toDisplayString$1(unref(numFormat)(unref(searchCount))) + " 条结果 ", 1)) : createCommentVNode("", true),
|
|
18524
|
-
createElementVNode("div", _hoisted_4$
|
|
18545
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
18525
18546
|
createVNode(unref(LewTree), mergeProps({
|
|
18526
18547
|
ref_key: "lewTreeRef",
|
|
18527
18548
|
ref: lewTreeRef,
|
|
@@ -20058,7 +20079,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
20058
20079
|
};
|
|
20059
20080
|
}
|
|
20060
20081
|
});
|
|
20061
|
-
const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
20082
|
+
const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4ea82a0c"]]);
|
|
20062
20083
|
const colorPickerModel = {
|
|
20063
20084
|
modelValue: {
|
|
20064
20085
|
type: String,
|
|
@@ -21182,7 +21203,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
21182
21203
|
};
|
|
21183
21204
|
}
|
|
21184
21205
|
});
|
|
21185
|
-
const LewUpload = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
21206
|
+
const LewUpload = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-f27730be"]]);
|
|
21186
21207
|
const rateModel = {
|
|
21187
21208
|
modelValue: {
|
|
21188
21209
|
type: Number,
|
|
@@ -21509,7 +21530,7 @@ const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v
|
|
|
21509
21530
|
const _hoisted_1$c = { class: "lew-table-wrapper" };
|
|
21510
21531
|
const _hoisted_2$8 = { class: "lew-table-header" };
|
|
21511
21532
|
const _hoisted_3$7 = { class: "lew-table-tr" };
|
|
21512
|
-
const _hoisted_4$
|
|
21533
|
+
const _hoisted_4$5 = { class: "lew-table-title-span" };
|
|
21513
21534
|
const _hoisted_5$2 = { class: "lew-table-main" };
|
|
21514
21535
|
const _hoisted_6$1 = { class: "lew-table-tr" };
|
|
21515
21536
|
const _hoisted_7 = { class: "lew-table-title-span" };
|
|
@@ -21943,7 +21964,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21943
21964
|
onClick: ($event) => sort(column)
|
|
21944
21965
|
}, {
|
|
21945
21966
|
default: withCtx(() => [
|
|
21946
|
-
createElementVNode("span", _hoisted_4$
|
|
21967
|
+
createElementVNode("span", _hoisted_4$5, [
|
|
21947
21968
|
createTextVNode(toDisplayString$1(column.title) + " ", 1),
|
|
21948
21969
|
column.sortable ? (openBlock(), createBlock(SortIcon, {
|
|
21949
21970
|
key: 0,
|
|
@@ -22746,7 +22767,7 @@ const _hoisted_3$6 = {
|
|
|
22746
22767
|
key: 0,
|
|
22747
22768
|
class: "lew-tree-line"
|
|
22748
22769
|
};
|
|
22749
|
-
const _hoisted_4$
|
|
22770
|
+
const _hoisted_4$4 = { key: 3 };
|
|
22750
22771
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
22751
22772
|
__name: "LewTree",
|
|
22752
22773
|
props: /* @__PURE__ */ mergeModels(treeProps, {
|
|
@@ -22980,7 +23001,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
22980
23001
|
...item,
|
|
22981
23002
|
checked: _ctx.multiple ? (modelValue2.value || []).includes(item.key) : modelValue2.value === item.key
|
|
22982
23003
|
}
|
|
22983
|
-
}, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23004
|
+
}, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString$1(item.label), 1))
|
|
22984
23005
|
], 8, _hoisted_2$7)
|
|
22985
23006
|
], 6)) : createCommentVNode("", true)
|
|
22986
23007
|
]),
|
|
@@ -23874,7 +23895,7 @@ const _hoisted_3$5 = {
|
|
|
23874
23895
|
key: 1,
|
|
23875
23896
|
class: "lew-alert-title"
|
|
23876
23897
|
};
|
|
23877
|
-
const _hoisted_4$
|
|
23898
|
+
const _hoisted_4$3 = {
|
|
23878
23899
|
key: 2,
|
|
23879
23900
|
class: "lew-alert-content"
|
|
23880
23901
|
};
|
|
@@ -23910,7 +23931,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23910
23931
|
_ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
23911
23932
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
23912
23933
|
])) : (openBlock(), createElementBlock("div", _hoisted_3$5, toDisplayString$1(_ctx.title), 1)),
|
|
23913
|
-
_ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23934
|
+
_ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
23914
23935
|
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
23915
23936
|
])) : _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString$1(_ctx.content), 1)) : createCommentVNode("", true),
|
|
23916
23937
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
@@ -24266,7 +24287,7 @@ const _hoisted_3$3 = {
|
|
|
24266
24287
|
key: 0,
|
|
24267
24288
|
class: "lew-popok-title"
|
|
24268
24289
|
};
|
|
24269
|
-
const _hoisted_4$
|
|
24290
|
+
const _hoisted_4$2 = {
|
|
24270
24291
|
key: 1,
|
|
24271
24292
|
class: "lew-popok-content"
|
|
24272
24293
|
};
|
|
@@ -24322,7 +24343,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
24322
24343
|
]),
|
|
24323
24344
|
createElementVNode("div", _hoisted_2$3, [
|
|
24324
24345
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true),
|
|
24325
|
-
_ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24346
|
+
_ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString$1(_ctx.content), 1)) : createCommentVNode("", true),
|
|
24326
24347
|
createElementVNode("div", _hoisted_5, [
|
|
24327
24348
|
createVNode(unref(LewButton), mergeProps({
|
|
24328
24349
|
text: "取消",
|
|
@@ -25117,6 +25138,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
25117
25138
|
descProps,
|
|
25118
25139
|
drawerModel,
|
|
25119
25140
|
drawerProps,
|
|
25141
|
+
dropdownModel,
|
|
25120
25142
|
dropdownProps,
|
|
25121
25143
|
emptyProps,
|
|
25122
25144
|
expandProps,
|
|
@@ -25315,33 +25337,21 @@ const LewLoading = {
|
|
|
25315
25337
|
const initLewContextMenu = () => {
|
|
25316
25338
|
window.LewContextMenu = {
|
|
25317
25339
|
menu: {},
|
|
25318
|
-
// 存储菜单配置
|
|
25319
|
-
disabledIds: [],
|
|
25320
|
-
// 禁用右键菜单的元素ID
|
|
25321
25340
|
contextMenu: null,
|
|
25322
|
-
// 右键菜单事件处理函数
|
|
25323
25341
|
instance: tippy(document.body, {
|
|
25324
25342
|
theme: "light",
|
|
25325
25343
|
animation: "shift-away-subtle",
|
|
25326
25344
|
trigger: "manual",
|
|
25327
|
-
// 手动触发
|
|
25328
25345
|
interactive: true,
|
|
25329
|
-
// 允许与菜单交互
|
|
25330
25346
|
placement: "right-start",
|
|
25331
|
-
// 菜单出现位置
|
|
25332
25347
|
duration: [250, 250],
|
|
25333
|
-
// 动画持续时间
|
|
25334
25348
|
delay: [250, 0],
|
|
25335
|
-
// 显示和隐藏的延迟
|
|
25336
25349
|
arrow: false,
|
|
25337
|
-
// 不显示箭头
|
|
25338
25350
|
appendTo: () => document.body,
|
|
25339
|
-
|
|
25340
|
-
|
|
25341
|
-
// 允许HTML内容
|
|
25351
|
+
allowHTML: true,
|
|
25352
|
+
zIndex: 2e3
|
|
25342
25353
|
}),
|
|
25343
25354
|
menuInstance: {}
|
|
25344
|
-
// 存储子菜单实例
|
|
25345
25355
|
};
|
|
25346
25356
|
window.LewContextMenu.instance.popper.children[0].setAttribute(
|
|
25347
25357
|
"data-lew",
|
|
@@ -25357,52 +25367,55 @@ const findContextMenuId = (el) => {
|
|
|
25357
25367
|
return "";
|
|
25358
25368
|
}
|
|
25359
25369
|
};
|
|
25370
|
+
const createContextMenu = (options, onSelect) => {
|
|
25371
|
+
const menuDom = document.createElement("div");
|
|
25372
|
+
createApp({
|
|
25373
|
+
render() {
|
|
25374
|
+
return h(_LewContextMenu, { options, onSelect });
|
|
25375
|
+
}
|
|
25376
|
+
}).mount(menuDom);
|
|
25377
|
+
return menuDom;
|
|
25378
|
+
};
|
|
25360
25379
|
const LewVContextMenu = {
|
|
25361
25380
|
install(app2) {
|
|
25362
25381
|
app2.directive("context-menu", {
|
|
25363
|
-
// 指令挂载时的处理
|
|
25364
25382
|
mounted(el, binding) {
|
|
25365
25383
|
if (!window.LewContextMenu) {
|
|
25366
25384
|
initLewContextMenu();
|
|
25367
25385
|
}
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
window.LewContextMenu.disabledIds.push(elId);
|
|
25378
|
-
}
|
|
25386
|
+
const {
|
|
25387
|
+
options = [],
|
|
25388
|
+
disabled = false,
|
|
25389
|
+
selectHandler = () => {
|
|
25390
|
+
}
|
|
25391
|
+
} = binding.value;
|
|
25392
|
+
const elId = el.id || getUniqueId();
|
|
25393
|
+
el.setAttribute("lew-context-menu-id", elId);
|
|
25394
|
+
window.LewContextMenu.menu[elId] = { options, selectHandler, disabled };
|
|
25379
25395
|
if (!window.LewContextMenu.contextMenu) {
|
|
25380
25396
|
window.LewContextMenu.contextMenu = (e) => {
|
|
25381
25397
|
const id = findContextMenuId(e.target);
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
}
|
|
25398
|
+
const menuConfig = window.LewContextMenu.menu[id];
|
|
25399
|
+
if (!id || (menuConfig == null ? void 0 : menuConfig.disabled)) return;
|
|
25385
25400
|
e.preventDefault();
|
|
25386
|
-
const options = window.LewContextMenu.menu[id];
|
|
25387
25401
|
const { instance } = window.LewContextMenu;
|
|
25388
25402
|
instance.hide();
|
|
25389
|
-
const menuDom =
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25400
|
-
|
|
25401
|
-
|
|
25402
|
-
|
|
25403
|
-
});
|
|
25403
|
+
const menuDom = createContextMenu(
|
|
25404
|
+
menuConfig.options,
|
|
25405
|
+
({ item, parent, value }) => {
|
|
25406
|
+
if (isFunction$1(menuConfig.selectHandler)) {
|
|
25407
|
+
menuConfig.selectHandler({
|
|
25408
|
+
item,
|
|
25409
|
+
parent,
|
|
25410
|
+
value,
|
|
25411
|
+
menuConfig
|
|
25412
|
+
});
|
|
25413
|
+
}
|
|
25414
|
+
if (!(item.children || []).length) {
|
|
25415
|
+
instance.hide();
|
|
25416
|
+
}
|
|
25404
25417
|
}
|
|
25405
|
-
|
|
25418
|
+
);
|
|
25406
25419
|
setTimeout(() => {
|
|
25407
25420
|
instance.setProps({
|
|
25408
25421
|
content: menuDom,
|
|
@@ -25418,27 +25431,31 @@ const LewVContextMenu = {
|
|
|
25418
25431
|
instance.show();
|
|
25419
25432
|
}, 120);
|
|
25420
25433
|
};
|
|
25421
|
-
window.addEventListener(
|
|
25422
|
-
|
|
25423
|
-
|
|
25434
|
+
window.addEventListener(
|
|
25435
|
+
"contextmenu",
|
|
25436
|
+
window.LewContextMenu.contextMenu
|
|
25437
|
+
);
|
|
25424
25438
|
}
|
|
25425
25439
|
},
|
|
25426
|
-
// 指令更新时的处理
|
|
25427
25440
|
updated(el, binding) {
|
|
25428
25441
|
const id = findContextMenuId(el);
|
|
25429
25442
|
if (id) {
|
|
25430
|
-
const {
|
|
25431
|
-
|
|
25432
|
-
|
|
25433
|
-
|
|
25434
|
-
|
|
25435
|
-
|
|
25436
|
-
|
|
25437
|
-
);
|
|
25438
|
-
}
|
|
25443
|
+
const {
|
|
25444
|
+
options = [],
|
|
25445
|
+
disabled = false,
|
|
25446
|
+
selectHandler = () => {
|
|
25447
|
+
}
|
|
25448
|
+
} = binding.value;
|
|
25449
|
+
window.LewContextMenu.menu[id] = { options, disabled, selectHandler };
|
|
25439
25450
|
} else {
|
|
25440
25451
|
console.error("发生未知错误!找不到 lew-context-menu-id。");
|
|
25441
25452
|
}
|
|
25453
|
+
},
|
|
25454
|
+
unmounted(el) {
|
|
25455
|
+
const id = findContextMenuId(el);
|
|
25456
|
+
if (id) {
|
|
25457
|
+
delete window.LewContextMenu.menu[id];
|
|
25458
|
+
}
|
|
25442
25459
|
}
|
|
25443
25460
|
});
|
|
25444
25461
|
}
|
|
@@ -25462,8 +25479,12 @@ const contextMenuProps = {
|
|
|
25462
25479
|
}
|
|
25463
25480
|
};
|
|
25464
25481
|
const _hoisted_1$1 = ["onClick"];
|
|
25465
|
-
const _hoisted_2$1 = {
|
|
25466
|
-
|
|
25482
|
+
const _hoisted_2$1 = {
|
|
25483
|
+
key: 0,
|
|
25484
|
+
class: "lew-context-menu-checkbox"
|
|
25485
|
+
};
|
|
25486
|
+
const _hoisted_3$1 = { class: "lew-context-menu-label" };
|
|
25487
|
+
const _hoisted_4$1 = { class: "lew-context-menu-label-text" };
|
|
25467
25488
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
25468
25489
|
__name: "LewContextMenu",
|
|
25469
25490
|
props: contextMenuProps,
|
|
@@ -25471,8 +25492,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25471
25492
|
setup(__props2, { emit: __emit2 }) {
|
|
25472
25493
|
const props2 = __props2;
|
|
25473
25494
|
const emit2 = __emit2;
|
|
25474
|
-
const clickItem = (item) => {
|
|
25475
|
-
emit2("select",
|
|
25495
|
+
const clickItem = (item, options) => {
|
|
25496
|
+
emit2("select", {
|
|
25497
|
+
item,
|
|
25498
|
+
parent: options,
|
|
25499
|
+
value: item.value
|
|
25500
|
+
});
|
|
25476
25501
|
};
|
|
25477
25502
|
const uniqueId2 = getUniqueId();
|
|
25478
25503
|
let itemRefs = ref([]);
|
|
@@ -25487,8 +25512,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25487
25512
|
render() {
|
|
25488
25513
|
return h(_LewContextMenu, {
|
|
25489
25514
|
options: item.children,
|
|
25490
|
-
onSelect: (
|
|
25491
|
-
emit2("select",
|
|
25515
|
+
onSelect: (e) => {
|
|
25516
|
+
emit2("select", e);
|
|
25492
25517
|
}
|
|
25493
25518
|
});
|
|
25494
25519
|
}
|
|
@@ -25546,24 +25571,36 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25546
25571
|
createElementVNode("div", {
|
|
25547
25572
|
ref_for: true,
|
|
25548
25573
|
ref: (el) => unref(itemRefs).push(el),
|
|
25549
|
-
onClick: ($event) => clickItem(item),
|
|
25574
|
+
onClick: ($event) => clickItem(item, _ctx.options),
|
|
25550
25575
|
class: normalizeClass(["lew-context-menu-item", {
|
|
25551
25576
|
"lew-context-menu-item-active": item.active
|
|
25552
25577
|
}]),
|
|
25553
25578
|
style: normalizeStyle({ "animation-delay": index2 * 15 + "ms" })
|
|
25554
25579
|
}, [
|
|
25555
|
-
|
|
25580
|
+
_ctx.options.filter((e) => e.checkbox).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
25581
|
+
item.checked ? (openBlock(), createBlock(Icon, {
|
|
25582
|
+
key: 0,
|
|
25583
|
+
size: 12,
|
|
25584
|
+
"stroke-width": 2.5,
|
|
25585
|
+
type: "check"
|
|
25586
|
+
})) : createCommentVNode("", true)
|
|
25587
|
+
])) : createCommentVNode("", true),
|
|
25588
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
25556
25589
|
item.renderIcon ? (openBlock(), createBlock(renderIcon, {
|
|
25557
25590
|
key: 0,
|
|
25558
25591
|
renderIcon: item.renderIcon
|
|
25559
25592
|
}, null, 8, ["renderIcon"])) : createCommentVNode("", true),
|
|
25560
|
-
createElementVNode("div",
|
|
25593
|
+
createElementVNode("div", _hoisted_4$1, toDisplayString$1(item.label), 1)
|
|
25561
25594
|
]),
|
|
25562
|
-
(
|
|
25563
|
-
key:
|
|
25595
|
+
_ctx.options.filter((e) => e.children).length > 0 ? (openBlock(), createBlock(Icon, {
|
|
25596
|
+
key: 1,
|
|
25597
|
+
class: "lew-context-menu-item-chevron",
|
|
25598
|
+
style: normalizeStyle({
|
|
25599
|
+
opacity: (item.children || []).length > 0 ? 1 : 0
|
|
25600
|
+
}),
|
|
25564
25601
|
size: 14,
|
|
25565
25602
|
type: "chevron-right"
|
|
25566
|
-
})) : createCommentVNode("", true)
|
|
25603
|
+
}, null, 8, ["style"])) : createCommentVNode("", true)
|
|
25567
25604
|
], 14, _hoisted_1$1)
|
|
25568
25605
|
], 2);
|
|
25569
25606
|
}), 128)) : (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
@@ -25580,7 +25617,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25580
25617
|
};
|
|
25581
25618
|
}
|
|
25582
25619
|
});
|
|
25583
|
-
const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
25620
|
+
const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-31b81ff7"]]);
|
|
25584
25621
|
const initLewHoverMenu = () => {
|
|
25585
25622
|
window.LewHoverMenu = {
|
|
25586
25623
|
menu: {},
|
|
@@ -31625,22 +31662,30 @@ if (process.env.NODE_ENV !== "production") ;
|
|
|
31625
31662
|
const en = {
|
|
31626
31663
|
name: "en",
|
|
31627
31664
|
image: {
|
|
31628
|
-
fail: "
|
|
31665
|
+
fail: "Unable to load image, please try again later"
|
|
31629
31666
|
},
|
|
31630
31667
|
input: {
|
|
31631
31668
|
placeholder: "Please input",
|
|
31632
31669
|
copy: "Copy",
|
|
31633
|
-
copySuccess: "
|
|
31634
|
-
copyFailed: "Copy failed
|
|
31670
|
+
copySuccess: "Copied to clipboard",
|
|
31671
|
+
copyFailed: "Copy failed, please try again"
|
|
31635
31672
|
},
|
|
31636
|
-
|
|
31637
|
-
placeholder: "
|
|
31673
|
+
inputTag: {
|
|
31674
|
+
placeholder: "Press Enter after input to add tag",
|
|
31675
|
+
maxLength: "Reached the limit of {maxLength} tags, delete some tags to continue adding",
|
|
31676
|
+
duplicate: "Tag already exists, please input a new tag"
|
|
31638
31677
|
},
|
|
31639
31678
|
select: {
|
|
31640
31679
|
placeholder: "Please select"
|
|
31641
31680
|
},
|
|
31642
|
-
|
|
31643
|
-
placeholder: "
|
|
31681
|
+
selectMultiple: {
|
|
31682
|
+
placeholder: "Please select"
|
|
31683
|
+
},
|
|
31684
|
+
cascader: {
|
|
31685
|
+
placeholder: "Please select"
|
|
31686
|
+
},
|
|
31687
|
+
textarea: {
|
|
31688
|
+
placeholder: "Please input"
|
|
31644
31689
|
},
|
|
31645
31690
|
datePicker: {
|
|
31646
31691
|
Mon: "Mon",
|
|
@@ -31650,21 +31695,23 @@ const en = {
|
|
|
31650
31695
|
Fri: "Fri",
|
|
31651
31696
|
Sat: "Sat",
|
|
31652
31697
|
Sun: "Sun",
|
|
31653
|
-
placeholder: "
|
|
31698
|
+
placeholder: "Select date"
|
|
31699
|
+
},
|
|
31700
|
+
dateRangePicker: {
|
|
31654
31701
|
placeholderStart: "Start date",
|
|
31655
31702
|
placeholderEnd: "End date"
|
|
31656
31703
|
},
|
|
31657
31704
|
upload: {
|
|
31658
|
-
dropActive: "
|
|
31659
|
-
click: "Click,",
|
|
31660
|
-
paste: "
|
|
31661
|
-
drag: "
|
|
31662
|
-
accept: "Support {accept}",
|
|
31663
|
-
limit: "
|
|
31664
|
-
maxFileSize: "
|
|
31705
|
+
dropActive: "Release to start uploading",
|
|
31706
|
+
click: "Click to upload, ",
|
|
31707
|
+
paste: "paste, ",
|
|
31708
|
+
drag: "or drag files here",
|
|
31709
|
+
accept: "Support uploading {accept}",
|
|
31710
|
+
limit: "Maximum {limit} files can be uploaded",
|
|
31711
|
+
maxFileSize: "Single file should not exceed {maxFileSize}"
|
|
31665
31712
|
},
|
|
31666
31713
|
pagination: {
|
|
31667
|
-
pageSize: "{pageSize} /
|
|
31714
|
+
pageSize: "{pageSize} items/page"
|
|
31668
31715
|
}
|
|
31669
31716
|
};
|
|
31670
31717
|
const zh = {
|
|
@@ -31722,6 +31769,391 @@ const zh = {
|
|
|
31722
31769
|
pageSize: "{pageSize} 条/页"
|
|
31723
31770
|
}
|
|
31724
31771
|
};
|
|
31772
|
+
const ja = {
|
|
31773
|
+
name: "ja",
|
|
31774
|
+
image: {
|
|
31775
|
+
fail: "画像を読み込めませんでした。後でもう一度お試しください。"
|
|
31776
|
+
},
|
|
31777
|
+
input: {
|
|
31778
|
+
placeholder: "入力してください",
|
|
31779
|
+
copy: "コピー",
|
|
31780
|
+
copySuccess: "クリップボードにコピーしました",
|
|
31781
|
+
copyFailed: "コピーに失敗しました。もう一度お試しください"
|
|
31782
|
+
},
|
|
31783
|
+
inputTag: {
|
|
31784
|
+
placeholder: "タグを入力してEnterキーを押してください",
|
|
31785
|
+
maxLength: "タグの上限({maxLength}個)に達しました。新しいタグを追加するには、既存のタグを削除してください",
|
|
31786
|
+
duplicate: "同じタグが既に存在します。別のタグを入力してください"
|
|
31787
|
+
},
|
|
31788
|
+
select: {
|
|
31789
|
+
placeholder: "選択してください"
|
|
31790
|
+
},
|
|
31791
|
+
selectMultiple: {
|
|
31792
|
+
placeholder: "選択してください"
|
|
31793
|
+
},
|
|
31794
|
+
cascader: {
|
|
31795
|
+
placeholder: "選択してください"
|
|
31796
|
+
},
|
|
31797
|
+
textarea: {
|
|
31798
|
+
placeholder: "入力してください"
|
|
31799
|
+
},
|
|
31800
|
+
datePicker: {
|
|
31801
|
+
Mon: "月",
|
|
31802
|
+
Tue: "火",
|
|
31803
|
+
Wed: "水",
|
|
31804
|
+
Thu: "木",
|
|
31805
|
+
Fri: "金",
|
|
31806
|
+
Sat: "土",
|
|
31807
|
+
Sun: "日",
|
|
31808
|
+
placeholder: "日付を選択"
|
|
31809
|
+
},
|
|
31810
|
+
dateRangePicker: {
|
|
31811
|
+
placeholderStart: "開始日",
|
|
31812
|
+
placeholderEnd: "終了日"
|
|
31813
|
+
},
|
|
31814
|
+
upload: {
|
|
31815
|
+
dropActive: "ドロップしてアップロードを開始",
|
|
31816
|
+
click: "クリックして、",
|
|
31817
|
+
paste: "貼り付けて、",
|
|
31818
|
+
drag: "またはファイルをここにドラッグ",
|
|
31819
|
+
accept: "{accept}形式のファイルに対応",
|
|
31820
|
+
limit: "最大{limit}個のファイルをアップロード可能",
|
|
31821
|
+
maxFileSize: "1ファイルあたり{maxFileSize}まで"
|
|
31822
|
+
},
|
|
31823
|
+
pagination: {
|
|
31824
|
+
pageSize: "表示件数:{pageSize}件"
|
|
31825
|
+
}
|
|
31826
|
+
};
|
|
31827
|
+
const ko = {
|
|
31828
|
+
name: "ko",
|
|
31829
|
+
image: {
|
|
31830
|
+
fail: "이미지를 불러올 수 없습니다. 나중에 다시 시도해주세요"
|
|
31831
|
+
},
|
|
31832
|
+
input: {
|
|
31833
|
+
placeholder: "입력해주세요",
|
|
31834
|
+
copy: "복사",
|
|
31835
|
+
copySuccess: "클립보드에 복사되었습니다",
|
|
31836
|
+
copyFailed: "복사에 실패했습니다. 다시 시도해주세요"
|
|
31837
|
+
},
|
|
31838
|
+
inputTag: {
|
|
31839
|
+
placeholder: "태그를 입력하고 Enter를 눌러주세요",
|
|
31840
|
+
maxLength: "태그 {maxLength}개 제한에 도달했습니다. 새로운 태그를 추가하려면 기존 태그를 삭제해주세요",
|
|
31841
|
+
duplicate: "동일한 태그가 이미 존재합니다. 다른 태그를 입력해주세요"
|
|
31842
|
+
},
|
|
31843
|
+
select: {
|
|
31844
|
+
placeholder: "선택해주세요"
|
|
31845
|
+
},
|
|
31846
|
+
selectMultiple: {
|
|
31847
|
+
placeholder: "선택해주세요"
|
|
31848
|
+
},
|
|
31849
|
+
cascader: {
|
|
31850
|
+
placeholder: "선택해주세요"
|
|
31851
|
+
},
|
|
31852
|
+
textarea: {
|
|
31853
|
+
placeholder: "입력해주세요"
|
|
31854
|
+
},
|
|
31855
|
+
datePicker: {
|
|
31856
|
+
Mon: "월",
|
|
31857
|
+
Tue: "화",
|
|
31858
|
+
Wed: "수",
|
|
31859
|
+
Thu: "목",
|
|
31860
|
+
Fri: "금",
|
|
31861
|
+
Sat: "토",
|
|
31862
|
+
Sun: "일",
|
|
31863
|
+
placeholder: "날짜 선택"
|
|
31864
|
+
},
|
|
31865
|
+
dateRangePicker: {
|
|
31866
|
+
placeholderStart: "시작일",
|
|
31867
|
+
placeholderEnd: "종료일"
|
|
31868
|
+
},
|
|
31869
|
+
upload: {
|
|
31870
|
+
dropActive: "파일을 놓으면 업로드가 시작됩니다",
|
|
31871
|
+
click: "클릭하여 업로드",
|
|
31872
|
+
paste: "붙여넣기",
|
|
31873
|
+
drag: "또는 여기에 파일을 끌어다 놓으세요",
|
|
31874
|
+
accept: "{accept} 파일 업로드 가능",
|
|
31875
|
+
limit: "최대 {limit}개의 파일을 업로드할 수 있습니다",
|
|
31876
|
+
maxFileSize: "파일당 {maxFileSize} 이하여야 합니다"
|
|
31877
|
+
},
|
|
31878
|
+
pagination: {
|
|
31879
|
+
pageSize: "페이지당 {pageSize}개"
|
|
31880
|
+
}
|
|
31881
|
+
};
|
|
31882
|
+
const fr = {
|
|
31883
|
+
name: "fr",
|
|
31884
|
+
image: {
|
|
31885
|
+
fail: "Impossible de charger l'image pour le moment, veuillez réessayer plus tard"
|
|
31886
|
+
},
|
|
31887
|
+
input: {
|
|
31888
|
+
placeholder: "Veuillez saisir",
|
|
31889
|
+
copy: "Copier",
|
|
31890
|
+
copySuccess: "Copié dans le presse-papiers",
|
|
31891
|
+
copyFailed: "La copie a échoué, veuillez réessayer"
|
|
31892
|
+
},
|
|
31893
|
+
inputTag: {
|
|
31894
|
+
placeholder: "Saisissez une étiquette et appuyez sur Entrée pour l'ajouter",
|
|
31895
|
+
maxLength: "Vous avez atteint la limite de {maxLength} étiquettes, supprimez-en quelques-unes pour continuer",
|
|
31896
|
+
duplicate: "Cette étiquette existe déjà, veuillez en saisir une nouvelle"
|
|
31897
|
+
},
|
|
31898
|
+
select: {
|
|
31899
|
+
placeholder: "Veuillez sélectionner"
|
|
31900
|
+
},
|
|
31901
|
+
selectMultiple: {
|
|
31902
|
+
placeholder: "Veuillez sélectionner"
|
|
31903
|
+
},
|
|
31904
|
+
cascader: {
|
|
31905
|
+
placeholder: "Veuillez sélectionner"
|
|
31906
|
+
},
|
|
31907
|
+
textarea: {
|
|
31908
|
+
placeholder: "Veuillez saisir"
|
|
31909
|
+
},
|
|
31910
|
+
datePicker: {
|
|
31911
|
+
Mon: "Lun",
|
|
31912
|
+
Tue: "Mar",
|
|
31913
|
+
Wed: "Mer",
|
|
31914
|
+
Thu: "Jeu",
|
|
31915
|
+
Fri: "Ven",
|
|
31916
|
+
Sat: "Sam",
|
|
31917
|
+
Sun: "Dim",
|
|
31918
|
+
placeholder: "Sélectionner une date"
|
|
31919
|
+
},
|
|
31920
|
+
dateRangePicker: {
|
|
31921
|
+
placeholderStart: "Date de début",
|
|
31922
|
+
placeholderEnd: "Date de fin"
|
|
31923
|
+
},
|
|
31924
|
+
upload: {
|
|
31925
|
+
dropActive: "Relâchez pour commencer le téléchargement",
|
|
31926
|
+
click: "Cliquez pour télécharger, ",
|
|
31927
|
+
paste: "collez, ",
|
|
31928
|
+
drag: "ou faites glisser les fichiers ici",
|
|
31929
|
+
accept: "Prend en charge le téléchargement de {accept}",
|
|
31930
|
+
limit: "Vous pouvez télécharger jusqu'à {limit} fichiers",
|
|
31931
|
+
maxFileSize: "Chaque fichier ne doit pas dépasser {maxFileSize}"
|
|
31932
|
+
},
|
|
31933
|
+
pagination: {
|
|
31934
|
+
pageSize: "{pageSize} par page"
|
|
31935
|
+
}
|
|
31936
|
+
};
|
|
31937
|
+
const it = {
|
|
31938
|
+
name: "it",
|
|
31939
|
+
image: {
|
|
31940
|
+
fail: "Impossibile caricare l'immagine, si prega di riprovare più tardi"
|
|
31941
|
+
},
|
|
31942
|
+
input: {
|
|
31943
|
+
placeholder: "Inserisci",
|
|
31944
|
+
copy: "Copia",
|
|
31945
|
+
copySuccess: "Copiato negli appunti",
|
|
31946
|
+
copyFailed: "Copia fallita, si prega di riprovare"
|
|
31947
|
+
},
|
|
31948
|
+
inputTag: {
|
|
31949
|
+
placeholder: "Digita e premi Invio per aggiungere un tag",
|
|
31950
|
+
maxLength: "Hai raggiunto il limite di {maxLength} tag, rimuovine alcuni per continuare",
|
|
31951
|
+
duplicate: "Questo tag esiste già, inserisci un nuovo tag"
|
|
31952
|
+
},
|
|
31953
|
+
select: {
|
|
31954
|
+
placeholder: "Seleziona"
|
|
31955
|
+
},
|
|
31956
|
+
selectMultiple: {
|
|
31957
|
+
placeholder: "Seleziona"
|
|
31958
|
+
},
|
|
31959
|
+
cascader: {
|
|
31960
|
+
placeholder: "Seleziona"
|
|
31961
|
+
},
|
|
31962
|
+
textarea: {
|
|
31963
|
+
placeholder: "Inserisci"
|
|
31964
|
+
},
|
|
31965
|
+
datePicker: {
|
|
31966
|
+
Mon: "Lun",
|
|
31967
|
+
Tue: "Mar",
|
|
31968
|
+
Wed: "Mer",
|
|
31969
|
+
Thu: "Gio",
|
|
31970
|
+
Fri: "Ven",
|
|
31971
|
+
Sat: "Sab",
|
|
31972
|
+
Sun: "Dom",
|
|
31973
|
+
placeholder: "Seleziona data"
|
|
31974
|
+
},
|
|
31975
|
+
dateRangePicker: {
|
|
31976
|
+
placeholderStart: "Data iniziale",
|
|
31977
|
+
placeholderEnd: "Data finale"
|
|
31978
|
+
},
|
|
31979
|
+
upload: {
|
|
31980
|
+
dropActive: "Rilascia per iniziare il caricamento",
|
|
31981
|
+
click: "Clicca per caricare, ",
|
|
31982
|
+
paste: "incolla, ",
|
|
31983
|
+
drag: "o trascina i file qui",
|
|
31984
|
+
accept: "Supporta il caricamento di {accept}",
|
|
31985
|
+
limit: "È possibile caricare un massimo di {limit} file",
|
|
31986
|
+
maxFileSize: "Ogni file non deve superare {maxFileSize}"
|
|
31987
|
+
},
|
|
31988
|
+
pagination: {
|
|
31989
|
+
pageSize: "{pageSize} per pagina"
|
|
31990
|
+
}
|
|
31991
|
+
};
|
|
31992
|
+
const es = {
|
|
31993
|
+
name: "es",
|
|
31994
|
+
image: {
|
|
31995
|
+
fail: "No se puede cargar la imagen, por favor inténtelo de nuevo más tarde"
|
|
31996
|
+
},
|
|
31997
|
+
input: {
|
|
31998
|
+
placeholder: "Por favor, introduzca",
|
|
31999
|
+
copy: "Copiar",
|
|
32000
|
+
copySuccess: "Copiado al portapapeles",
|
|
32001
|
+
copyFailed: "Error al copiar, por favor inténtelo de nuevo"
|
|
32002
|
+
},
|
|
32003
|
+
inputTag: {
|
|
32004
|
+
placeholder: "Escriba y presione Enter para añadir una etiqueta",
|
|
32005
|
+
maxLength: "Ha alcanzado el límite de {maxLength} etiquetas, elimine algunas para continuar añadiendo",
|
|
32006
|
+
duplicate: "Esta etiqueta ya existe, por favor introduzca una nueva"
|
|
32007
|
+
},
|
|
32008
|
+
select: {
|
|
32009
|
+
placeholder: "Por favor, seleccione"
|
|
32010
|
+
},
|
|
32011
|
+
selectMultiple: {
|
|
32012
|
+
placeholder: "Por favor, seleccione"
|
|
32013
|
+
},
|
|
32014
|
+
cascader: {
|
|
32015
|
+
placeholder: "Por favor, seleccione"
|
|
32016
|
+
},
|
|
32017
|
+
textarea: {
|
|
32018
|
+
placeholder: "Por favor, introduzca"
|
|
32019
|
+
},
|
|
32020
|
+
datePicker: {
|
|
32021
|
+
Mon: "Lun",
|
|
32022
|
+
Tue: "Mar",
|
|
32023
|
+
Wed: "Mié",
|
|
32024
|
+
Thu: "Jue",
|
|
32025
|
+
Fri: "Vie",
|
|
32026
|
+
Sat: "Sáb",
|
|
32027
|
+
Sun: "Dom",
|
|
32028
|
+
placeholder: "Seleccionar fecha"
|
|
32029
|
+
},
|
|
32030
|
+
dateRangePicker: {
|
|
32031
|
+
placeholderStart: "Fecha de inicio",
|
|
32032
|
+
placeholderEnd: "Fecha de fin"
|
|
32033
|
+
},
|
|
32034
|
+
upload: {
|
|
32035
|
+
dropActive: "Suelte para comenzar la carga",
|
|
32036
|
+
click: "Haga clic para cargar, ",
|
|
32037
|
+
paste: "pegue, ",
|
|
32038
|
+
drag: "o arrastre archivos aquí",
|
|
32039
|
+
accept: "Admite la carga de {accept}",
|
|
32040
|
+
limit: "Se pueden cargar un máximo de {limit} archivos",
|
|
32041
|
+
maxFileSize: "Cada archivo no debe exceder {maxFileSize}"
|
|
32042
|
+
},
|
|
32043
|
+
pagination: {
|
|
32044
|
+
pageSize: "{pageSize} por página"
|
|
32045
|
+
}
|
|
32046
|
+
};
|
|
32047
|
+
const de = {
|
|
32048
|
+
name: "de",
|
|
32049
|
+
image: {
|
|
32050
|
+
fail: "Bild kann derzeit nicht geladen werden, bitte versuchen Sie es später erneut"
|
|
32051
|
+
},
|
|
32052
|
+
input: {
|
|
32053
|
+
placeholder: "Bitte eingeben",
|
|
32054
|
+
copy: "Kopieren",
|
|
32055
|
+
copySuccess: "In die Zwischenablage kopiert",
|
|
32056
|
+
copyFailed: "Kopieren fehlgeschlagen, bitte versuchen Sie es erneut"
|
|
32057
|
+
},
|
|
32058
|
+
inputTag: {
|
|
32059
|
+
placeholder: "Tag eingeben und Enter drücken zum Hinzufügen",
|
|
32060
|
+
maxLength: "Sie haben das Limit von {maxLength} Tags erreicht, löschen Sie einige, um weitere hinzuzufügen",
|
|
32061
|
+
duplicate: "Dieser Tag existiert bereits, bitte geben Sie einen neuen Tag ein"
|
|
32062
|
+
},
|
|
32063
|
+
select: {
|
|
32064
|
+
placeholder: "Bitte auswählen"
|
|
32065
|
+
},
|
|
32066
|
+
selectMultiple: {
|
|
32067
|
+
placeholder: "Bitte auswählen"
|
|
32068
|
+
},
|
|
32069
|
+
cascader: {
|
|
32070
|
+
placeholder: "Bitte auswählen"
|
|
32071
|
+
},
|
|
32072
|
+
textarea: {
|
|
32073
|
+
placeholder: "Bitte eingeben"
|
|
32074
|
+
},
|
|
32075
|
+
datePicker: {
|
|
32076
|
+
Mon: "Mo",
|
|
32077
|
+
Tue: "Di",
|
|
32078
|
+
Wed: "Mi",
|
|
32079
|
+
Thu: "Do",
|
|
32080
|
+
Fri: "Fr",
|
|
32081
|
+
Sat: "Sa",
|
|
32082
|
+
Sun: "So",
|
|
32083
|
+
placeholder: "Datum auswählen"
|
|
32084
|
+
},
|
|
32085
|
+
dateRangePicker: {
|
|
32086
|
+
placeholderStart: "Startdatum",
|
|
32087
|
+
placeholderEnd: "Enddatum"
|
|
32088
|
+
},
|
|
32089
|
+
upload: {
|
|
32090
|
+
dropActive: "Loslassen, um mit dem Upload zu beginnen",
|
|
32091
|
+
click: "Klicken zum Hochladen, ",
|
|
32092
|
+
paste: "Einfügen, ",
|
|
32093
|
+
drag: "oder Dateien hierher ziehen",
|
|
32094
|
+
accept: "Unterstützt {accept}",
|
|
32095
|
+
limit: "Maximal {limit} Dateien",
|
|
32096
|
+
maxFileSize: "Einzelne Datei nicht größer als {maxFileSize}"
|
|
32097
|
+
},
|
|
32098
|
+
pagination: {
|
|
32099
|
+
pageSize: "{pageSize} pro Seite"
|
|
32100
|
+
}
|
|
32101
|
+
};
|
|
32102
|
+
const pt = {
|
|
32103
|
+
name: "pt",
|
|
32104
|
+
image: {
|
|
32105
|
+
fail: "Não foi possível carregar a imagem, por favor tente novamente mais tarde"
|
|
32106
|
+
},
|
|
32107
|
+
input: {
|
|
32108
|
+
placeholder: "Por favor, digite",
|
|
32109
|
+
copy: "Copiar",
|
|
32110
|
+
copySuccess: "Copiado para a área de transferência",
|
|
32111
|
+
copyFailed: "Falha ao copiar, por favor tente novamente"
|
|
32112
|
+
},
|
|
32113
|
+
inputTag: {
|
|
32114
|
+
placeholder: "Digite e pressione Enter para adicionar uma tag",
|
|
32115
|
+
maxLength: "Atingiu o limite de {maxLength} tags, remova algumas para continuar adicionando",
|
|
32116
|
+
duplicate: "Esta tag já existe, por favor digite uma nova tag"
|
|
32117
|
+
},
|
|
32118
|
+
select: {
|
|
32119
|
+
placeholder: "Por favor, selecione"
|
|
32120
|
+
},
|
|
32121
|
+
selectMultiple: {
|
|
32122
|
+
placeholder: "Por favor, selecione"
|
|
32123
|
+
},
|
|
32124
|
+
cascader: {
|
|
32125
|
+
placeholder: "Por favor, selecione"
|
|
32126
|
+
},
|
|
32127
|
+
textarea: {
|
|
32128
|
+
placeholder: "Por favor, digite"
|
|
32129
|
+
},
|
|
32130
|
+
datePicker: {
|
|
32131
|
+
Mon: "Seg",
|
|
32132
|
+
Tue: "Ter",
|
|
32133
|
+
Wed: "Qua",
|
|
32134
|
+
Thu: "Qui",
|
|
32135
|
+
Fri: "Sex",
|
|
32136
|
+
Sat: "Sáb",
|
|
32137
|
+
Sun: "Dom",
|
|
32138
|
+
placeholder: "Selecionar data"
|
|
32139
|
+
},
|
|
32140
|
+
dateRangePicker: {
|
|
32141
|
+
placeholderStart: "Data inicial",
|
|
32142
|
+
placeholderEnd: "Data final"
|
|
32143
|
+
},
|
|
32144
|
+
upload: {
|
|
32145
|
+
dropActive: "Solte para iniciar o upload",
|
|
32146
|
+
click: "Clique para fazer upload, ",
|
|
32147
|
+
paste: "cole, ",
|
|
32148
|
+
drag: "ou arraste arquivos para aqui",
|
|
32149
|
+
accept: "Suporta upload de {accept}",
|
|
32150
|
+
limit: "Máximo de {limit} arquivos podem ser enviados",
|
|
32151
|
+
maxFileSize: "Cada arquivo não deve exceder {maxFileSize}"
|
|
32152
|
+
},
|
|
32153
|
+
pagination: {
|
|
32154
|
+
pageSize: "{pageSize} por página"
|
|
32155
|
+
}
|
|
32156
|
+
};
|
|
31725
32157
|
let i18nInstance = null;
|
|
31726
32158
|
let currentLocale = "zh";
|
|
31727
32159
|
const setLocale = (locale2) => {
|
|
@@ -31739,12 +32171,20 @@ const getLocale = () => {
|
|
|
31739
32171
|
const useI18n = () => {
|
|
31740
32172
|
if (!i18nInstance) {
|
|
31741
32173
|
i18nInstance = createI18n({
|
|
32174
|
+
globalInjection: true,
|
|
31742
32175
|
legacy: false,
|
|
31743
32176
|
locale: currentLocale,
|
|
31744
32177
|
fallbackLocale: currentLocale,
|
|
31745
32178
|
messages: {
|
|
31746
32179
|
en,
|
|
31747
|
-
zh
|
|
32180
|
+
zh,
|
|
32181
|
+
ja,
|
|
32182
|
+
ko,
|
|
32183
|
+
de,
|
|
32184
|
+
pt,
|
|
32185
|
+
fr,
|
|
32186
|
+
it,
|
|
32187
|
+
es
|
|
31748
32188
|
}
|
|
31749
32189
|
});
|
|
31750
32190
|
}
|
|
@@ -31866,6 +32306,7 @@ export {
|
|
|
31866
32306
|
dateRangePickerModel,
|
|
31867
32307
|
dateRangePickerProps,
|
|
31868
32308
|
dateRangeProps,
|
|
32309
|
+
de,
|
|
31869
32310
|
index as default,
|
|
31870
32311
|
descItemProps,
|
|
31871
32312
|
descProps,
|
|
@@ -31873,9 +32314,11 @@ export {
|
|
|
31873
32314
|
dragmove,
|
|
31874
32315
|
drawerModel,
|
|
31875
32316
|
drawerProps,
|
|
32317
|
+
dropdownModel,
|
|
31876
32318
|
dropdownProps,
|
|
31877
32319
|
emptyProps,
|
|
31878
32320
|
en,
|
|
32321
|
+
es,
|
|
31879
32322
|
expandProps,
|
|
31880
32323
|
flattenNestedObject,
|
|
31881
32324
|
flexProps,
|
|
@@ -31884,6 +32327,7 @@ export {
|
|
|
31884
32327
|
formTypeAsMap,
|
|
31885
32328
|
formatBytes,
|
|
31886
32329
|
formatFormByMap,
|
|
32330
|
+
fr,
|
|
31887
32331
|
getAssetsFile,
|
|
31888
32332
|
getColorType,
|
|
31889
32333
|
getFileIcon,
|
|
@@ -31904,6 +32348,9 @@ export {
|
|
|
31904
32348
|
inputTagModel,
|
|
31905
32349
|
inputTagProps,
|
|
31906
32350
|
isValidCssValue,
|
|
32351
|
+
it,
|
|
32352
|
+
ja,
|
|
32353
|
+
ko,
|
|
31907
32354
|
lewDescSizePaddingMap,
|
|
31908
32355
|
locale,
|
|
31909
32356
|
markProps,
|
|
@@ -31923,6 +32370,7 @@ export {
|
|
|
31923
32370
|
poll,
|
|
31924
32371
|
popokProps,
|
|
31925
32372
|
popoverProps,
|
|
32373
|
+
pt,
|
|
31926
32374
|
radioGroupModel,
|
|
31927
32375
|
radioGroupProps,
|
|
31928
32376
|
radioProps,
|