bkui-vue 0.0.1-beta.154 → 0.0.1-beta.157
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 +34 -34
- package/dist/index.esm.js +201 -131
- package/dist/index.umd.js +31 -31
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -2
- package/lib/alert/alert.variable.css +2 -2
- package/lib/backtop/backtop.variable.css +2 -2
- package/lib/badge/badge.variable.css +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +2 -2
- package/lib/button/button.variable.css +2 -2
- package/lib/card/card.variable.css +2 -2
- package/lib/cascader/cascader-panel.d.ts +4 -4
- package/lib/cascader/cascader.css +13 -3
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/cascader.less +14 -1
- package/lib/cascader/cascader.variable.css +13 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.variable.css +2 -2
- package/lib/checkbox/index.d.ts +11 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.variable.css +2 -2
- package/lib/collapse/collapse.variable.css +2 -2
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/color-picker.variable.css +2 -2
- package/lib/color-picker/index.d.ts +24 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/container/container.variable.css +2 -2
- package/lib/date-picker/date-picker.d.ts +9 -0
- package/lib/date-picker/date-picker.variable.css +2 -2
- package/lib/date-picker/index.d.ts +20 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/props.d.ts +4 -0
- package/lib/divider/divider.variable.css +2 -2
- package/lib/dropdown/dropdown.variable.css +2 -2
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +42 -16
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -2
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/form.css +6 -0
- package/lib/form/form.less +9 -0
- package/lib/form/form.variable.css +8 -2
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +1 -1
- package/lib/input/index.d.ts +27 -4
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +17 -1
- package/lib/input/input.variable.css +2 -2
- package/lib/link/link.variable.css +2 -2
- package/lib/loading/loading.variable.css +2 -2
- package/lib/menu/menu.variable.css +2 -2
- package/lib/menu/submenu.variable.css +2 -2
- package/lib/message/message.variable.css +2 -2
- package/lib/navigation/navigation.variable.css +2 -2
- package/lib/notify/notify.variable.css +2 -2
- package/lib/pagination/pagination.variable.css +2 -2
- package/lib/popover/popover.variable.css +2 -2
- package/lib/popover2/popover2.variable.css +2 -2
- package/lib/process/index.js +1 -1
- package/lib/process/process.variable.css +2 -2
- package/lib/progress/progress.variable.css +2 -2
- package/lib/radio/index.d.ts +11 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.variable.css +2 -2
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.variable.css +2 -2
- package/lib/select/index.d.ts +24 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +11 -0
- package/lib/select/select.variable.css +2 -2
- package/lib/sideslider/sideslider.variable.css +2 -2
- package/lib/slider/slider.variable.css +2 -2
- package/lib/steps/steps.variable.css +2 -2
- package/lib/styles/mixins/scroll.variable.css +2 -2
- package/lib/styles/themes/themes.less +2 -2
- package/lib/switcher/index.d.ts +24 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +11 -0
- package/lib/switcher/switcher.variable.css +2 -2
- package/lib/tab/tab.variable.css +2 -2
- package/lib/table/const.d.ts +2 -2
- package/lib/table/index.d.ts +6 -6
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +2 -2
- package/lib/table/plugins/head-sort.variable.css +2 -2
- package/lib/table/plugins/settings.variable.css +2 -2
- package/lib/table/table.css +52 -18
- package/lib/table/table.d.ts +2 -2
- package/lib/table/table.less +13 -6
- package/lib/table/table.variable.css +54 -20
- package/lib/tag/tag.css +23 -8
- package/lib/tag/tag.less +25 -8
- package/lib/tag/tag.variable.css +25 -10
- package/lib/tag-input/index.d.ts +20 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +10 -1
- package/lib/tag-input/tag-input.variable.css +2 -2
- package/lib/tag-input/tag-props.d.ts +4 -0
- package/lib/timeline/timeline.variable.css +2 -2
- package/lib/transfer/transfer.variable.css +2 -2
- package/lib/tree/tree.css +5 -1
- package/lib/tree/tree.less +8 -1
- package/lib/tree/tree.variable.css +7 -3
- package/lib/upload/index.js +1 -1
- package/lib/upload/upload.variable.css +2 -2
- package/lib/virtual-render/virtual-render.variable.css +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -7320,6 +7320,7 @@ var lodash = { exports: {} };
|
|
7320
7320
|
}
|
7321
7321
|
}).call(commonjsGlobal);
|
7322
7322
|
})(lodash, lodash.exports);
|
7323
|
+
var _$1 = lodash.exports;
|
7323
7324
|
const lowerStr = "abcdefghijklmnopqrstuvwxyz0123456789";
|
7324
7325
|
const random = (n2, str = lowerStr) => {
|
7325
7326
|
let result = "";
|
@@ -9205,7 +9206,8 @@ const inputType = {
|
|
9205
9206
|
modelValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
9206
9207
|
size: PropTypes.size(),
|
9207
9208
|
rows: PropTypes.number,
|
9208
|
-
selectReadonly: PropTypes.bool.def(false)
|
9209
|
+
selectReadonly: PropTypes.bool.def(false),
|
9210
|
+
withValidate: PropTypes.bool.def(true)
|
9209
9211
|
};
|
9210
9212
|
let EVENTS$2;
|
9211
9213
|
(function(EVENTS2) {
|
@@ -9305,6 +9307,12 @@ var Component$x = defineComponent({
|
|
9305
9307
|
const decControlCls = computed(() => classes({
|
9306
9308
|
"is-disabled": props2.disabled || props2.modelValue <= props2.min
|
9307
9309
|
}));
|
9310
|
+
watch(() => props2.modelValue, () => {
|
9311
|
+
var _a2;
|
9312
|
+
if (props2.withValidate) {
|
9313
|
+
(_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change");
|
9314
|
+
}
|
9315
|
+
});
|
9308
9316
|
ctx.expose({
|
9309
9317
|
focus() {
|
9310
9318
|
inputRef.value.focus();
|
@@ -9312,14 +9320,12 @@ var Component$x = defineComponent({
|
|
9312
9320
|
clear
|
9313
9321
|
});
|
9314
9322
|
function clear() {
|
9315
|
-
var _a2;
|
9316
9323
|
if (props2.disabled)
|
9317
9324
|
return;
|
9318
9325
|
const resetVal = isNumberInput.value ? props2.min : "";
|
9319
9326
|
ctx.emit(EVENTS$2.UPDATE, resetVal);
|
9320
9327
|
ctx.emit(EVENTS$2.CHANGE, resetVal);
|
9321
9328
|
ctx.emit(EVENTS$2.CLEAR);
|
9322
|
-
(_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change");
|
9323
9329
|
}
|
9324
9330
|
function handleFocus(e) {
|
9325
9331
|
isFocused.value = true;
|
@@ -9338,7 +9344,6 @@ var Component$x = defineComponent({
|
|
9338
9344
|
}
|
9339
9345
|
function eventHandler(eventName) {
|
9340
9346
|
return (e) => {
|
9341
|
-
var _a2;
|
9342
9347
|
e.stopPropagation();
|
9343
9348
|
if (eventName === EVENTS$2.KEYDOWN && (e.code === "Enter" || e.key === "Enter" || e.keyCode === 13)) {
|
9344
9349
|
ctx.emit(EVENTS$2.ENTER, e.target.value, e);
|
@@ -9349,9 +9354,6 @@ var Component$x = defineComponent({
|
|
9349
9354
|
ctx.emit(EVENTS$2.UPDATE, isNumberInput.value ? +e.target.value : e.target.value);
|
9350
9355
|
}
|
9351
9356
|
ctx.emit(eventName, e.target.value, e);
|
9352
|
-
if (eventName === EVENTS$2.INPUT) {
|
9353
|
-
(_a2 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a2.call(formItem, "change");
|
9354
|
-
}
|
9355
9357
|
};
|
9356
9358
|
}
|
9357
9359
|
const [handleKeyup, handleKeydown, handleKeyPress, handlePaste, handleChange, handleInput] = [EVENTS$2.KEYUP, EVENTS$2.KEYDOWN, EVENTS$2.KEYPRESS, EVENTS$2.PASTE, EVENTS$2.CHANGE, EVENTS$2.INPUT].map(eventHandler);
|
@@ -9580,7 +9582,6 @@ const useCheckbox = () => {
|
|
9580
9582
|
props: props2,
|
9581
9583
|
emit
|
9582
9584
|
} = currentInstance;
|
9583
|
-
const formItem = useFormItem();
|
9584
9585
|
const checkboxGroup = inject(checkboxGroupKey, EMPTY_OBJ);
|
9585
9586
|
const isGroup = !isEmptyObj(checkboxGroup);
|
9586
9587
|
const isChecked = ref(props2.checked);
|
@@ -9610,7 +9611,6 @@ const useCheckbox = () => {
|
|
9610
9611
|
isChecked.value = value;
|
9611
9612
|
};
|
9612
9613
|
const handleChange = (event) => {
|
9613
|
-
var _a;
|
9614
9614
|
if (isDisabled.value) {
|
9615
9615
|
return;
|
9616
9616
|
}
|
@@ -9622,7 +9622,6 @@ const useCheckbox = () => {
|
|
9622
9622
|
if (isGroup) {
|
9623
9623
|
checkboxGroup.handleChange();
|
9624
9624
|
}
|
9625
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
9626
9625
|
nextTick(() => {
|
9627
9626
|
if ($targetInput.checked !== isChecked.value) {
|
9628
9627
|
$targetInput.checked = isChecked.value;
|
@@ -9710,13 +9709,15 @@ var Component$v = defineComponent({
|
|
9710
9709
|
const checkboxGroupProps = {
|
9711
9710
|
name: PropTypes.string.def(""),
|
9712
9711
|
modelValue: PropTypes.array,
|
9713
|
-
disabled: PropTypes.bool
|
9712
|
+
disabled: PropTypes.bool,
|
9713
|
+
withValidate: PropTypes.bool.def(true)
|
9714
9714
|
};
|
9715
9715
|
var BkCheckboxGroup = defineComponent({
|
9716
9716
|
name: "CheckboxGroup",
|
9717
9717
|
props: checkboxGroupProps,
|
9718
9718
|
emits: ["change", "update:modelValue"],
|
9719
9719
|
setup(props2, context) {
|
9720
|
+
const formItem = useFormItem();
|
9720
9721
|
const checkboxInstanceList = [];
|
9721
9722
|
const register = (checkboxContext) => {
|
9722
9723
|
checkboxInstanceList.push(checkboxContext);
|
@@ -9744,6 +9745,12 @@ var BkCheckboxGroup = defineComponent({
|
|
9744
9745
|
unregister,
|
9745
9746
|
handleChange
|
9746
9747
|
});
|
9748
|
+
watch(() => props2.modelValue, () => {
|
9749
|
+
var _a;
|
9750
|
+
if (props2.withValidate) {
|
9751
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
9752
|
+
}
|
9753
|
+
});
|
9747
9754
|
onMounted(() => {
|
9748
9755
|
const modelValue = props2.modelValue || [];
|
9749
9756
|
checkboxInstanceList.forEach((checkboxInstance) => {
|
@@ -10432,20 +10439,12 @@ var Component$t = defineComponent({
|
|
10432
10439
|
props: {
|
10433
10440
|
type: PropTypes.commonType(["404", "403", "500", "building", "empty", "search-empty", "login"], "type").def("404"),
|
10434
10441
|
scene: PropTypes.commonType(["page", "part"], "scene").def("page"),
|
10435
|
-
|
10442
|
+
title: PropTypes.string,
|
10443
|
+
description: PropTypes.string
|
10436
10444
|
},
|
10437
10445
|
setup(props2, {
|
10438
10446
|
slots
|
10439
10447
|
}) {
|
10440
|
-
const tipText = {
|
10441
|
-
403: "\u65E0\u4E1A\u52A1\u6743\u9650",
|
10442
|
-
404: "\u9875\u9762\u4E0D\u5B58\u5728",
|
10443
|
-
500: "\u670D\u52A1\u7EF4\u62A4\u4E2D",
|
10444
|
-
building: "\u529F\u80FD\u5EFA\u8BBE\u4E2D",
|
10445
|
-
empty: "\u6CA1\u6709\u6570\u636E",
|
10446
|
-
"search-empty": "\u641C\u7D22\u4E3A\u7A7A",
|
10447
|
-
login: "\u8BF7\u767B\u5165\u84DD\u9CB8"
|
10448
|
-
};
|
10449
10448
|
const images = {
|
10450
10449
|
403: permissions,
|
10451
10450
|
404: notFound,
|
@@ -10455,19 +10454,58 @@ var Component$t = defineComponent({
|
|
10455
10454
|
"search-empty": searchEmpty,
|
10456
10455
|
login
|
10457
10456
|
};
|
10458
|
-
|
10459
|
-
|
10457
|
+
const renderImg = () => {
|
10458
|
+
const imgSrc = images[props2.type] ? images[props2.type] : empty;
|
10460
10459
|
return createVNode("div", {
|
10461
|
-
"class":
|
10462
|
-
}, [createVNode("div", {
|
10463
|
-
"class": ["bk-exception-img", `${props2.scene}-img`]
|
10460
|
+
"class": "bk-exception-img"
|
10464
10461
|
}, [createVNode("img", {
|
10465
10462
|
"class": "exception-image",
|
10466
|
-
"src":
|
10463
|
+
"src": imgSrc,
|
10467
10464
|
"alt": "type"
|
10468
|
-
}, null)])
|
10469
|
-
|
10470
|
-
|
10465
|
+
}, null)]);
|
10466
|
+
};
|
10467
|
+
const renderTitle = () => {
|
10468
|
+
if (_$1.isFunction(slots.title)) {
|
10469
|
+
return createVNode("div", {
|
10470
|
+
"class": "bk-exception-title"
|
10471
|
+
}, [slots.title()]);
|
10472
|
+
}
|
10473
|
+
if (props2.title) {
|
10474
|
+
return createVNode("div", {
|
10475
|
+
"class": "bk-exception-title"
|
10476
|
+
}, [props2.title]);
|
10477
|
+
}
|
10478
|
+
return null;
|
10479
|
+
};
|
10480
|
+
const renderDescription = () => {
|
10481
|
+
if (_$1.isFunction(slots.description)) {
|
10482
|
+
return createVNode("div", {
|
10483
|
+
"class": "bk-exception-description"
|
10484
|
+
}, [slots.description()]);
|
10485
|
+
}
|
10486
|
+
if (props2.description) {
|
10487
|
+
return createVNode("div", {
|
10488
|
+
"class": "bk-exception-description"
|
10489
|
+
}, [props2.description]);
|
10490
|
+
}
|
10491
|
+
return null;
|
10492
|
+
};
|
10493
|
+
const renderFooter = () => {
|
10494
|
+
if (_$1.isFunction(slots.default)) {
|
10495
|
+
return createVNode("div", {
|
10496
|
+
"class": "bk-exception-footer"
|
10497
|
+
}, [slots.default()]);
|
10498
|
+
}
|
10499
|
+
return null;
|
10500
|
+
};
|
10501
|
+
return () => {
|
10502
|
+
const rootClass = classes({
|
10503
|
+
"bk-exception": true,
|
10504
|
+
[`bk-exception-${props2.scene}`]: true
|
10505
|
+
});
|
10506
|
+
return createVNode("div", {
|
10507
|
+
"class": rootClass
|
10508
|
+
}, [renderImg(), renderTitle(), renderDescription(), renderFooter()]);
|
10471
10509
|
};
|
10472
10510
|
}
|
10473
10511
|
});
|
@@ -13303,7 +13341,6 @@ const useRadio = () => {
|
|
13303
13341
|
props: props2,
|
13304
13342
|
emit
|
13305
13343
|
} = currentInstance;
|
13306
|
-
const formItem = useFormItem();
|
13307
13344
|
const radioGroup = inject(radioGroupKey, EMPTY_OBJ);
|
13308
13345
|
const isGroup = !isEmptyObj(radioGroup);
|
13309
13346
|
const isChecked = ref(false);
|
@@ -13333,7 +13370,6 @@ const useRadio = () => {
|
|
13333
13370
|
isChecked.value = value;
|
13334
13371
|
};
|
13335
13372
|
const handleChange = (event) => {
|
13336
|
-
var _a;
|
13337
13373
|
if (isDisabled.value) {
|
13338
13374
|
return;
|
13339
13375
|
}
|
@@ -13345,7 +13381,6 @@ const useRadio = () => {
|
|
13345
13381
|
if (isGroup) {
|
13346
13382
|
radioGroup.handleChange(currentInstance.proxy);
|
13347
13383
|
}
|
13348
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
13349
13384
|
nextTick(() => {
|
13350
13385
|
if ($targetInput.checked !== isChecked.value) {
|
13351
13386
|
$targetInput.checked = isChecked.value;
|
@@ -13487,13 +13522,15 @@ var RadioButton = defineComponent({
|
|
13487
13522
|
const radioGroupProps = {
|
13488
13523
|
name: PropTypes.string.def(""),
|
13489
13524
|
modelValue: PropTypes.oneOfType([String, Number, Boolean]),
|
13490
|
-
disabled: PropTypes.bool
|
13525
|
+
disabled: PropTypes.bool,
|
13526
|
+
withValidate: PropTypes.bool.def(true)
|
13491
13527
|
};
|
13492
13528
|
var RadioGroup = defineComponent({
|
13493
13529
|
name: "RadioGroup",
|
13494
13530
|
props: radioGroupProps,
|
13495
13531
|
emits: ["change", "update:modelValue"],
|
13496
13532
|
setup(props2, context) {
|
13533
|
+
const formItem = useFormItem();
|
13497
13534
|
const radioInstanceList = [];
|
13498
13535
|
const register = (radioContext) => {
|
13499
13536
|
radioInstanceList.push(radioContext);
|
@@ -13520,6 +13557,12 @@ var RadioGroup = defineComponent({
|
|
13520
13557
|
unregister,
|
13521
13558
|
handleChange
|
13522
13559
|
});
|
13560
|
+
watch(() => props2.modelValue, () => {
|
13561
|
+
var _a;
|
13562
|
+
if (props2.withValidate) {
|
13563
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
13564
|
+
}
|
13565
|
+
});
|
13523
13566
|
onMounted(() => {
|
13524
13567
|
if (props2.modelValue === "") {
|
13525
13568
|
return;
|
@@ -13607,7 +13650,8 @@ var Component$m = defineComponent({
|
|
13607
13650
|
props: {
|
13608
13651
|
modelValue: PropTypes.number.def(0),
|
13609
13652
|
size: PropTypes.size(),
|
13610
|
-
editable: PropTypes.bool.def(true)
|
13653
|
+
editable: PropTypes.bool.def(true),
|
13654
|
+
withValidate: PropTypes.bool.def(true)
|
13611
13655
|
},
|
13612
13656
|
emits: ["change", "update:modelValue"],
|
13613
13657
|
setup(props2, {
|
@@ -13616,12 +13660,10 @@ var Component$m = defineComponent({
|
|
13616
13660
|
const formItem = useFormItem();
|
13617
13661
|
const hoverRate = ref(0);
|
13618
13662
|
const chooseRate = (val) => {
|
13619
|
-
var _a;
|
13620
13663
|
if (!props2.editable)
|
13621
13664
|
return;
|
13622
13665
|
emit("update:modelValue", val);
|
13623
13666
|
emit("change", val);
|
13624
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
13625
13667
|
};
|
13626
13668
|
const changeHover = (val) => {
|
13627
13669
|
hoverRate.value = val;
|
@@ -13655,6 +13697,12 @@ var Component$m = defineComponent({
|
|
13655
13697
|
width: rateSize.width,
|
13656
13698
|
height: rateSize.height
|
13657
13699
|
};
|
13700
|
+
watch(() => props2.modelValue, () => {
|
13701
|
+
var _a;
|
13702
|
+
if (props2.withValidate) {
|
13703
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
13704
|
+
}
|
13705
|
+
});
|
13658
13706
|
return () => createVNode("p", {
|
13659
13707
|
"class": rateClass
|
13660
13708
|
}, [props2.editable ? createVNode(star, mergeProps({
|
@@ -14290,6 +14338,7 @@ var Component$j = defineComponent({
|
|
14290
14338
|
list: PropTypes.array.def([]),
|
14291
14339
|
idKey: PropTypes.string.def("value"),
|
14292
14340
|
displayKey: PropTypes.string.def("label"),
|
14341
|
+
withValidate: PropTypes.bool.def(true),
|
14293
14342
|
showSelectedIcon: PropTypes.bool.def(true)
|
14294
14343
|
},
|
14295
14344
|
emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur"],
|
@@ -14323,7 +14372,11 @@ var Component$j = defineComponent({
|
|
14323
14372
|
const selected = ref([]);
|
14324
14373
|
const activeOptionValue = ref();
|
14325
14374
|
watch(modelValue, () => {
|
14375
|
+
var _a;
|
14326
14376
|
handleSetSelectedData();
|
14377
|
+
if (props2.withValidate) {
|
14378
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
14379
|
+
}
|
14327
14380
|
}, {
|
14328
14381
|
deep: true
|
14329
14382
|
});
|
@@ -14418,12 +14471,10 @@ var Component$j = defineComponent({
|
|
14418
14471
|
searchLoading
|
14419
14472
|
} = useRemoteSearch(isRemoteSearch.value ? remoteMethod.value : defaultSearchMethod, initActiveOptionValue);
|
14420
14473
|
const emitChange = (val) => {
|
14421
|
-
var _a;
|
14422
14474
|
if (val === modelValue.value)
|
14423
14475
|
return;
|
14424
14476
|
emit("change", val, modelValue.value);
|
14425
14477
|
emit("update:modelValue", val, modelValue.value);
|
14426
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
14427
14478
|
};
|
14428
14479
|
const handleTogglePopover = () => {
|
14429
14480
|
if (isDisabled.value)
|
@@ -15082,7 +15133,8 @@ var Component$g = defineComponent({
|
|
15082
15133
|
trueValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]).def(true),
|
15083
15134
|
falseValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]).def(false),
|
15084
15135
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]).def(false),
|
15085
|
-
modelValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]).def(false)
|
15136
|
+
modelValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]).def(false),
|
15137
|
+
withValidate: PropTypes.bool.def(true)
|
15086
15138
|
},
|
15087
15139
|
emits: ["update:modelValue", "change"],
|
15088
15140
|
setup(props2, {
|
@@ -15113,7 +15165,11 @@ var Component$g = defineComponent({
|
|
15113
15165
|
return cls;
|
15114
15166
|
});
|
15115
15167
|
watch(() => props2.modelValue, () => {
|
15168
|
+
var _a;
|
15116
15169
|
isModelValue.value = true;
|
15170
|
+
if (props2.withValidate) {
|
15171
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
15172
|
+
}
|
15117
15173
|
});
|
15118
15174
|
watch(() => props2.value, () => {
|
15119
15175
|
isModelValue.value = false;
|
@@ -15127,10 +15183,8 @@ var Component$g = defineComponent({
|
|
15127
15183
|
const lastValue = isChecked.value ? props2.falseValue : props2.trueValue;
|
15128
15184
|
const lastChecked = !isChecked.value;
|
15129
15185
|
const trigger = () => {
|
15130
|
-
var _a;
|
15131
15186
|
emit("update:modelValue", lastValue);
|
15132
15187
|
emit("change", lastChecked);
|
15133
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
15134
15188
|
};
|
15135
15189
|
let goodJob = true;
|
15136
15190
|
if (typeof props2.beforeChange === "function") {
|
@@ -15472,7 +15526,7 @@ var EMITEVENTS = /* @__PURE__ */ ((EMITEVENTS2) => {
|
|
15472
15526
|
EMITEVENTS2["COLUMN_SORT"] = "columnSort";
|
15473
15527
|
EMITEVENTS2["COLUMN_FILTER"] = "columnFilter";
|
15474
15528
|
EMITEVENTS2["ROW_CLICK"] = "rowClick";
|
15475
|
-
EMITEVENTS2["ROW_DBL_CLICK"] = "
|
15529
|
+
EMITEVENTS2["ROW_DBL_CLICK"] = "rowDblclick";
|
15476
15530
|
EMITEVENTS2["ROW_EXPAND_CLICK"] = "rowExpand";
|
15477
15531
|
EMITEVENTS2["PAGE_LIMIT_CHANGE"] = "pageLimitChange";
|
15478
15532
|
EMITEVENTS2["PAGE_VALUE_CHANGE"] = "pageValueChange";
|
@@ -15486,7 +15540,7 @@ const EMIT_EVENT_TYPES = {
|
|
15486
15540
|
["columnFilter"]: EMPTY$1,
|
15487
15541
|
["columnSort"]: EMPTY$1,
|
15488
15542
|
["rowClick"]: EMPTY$1,
|
15489
|
-
["
|
15543
|
+
["rowDblclick"]: EMPTY$1,
|
15490
15544
|
["rowExpand"]: EMPTY$1,
|
15491
15545
|
["pageLimitChange"]: EMPTY$1,
|
15492
15546
|
["pageValueChange"]: EMPTY$1,
|
@@ -16155,19 +16209,13 @@ var BodyEmpty = defineComponent({
|
|
16155
16209
|
emptyText: PropTypes.string.def("\u6682\u65E0\u6570\u636E")
|
16156
16210
|
},
|
16157
16211
|
emits: ["change"],
|
16158
|
-
setup(props2
|
16159
|
-
slots
|
16160
|
-
}) {
|
16212
|
+
setup(props2) {
|
16161
16213
|
const type = computed(() => props2.list.length === 0 ? "empty" : "search-empty");
|
16162
16214
|
return () => createVNode(BkException, {
|
16163
16215
|
"scene": "part",
|
16164
|
-
"type": type.value
|
16165
|
-
|
16166
|
-
|
16167
|
-
var _a, _b;
|
16168
|
-
return [(_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : props2.emptyText];
|
16169
|
-
}
|
16170
|
-
});
|
16216
|
+
"type": type.value,
|
16217
|
+
"description": props2.emptyText
|
16218
|
+
}, null);
|
16171
16219
|
}
|
16172
16220
|
});
|
16173
16221
|
const resolvePropVal = (prop, key2, args) => {
|
@@ -16918,14 +16966,14 @@ class TableRender {
|
|
16918
16966
|
Object.assign(this.props.pagination, {
|
16919
16967
|
limit
|
16920
16968
|
});
|
16921
|
-
this.context.emit(
|
16969
|
+
this.context.emit(EMITEVENTS.PAGE_LIMIT_CHANGE, limit);
|
16922
16970
|
}
|
16923
16971
|
hanlePageChange(current) {
|
16924
16972
|
Object.assign(this.props.pagination, {
|
16925
16973
|
current,
|
16926
16974
|
value: current
|
16927
16975
|
});
|
16928
|
-
this.context.emit(
|
16976
|
+
this.context.emit(EMITEVENTS.PAGE_VALUE_CHANGE, current);
|
16929
16977
|
}
|
16930
16978
|
setColumnActive(index, single = false) {
|
16931
16979
|
const col = this.propActiveCols.find((item) => item.index === index);
|
@@ -16943,7 +16991,7 @@ class TableRender {
|
|
16943
16991
|
handleColumnHeadClick(index) {
|
16944
16992
|
if (this.props.columnPick !== "disabled") {
|
16945
16993
|
this.setColumnActive(index, this.props.columnPick === "single");
|
16946
|
-
this.context.emit(
|
16994
|
+
this.context.emit(EMITEVENTS.COLUMN_PICK, this.propActiveCols);
|
16947
16995
|
}
|
16948
16996
|
}
|
16949
16997
|
getSortCell(column, index) {
|
@@ -17098,10 +17146,10 @@ class TableRender {
|
|
17098
17146
|
}
|
17099
17147
|
}
|
17100
17148
|
handleRowClick(e, row, index, rows) {
|
17101
|
-
this.context.emit(
|
17149
|
+
this.context.emit(EMITEVENTS.ROW_CLICK, e, row, index, rows, this);
|
17102
17150
|
}
|
17103
17151
|
handleRowDblClick(e, row, index, rows) {
|
17104
|
-
this.context.emit(
|
17152
|
+
this.context.emit(EMITEVENTS.ROW_DBL_CLICK, e, row, index, rows, this);
|
17105
17153
|
}
|
17106
17154
|
getExpandCell(row) {
|
17107
17155
|
const isExpand = !!row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND];
|
@@ -17808,11 +17856,9 @@ function useFlatList(props2) {
|
|
17808
17856
|
displayKey,
|
17809
17857
|
list
|
17810
17858
|
} = toRefs(props2);
|
17811
|
-
const
|
17812
|
-
flatList: []
|
17813
|
-
});
|
17859
|
+
const flatList = reactive([]);
|
17814
17860
|
watch([useGroup, saveKey, displayKey, list], () => {
|
17815
|
-
|
17861
|
+
flatList.splice(0, flatList.length);
|
17816
17862
|
let formatList = list.value;
|
17817
17863
|
if (useGroup.value) {
|
17818
17864
|
formatList = list.value.reduce((formatList2, item) => {
|
@@ -17828,9 +17874,17 @@ function useFlatList(props2) {
|
|
17828
17874
|
return formatList2.concat(children);
|
17829
17875
|
}, []);
|
17830
17876
|
}
|
17831
|
-
|
17877
|
+
appendToTargetList(formatList);
|
17832
17878
|
}, { immediate: true, deep: true });
|
17833
|
-
|
17879
|
+
function appendToTargetList(targetList) {
|
17880
|
+
const QUANTUM = 3e4;
|
17881
|
+
const len = targetList.length;
|
17882
|
+
for (let i2 = 0; i2 < len; i2 += QUANTUM) {
|
17883
|
+
const appendList = targetList.slice(i2, Math.min(i2 + QUANTUM, len));
|
17884
|
+
flatList.push(...appendList);
|
17885
|
+
}
|
17886
|
+
}
|
17887
|
+
return flatList;
|
17834
17888
|
}
|
17835
17889
|
const getCharLength = (str) => {
|
17836
17890
|
const len = str.length;
|
@@ -17917,6 +17971,10 @@ const tagProps = () => ({
|
|
17917
17971
|
pasteFn: {
|
17918
17972
|
type: Function,
|
17919
17973
|
default: null
|
17974
|
+
},
|
17975
|
+
withValidate: {
|
17976
|
+
type: Boolean,
|
17977
|
+
default: true
|
17920
17978
|
}
|
17921
17979
|
});
|
17922
17980
|
var TagRender = defineComponent({
|
@@ -17992,7 +18050,13 @@ var Component$c = defineComponent({
|
|
17992
18050
|
disabled: props2.disabled
|
17993
18051
|
}));
|
17994
18052
|
watch([() => [...props2.modelValue], () => [...props2.list]], () => {
|
17995
|
-
|
18053
|
+
var _a;
|
18054
|
+
nextTick(() => {
|
18055
|
+
initData();
|
18056
|
+
});
|
18057
|
+
if (props2.withValidate) {
|
18058
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
18059
|
+
}
|
17996
18060
|
});
|
17997
18061
|
watch(curInputValue, lodash.exports.debounce(() => {
|
17998
18062
|
const hasShowCount = pageState.curPageList.length !== 0;
|
@@ -18286,11 +18350,9 @@ var Component$c = defineComponent({
|
|
18286
18350
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
18287
18351
|
};
|
18288
18352
|
const handleChange = (type, data2) => {
|
18289
|
-
var _a;
|
18290
18353
|
emit("change", tagList.value);
|
18291
18354
|
emit(type, data2);
|
18292
18355
|
emit("update:modelValue", tagList.value);
|
18293
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
18294
18356
|
};
|
18295
18357
|
const handleClear = (e) => {
|
18296
18358
|
e.stopPropagation();
|
@@ -23453,7 +23515,11 @@ const datePickerProps = {
|
|
23453
23515
|
return ["simplicity", "normal"].indexOf(v2) > -1;
|
23454
23516
|
}
|
23455
23517
|
},
|
23456
|
-
disableDate: Function
|
23518
|
+
disableDate: Function,
|
23519
|
+
withValidate: {
|
23520
|
+
type: Boolean,
|
23521
|
+
default: true
|
23522
|
+
}
|
23457
23523
|
};
|
23458
23524
|
var Component$9 = defineComponent({
|
23459
23525
|
name: "DatePicker",
|
@@ -23585,7 +23651,11 @@ var Component$9 = defineComponent({
|
|
23585
23651
|
});
|
23586
23652
|
const pickerDropdownRef = ref(null);
|
23587
23653
|
watch(() => props2.modelValue, (modelValue) => {
|
23654
|
+
var _a;
|
23588
23655
|
state.internalValue = parseDate(modelValue, props2.type, props2.multiple, props2.format);
|
23656
|
+
if (props2.withValidate) {
|
23657
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
23658
|
+
}
|
23589
23659
|
});
|
23590
23660
|
watch(() => props2.open, (open) => {
|
23591
23661
|
state.visible = open === true;
|
@@ -23659,17 +23729,15 @@ var Component$9 = defineComponent({
|
|
23659
23729
|
}
|
23660
23730
|
};
|
23661
23731
|
const handleInputMouseleave = (_e) => {
|
23662
|
-
console.log("handleInputMouseleave");
|
23663
23732
|
state.showClose = false;
|
23664
23733
|
};
|
23665
23734
|
const emitChange = (type) => {
|
23666
23735
|
nextTick(() => {
|
23667
|
-
var _a
|
23736
|
+
var _a;
|
23668
23737
|
emit("change", publicStringValue.value, type);
|
23669
23738
|
emit("update:modelValue", publicVModelValue.value);
|
23670
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
23671
23739
|
if (props2.type.indexOf("time") < 0) {
|
23672
|
-
(
|
23740
|
+
(_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.blur();
|
23673
23741
|
}
|
23674
23742
|
});
|
23675
23743
|
};
|
@@ -25580,30 +25648,12 @@ var Form = defineComponent({
|
|
25580
25648
|
}
|
25581
25649
|
});
|
25582
25650
|
var defaultValidator = {
|
25583
|
-
required: (value) =>
|
25584
|
-
|
25585
|
-
|
25586
|
-
},
|
25587
|
-
|
25588
|
-
|
25589
|
-
return value >= min2;
|
25590
|
-
},
|
25591
|
-
max: (value, max2) => {
|
25592
|
-
console.log("max");
|
25593
|
-
return max2 >= value;
|
25594
|
-
},
|
25595
|
-
email: (value) => {
|
25596
|
-
console.log("email");
|
25597
|
-
return /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value);
|
25598
|
-
},
|
25599
|
-
maxlength: (value, maxlength) => {
|
25600
|
-
console.log("maxlength");
|
25601
|
-
return value.length <= maxlength;
|
25602
|
-
},
|
25603
|
-
pattern: (value, pattern) => {
|
25604
|
-
console.log("pattern");
|
25605
|
-
return pattern.test(value);
|
25606
|
-
}
|
25651
|
+
required: (value) => value !== "" && value !== void 0 && value !== null,
|
25652
|
+
min: (value, min2) => value >= min2,
|
25653
|
+
max: (value, max2) => max2 >= value,
|
25654
|
+
email: (value) => /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value),
|
25655
|
+
maxlength: (value, maxlength) => value.length <= maxlength,
|
25656
|
+
pattern: (value, pattern) => pattern.test(value)
|
25607
25657
|
};
|
25608
25658
|
const formItemProps = {
|
25609
25659
|
label: PropTypes.string,
|
@@ -26092,9 +26142,10 @@ const BkDropdown = withInstallProps(Dropdown, { DropdownMenu, DropdownItem });
|
|
26092
26142
|
var CascaderPanel = defineComponent({
|
26093
26143
|
name: "CascaderPanel",
|
26094
26144
|
props: {
|
26095
|
-
store: PropTypes.object.def({})
|
26145
|
+
store: PropTypes.object.def({}),
|
26146
|
+
modelValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number).def([]), PropTypes.arrayOf(PropTypes.string).def([])])
|
26096
26147
|
},
|
26097
|
-
emits: ["
|
26148
|
+
emits: ["update:modelValue"],
|
26098
26149
|
setup(props2, {
|
26099
26150
|
emit
|
26100
26151
|
}) {
|
@@ -26106,24 +26157,25 @@ var CascaderPanel = defineComponent({
|
|
26106
26157
|
});
|
26107
26158
|
const activePath = ref([]);
|
26108
26159
|
const checkValue = ref([]);
|
26109
|
-
const
|
26110
|
-
if (
|
26111
|
-
|
26112
|
-
|
26113
|
-
checkValue.value = node.path;
|
26160
|
+
const updateCheckValue = (value) => {
|
26161
|
+
if (value.length === 0) {
|
26162
|
+
menus.list = menus.list.slice(0, 1);
|
26163
|
+
activePath.value = [];
|
26114
26164
|
}
|
26115
|
-
emit("input", checkValue.value);
|
26116
|
-
};
|
26117
|
-
const nodeClear = () => {
|
26118
|
-
emit("input", []);
|
26119
|
-
};
|
26120
|
-
const syncCheckedValue = (value) => {
|
26121
26165
|
value.forEach((id) => {
|
26122
26166
|
const node = store.getNodeById(id);
|
26123
26167
|
nodeExpandHandler(node);
|
26124
26168
|
});
|
26125
26169
|
checkValue.value = value;
|
26126
26170
|
};
|
26171
|
+
const nodeCheckHandler = (node) => {
|
26172
|
+
if (node.config.multiple) {
|
26173
|
+
checkValue.value = store.getCheckedNodes().map((node2) => node2.path);
|
26174
|
+
} else {
|
26175
|
+
checkValue.value = node.path;
|
26176
|
+
}
|
26177
|
+
emit("update:modelValue", checkValue.value);
|
26178
|
+
};
|
26127
26179
|
const nodeExpandHandler = (node) => {
|
26128
26180
|
var _a;
|
26129
26181
|
if (node.isDisabled)
|
@@ -26188,6 +26240,11 @@ var CascaderPanel = defineComponent({
|
|
26188
26240
|
}, null) : createVNode(angleRight, {
|
26189
26241
|
"class": "icon-angle-right"
|
26190
26242
|
}, null);
|
26243
|
+
watch(() => props2.modelValue, (value) => {
|
26244
|
+
updateCheckValue(value);
|
26245
|
+
}, {
|
26246
|
+
immediate: true
|
26247
|
+
});
|
26191
26248
|
return {
|
26192
26249
|
menus,
|
26193
26250
|
activePath,
|
@@ -26196,10 +26253,8 @@ var CascaderPanel = defineComponent({
|
|
26196
26253
|
nodeEvent,
|
26197
26254
|
isCheckedNode,
|
26198
26255
|
checkValue,
|
26199
|
-
nodeClear,
|
26200
26256
|
checkNode,
|
26201
|
-
iconRender
|
26202
|
-
syncCheckedValue
|
26257
|
+
iconRender
|
26203
26258
|
};
|
26204
26259
|
},
|
26205
26260
|
render() {
|
@@ -26359,13 +26414,18 @@ var Component$6 = defineComponent({
|
|
26359
26414
|
const panelShow = ref(false);
|
26360
26415
|
const selectedText = ref("");
|
26361
26416
|
const selectedTags = ref([]);
|
26362
|
-
const
|
26417
|
+
const {
|
26418
|
+
modelValue
|
26419
|
+
} = toRefs(props2);
|
26363
26420
|
const cascaderPanel = ref();
|
26364
|
-
|
26365
|
-
|
26421
|
+
const checkedValue = computed({
|
26422
|
+
get: () => modelValue.value,
|
26423
|
+
set: (value) => {
|
26424
|
+
emit("update:modelValue", value);
|
26425
|
+
}
|
26366
26426
|
});
|
26427
|
+
const popover3 = ref(null);
|
26367
26428
|
const updateValue = (val) => {
|
26368
|
-
cascaderPanel.value.syncCheckedValue(val);
|
26369
26429
|
if (multiple) {
|
26370
26430
|
selectedTags.value = store.getCheckedNodes().map((node) => ({
|
26371
26431
|
text: node.pathNames.join(separator2),
|
@@ -26380,17 +26440,13 @@ var Component$6 = defineComponent({
|
|
26380
26440
|
selectedText.value = node.pathNames.join(separator2);
|
26381
26441
|
}
|
26382
26442
|
};
|
26383
|
-
const inputChangeHandler = (val) => {
|
26384
|
-
updateValue(val);
|
26385
|
-
emit("update:modelValue", val);
|
26386
|
-
emit("change", val);
|
26387
|
-
};
|
26388
26443
|
const hidePopover = () => {
|
26389
26444
|
panelShow.value = false;
|
26390
26445
|
};
|
26391
26446
|
const handleClear = (e) => {
|
26392
26447
|
e.stopPropagation();
|
26393
26448
|
updateValue([]);
|
26449
|
+
emit("update:modelValue", []);
|
26394
26450
|
emit("clear", JSON.parse(JSON.stringify(props2.modelValue)));
|
26395
26451
|
};
|
26396
26452
|
const inputClickHandler = (e) => {
|
@@ -26404,6 +26460,15 @@ var Component$6 = defineComponent({
|
|
26404
26460
|
current.splice(index, 1);
|
26405
26461
|
updateValue(current);
|
26406
26462
|
};
|
26463
|
+
watch(() => props2.modelValue, (value) => {
|
26464
|
+
var _a;
|
26465
|
+
updateValue(value);
|
26466
|
+
(_a = popover3 == null ? void 0 : popover3.value) == null ? void 0 : _a.handlePopShow(false);
|
26467
|
+
emit("update:modelValue", value);
|
26468
|
+
emit("change", value);
|
26469
|
+
}, {
|
26470
|
+
immediate: true
|
26471
|
+
});
|
26407
26472
|
return {
|
26408
26473
|
store,
|
26409
26474
|
updateValue,
|
@@ -26415,10 +26480,10 @@ var Component$6 = defineComponent({
|
|
26415
26480
|
handleClear,
|
26416
26481
|
isHover,
|
26417
26482
|
setHover,
|
26483
|
+
popover: popover3,
|
26418
26484
|
cancelHover,
|
26419
26485
|
selectedTags,
|
26420
26486
|
removeTag,
|
26421
|
-
inputChangeHandler,
|
26422
26487
|
cascaderPanel
|
26423
26488
|
};
|
26424
26489
|
},
|
@@ -26452,7 +26517,8 @@ var Component$6 = defineComponent({
|
|
26452
26517
|
return createVNode("div", {
|
26453
26518
|
"class": ["bk-cascader", "bk-cascader-wrapper", this.extCls, {
|
26454
26519
|
"bk-is-show-panel": this.panelShow,
|
26455
|
-
"is-unselected": this.modelValue.length === 0
|
26520
|
+
"is-unselected": this.modelValue.length === 0,
|
26521
|
+
"is-hover": this.isHover
|
26456
26522
|
}],
|
26457
26523
|
"tabindex": "0",
|
26458
26524
|
"data-placeholder": this.placeholder,
|
@@ -26466,6 +26532,7 @@ var Component$6 = defineComponent({
|
|
26466
26532
|
"class": "bk-cascader-popover-wrapper",
|
26467
26533
|
"isShow": this.panelShow,
|
26468
26534
|
"onUpdate:isShow": ($event) => this.panelShow = $event,
|
26535
|
+
"ref": "popover",
|
26469
26536
|
"boundary": "body"
|
26470
26537
|
}, {
|
26471
26538
|
default: () => createVNode("div", {
|
@@ -26481,7 +26548,8 @@ var Component$6 = defineComponent({
|
|
26481
26548
|
}, [createVNode(CascaderPanel, {
|
26482
26549
|
"store": this.store,
|
26483
26550
|
"ref": "cascaderPanel",
|
26484
|
-
"
|
26551
|
+
"modelValue": this.checkedValue,
|
26552
|
+
"onUpdate:modelValue": ($event) => this.checkedValue = $event
|
26485
26553
|
}, null)])
|
26486
26554
|
})]);
|
26487
26555
|
}
|
@@ -27505,18 +27573,14 @@ var Component$2 = defineComponent({
|
|
27505
27573
|
}, {
|
27506
27574
|
content: "\u6B65\u9AA45"
|
27507
27575
|
}]);
|
27508
|
-
console.log("props.list", props2.list);
|
27509
27576
|
if ((_a = props2.list) == null ? void 0 : _a.length) {
|
27510
27577
|
defaultProcessList.value.splice(0, defaultProcessList.value.length, ...props2.list);
|
27511
27578
|
}
|
27512
27579
|
};
|
27513
27580
|
const jumpTo = async (index) => {
|
27514
|
-
console.log(index);
|
27515
27581
|
try {
|
27516
27582
|
if (props2.controllable && index !== props2.curProcess) {
|
27517
|
-
console.log(props2.curProcess);
|
27518
27583
|
emit("update:curProcess", index);
|
27519
|
-
console.log(props2.curProcess);
|
27520
27584
|
emit("click", index);
|
27521
27585
|
}
|
27522
27586
|
} catch (e) {
|
@@ -28847,7 +28911,7 @@ var useFileHandler = (props2, hooks) => {
|
|
28847
28911
|
};
|
28848
28912
|
};
|
28849
28913
|
var Component$1 = defineComponent({
|
28850
|
-
name: "
|
28914
|
+
name: "Upload",
|
28851
28915
|
props: uploadProps,
|
28852
28916
|
emits: ["on-exceed", "on-progress", "on-success", "on-error", "on-delete", "on-done"],
|
28853
28917
|
setup(props2, {
|
@@ -33386,7 +33450,8 @@ const colorPickerProps = {
|
|
33386
33450
|
size: PropTypes.size(["", "small", "large"]).def(""),
|
33387
33451
|
showValue: PropTypes.bool.def(true),
|
33388
33452
|
recommend: PropTypes.oneOfType([PropTypes.array.def(() => []), PropTypes.bool.def(true)]).def(true),
|
33389
|
-
extCls: PropTypes.string.def("")
|
33453
|
+
extCls: PropTypes.string.def(""),
|
33454
|
+
withValidate: PropTypes.bool.def(true)
|
33390
33455
|
};
|
33391
33456
|
const whiteColorObj = formatColor("#FFFFFF");
|
33392
33457
|
var Component = defineComponent({
|
@@ -33399,6 +33464,7 @@ var Component = defineComponent({
|
|
33399
33464
|
setup(props2, {
|
33400
33465
|
emit
|
33401
33466
|
}) {
|
33467
|
+
const formItem = useFormItem();
|
33402
33468
|
const showDropdown = ref(false);
|
33403
33469
|
const colorStr = ref("");
|
33404
33470
|
const colorObj = reactive(JSON.parse(JSON.stringify(whiteColorObj)));
|
@@ -33418,7 +33484,11 @@ var Component = defineComponent({
|
|
33418
33484
|
});
|
33419
33485
|
});
|
33420
33486
|
watch(() => props2.modelValue, () => {
|
33487
|
+
var _a;
|
33421
33488
|
changeColorFromProps();
|
33489
|
+
if (props2.withValidate) {
|
33490
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
33491
|
+
}
|
33422
33492
|
});
|
33423
33493
|
const handleTriggerKeydown = (e) => {
|
33424
33494
|
if (e.code === "Enter" || e.code === "NumpadEnter") {
|