bkui-vue 0.0.1-beta.400 → 0.0.1-beta.402
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/index.cjs.js +58 -58
- package/dist/index.esm.js +412 -128
- package/dist/index.umd.js +58 -58
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +239 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +120 -0
- package/lib/config-provider/index.d.ts +521 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/type.d.ts +115 -0
- package/lib/date-picker/base/time-spinner.d.ts +20 -1
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +8 -8
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/date-range.d.ts +19 -0
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +2 -2
- package/lib/dialog/dialog.d.ts +6 -18
- package/lib/dialog/index.d.ts +19 -39
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +0 -8
- package/lib/form/form-item.d.ts +5 -5
- package/lib/form/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +4 -4
- package/lib/input/input.d.ts +1 -1
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +110 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/modal.d.ts +1 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/preset.d.ts +224 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +9 -0
- package/lib/process/process.less +14 -3
- package/lib/process/process.variable.css +9 -0
- package/lib/search-select/index.d.ts +34 -16
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +9 -0
- package/lib/search-select/menu.d.ts +11 -18
- package/lib/search-select/search-select.d.ts +13 -12
- package/lib/search-select/selected.d.ts +9 -0
- package/lib/select/index.d.ts +19 -55
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +6 -26
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.d.ts +1 -1
- package/lib/styles/index.d.ts +1 -0
- package/lib/table/const.d.ts +3 -1
- package/lib/table/index.d.ts +10 -18
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +0 -4
- package/lib/table/props.d.ts +0 -2
- package/lib/table/render.d.ts +4 -2
- package/lib/table/table.d.ts +3 -7
- package/lib/table-column/index.js +1 -1
- package/lib/time-picker/index.d.ts +8 -8
- package/lib/transfer/index.d.ts +27 -0
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/transfer.d.ts +9 -0
- package/lib/upload/index.js +1 -1
- package/lib/volar.components.d.ts +2 -1
- package/package.json +5 -1
package/dist/index.esm.js
CHANGED
@@ -33,7 +33,7 @@ var __publicField = (obj, key2, value) => {
|
|
33
33
|
__defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
34
34
|
return value;
|
35
35
|
};
|
36
|
-
import { inject, createVNode, mergeProps, h as h$1,
|
36
|
+
import { inject, reactive, defineComponent, computed, watch, provide, createVNode, mergeProps, h as h$1, ref, onMounted, onBeforeUnmount, getCurrentInstance, nextTick, Transition, createTextVNode, isVNode, withDirectives, vShow, renderSlot, Fragment, toRefs, Teleport, resolveDirective, createApp, customRef, onBeforeMount, toRef, shallowRef, onUnmounted, vModelText, unref, watchEffect, markRaw, onUpdated, render as render$1, toRaw, withModifiers, TransitionGroup } from "vue";
|
37
37
|
var reset = "";
|
38
38
|
var alert = "";
|
39
39
|
var affix = "";
|
@@ -87,6 +87,7 @@ var cascader = "";
|
|
87
87
|
var colorPicker = "";
|
88
88
|
var timePicker = "";
|
89
89
|
var searchSelect = "";
|
90
|
+
var configProvider = "";
|
90
91
|
const BKLAYERD_INDEX_EFAULT_VALUE = {
|
91
92
|
["bottom"]: 0,
|
92
93
|
["content"]: 1,
|
@@ -8187,6 +8188,156 @@ function arrayEqual(arr1 = [], arr2 = []) {
|
|
8187
8188
|
}
|
8188
8189
|
return true;
|
8189
8190
|
}
|
8191
|
+
const zhCn = {
|
8192
|
+
lang: "zh-cn",
|
8193
|
+
steps: {
|
8194
|
+
step1: "\u6B65\u9AA41",
|
8195
|
+
step2: "\u6B65\u9AA42",
|
8196
|
+
step3: "\u6B65\u9AA43"
|
8197
|
+
},
|
8198
|
+
datePicker: {
|
8199
|
+
selectDate: "\u9009\u62E9\u65E5\u671F",
|
8200
|
+
selectTime: "\u9009\u62E9\u65F6\u95F4",
|
8201
|
+
clear: "\u6E05\u9664",
|
8202
|
+
ok: "\u786E\u5B9A",
|
8203
|
+
weekdays: {
|
8204
|
+
sun: "\u65E5",
|
8205
|
+
mon: "\u4E00",
|
8206
|
+
tue: "\u4E8C",
|
8207
|
+
wed: "\u4E09",
|
8208
|
+
thu: "\u56DB",
|
8209
|
+
fri: "\u4E94",
|
8210
|
+
sat: "\u516D"
|
8211
|
+
},
|
8212
|
+
hour: "\u65F6",
|
8213
|
+
min: "\u5206",
|
8214
|
+
sec: "\u79D2",
|
8215
|
+
toNow: "\u81F3\u4ECA"
|
8216
|
+
},
|
8217
|
+
dialog: {
|
8218
|
+
ok: "\u786E\u5B9A",
|
8219
|
+
cancel: "\u53D6\u6D88",
|
8220
|
+
prev: "\u4E0A\u4E00\u6B65",
|
8221
|
+
next: "\u4E0B\u4E00\u6B65"
|
8222
|
+
},
|
8223
|
+
form: {
|
8224
|
+
notBeEmpty: "\u4E0D\u80FD\u4E3A\u7A7A",
|
8225
|
+
incorrectFormat: "\u683C\u5F0F\u4E0D\u6B63\u786E",
|
8226
|
+
max: "\u6700\u5927\u503C",
|
8227
|
+
min: "\u6700\u5C0F\u503C",
|
8228
|
+
maxLen: "\u6700\u5927\u957F\u5EA6",
|
8229
|
+
verifyError: "\u9A8C\u8BC1\u9519\u8BEF"
|
8230
|
+
},
|
8231
|
+
pagination: {
|
8232
|
+
eachPage: "\u6BCF\u9875",
|
8233
|
+
strip: "\u6761",
|
8234
|
+
total: "\u5171\u8BA1"
|
8235
|
+
},
|
8236
|
+
process: {
|
8237
|
+
step1: "\u6B65\u9AA41",
|
8238
|
+
step2: "\u6B65\u9AA42",
|
8239
|
+
step3: "\u6B65\u9AA43",
|
8240
|
+
step4: "\u6B65\u9AA44"
|
8241
|
+
},
|
8242
|
+
searchSelect: {
|
8243
|
+
pleaseSelect: "\u8BF7\u9009\u62E9",
|
8244
|
+
loading: "\u52A0\u8F7D\u4E2D...",
|
8245
|
+
filterQueryMustHasValue: "\u5305\u542B\u952E\u503C\u7684\u8FC7\u6EE4\u67E5\u8BE2\u5FC5\u987B\u6709\u4E00\u4E2A\u503C",
|
8246
|
+
ok: "\u786E\u8BA4",
|
8247
|
+
cancel: "\u53D6\u6D88",
|
8248
|
+
or: "\u6216",
|
8249
|
+
and: "\u4E14"
|
8250
|
+
},
|
8251
|
+
select: {
|
8252
|
+
noData: "\u65E0\u6570\u636E",
|
8253
|
+
noMatchedData: "\u65E0\u5339\u914D\u6570\u636E",
|
8254
|
+
loading: "\u52A0\u8F7D\u4E2D...",
|
8255
|
+
pleaseSelect: "\u8BF7\u9009\u62E9",
|
8256
|
+
enterKeywords: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57",
|
8257
|
+
all: "\u5168\u90E8"
|
8258
|
+
},
|
8259
|
+
table: {
|
8260
|
+
emptyText: "\u6682\u65E0\u6570\u636E",
|
8261
|
+
confirm: "\u786E\u5B9A",
|
8262
|
+
reset: "\u91CD\u7F6E",
|
8263
|
+
setting: {
|
8264
|
+
title: "\u8868\u683C\u8BBE\u7F6E",
|
8265
|
+
fields: {
|
8266
|
+
title: "\u5B57\u6BB5\u663E\u793A\u8BBE\u7F6E",
|
8267
|
+
subtitle: (max2) => `\uFF08\u6700\u591A${max2}\u9879\uFF09`,
|
8268
|
+
selectAll: "\u5168\u9009"
|
8269
|
+
},
|
8270
|
+
lineHeight: {
|
8271
|
+
title: "\u8868\u683C\u884C\u9AD8",
|
8272
|
+
small: "\u5C0F",
|
8273
|
+
medium: "\u4E2D",
|
8274
|
+
large: "\u5927"
|
8275
|
+
},
|
8276
|
+
options: {
|
8277
|
+
ok: "\u786E\u8BA4",
|
8278
|
+
cancel: "\u53D6\u6D88"
|
8279
|
+
}
|
8280
|
+
}
|
8281
|
+
},
|
8282
|
+
transfer: {
|
8283
|
+
sourceList: "\u6E90\u5217\u8868",
|
8284
|
+
targetList: "\u76EE\u6807\u5217\u8868",
|
8285
|
+
removeAll: "\u6E05\u7A7A",
|
8286
|
+
selectAll: "\u9009\u62E9\u5168\u90E8",
|
8287
|
+
noData: "\u65E0\u6570\u636E",
|
8288
|
+
noSelected: "\u672A\u9009\u62E9\u4EFB\u4F55\u9879",
|
8289
|
+
search: "\u641C\u7D22"
|
8290
|
+
},
|
8291
|
+
upload: {
|
8292
|
+
uploadSuccess: "\u4E0A\u4F20\u6210\u529F",
|
8293
|
+
uploadFailed: "\u4E0A\u4F20\u5931\u8D25",
|
8294
|
+
drapFileOr: "\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904\u6216",
|
8295
|
+
clickUpload: "\u70B9\u51FB\u4E0A\u4F20",
|
8296
|
+
uploadLabel: "\u4E0A\u4F20\u6587\u4EF6"
|
8297
|
+
}
|
8298
|
+
};
|
8299
|
+
const configProviderProps = {
|
8300
|
+
locale: {
|
8301
|
+
type: Object
|
8302
|
+
}
|
8303
|
+
};
|
8304
|
+
const defaultRootConfig = reactive({
|
8305
|
+
locale: zhCn
|
8306
|
+
});
|
8307
|
+
const rootProviderKey = Symbol("rootProviderData");
|
8308
|
+
function useLocale(compName) {
|
8309
|
+
const config = inject(rootProviderKey, defaultRootConfig);
|
8310
|
+
return computed(() => {
|
8311
|
+
const {
|
8312
|
+
locale: locale2
|
8313
|
+
} = config;
|
8314
|
+
return locale2 && compName ? locale2[compName] : {};
|
8315
|
+
});
|
8316
|
+
}
|
8317
|
+
const provideGlobalConfig = (config) => {
|
8318
|
+
const configData = reactive(__spreadValues({}, lodash.exports.merge(defaultRootConfig, config)));
|
8319
|
+
Object.keys(config).forEach((key2) => {
|
8320
|
+
watch(() => config[key2], () => {
|
8321
|
+
configData[key2] = config[key2];
|
8322
|
+
});
|
8323
|
+
});
|
8324
|
+
provide(rootProviderKey, configData);
|
8325
|
+
};
|
8326
|
+
var Component$F = defineComponent({
|
8327
|
+
name: "ConfigProvider",
|
8328
|
+
inheritAttrs: false,
|
8329
|
+
props: configProviderProps,
|
8330
|
+
setup(props2, {
|
8331
|
+
slots
|
8332
|
+
}) {
|
8333
|
+
provideGlobalConfig(props2);
|
8334
|
+
return () => {
|
8335
|
+
var _a;
|
8336
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
8337
|
+
};
|
8338
|
+
}
|
8339
|
+
});
|
8340
|
+
const BkConfigProvider = withInstall(Component$F);
|
8190
8341
|
function generate(node, key2, rootAttrs) {
|
8191
8342
|
return h$1(node.name, __spreadProps(__spreadValues({
|
8192
8343
|
key: key2
|
@@ -10513,10 +10664,10 @@ const BkModal = withInstallProps(Component$t, { propsMixin: propsMixin$1 }, true
|
|
10513
10664
|
const props$1 = __spreadProps(__spreadValues({}, propsMixin$1), {
|
10514
10665
|
width: PropTypes.oneOfType([String, Number]).def(""),
|
10515
10666
|
height: PropTypes.oneOfType([String, Number]).def(""),
|
10516
|
-
confirmText: PropTypes.string
|
10517
|
-
cancelText: PropTypes.string
|
10518
|
-
prevText: PropTypes.string
|
10519
|
-
nextText: PropTypes.string
|
10667
|
+
confirmText: PropTypes.string,
|
10668
|
+
cancelText: PropTypes.string,
|
10669
|
+
prevText: PropTypes.string,
|
10670
|
+
nextText: PropTypes.string,
|
10520
10671
|
current: PropTypes.number.def(1),
|
10521
10672
|
totalStep: PropTypes.number,
|
10522
10673
|
title: PropTypes.string.def("title"),
|
@@ -10540,6 +10691,31 @@ var Dialog = defineComponent({
|
|
10540
10691
|
setup(props2, {
|
10541
10692
|
emit
|
10542
10693
|
}) {
|
10694
|
+
const t2 = useLocale("dialog");
|
10695
|
+
const localConfirmText = computed(() => {
|
10696
|
+
if (props2.confirmText === void 0) {
|
10697
|
+
return t2.value.ok;
|
10698
|
+
}
|
10699
|
+
return props2.confirmText;
|
10700
|
+
});
|
10701
|
+
const localCancelText = computed(() => {
|
10702
|
+
if (props2.cancelText === void 0) {
|
10703
|
+
return t2.value.cancel;
|
10704
|
+
}
|
10705
|
+
return props2.cancelText;
|
10706
|
+
});
|
10707
|
+
const localPrevText = computed(() => {
|
10708
|
+
if (props2.prevText === void 0) {
|
10709
|
+
return t2.value.prev;
|
10710
|
+
}
|
10711
|
+
return props2.prevText;
|
10712
|
+
});
|
10713
|
+
const localNextText = computed(() => {
|
10714
|
+
if (props2.nextText === void 0) {
|
10715
|
+
return t2.value.next;
|
10716
|
+
}
|
10717
|
+
return props2.nextText;
|
10718
|
+
});
|
10543
10719
|
const data2 = reactive({
|
10544
10720
|
positionX: 0,
|
10545
10721
|
positionY: 0,
|
@@ -10651,7 +10827,11 @@ var Dialog = defineComponent({
|
|
10651
10827
|
handlePrevStep,
|
10652
10828
|
handleNextStep,
|
10653
10829
|
hasFooter,
|
10654
|
-
isModalShow
|
10830
|
+
isModalShow,
|
10831
|
+
localConfirmText,
|
10832
|
+
localCancelText,
|
10833
|
+
localPrevText,
|
10834
|
+
localNextText
|
10655
10835
|
};
|
10656
10836
|
},
|
10657
10837
|
render() {
|
@@ -10702,42 +10882,42 @@ var Dialog = defineComponent({
|
|
10702
10882
|
"class": resolveClassName("dialog-perv"),
|
10703
10883
|
"onClick": this.handlePrevStep
|
10704
10884
|
}, {
|
10705
|
-
default: () => [this.
|
10885
|
+
default: () => [this.localPrevText]
|
10706
10886
|
}), this.current === this.totalStep ? "" : createVNode(BkButton, {
|
10707
10887
|
"class": resolveClassName("dialog-next"),
|
10708
10888
|
"onClick": this.handleNextStep
|
10709
10889
|
}, {
|
10710
|
-
default: () => [this.
|
10890
|
+
default: () => [this.localNextText]
|
10711
10891
|
}), this.current === this.totalStep ? createVNode(BkButton, {
|
10712
10892
|
"onClick": this.handleConfirm,
|
10713
10893
|
"theme": this.theme,
|
10714
10894
|
"loading": this.isLoading
|
10715
10895
|
}, {
|
10716
|
-
default: () => [this.
|
10896
|
+
default: () => [this.localConfirmText]
|
10717
10897
|
}) : "", createVNode(BkButton, {
|
10718
10898
|
"class": resolveClassName("dialog-cancel"),
|
10719
10899
|
"onClick": this.handleClose,
|
10720
10900
|
"disabled": this.isLoading
|
10721
10901
|
}, {
|
10722
|
-
default: () => [this.
|
10902
|
+
default: () => [this.localCancelText]
|
10723
10903
|
})]) : "", this.dialogType === "operation" ? (_f = (_e = (_d = this.$slots).footer) == null ? void 0 : _e.call(_d)) != null ? _f : createVNode(Fragment, null, [createVNode(BkButton, {
|
10724
10904
|
"onClick": this.handleConfirm,
|
10725
10905
|
"theme": this.theme,
|
10726
10906
|
"loading": this.isLoading
|
10727
10907
|
}, {
|
10728
|
-
default: () => [this.
|
10908
|
+
default: () => [this.localConfirmText]
|
10729
10909
|
}), createVNode(BkButton, {
|
10730
10910
|
"class": resolveClassName("dialog-cancel"),
|
10731
10911
|
"onClick": this.handleClose,
|
10732
10912
|
"disabled": this.isLoading
|
10733
10913
|
}, {
|
10734
|
-
default: () => [this.
|
10914
|
+
default: () => [this.localCancelText]
|
10735
10915
|
})]) : "", this.dialogType === "confirm" ? (_i = (_h = (_g = this.$slots).footer) == null ? void 0 : _h.call(_g)) != null ? _i : createVNode(Fragment, null, [createVNode(BkButton, {
|
10736
10916
|
"onClick": this.handleConfirm,
|
10737
10917
|
"theme": this.theme,
|
10738
10918
|
"loading": this.isLoading
|
10739
10919
|
}, {
|
10740
|
-
default: () => [this.
|
10920
|
+
default: () => [this.localConfirmText]
|
10741
10921
|
})]) : ""]);
|
10742
10922
|
},
|
10743
10923
|
close: () => createVNode("span", {
|
@@ -15464,12 +15644,12 @@ var Component$j = defineComponent({
|
|
15464
15644
|
behavior: InputBehaviorType(),
|
15465
15645
|
collapseTags: PropTypes.bool.def(false),
|
15466
15646
|
autoHeight: PropTypes.bool.def(true),
|
15467
|
-
noDataText: PropTypes.string
|
15468
|
-
noMatchText: PropTypes.string
|
15469
|
-
loadingText: PropTypes.string
|
15470
|
-
placeholder: PropTypes.string
|
15471
|
-
searchPlaceholder: PropTypes.string
|
15472
|
-
selectAllText: PropTypes.string
|
15647
|
+
noDataText: PropTypes.string,
|
15648
|
+
noMatchText: PropTypes.string,
|
15649
|
+
loadingText: PropTypes.string,
|
15650
|
+
placeholder: PropTypes.string,
|
15651
|
+
searchPlaceholder: PropTypes.string,
|
15652
|
+
selectAllText: PropTypes.string,
|
15473
15653
|
scrollLoading: PropTypes.bool.def(false),
|
15474
15654
|
allowCreate: PropTypes.bool.def(false),
|
15475
15655
|
popoverOptions: PropTypes.object.def({}),
|
@@ -15489,6 +15669,7 @@ var Component$j = defineComponent({
|
|
15489
15669
|
setup(props2, {
|
15490
15670
|
emit
|
15491
15671
|
}) {
|
15672
|
+
const t2 = useLocale("select");
|
15492
15673
|
const {
|
15493
15674
|
modelValue,
|
15494
15675
|
disabled,
|
@@ -15518,6 +15699,42 @@ var Component$j = defineComponent({
|
|
15518
15699
|
autoFocus,
|
15519
15700
|
keepSearchValue
|
15520
15701
|
} = toRefs(props2);
|
15702
|
+
const localNoDataText = computed(() => {
|
15703
|
+
if (props2.noDataText === void 0) {
|
15704
|
+
return t2.value.noData;
|
15705
|
+
}
|
15706
|
+
return noDataText;
|
15707
|
+
});
|
15708
|
+
const localNoMatchText = computed(() => {
|
15709
|
+
if (props2.noMatchText === void 0) {
|
15710
|
+
return t2.value.noMatchedData;
|
15711
|
+
}
|
15712
|
+
return noMatchText;
|
15713
|
+
});
|
15714
|
+
const localLoadingText = computed(() => {
|
15715
|
+
if (props2.loadingText === void 0) {
|
15716
|
+
return t2.value.loading;
|
15717
|
+
}
|
15718
|
+
return loadingText;
|
15719
|
+
});
|
15720
|
+
const localPlaceholder = computed(() => {
|
15721
|
+
if (props2.placeholder === void 0) {
|
15722
|
+
return t2.value.pleaseSelect;
|
15723
|
+
}
|
15724
|
+
return props2.placeholder;
|
15725
|
+
});
|
15726
|
+
const localSearchPlaceholder = computed(() => {
|
15727
|
+
if (props2.searchPlaceholder === void 0) {
|
15728
|
+
return t2.value.enterKeywords;
|
15729
|
+
}
|
15730
|
+
return props2.searchPlaceholder;
|
15731
|
+
});
|
15732
|
+
const localSelectAllText = computed(() => {
|
15733
|
+
if (props2.selectAllText === void 0) {
|
15734
|
+
return t2.value.all;
|
15735
|
+
}
|
15736
|
+
return props2.selectAllText;
|
15737
|
+
});
|
15521
15738
|
const formItem = useFormItem();
|
15522
15739
|
const inputRef = ref();
|
15523
15740
|
const triggerRef = ref();
|
@@ -15575,13 +15792,13 @@ var Component$j = defineComponent({
|
|
15575
15792
|
const virtualHeight = computed(() => scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0));
|
15576
15793
|
const curContentText = computed(() => {
|
15577
15794
|
if (searchLoading.value) {
|
15578
|
-
return
|
15795
|
+
return localLoadingText.value;
|
15579
15796
|
}
|
15580
15797
|
if (isOptionsEmpty.value) {
|
15581
|
-
return
|
15798
|
+
return localNoDataText.value;
|
15582
15799
|
}
|
15583
15800
|
if (isSearchEmpty.value) {
|
15584
|
-
return
|
15801
|
+
return localNoMatchText.value;
|
15585
15802
|
}
|
15586
15803
|
return "";
|
15587
15804
|
});
|
@@ -15951,7 +16168,11 @@ var Component$j = defineComponent({
|
|
15951
16168
|
handleInputEnter,
|
15952
16169
|
handleKeydown,
|
15953
16170
|
handleSelectedAllOptionMouseEnter,
|
15954
|
-
handlePopoverShow
|
16171
|
+
handlePopoverShow,
|
16172
|
+
localLoadingText,
|
16173
|
+
localPlaceholder,
|
16174
|
+
localSearchPlaceholder,
|
16175
|
+
localSelectAllText
|
15955
16176
|
};
|
15956
16177
|
},
|
15957
16178
|
render() {
|
@@ -15992,7 +16213,7 @@ var Component$j = defineComponent({
|
|
15992
16213
|
"onUpdate:modelValue": ($event) => this.searchKey = $event,
|
15993
16214
|
"selected": this.selected,
|
15994
16215
|
"tagTheme": this.tagTheme,
|
15995
|
-
"placeholder": this.
|
16216
|
+
"placeholder": this.localPlaceholder,
|
15996
16217
|
"filterable": this.isInput,
|
15997
16218
|
"disabled": this.isDisabled,
|
15998
16219
|
"onRemove": this.handleDeleteTag,
|
@@ -16013,7 +16234,7 @@ var Component$j = defineComponent({
|
|
16013
16234
|
"ref": "inputRef",
|
16014
16235
|
"type": "text",
|
16015
16236
|
"modelValue": this.isInput ? this.searchKey : this.selectedLabel.join(","),
|
16016
|
-
"placeholder": this.isInput ? this.selectedLabel.join(",") || this.
|
16237
|
+
"placeholder": this.isInput ? this.selectedLabel.join(",") || this.localPlaceholder : this.localPlaceholder,
|
16017
16238
|
"readonly": !this.isInput,
|
16018
16239
|
"selectReadonly": true,
|
16019
16240
|
"disabled": this.isDisabled,
|
@@ -16059,7 +16280,7 @@ var Component$j = defineComponent({
|
|
16059
16280
|
}, null), withDirectives(createVNode("input", {
|
16060
16281
|
"ref": "searchRef",
|
16061
16282
|
"class": resolveClassName("select-search-input"),
|
16062
|
-
"placeholder": this.
|
16283
|
+
"placeholder": this.localSearchPlaceholder,
|
16063
16284
|
"onUpdate:modelValue": ($event) => this.searchKey = $event
|
16064
16285
|
}, null), [[vModelText, this.searchKey]])]), !this.isShowSelectContent && createVNode("div", {
|
16065
16286
|
"class": resolveClassName("select-empty")
|
@@ -16083,7 +16304,7 @@ var Component$j = defineComponent({
|
|
16083
16304
|
"class": resolveClassName("select-option"),
|
16084
16305
|
"onMouseenter": this.handleSelectedAllOptionMouseEnter,
|
16085
16306
|
"onClick": this.handleToggleAll
|
16086
|
-
}, [this.
|
16307
|
+
}, [this.localSelectAllText]), this.enableVirtualRender ? createVNode(BkVirtualRender, {
|
16087
16308
|
"list": this.virtualList,
|
16088
16309
|
"height": this.virtualHeight,
|
16089
16310
|
"lineHeight": 32,
|
@@ -16107,7 +16328,7 @@ var Component$j = defineComponent({
|
|
16107
16328
|
"loading": true,
|
16108
16329
|
"mode": "spin",
|
16109
16330
|
"size": "mini"
|
16110
|
-
}, null), createVNode("span", null, [this.
|
16331
|
+
}, null), createVNode("span", null, [this.localLoadingText])])]), [[vShow, this.isShowSelectContent]])]), this.$slots.extension && createVNode("div", {
|
16111
16332
|
"class": resolveClassName("select-extension")
|
16112
16333
|
}, [this.$slots.extension()])])]);
|
16113
16334
|
};
|
@@ -16251,6 +16472,8 @@ var Component$h = defineComponent({
|
|
16251
16472
|
setup(props2, {
|
16252
16473
|
emit
|
16253
16474
|
}) {
|
16475
|
+
const t2 = useLocale("steps");
|
16476
|
+
const lang = useLocale("lang");
|
16254
16477
|
const defaultSteps = ref([]);
|
16255
16478
|
const updateSteps = (steps2) => {
|
16256
16479
|
const defaults = [];
|
@@ -16276,19 +16499,22 @@ var Component$h = defineComponent({
|
|
16276
16499
|
const init = () => {
|
16277
16500
|
var _a;
|
16278
16501
|
defaultSteps.value.splice(0, defaultSteps.value.length, ...[{
|
16279
|
-
title:
|
16502
|
+
title: t2.value.step1,
|
16280
16503
|
icon: 1
|
16281
16504
|
}, {
|
16282
|
-
title:
|
16505
|
+
title: t2.value.step2,
|
16283
16506
|
icon: 2
|
16284
16507
|
}, {
|
16285
|
-
title:
|
16508
|
+
title: t2.value.step3,
|
16286
16509
|
icon: 3
|
16287
16510
|
}]);
|
16288
16511
|
if ((_a = props2.steps) == null ? void 0 : _a.length) {
|
16289
16512
|
updateSteps(props2.steps);
|
16290
16513
|
}
|
16291
16514
|
};
|
16515
|
+
watch(() => lang.value, () => {
|
16516
|
+
init();
|
16517
|
+
});
|
16292
16518
|
const jumpTo = async (index2) => {
|
16293
16519
|
try {
|
16294
16520
|
if (props2.controllable && index2 !== props2.curStep) {
|
@@ -16592,10 +16818,10 @@ const SETTING_SIZE = {
|
|
16592
16818
|
medium: 60,
|
16593
16819
|
small: 42
|
16594
16820
|
};
|
16595
|
-
const
|
16596
|
-
{ value: "small", label:
|
16597
|
-
{ value: "medium", label:
|
16598
|
-
{ value: "large", label:
|
16821
|
+
const createDefaultSizeList = (t2) => [
|
16822
|
+
{ value: "small", label: t2.value.setting.lineHeight.small, height: SETTING_SIZE.small },
|
16823
|
+
{ value: "medium", label: t2.value.setting.lineHeight.medium, height: SETTING_SIZE.medium },
|
16824
|
+
{ value: "large", label: t2.value.setting.lineHeight.large, height: SETTING_SIZE.large }
|
16599
16825
|
];
|
16600
16826
|
const PROVIDE_KEY_INIT_COL = "InitColumns";
|
16601
16827
|
var SORT_OPTION = /* @__PURE__ */ ((SORT_OPTION2) => {
|
@@ -16699,7 +16925,7 @@ const tableProps = {
|
|
16699
16925
|
pagination: PropTypes.oneOfType([PropTypes.bool.def(false), PropTypes.object.def({})]).def(false),
|
16700
16926
|
paginationHeihgt: PropTypes.number.def(LINE_HEIGHT),
|
16701
16927
|
remotePagination: PropTypes.bool.def(false),
|
16702
|
-
emptyText: PropTypes.string
|
16928
|
+
emptyText: PropTypes.string,
|
16703
16929
|
settings: PropTypes.oneOfType([
|
16704
16930
|
PropTypes.shape({
|
16705
16931
|
fields: PropTypes.arrayOf(PropTypes.shape({
|
@@ -16903,7 +17129,7 @@ var useScrollLoading = (props2, ctx) => {
|
|
16903
17129
|
function _isSlot$3(s2) {
|
16904
17130
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
16905
17131
|
}
|
16906
|
-
var useLimit = () => {
|
17132
|
+
var useLimit = (t2) => {
|
16907
17133
|
const {
|
16908
17134
|
proxy
|
16909
17135
|
} = getCurrentInstance();
|
@@ -16939,7 +17165,7 @@ var useLimit = () => {
|
|
16939
17165
|
}
|
16940
17166
|
}, {
|
16941
17167
|
disabled: proxy.disabled
|
16942
|
-
}), [createVNode("div", null, [
|
17168
|
+
}), [createVNode("div", null, [t2.value.eachPage]), createVNode(BkSelect, {
|
16943
17169
|
"class": "bk-pagination-limit-select",
|
16944
17170
|
"clearable": false,
|
16945
17171
|
"size": "small",
|
@@ -16953,7 +17179,7 @@ var useLimit = () => {
|
|
16953
17179
|
"key": `${index2}_${num}`
|
16954
17180
|
}, null))) ? _slot : {
|
16955
17181
|
default: () => [_slot]
|
16956
|
-
}), createVNode("div", null, [
|
17182
|
+
}), createVNode("div", null, [t2.value.strip])]);
|
16957
17183
|
};
|
16958
17184
|
return {
|
16959
17185
|
limit: localLimit,
|
@@ -17224,7 +17450,7 @@ var useSmallList = () => {
|
|
17224
17450
|
render: render2
|
17225
17451
|
};
|
17226
17452
|
};
|
17227
|
-
var useTotal = () => ({
|
17453
|
+
var useTotal = (t2) => ({
|
17228
17454
|
isFirst,
|
17229
17455
|
isLast
|
17230
17456
|
}) => {
|
@@ -17242,9 +17468,9 @@ var useTotal = () => ({
|
|
17242
17468
|
}
|
17243
17469
|
}, {
|
17244
17470
|
disabled: props2.disabled
|
17245
|
-
}), [
|
17471
|
+
}), [t2.value.total, createVNode("div", {
|
17246
17472
|
"class": "bk-pagination-total-num"
|
17247
|
-
}, [props2.count]),
|
17473
|
+
}, [props2.count]), t2.value.strip]);
|
17248
17474
|
};
|
17249
17475
|
const paginationProps = {
|
17250
17476
|
modelValue: PropTypes.number.def(1),
|
@@ -17276,12 +17502,13 @@ var Component$f = defineComponent({
|
|
17276
17502
|
props: paginationProps,
|
17277
17503
|
emits: ["update:modelValue", "change", "update:limit", "limitChange"],
|
17278
17504
|
setup(props2, context) {
|
17505
|
+
const t2 = useLocale("pagination");
|
17279
17506
|
const totalPageNum = ref(0);
|
17280
17507
|
const {
|
17281
17508
|
count,
|
17282
17509
|
limit
|
17283
17510
|
} = toRefs(props2);
|
17284
|
-
const renderTotal = useTotal();
|
17511
|
+
const renderTotal = useTotal(t2);
|
17285
17512
|
const {
|
17286
17513
|
current: listCurrent,
|
17287
17514
|
render: renderList
|
@@ -17293,7 +17520,7 @@ var Component$f = defineComponent({
|
|
17293
17520
|
const {
|
17294
17521
|
limit: localLimit,
|
17295
17522
|
render: renderLimit
|
17296
|
-
} = useLimit();
|
17523
|
+
} = useLimit(t2);
|
17297
17524
|
watch([count, localLimit, limit], ([count2, localLimit2]) => {
|
17298
17525
|
const total2 = Math.ceil(count2 / localLimit2);
|
17299
17526
|
totalPageNum.value = total2 < 1 ? 1 : total2;
|
@@ -18245,15 +18472,22 @@ var BodyEmpty = defineComponent({
|
|
18245
18472
|
props: {
|
18246
18473
|
list: PropTypes.array.def([]),
|
18247
18474
|
filterList: PropTypes.array.def([]),
|
18248
|
-
emptyText: PropTypes.string
|
18475
|
+
emptyText: PropTypes.string
|
18249
18476
|
},
|
18250
18477
|
emits: ["change"],
|
18251
18478
|
setup(props2) {
|
18479
|
+
const t2 = useLocale("table");
|
18480
|
+
const localEmptyText = computed(() => {
|
18481
|
+
if (props2.emptyText === void 0) {
|
18482
|
+
return t2.value.emptyText;
|
18483
|
+
}
|
18484
|
+
return props2.emptyText;
|
18485
|
+
});
|
18252
18486
|
const type = computed(() => props2.list.length === 0 ? "empty" : "search-empty");
|
18253
18487
|
return () => createVNode(BkException, {
|
18254
18488
|
"scene": "part",
|
18255
18489
|
"type": type.value,
|
18256
|
-
"description":
|
18490
|
+
"description": localEmptyText.value
|
18257
18491
|
}, null);
|
18258
18492
|
}
|
18259
18493
|
});
|
@@ -18267,6 +18501,7 @@ var HeadFilter = defineComponent({
|
|
18267
18501
|
setup(props2, {
|
18268
18502
|
emit
|
18269
18503
|
}) {
|
18504
|
+
const t2 = useLocale("table");
|
18270
18505
|
const {
|
18271
18506
|
column
|
18272
18507
|
} = props2;
|
@@ -18318,7 +18553,7 @@ var HeadFilter = defineComponent({
|
|
18318
18553
|
const handleFilterChange = (btnSaveClick = false) => {
|
18319
18554
|
const {
|
18320
18555
|
disabled
|
18321
|
-
} = resolveBtnOption(btnSave,
|
18556
|
+
} = resolveBtnOption(btnSave, t2.value.confirm);
|
18322
18557
|
if (disabled || btnSaveClick) {
|
18323
18558
|
if (props2.column.filter === "custom") {
|
18324
18559
|
emit("change", [...state.checked], null);
|
@@ -18351,7 +18586,7 @@ var HeadFilter = defineComponent({
|
|
18351
18586
|
const {
|
18352
18587
|
disabled,
|
18353
18588
|
text
|
18354
|
-
} = resolveBtnOption(btnSave,
|
18589
|
+
} = resolveBtnOption(btnSave, t2.value.confirm);
|
18355
18590
|
if (disabled) {
|
18356
18591
|
return createVNode("span", {
|
18357
18592
|
"class": "btn-filter-save disabled"
|
@@ -18366,7 +18601,7 @@ var HeadFilter = defineComponent({
|
|
18366
18601
|
const {
|
18367
18602
|
disabled,
|
18368
18603
|
text
|
18369
|
-
} = resolveBtnOption(btnReset,
|
18604
|
+
} = resolveBtnOption(btnReset, t2.value.reset);
|
18370
18605
|
if (disabled) {
|
18371
18606
|
return "";
|
18372
18607
|
}
|
@@ -18403,7 +18638,7 @@ var HeadFilter = defineComponent({
|
|
18403
18638
|
}
|
18404
18639
|
return createVNode("div", {
|
18405
18640
|
"class": "list-item is-empty"
|
18406
|
-
}, [
|
18641
|
+
}, [t2.value.emptyText]);
|
18407
18642
|
};
|
18408
18643
|
return () => createVNode(BkPopover, mergeProps({
|
18409
18644
|
"trigger": "click",
|
@@ -18524,7 +18759,8 @@ var Settings = defineComponent({
|
|
18524
18759
|
setup(props2, {
|
18525
18760
|
emit
|
18526
18761
|
}) {
|
18527
|
-
const
|
18762
|
+
const t2 = useLocale("table");
|
18763
|
+
const defaultSizeList = createDefaultSizeList(t2);
|
18528
18764
|
const resolvedColVal = (item, index2) => resolvePropVal(item, ["field", "type"], [item, index2]);
|
18529
18765
|
const checkAll = ref(false);
|
18530
18766
|
const isShow = ref(false);
|
@@ -18653,7 +18889,7 @@ var Settings = defineComponent({
|
|
18653
18889
|
"class": "setting-head"
|
18654
18890
|
}, [createVNode("span", {
|
18655
18891
|
"class": "head-title"
|
18656
|
-
}, [
|
18892
|
+
}, [t2.value.setting.title]), createVNode(closeLine, {
|
18657
18893
|
"class": "icon-close-action",
|
18658
18894
|
"onClick": handleCancelClick
|
18659
18895
|
}, null)]), createVNode("div", {
|
@@ -18662,17 +18898,17 @@ var Settings = defineComponent({
|
|
18662
18898
|
"class": "setting-body-title"
|
18663
18899
|
}, [createVNode("div", null, [createVNode("span", {
|
18664
18900
|
"class": "field-setting-label"
|
18665
|
-
}, [
|
18901
|
+
}, [t2.value.setting.fields.title]), isLimit.value ? createVNode("span", {
|
18666
18902
|
"class": "limit"
|
18667
|
-
}, [
|
18903
|
+
}, [t2.value.setting.fields.subtitle(localSettings.value.limit)]) : ""]), isLimit.value ? "" : createVNode("span", {
|
18668
18904
|
"class": "check-all",
|
18669
18905
|
"onClick": handleCheckAllClick
|
18670
18906
|
}, [createVNode(BkCheckbox, {
|
18671
|
-
"label":
|
18907
|
+
"label": t2.value.setting.fields.selectAll,
|
18672
18908
|
"indeterminate": Boolean(indeterminate.value),
|
18673
18909
|
"modelValue": checkedFields.value.length > 0
|
18674
18910
|
}, {
|
18675
|
-
default: () => [
|
18911
|
+
default: () => [t2.value.setting.fields.selectAll]
|
18676
18912
|
})])]), createVNode(BkCheckboxGroup, {
|
18677
18913
|
"class": "setting-body-fields",
|
18678
18914
|
"modelValue": checkedFields.value,
|
@@ -18692,19 +18928,19 @@ var Settings = defineComponent({
|
|
18692
18928
|
default: () => [_slot2]
|
18693
18929
|
}), showLineHeight.value ? createVNode("div", {
|
18694
18930
|
"class": "setting-body-line-height"
|
18695
|
-
}, [createTextVNode("\
|
18931
|
+
}, [t2.value.setting.lineHeight.title, createTextVNode("\uFF1A"), renderSize()]) : ""]), createVNode("div", {
|
18696
18932
|
"class": "setting-footer"
|
18697
18933
|
}, [createVNode(BkButton, {
|
18698
18934
|
"theme": "primary",
|
18699
18935
|
"style": buttonStyle,
|
18700
18936
|
"onClick": handleSaveClick
|
18701
18937
|
}, {
|
18702
|
-
default: () => [
|
18938
|
+
default: () => [t2.value.setting.options.ok]
|
18703
18939
|
}), createVNode(BkButton, {
|
18704
18940
|
"style": buttonStyle,
|
18705
18941
|
"onClick": handleCancelClick
|
18706
18942
|
}, {
|
18707
|
-
default: () => [
|
18943
|
+
default: () => [t2.value.setting.options.cancel]
|
18708
18944
|
})])]);
|
18709
18945
|
}
|
18710
18946
|
}) : "";
|
@@ -18804,7 +19040,7 @@ function _isSlot$1(s2) {
|
|
18804
19040
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
18805
19041
|
}
|
18806
19042
|
class TableRender {
|
18807
|
-
constructor(props2, ctx, reactiveProp, colgroups, styleRef) {
|
19043
|
+
constructor(props2, ctx, reactiveProp, colgroups, styleRef, t2) {
|
18808
19044
|
__publicField(this, "getRowHeight", (row, rowIndex) => {
|
18809
19045
|
const {
|
18810
19046
|
size,
|
@@ -18832,6 +19068,7 @@ class TableRender {
|
|
18832
19068
|
this.uuid = uuid_1.v4();
|
18833
19069
|
this.events = /* @__PURE__ */ new Map();
|
18834
19070
|
this.styleRef = styleRef;
|
19071
|
+
this.t = t2;
|
18835
19072
|
}
|
18836
19073
|
get propActiveCols() {
|
18837
19074
|
return this.reactiveProp.activeColumns;
|
@@ -18873,11 +19110,17 @@ class TableRender {
|
|
18873
19110
|
}
|
18874
19111
|
renderTableBodySchema(rows) {
|
18875
19112
|
var _a, _b, _c;
|
19113
|
+
const localEmptyText = computed(() => {
|
19114
|
+
if (this.props.emptyText === void 0) {
|
19115
|
+
return this.t.value.emptyText;
|
19116
|
+
}
|
19117
|
+
return this.props.emptyText;
|
19118
|
+
});
|
18876
19119
|
if (!rows.length) {
|
18877
19120
|
return (_c = (_b = (_a = this.context.slots).empty) == null ? void 0 : _b.call(_a)) != null ? _c : createVNode(BodyEmpty, {
|
18878
19121
|
"filterList": rows,
|
18879
19122
|
"list": this.props.data,
|
18880
|
-
"emptyText":
|
19123
|
+
"emptyText": localEmptyText.value
|
18881
19124
|
}, null);
|
18882
19125
|
}
|
18883
19126
|
return createVNode("table", {
|
@@ -19964,6 +20207,7 @@ var Component$e = defineComponent({
|
|
19964
20207
|
props: tableProps,
|
19965
20208
|
emits: EMIT_EVENT_TYPES,
|
19966
20209
|
setup(props2, ctx) {
|
20210
|
+
const t2 = useLocale("table");
|
19967
20211
|
let columnSortFn = null;
|
19968
20212
|
let activeSortColumn = null;
|
19969
20213
|
let columnFilterFn = null;
|
@@ -20016,7 +20260,7 @@ var Component$e = defineComponent({
|
|
20016
20260
|
const styleRef = computed(() => ({
|
20017
20261
|
hasScrollY: hasScrollYRef.value
|
20018
20262
|
}));
|
20019
|
-
const tableRender = new TableRender(props2, ctx, reactiveSchema, colgroups, styleRef);
|
20263
|
+
const tableRender = new TableRender(props2, ctx, reactiveSchema, colgroups, styleRef, t2);
|
20020
20264
|
const updateOffsetRight = () => {
|
20021
20265
|
const $tableContent = root.value.querySelector(".bk-table-body-content");
|
20022
20266
|
const $table = $tableContent.querySelector("table");
|
@@ -22943,10 +23187,11 @@ var Confirm = defineComponent({
|
|
22943
23187
|
setup(props2, {
|
22944
23188
|
emit
|
22945
23189
|
}) {
|
23190
|
+
const t2 = useLocale("datePicker");
|
22946
23191
|
const labels2 = computed(() => ({
|
22947
|
-
time: props2.isTime ?
|
22948
|
-
clear:
|
22949
|
-
ok:
|
23192
|
+
time: props2.isTime ? t2.value.selectDate : t2.value.selectTime,
|
23193
|
+
clear: t2.value.clear,
|
23194
|
+
ok: t2.value.ok
|
22950
23195
|
}));
|
22951
23196
|
const handleClear = () => {
|
22952
23197
|
emit("pick-clear");
|
@@ -25289,12 +25534,13 @@ var DateTable = defineComponent({
|
|
25289
25534
|
setup(props2, {
|
25290
25535
|
emit
|
25291
25536
|
}) {
|
25537
|
+
const t2 = useLocale("datePicker");
|
25292
25538
|
const calendar = computed(() => new jsCalendar.Generator({
|
25293
25539
|
onlyDays: true,
|
25294
25540
|
weekStart: 0
|
25295
25541
|
}));
|
25296
25542
|
const headerDays = computed(() => {
|
25297
|
-
const translatedDays = [
|
25543
|
+
const translatedDays = [t2.value.weekdays.sun, t2.value.weekdays.mon, t2.value.weekdays.tue, t2.value.weekdays.wed, t2.value.weekdays.thu, t2.value.weekdays.fri, t2.value.weekdays.sat];
|
25298
25544
|
return translatedDays.splice(0, 7 - 0).concat(translatedDays.splice(0, 0));
|
25299
25545
|
});
|
25300
25546
|
const dates = computed(() => {
|
@@ -25595,6 +25841,7 @@ var TimeSpinner = defineComponent({
|
|
25595
25841
|
setup(props2, {
|
25596
25842
|
emit
|
25597
25843
|
}) {
|
25844
|
+
const t2 = useLocale("datePicker");
|
25598
25845
|
const state = reactive({
|
25599
25846
|
spinerSteps: [1, 1, 1].map((one, i2) => Math.abs(props2.steps[i2]) || one),
|
25600
25847
|
compiled: false,
|
@@ -25798,8 +26045,8 @@ var TimeSpinner = defineComponent({
|
|
25798
26045
|
scrollTop(domRef, from, to, 500);
|
25799
26046
|
}
|
25800
26047
|
function getScrollIndex(type, index2) {
|
25801
|
-
const
|
25802
|
-
const disabled = props2[`disabled${
|
26048
|
+
const t3 = firstUpperCase(type);
|
26049
|
+
const disabled = props2[`disabled${t3}`];
|
25803
26050
|
let ret = index2;
|
25804
26051
|
if (disabled.length && props2.hideDisabledOptions) {
|
25805
26052
|
let count = 0;
|
@@ -25841,7 +26088,8 @@ var TimeSpinner = defineComponent({
|
|
25841
26088
|
getCellCls,
|
25842
26089
|
handleClick,
|
25843
26090
|
updateScroll,
|
25844
|
-
padTime
|
26091
|
+
padTime,
|
26092
|
+
t: t2
|
25845
26093
|
});
|
25846
26094
|
},
|
25847
26095
|
render() {
|
@@ -25852,13 +26100,13 @@ var TimeSpinner = defineComponent({
|
|
25852
26100
|
}, [createVNode("div", {
|
25853
26101
|
"class": [resolveClassName("time-picker-cells-title"), this.focusedColumn === 0 ? "active" : ""],
|
25854
26102
|
"style": this.styles
|
25855
|
-
}, [
|
26103
|
+
}, [this.t.hour]), createVNode("div", {
|
25856
26104
|
"class": [resolveClassName("time-picker-cells-title"), this.focusedColumn === 1 ? "active" : ""],
|
25857
26105
|
"style": this.styles
|
25858
|
-
}, [
|
26106
|
+
}, [this.t.min]), withDirectives(createVNode("div", {
|
25859
26107
|
"class": [resolveClassName("time-picker-cells-title"), this.focusedColumn === 2 ? "active" : ""],
|
25860
26108
|
"style": this.styles
|
25861
|
-
}, [
|
26109
|
+
}, [this.t.sec]), [[vShow, this.showSeconds]])]), createVNode("div", {
|
25862
26110
|
"class": resolveClassName("time-picker-cells-list"),
|
25863
26111
|
"ref": "hoursRef",
|
25864
26112
|
"style": this.styles
|
@@ -26563,6 +26811,7 @@ var DateRangePanel = defineComponent({
|
|
26563
26811
|
slots,
|
26564
26812
|
emit
|
26565
26813
|
}) {
|
26814
|
+
const t2 = useLocale("datePicker");
|
26566
26815
|
const [minDate, maxDate] = props2.modelValue.map((date) => date || initTime());
|
26567
26816
|
const leftPanelDate = props2.startDate ? props2.startDate : minDate;
|
26568
26817
|
const state = reactive({
|
@@ -26847,7 +27096,8 @@ var DateRangePanel = defineComponent({
|
|
26847
27096
|
handlePickSuccess,
|
26848
27097
|
handlePickClear,
|
26849
27098
|
handlePickClick,
|
26850
|
-
timePickerRef
|
27099
|
+
timePickerRef,
|
27100
|
+
t: t2
|
26851
27101
|
});
|
26852
27102
|
},
|
26853
27103
|
render() {
|
@@ -26969,11 +27219,11 @@ var DateRangePanel = defineComponent({
|
|
26969
27219
|
return createVNode("span", {
|
26970
27220
|
"class": "up-to-now",
|
26971
27221
|
"onClick": () => this.handleRangePick(new Date(), "upToNow")
|
26972
|
-
}, [
|
27222
|
+
}, [this.t.toNow]);
|
26973
27223
|
}
|
26974
27224
|
return createVNode("span", {
|
26975
27225
|
"class": "up-to-now disabled"
|
26976
|
-
}, [
|
27226
|
+
}, [this.t.toNow]);
|
26977
27227
|
})() : "", createVNode("span", {
|
26978
27228
|
"class": iconBtnCls("next", "-double"),
|
26979
27229
|
"onClick": () => this.nextYear("right")
|
@@ -28191,6 +28441,7 @@ var Component$9 = defineComponent({
|
|
28191
28441
|
setup(props2, {
|
28192
28442
|
emit
|
28193
28443
|
}) {
|
28444
|
+
const t2 = useLocale("transfer");
|
28194
28445
|
const sourceListType = computed(() => {
|
28195
28446
|
if (Array.isArray(props2.sourceList)) {
|
28196
28447
|
const isObjectArray = props2.sourceList.every((s2) => s2.toString().includes("[object Object]"));
|
@@ -28291,7 +28542,8 @@ var Component$9 = defineComponent({
|
|
28291
28542
|
displayCode,
|
28292
28543
|
allToRight,
|
28293
28544
|
allToLeft,
|
28294
|
-
handleItemClick
|
28545
|
+
handleItemClick,
|
28546
|
+
t: t2
|
28295
28547
|
};
|
28296
28548
|
},
|
28297
28549
|
render() {
|
@@ -28300,7 +28552,7 @@ var Component$9 = defineComponent({
|
|
28300
28552
|
const getHeaderHtml = (dirct) => {
|
28301
28553
|
var _a, _b;
|
28302
28554
|
const isLeft = dirct === "left-header";
|
28303
|
-
const titleText = isLeft ? `${(_a = this.title[0]) != null ? _a :
|
28555
|
+
const titleText = isLeft ? `${(_a = this.title[0]) != null ? _a : this.t.sourceList}` : `${(_b = this.title[1]) != null ? _b : this.t.targetList}`;
|
28304
28556
|
const isDisabled = isLeft ? !leftList.length : !rightList.length;
|
28305
28557
|
const headerClick = () => {
|
28306
28558
|
if (isDisabled)
|
@@ -28316,12 +28568,12 @@ var Component$9 = defineComponent({
|
|
28316
28568
|
disabled: isDisabled
|
28317
28569
|
},
|
28318
28570
|
"onClick": () => headerClick()
|
28319
|
-
}, [isLeft ?
|
28571
|
+
}, [isLeft ? this.t.selectAll : this.t.removeAll])]);
|
28320
28572
|
};
|
28321
28573
|
const getEmptyHtml = (dirct) => {
|
28322
28574
|
var _a;
|
28323
28575
|
const isLeft = dirct === "left-empty-content";
|
28324
|
-
const emptyText = (_a = isLeft ? this.emptyContent[0] : this.emptyContent[1]) != null ? _a : isLeft ?
|
28576
|
+
const emptyText = (_a = isLeft ? this.emptyContent[0] : this.emptyContent[1]) != null ? _a : isLeft ? this.t.noData : this.t.noSelected;
|
28325
28577
|
return this.$slots[dirct] ? createVNode("div", null, [this.$slots[dirct]()]) : createVNode("div", {
|
28326
28578
|
"class": "empty"
|
28327
28579
|
}, [emptyText]);
|
@@ -28367,7 +28619,7 @@ var Component$9 = defineComponent({
|
|
28367
28619
|
"onUpdate:modelValue": ($event) => this.selectSearchQuery = $event,
|
28368
28620
|
"class": "transfer-search-input",
|
28369
28621
|
"clearable": true,
|
28370
|
-
"placeholder": this.searchPlaceholder ||
|
28622
|
+
"placeholder": this.searchPlaceholder || this.t.search
|
28371
28623
|
}, {
|
28372
28624
|
prefix: () => createVNode(search, {
|
28373
28625
|
"class": "icon-search"
|
@@ -29871,14 +30123,14 @@ const formItemProps = {
|
|
29871
30123
|
errorDisplayType: PropTypes.oneOf(["tooltips", "normal"]).def("normal")
|
29872
30124
|
};
|
29873
30125
|
const hasOwn = (obj, key2) => Object.prototype.hasOwnProperty.call(obj, key2);
|
29874
|
-
const getRulesFromProps = (props2) => {
|
30126
|
+
const getRulesFromProps = (props2, t2) => {
|
29875
30127
|
const rules = [];
|
29876
30128
|
const label = props2.label || "";
|
29877
30129
|
if (props2.required) {
|
29878
30130
|
rules.push({
|
29879
30131
|
required: true,
|
29880
30132
|
validator: defaultValidator.required,
|
29881
|
-
message: `${label}
|
30133
|
+
message: `${label} ${t2.value.notBeEmpty}`,
|
29882
30134
|
trigger: "change"
|
29883
30135
|
});
|
29884
30136
|
}
|
@@ -29886,34 +30138,34 @@ const getRulesFromProps = (props2) => {
|
|
29886
30138
|
rules.push({
|
29887
30139
|
email: true,
|
29888
30140
|
validator: defaultValidator.email,
|
29889
|
-
message: `${label}
|
30141
|
+
message: `${label} ${t2.value.incorrectFormat}`,
|
29890
30142
|
trigger: "change"
|
29891
30143
|
});
|
29892
30144
|
}
|
29893
30145
|
if (Number(props2.max) > -1) {
|
29894
30146
|
rules.push({
|
29895
30147
|
validator: (value) => defaultValidator.max(value, props2.max),
|
29896
|
-
message: `${label}
|
30148
|
+
message: `${label} ${t2.value.max} ${props2.max}`,
|
29897
30149
|
trigger: "change"
|
29898
30150
|
});
|
29899
30151
|
}
|
29900
30152
|
if (Number(props2.min) > -1) {
|
29901
30153
|
rules.push({
|
29902
30154
|
validator: (value) => defaultValidator.min(value, props2.min),
|
29903
|
-
message: `${label}
|
30155
|
+
message: `${label} ${t2.value.min} ${props2.min}`,
|
29904
30156
|
trigger: "change"
|
29905
30157
|
});
|
29906
30158
|
}
|
29907
30159
|
if (Number(props2.maxlength) > -1) {
|
29908
30160
|
rules.push({
|
29909
30161
|
validator: (value) => defaultValidator.maxlength(value, props2.maxlength),
|
29910
|
-
message: `${label}
|
30162
|
+
message: `${label} ${t2.value.maxLen} ${props2.maxlength}`,
|
29911
30163
|
trigger: "change"
|
29912
30164
|
});
|
29913
30165
|
}
|
29914
30166
|
return rules;
|
29915
30167
|
};
|
29916
|
-
const mergeRules = (configRules, propRules) => {
|
30168
|
+
const mergeRules = (configRules, propRules, t2) => {
|
29917
30169
|
let customRequired = false;
|
29918
30170
|
let customEmail = false;
|
29919
30171
|
const formatConfigRules = configRules.reduce((result, rule) => {
|
@@ -29939,7 +30191,7 @@ const mergeRules = (configRules, propRules) => {
|
|
29939
30191
|
}
|
29940
30192
|
result.push({
|
29941
30193
|
validator: rulevalidator,
|
29942
|
-
message: rule.message ||
|
30194
|
+
message: rule.message || t2.value.verifyError,
|
29943
30195
|
trigger: rule.trigger || "blur"
|
29944
30196
|
});
|
29945
30197
|
return result;
|
@@ -29975,6 +30227,7 @@ var FormItem = defineComponent({
|
|
29975
30227
|
},
|
29976
30228
|
props: formItemProps,
|
29977
30229
|
setup(props2, context) {
|
30230
|
+
const t2 = useLocale("form");
|
29978
30231
|
const form2 = useForm();
|
29979
30232
|
const isForm = Boolean(form2);
|
29980
30233
|
const parentFormItem = useFormItem();
|
@@ -30030,7 +30283,7 @@ var FormItem = defineComponent({
|
|
30030
30283
|
if (props2.rules) {
|
30031
30284
|
rules = props2.rules;
|
30032
30285
|
}
|
30033
|
-
rules = getTriggerRules(trigger, mergeRules(rules, getRulesFromProps(props2)));
|
30286
|
+
rules = getTriggerRules(trigger, mergeRules(rules, getRulesFromProps(props2, t2), t2));
|
30034
30287
|
if (rules.length > 0) {
|
30035
30288
|
state.isError = false;
|
30036
30289
|
state.errorMessage = "";
|
@@ -31997,23 +32250,28 @@ var Component$3 = defineComponent({
|
|
31997
32250
|
setup(props2, {
|
31998
32251
|
emit
|
31999
32252
|
}) {
|
32253
|
+
const t2 = useLocale("process");
|
32254
|
+
const lang = useLocale("lang");
|
32000
32255
|
const defaultProcessList = ref([]);
|
32001
32256
|
const paddingBottom = ref(0);
|
32002
32257
|
const init = () => {
|
32003
32258
|
var _a;
|
32004
32259
|
defaultProcessList.value.splice(0, defaultProcessList.value.length, ...[{
|
32005
|
-
content:
|
32260
|
+
content: t2.value.step1
|
32006
32261
|
}, {
|
32007
|
-
content:
|
32262
|
+
content: t2.value.step2
|
32008
32263
|
}, {
|
32009
|
-
content:
|
32264
|
+
content: t2.value.step3
|
32010
32265
|
}, {
|
32011
|
-
content:
|
32266
|
+
content: t2.value.step4
|
32012
32267
|
}]);
|
32013
32268
|
if ((_a = props2.list) == null ? void 0 : _a.length) {
|
32014
32269
|
defaultProcessList.value.splice(0, defaultProcessList.value.length, ...props2.list);
|
32015
32270
|
}
|
32016
32271
|
};
|
32272
|
+
watch(() => lang.value, () => {
|
32273
|
+
init();
|
32274
|
+
});
|
32017
32275
|
const jumpTo = async (index2) => {
|
32018
32276
|
try {
|
32019
32277
|
if (props2.controllable && index2 !== props2.curProcess) {
|
@@ -32048,7 +32306,7 @@ var Component$3 = defineComponent({
|
|
32048
32306
|
}
|
32049
32307
|
if (index2 === this.curProcess - 1 && isErrorStatus(item)) {
|
32050
32308
|
return createVNode(error, {
|
32051
|
-
"class": "bk-process-icon"
|
32309
|
+
"class": "bk-process-icon icon-error"
|
32052
32310
|
}, null);
|
32053
32311
|
}
|
32054
32312
|
if (index2 === this.curProcess - 1 && isIcon(item)) {
|
@@ -32080,7 +32338,9 @@ var Component$3 = defineComponent({
|
|
32080
32338
|
current: isLoadingStatus(item) && index2 === this.curProcess - 1,
|
32081
32339
|
error: isErrorStatus(item) && index2 === this.curProcess - 1
|
32082
32340
|
}
|
32083
|
-
}, [
|
32341
|
+
}, [createVNode("div", null, [createVNode("span", {
|
32342
|
+
"class": "display"
|
32343
|
+
}, [item[this.displayKey]]), renderIcon(index2, item)])]))])]);
|
32084
32344
|
}
|
32085
32345
|
});
|
32086
32346
|
const BkProcess = withInstall(Component$3);
|
@@ -32236,6 +32496,7 @@ var UploadList = defineComponent({
|
|
32236
32496
|
slots,
|
32237
32497
|
emit
|
32238
32498
|
}) {
|
32499
|
+
const t2 = useLocale("upload");
|
32239
32500
|
const {
|
32240
32501
|
theme,
|
32241
32502
|
disabled,
|
@@ -32356,7 +32617,7 @@ var UploadList = defineComponent({
|
|
32356
32617
|
"title": file.statusText
|
32357
32618
|
}, [file.status === "success" && createVNode(Fragment, null, [createVNode(done, {
|
32358
32619
|
"class": `${classBlock}__item-message-success-icon`
|
32359
|
-
}, null), file.statusText ||
|
32620
|
+
}, null), file.statusText || t2.value.uploadSuccess]), file.status === "fail" && createVNode(Fragment, null, [file.statusText || t2.value.uploadFailed])]), file.status === "uploading" && createVNode(BkProgress, {
|
32360
32621
|
"class": `${classBlock}__item-progress`,
|
32361
32622
|
"showText": false,
|
32362
32623
|
"percent": file.percentage,
|
@@ -32400,6 +32661,7 @@ var UploadTrigger = defineComponent({
|
|
32400
32661
|
slots,
|
32401
32662
|
emit
|
32402
32663
|
}) {
|
32664
|
+
const t2 = useLocale("upload");
|
32403
32665
|
const {
|
32404
32666
|
theme,
|
32405
32667
|
disabled,
|
@@ -32510,9 +32772,9 @@ var UploadTrigger = defineComponent({
|
|
32510
32772
|
"class": `${classBlock}__draggable-icon`
|
32511
32773
|
}, null), createVNode("div", {
|
32512
32774
|
"class": `${classBlock}__draggable-text`
|
32513
|
-
}, [
|
32775
|
+
}, [t2.value.drapFileOr, createVNode("span", {
|
32514
32776
|
"class": `${classBlock}__draggable-upload-link`
|
32515
|
-
}, [
|
32777
|
+
}, [t2.value.clickUpload])])])]);
|
32516
32778
|
};
|
32517
32779
|
const Picture = () => createVNode(Fragment, null, [isSinglePicture.value && props2.file ? SinglePicture(props2.file) : DefaultPicture()]);
|
32518
32780
|
const DefaultPicture = () => createVNode(Fragment, null, [slots.default ? slots.default() : createVNode("div", {
|
@@ -32521,7 +32783,7 @@ var UploadTrigger = defineComponent({
|
|
32521
32783
|
"class": `${classBlock}__picture-icon`
|
32522
32784
|
}, null), createVNode("div", {
|
32523
32785
|
"class": `${classBlock}__picture-text`
|
32524
|
-
}, [
|
32786
|
+
}, [t2.value.clickUpload])])]);
|
32525
32787
|
const SinglePicture = (file2) => [withDirectives(createVNode("img", {
|
32526
32788
|
"src": file2.url,
|
32527
32789
|
"class": `${classBlock}__picture-thumbnail`,
|
@@ -32549,7 +32811,7 @@ var UploadTrigger = defineComponent({
|
|
32549
32811
|
"class": `${classBlock}__button-icon`
|
32550
32812
|
}, null), createVNode("span", {
|
32551
32813
|
"class": `${classBlock}__button-text`
|
32552
|
-
}, [
|
32814
|
+
}, [t2.value.uploadLabel])]
|
32553
32815
|
});
|
32554
32816
|
const Trigger = () => {
|
32555
32817
|
if (isButton.value)
|
@@ -38390,20 +38652,27 @@ var SearchSelectMenu = defineComponent({
|
|
38390
38652
|
},
|
38391
38653
|
footerBtns: {
|
38392
38654
|
type: Array,
|
38393
|
-
default: () => [
|
38394
|
-
id: "confirm",
|
38395
|
-
name: "\u786E\u8BA4"
|
38396
|
-
}, {
|
38397
|
-
id: "cancel",
|
38398
|
-
name: "\u53D6\u6D88",
|
38399
|
-
disabled: false
|
38400
|
-
}]
|
38655
|
+
default: () => []
|
38401
38656
|
}
|
38402
38657
|
},
|
38403
38658
|
emits: ["selectItem", "selectCondition", "footerClick"],
|
38404
38659
|
setup(props2, {
|
38405
38660
|
emit
|
38406
38661
|
}) {
|
38662
|
+
const t2 = useLocale("searchSelect");
|
38663
|
+
const localFooterBtns = computed(() => {
|
38664
|
+
if (props2.footerBtns === void 0 || props2.footerBtns.length === 0) {
|
38665
|
+
return [{
|
38666
|
+
id: "confirm",
|
38667
|
+
name: t2.value.ok
|
38668
|
+
}, {
|
38669
|
+
id: "cancel",
|
38670
|
+
name: t2.value.cancel,
|
38671
|
+
disabled: false
|
38672
|
+
}];
|
38673
|
+
}
|
38674
|
+
return props2.footerBtns;
|
38675
|
+
});
|
38407
38676
|
function handleClick(item) {
|
38408
38677
|
emit("selectItem", item);
|
38409
38678
|
}
|
@@ -38463,7 +38732,8 @@ var SearchSelectMenu = defineComponent({
|
|
38463
38732
|
handleClickCondition,
|
38464
38733
|
handleClickFooterBtn,
|
38465
38734
|
filterList,
|
38466
|
-
getSearchNode
|
38735
|
+
getSearchNode,
|
38736
|
+
localFooterBtns
|
38467
38737
|
};
|
38468
38738
|
},
|
38469
38739
|
render() {
|
@@ -38492,9 +38762,9 @@ var SearchSelectMenu = defineComponent({
|
|
38492
38762
|
getSearchNode: this.getSearchNode
|
38493
38763
|
}) : createVNode(Fragment, null, [this.getSearchNode(item), this.multiple && this.selected.includes(item.id) && createVNode(done, {
|
38494
38764
|
"class": "is-selected"
|
38495
|
-
}, null)])]))]), this.multiple && ((_c = this.
|
38765
|
+
}, null)])]))]), this.multiple && ((_c = this.localFooterBtns) == null ? void 0 : _c.length) && createVNode("div", {
|
38496
38766
|
"class": "menu-footer"
|
38497
|
-
}, [this.
|
38767
|
+
}, [this.localFooterBtns.map((item) => createVNode("span", {
|
38498
38768
|
"class": `menu-footer-btn ${item.disabled ? "is-disabled" : ""}`,
|
38499
38769
|
"key": item.id,
|
38500
38770
|
"onClick": () => !item.disabled && this.handleClickFooterBtn(item)
|
@@ -38626,6 +38896,7 @@ var SearchSelectInput = defineComponent({
|
|
38626
38896
|
emit,
|
38627
38897
|
expose
|
38628
38898
|
}) {
|
38899
|
+
const t2 = useLocale("searchSelect");
|
38629
38900
|
const inputRef = ref(null);
|
38630
38901
|
const popoverRef = ref(null);
|
38631
38902
|
const keyword = ref("");
|
@@ -39057,7 +39328,8 @@ var SearchSelectInput = defineComponent({
|
|
39057
39328
|
handleInputKeyup,
|
39058
39329
|
handleSelectItem,
|
39059
39330
|
handleSelectCondtionItem,
|
39060
|
-
handleMenuFooterClick
|
39331
|
+
handleMenuFooterClick,
|
39332
|
+
t: t2
|
39061
39333
|
};
|
39062
39334
|
},
|
39063
39335
|
render() {
|
@@ -39087,7 +39359,7 @@ var SearchSelectInput = defineComponent({
|
|
39087
39359
|
"input-after": showInputAfter
|
39088
39360
|
},
|
39089
39361
|
"contenteditable": true,
|
39090
|
-
"data-placeholder": !inputInnerHtml && !this.keyword ?
|
39362
|
+
"data-placeholder": !inputInnerHtml && !this.keyword ? this.t.pleaseSelect : "",
|
39091
39363
|
"data-tips": placeholder || "",
|
39092
39364
|
"spellcheck": "false",
|
39093
39365
|
"onFocus": this.handleInputFocus,
|
@@ -39098,10 +39370,10 @@ var SearchSelectInput = defineComponent({
|
|
39098
39370
|
const popoverContent = () => {
|
39099
39371
|
var _a2;
|
39100
39372
|
if (this.loading) {
|
39101
|
-
return createVNode("div", null, [
|
39373
|
+
return createVNode("div", null, [this.t.loading]);
|
39102
39374
|
}
|
39103
39375
|
if (this.showNoSelectValueError) {
|
39104
|
-
return createVNode("div", null, [
|
39376
|
+
return createVNode("div", null, [this.t.filterQueryMustHasValue]);
|
39105
39377
|
}
|
39106
39378
|
return ((_a2 = this.menuList) == null ? void 0 : _a2.length) ? createVNode("div", {
|
39107
39379
|
"ref": "popoverRef",
|
@@ -39260,13 +39532,7 @@ const SearchSelectProps = {
|
|
39260
39532
|
},
|
39261
39533
|
conditions: {
|
39262
39534
|
type: Array,
|
39263
|
-
default: () => [
|
39264
|
-
id: "or",
|
39265
|
-
name: "\u6216"
|
39266
|
-
}, {
|
39267
|
-
id: "and",
|
39268
|
-
name: "\u4E14"
|
39269
|
-
}]
|
39535
|
+
default: () => []
|
39270
39536
|
},
|
39271
39537
|
clearable: {
|
39272
39538
|
type: Boolean,
|
@@ -39300,6 +39566,19 @@ var Component = defineComponent({
|
|
39300
39566
|
setup(props2, {
|
39301
39567
|
emit
|
39302
39568
|
}) {
|
39569
|
+
const t2 = useLocale("searchSelect");
|
39570
|
+
const localConditions = computed(() => {
|
39571
|
+
if (props2.conditions === void 0 || props2.conditions.length === 0) {
|
39572
|
+
return [{
|
39573
|
+
id: "or",
|
39574
|
+
name: t2.value.or
|
39575
|
+
}, {
|
39576
|
+
id: "and",
|
39577
|
+
name: t2.value.and
|
39578
|
+
}];
|
39579
|
+
}
|
39580
|
+
return props2.conditions;
|
39581
|
+
});
|
39303
39582
|
const inputRef = ref(null);
|
39304
39583
|
const wrapRef = ref(null);
|
39305
39584
|
const isFocus = ref(false);
|
@@ -39464,7 +39743,8 @@ var Component = defineComponent({
|
|
39464
39743
|
handleClearAll,
|
39465
39744
|
handleInputOutside,
|
39466
39745
|
handleAddSelected,
|
39467
|
-
handleDeleteSelected
|
39746
|
+
handleDeleteSelected,
|
39747
|
+
localConditions
|
39468
39748
|
};
|
39469
39749
|
},
|
39470
39750
|
render() {
|
@@ -39495,7 +39775,7 @@ var Component = defineComponent({
|
|
39495
39775
|
}
|
39496
39776
|
}, [createVNode(SearchSelected, {
|
39497
39777
|
"data": this.copyData,
|
39498
|
-
"conditions": this.
|
39778
|
+
"conditions": this.localConditions,
|
39499
39779
|
"selectedList": this.selectedList,
|
39500
39780
|
"overflowIndex": this.overflowIndex,
|
39501
39781
|
"getMenuList": this.getMenuList,
|
@@ -39509,7 +39789,7 @@ var Component = defineComponent({
|
|
39509
39789
|
"data": this.copyData,
|
39510
39790
|
"showInputBefore": !this.selectedList.length,
|
39511
39791
|
"showCondition": showCondition,
|
39512
|
-
"conditions": this.
|
39792
|
+
"conditions": this.localConditions,
|
39513
39793
|
"clickOutside": this.handleInputOutside,
|
39514
39794
|
"getMenuList": this.getMenuList,
|
39515
39795
|
"validateValues": this.validateValues,
|
@@ -39592,9 +39872,10 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
39592
39872
|
TimePicker: BkTimePicker,
|
39593
39873
|
SearchSelect: BkSearchSelect,
|
39594
39874
|
OverflowTitle: BkOverflowTitle,
|
39595
|
-
$bkPopover: createPopoverComponent
|
39875
|
+
$bkPopover: createPopoverComponent,
|
39876
|
+
ConfigProvider: BkConfigProvider
|
39596
39877
|
}, Symbol.toStringTag, { value: "Module" }));
|
39597
|
-
const createInstall = (prefix = "Bk") => (app) => {
|
39878
|
+
const createInstall = (prefix = "Bk") => (app, options) => {
|
39598
39879
|
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
39599
39880
|
Object.keys(components).forEach((key2) => {
|
39600
39881
|
const component = components[key2];
|
@@ -39604,10 +39885,13 @@ const createInstall = (prefix = "Bk") => (app) => {
|
|
39604
39885
|
app.component(pre + key2, components[key2]);
|
39605
39886
|
}
|
39606
39887
|
});
|
39888
|
+
if (options) {
|
39889
|
+
provideGlobalConfig(options);
|
39890
|
+
}
|
39607
39891
|
};
|
39608
39892
|
var preset = {
|
39609
39893
|
createInstall,
|
39610
39894
|
install: createInstall(),
|
39611
39895
|
version: "0.0.1"
|
39612
39896
|
};
|
39613
|
-
export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, BkInfoBox as InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkOverflowTitle as OverflowTitle, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkProcess as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSearchSelect as SearchSelect, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTableColumn as TableColumn, BkTag as Tag, TagInput, BkTimeline as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel, overflowTitle };
|
39897
|
+
export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkConfigProvider as ConfigProvider, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, BkInfoBox as InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkOverflowTitle as OverflowTitle, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkProcess as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSearchSelect as SearchSelect, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTableColumn as TableColumn, BkTag as Tag, TagInput, BkTimeline as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, BkContainer as containerProps, preset as default, mousewheel, overflowTitle };
|