@geelato/web-vue 2.59.0 → 2.59.2
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/LICENSE +21 -0
- package/dist/arco-vue.js +56 -12
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +61 -47
- package/dist/arco-vue.min.js.map +1 -1
- package/es/_components/icon-hover.d.ts +3 -3
- package/es/_components/input-label/input-label.d.ts +6 -6
- package/es/_components/picker/input-range.d.ts +8 -8
- package/es/_components/picker/input.d.ts +6 -6
- package/es/_components/select-view/select-view.d.ts +5 -5
- package/es/_components/virtual-list/virtual-list.d.ts +1 -1
- package/es/_components/virtual-list-v2/virtual-list.d.ts +3 -3
- package/es/_hooks/use-form-item.d.ts +2 -2
- package/es/_hooks/use-size.d.ts +3 -3
- package/es/alert/alert.d.ts +6 -6
- package/es/alert/index.d.ts +12 -12
- package/es/auto-complete/auto-complete.d.ts +5 -5
- package/es/auto-complete/index.d.ts +15 -15
- package/es/avatar/avatar.d.ts +1 -1
- package/es/avatar/index.d.ts +3 -3
- package/es/button/button-group.d.ts +6 -6
- package/es/button/button.d.ts +6 -6
- package/es/button/index.d.ts +15 -15
- package/es/card/card.d.ts +2 -2
- package/es/card/index.d.ts +3 -3
- package/es/carousel/carousel-indicator.d.ts +1 -1
- package/es/cascader/cascader-panel.d.ts +4 -4
- package/es/cascader/cascader.d.ts +33 -33
- package/es/cascader/index.d.ts +80 -80
- package/es/checkbox/checkbox-group.d.ts +1 -1
- package/es/checkbox/checkbox.d.ts +6 -6
- package/es/checkbox/index.d.ts +13 -13
- package/es/collapse/collapse-item.d.ts +3 -3
- package/es/collapse/index.d.ts +3 -3
- package/es/color-picker/color-picker.d.ts +3 -3
- package/es/color-picker/index.d.ts +6 -6
- package/es/config-provider/config-provider.d.ts +3 -3
- package/es/config-provider/index.d.ts +6 -6
- package/es/date-picker/index.d.ts +126 -126
- package/es/date-picker/panels/date/index.d.ts +24 -24
- package/es/date-picker/panels/footer.d.ts +15 -15
- package/es/date-picker/panels/shortcuts.d.ts +15 -15
- package/es/date-picker/panels/week/index.d.ts +24 -24
- package/es/date-picker/picker-panel.d.ts +78 -78
- package/es/date-picker/picker.d.ts +118 -118
- package/es/date-picker/range-picker-panel.d.ts +79 -79
- package/es/date-picker/range-picker.d.ts +126 -126
- package/es/descriptions/descriptions.d.ts +4 -4
- package/es/descriptions/index.d.ts +9 -9
- package/es/drawer/drawer.d.ts +32 -23
- package/es/drawer/drawer.js +7 -2
- package/es/drawer/index.d.ts +66 -51
- package/es/dropdown/dropdown-button.d.ts +48 -48
- package/es/dropdown/dropdown-panel.d.ts +3 -3
- package/es/dropdown/dropdown-submenu.d.ts +22 -22
- package/es/dropdown/dropdown.d.ts +22 -22
- package/es/dropdown/index.d.ts +118 -118
- package/es/form/form-item-label.d.ts +39 -39
- package/es/form/form-item.d.ts +43 -43
- package/es/form/form.d.ts +2 -2
- package/es/form/index.d.ts +46 -46
- package/es/grid/grid-row.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/image/preview-action.d.ts +39 -39
- package/es/image/preview-toolbar.d.ts +39 -39
- package/es/input/index.d.ts +22 -22
- package/es/input/input-password.d.ts +8 -8
- package/es/input/input-search.d.ts +2 -2
- package/es/input/input.d.ts +5 -5
- package/es/input-number/index.d.ts +27 -12
- package/es/input-number/input-number.d.ts +14 -5
- package/es/input-number/input-number.js +40 -8
- package/es/input-tag/index.d.ts +12 -12
- package/es/input-tag/input-tag.d.ts +5 -5
- package/es/list/index.d.ts +6 -6
- package/es/list/list.d.ts +3 -3
- package/es/mention/index.d.ts +15 -15
- package/es/mention/mention.d.ts +6 -6
- package/es/menu/item.d.ts +1 -1
- package/es/menu/sub-menu-pop.d.ts +16 -16
- package/es/message/message.d.ts +6 -6
- package/es/modal/index.d.ts +60 -45
- package/es/modal/modal.d.ts +30 -21
- package/es/modal/modal.js +5 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +4 -0
- package/es/notification/notification.d.ts +4 -4
- package/es/page-header/index.d.ts +6 -6
- package/es/page-header/page-header.d.ts +3 -3
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/page-jumper.d.ts +27 -12
- package/es/pagination/page-options.d.ts +82 -82
- package/es/pagination/pagination.d.ts +2 -2
- package/es/popconfirm/index.d.ts +69 -69
- package/es/popconfirm/popconfirm.d.ts +34 -34
- package/es/popover/index.d.ts +42 -42
- package/es/popover/popover.d.ts +21 -21
- package/es/progress/circle.d.ts +3 -3
- package/es/progress/index.d.ts +18 -18
- package/es/progress/line.d.ts +3 -3
- package/es/progress/progress.d.ts +9 -9
- package/es/radio/index.d.ts +13 -13
- package/es/radio/radio-group.d.ts +4 -4
- package/es/radio/radio.d.ts +4 -4
- package/es/rate/index.d.ts +3 -3
- package/es/rate/rate.d.ts +1 -1
- package/es/scrollbar/index.d.ts +3 -3
- package/es/scrollbar/scrollbar.d.ts +1 -1
- package/es/select/index.d.ts +82 -82
- package/es/select/option.d.ts +15 -15
- package/es/select/select-dropdown.d.ts +3 -3
- package/es/select/select.d.ts +30 -30
- package/es/slider/index.d.ts +138 -108
- package/es/slider/slider-button.d.ts +39 -39
- package/es/slider/slider-input.d.ts +27 -12
- package/es/slider/slider.d.ts +68 -53
- package/es/space/index.d.ts +6 -6
- package/es/space/space.d.ts +3 -3
- package/es/statistic/countdown.d.ts +1 -1
- package/es/statistic/index.d.ts +4 -4
- package/es/statistic/statistic.d.ts +1 -1
- package/es/steps/index.d.ts +9 -9
- package/es/steps/step.d.ts +3 -3
- package/es/steps/steps.d.ts +3 -3
- package/es/switch/index.d.ts +21 -21
- package/es/switch/switch.d.ts +12 -12
- package/es/table/index.d.ts +19 -19
- package/es/table/table-operation-td.d.ts +26 -26
- package/es/table/table-td.d.ts +1 -1
- package/es/table/table.d.ts +9 -9
- package/es/tabs/index.d.ts +6 -6
- package/es/tabs/tabs-nav.d.ts +1 -1
- package/es/tabs/tabs-tab.d.ts +4 -4
- package/es/tabs/tabs.d.ts +3 -3
- package/es/tag/index.d.ts +9 -9
- package/es/tag/tag.d.ts +5 -5
- package/es/textarea/index.d.ts +12 -12
- package/es/textarea/textarea.d.ts +5 -5
- package/es/time-picker/index.d.ts +184 -184
- package/es/time-picker/panel.d.ts +24 -24
- package/es/time-picker/range-panel.d.ts +24 -24
- package/es/time-picker/time-picker.d.ts +89 -89
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +2 -2
- package/es/tooltip/index.d.ts +39 -39
- package/es/tooltip/tooltip.d.ts +19 -19
- package/es/transfer/index.d.ts +93 -93
- package/es/transfer/transfer-view.d.ts +27 -27
- package/es/transfer/transfer.d.ts +45 -45
- package/es/tree/base-node.d.ts +13 -13
- package/es/tree/hooks/use-tree-data.d.ts +4 -4
- package/es/tree/index.d.ts +27 -27
- package/es/tree/transition-node-list.d.ts +13 -13
- package/es/tree/tree.d.ts +11 -11
- package/es/tree-select/index.d.ts +115 -115
- package/es/tree-select/panel.d.ts +27 -27
- package/es/tree-select/tree-select.d.ts +55 -55
- package/es/trigger/index.d.ts +15 -15
- package/es/trigger/trigger.d.ts +7 -7
- package/es/typography/base.d.ts +5 -5
- package/es/typography/edit-content.d.ts +67 -67
- package/es/typography/index.d.ts +3 -3
- package/es/typography/operations.d.ts +39 -39
- package/es/typography/title.d.ts +3 -3
- package/es/upload/index.d.ts +3 -3
- package/es/upload/upload.d.ts +1 -1
- package/es/verification-code/index.d.ts +6 -6
- package/es/verification-code/verification-code.d.ts +3 -3
- package/json/vetur-attributes.json +2273 -2261
- package/json/vetur-tags.json +875 -872
- package/json/web-types.json +4579 -4555
- package/lib/drawer/drawer.js +7 -2
- package/lib/input-number/input-number.js +40 -8
- package/lib/modal/modal.js +5 -2
- package/lib/modal/modal.vue_vue_type_script_lang.js +4 -0
- package/package.json +24 -25
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Bytedance, Inc. and its affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/arco-vue.js
CHANGED
|
@@ -16334,6 +16334,10 @@
|
|
|
16334
16334
|
parser: {
|
|
16335
16335
|
type: Function
|
|
16336
16336
|
},
|
|
16337
|
+
showGroupSeparator: {
|
|
16338
|
+
type: Boolean,
|
|
16339
|
+
default: false
|
|
16340
|
+
},
|
|
16337
16341
|
placeholder: String,
|
|
16338
16342
|
hideButton: {
|
|
16339
16343
|
type: Boolean,
|
|
@@ -16401,21 +16405,44 @@
|
|
|
16401
16405
|
}
|
|
16402
16406
|
return void 0;
|
|
16403
16407
|
});
|
|
16404
|
-
const
|
|
16408
|
+
const parseValue = (value) => {
|
|
16405
16409
|
var _a2, _b;
|
|
16410
|
+
const parsed = (_b = (_a2 = props.parser) == null ? void 0 : _a2.call(props, value)) != null ? _b : value.replace(/[,,]/g, "");
|
|
16411
|
+
return String(parsed).trim();
|
|
16412
|
+
};
|
|
16413
|
+
const formatGroupSeparator = (value) => {
|
|
16414
|
+
if (!value || /^(\.|-)$/.test(value)) {
|
|
16415
|
+
return value;
|
|
16416
|
+
}
|
|
16417
|
+
const negative = value[0] === "-";
|
|
16418
|
+
const normalized = negative ? value.slice(1) : value;
|
|
16419
|
+
const [intPart, decimalPart] = normalized.split(".");
|
|
16420
|
+
const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
16421
|
+
const hasDot = normalized.includes(".");
|
|
16422
|
+
const formatted = hasDot ? `${formattedInt}.${decimalPart != null ? decimalPart : ""}` : formattedInt;
|
|
16423
|
+
return negative ? `-${formatted}` : formatted;
|
|
16424
|
+
};
|
|
16425
|
+
const formatValue = (value) => {
|
|
16426
|
+
var _a2, _b;
|
|
16427
|
+
const formatted = (_b = (_a2 = props.formatter) == null ? void 0 : _a2.call(props, value)) != null ? _b : value;
|
|
16428
|
+
if (!props.formatter && props.showGroupSeparator) {
|
|
16429
|
+
return formatGroupSeparator(formatted);
|
|
16430
|
+
}
|
|
16431
|
+
return formatted;
|
|
16432
|
+
};
|
|
16433
|
+
const getStringValue = (number) => {
|
|
16406
16434
|
if (!isNumber$1(number)) {
|
|
16407
16435
|
return "";
|
|
16408
16436
|
}
|
|
16409
16437
|
const numString = mergedPrecision.value ? number.toFixed(mergedPrecision.value) : String(number);
|
|
16410
|
-
return (
|
|
16438
|
+
return formatValue(numString);
|
|
16411
16439
|
};
|
|
16412
16440
|
const _value = vue.ref(getStringValue((_a = props.modelValue) != null ? _a : props.defaultValue));
|
|
16413
16441
|
const valueNumber = vue.computed(() => {
|
|
16414
|
-
var _a2, _b;
|
|
16415
16442
|
if (!_value.value) {
|
|
16416
16443
|
return void 0;
|
|
16417
16444
|
}
|
|
16418
|
-
const number = Number((
|
|
16445
|
+
const number = Number(parseValue(_value.value));
|
|
16419
16446
|
return Number.isNaN(number) ? void 0 : number;
|
|
16420
16447
|
});
|
|
16421
16448
|
const isMin = vue.ref(isNumber$1(valueNumber.value) && valueNumber.value <= props.min);
|
|
@@ -16496,13 +16523,18 @@
|
|
|
16496
16523
|
}
|
|
16497
16524
|
};
|
|
16498
16525
|
const handleInput = (value, ev) => {
|
|
16499
|
-
var _a2, _b, _c, _d;
|
|
16500
16526
|
if (props.readOnly)
|
|
16501
16527
|
return;
|
|
16502
16528
|
value = value.trim().replace(/。/g, ".");
|
|
16503
|
-
|
|
16504
|
-
if (isNumber$1(Number(
|
|
16505
|
-
|
|
16529
|
+
const parsedValue = parseValue(value);
|
|
16530
|
+
if (isNumber$1(Number(parsedValue)) || /^(\.|-)$/.test(parsedValue)) {
|
|
16531
|
+
if (props.formatter || props.showGroupSeparator) {
|
|
16532
|
+
_value.value = formatValue(parsedValue);
|
|
16533
|
+
} else if (props.parser) {
|
|
16534
|
+
_value.value = parsedValue;
|
|
16535
|
+
} else {
|
|
16536
|
+
_value.value = value;
|
|
16537
|
+
}
|
|
16506
16538
|
updateNumberStatus(valueNumber.value);
|
|
16507
16539
|
emit("input", valueNumber.value, _value.value, ev);
|
|
16508
16540
|
if (props.modelEvent === "input") {
|
|
@@ -23478,6 +23510,10 @@
|
|
|
23478
23510
|
type: Boolean,
|
|
23479
23511
|
default: false
|
|
23480
23512
|
},
|
|
23513
|
+
hideOk: {
|
|
23514
|
+
type: Boolean,
|
|
23515
|
+
default: false
|
|
23516
|
+
},
|
|
23481
23517
|
fullscreen: {
|
|
23482
23518
|
type: Boolean,
|
|
23483
23519
|
default: false
|
|
@@ -23798,7 +23834,8 @@
|
|
|
23798
23834
|
]),
|
|
23799
23835
|
_: 1
|
|
23800
23836
|
}, 16, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
23801
|
-
vue.
|
|
23837
|
+
!_ctx.hideOk ? (vue.openBlock(), vue.createBlock(_component_arco_button, vue.mergeProps({
|
|
23838
|
+
key: 1,
|
|
23802
23839
|
type: "primary",
|
|
23803
23840
|
loading: _ctx.mergedOkLoading
|
|
23804
23841
|
}, _ctx.okButtonProps, { onClick: _ctx.handleOk }), {
|
|
@@ -23806,7 +23843,7 @@
|
|
|
23806
23843
|
vue.createTextVNode(vue.toDisplayString(_ctx.okText || _ctx.t("drawer.okText")), 1)
|
|
23807
23844
|
]),
|
|
23808
23845
|
_: 1
|
|
23809
|
-
}, 16, ["loading", "onClick"])
|
|
23846
|
+
}, 16, ["loading", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
23810
23847
|
])
|
|
23811
23848
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
23812
23849
|
], 6), [
|
|
@@ -32517,6 +32554,10 @@
|
|
|
32517
32554
|
type: Boolean,
|
|
32518
32555
|
default: false
|
|
32519
32556
|
},
|
|
32557
|
+
hideOk: {
|
|
32558
|
+
type: Boolean,
|
|
32559
|
+
default: false
|
|
32560
|
+
},
|
|
32520
32561
|
simple: {
|
|
32521
32562
|
type: Boolean,
|
|
32522
32563
|
default: (props) => {
|
|
@@ -33003,7 +33044,10 @@
|
|
|
33003
33044
|
]),
|
|
33004
33045
|
_: 1
|
|
33005
33046
|
}, 16, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
33006
|
-
vue.
|
|
33047
|
+
!_ctx.hideOk ? (vue.openBlock(), vue.createBlock(_component_arco_button, vue.mergeProps({
|
|
33048
|
+
key: 1,
|
|
33049
|
+
type: "primary"
|
|
33050
|
+
}, _ctx.okButtonProps, {
|
|
33007
33051
|
loading: _ctx.mergedOkLoading,
|
|
33008
33052
|
onClick: _ctx.handleOk
|
|
33009
33053
|
}), {
|
|
@@ -33011,7 +33055,7 @@
|
|
|
33011
33055
|
vue.createTextVNode(vue.toDisplayString(_ctx.okDisplayText), 1)
|
|
33012
33056
|
]),
|
|
33013
33057
|
_: 1
|
|
33014
|
-
}, 16, ["loading", "onClick"])
|
|
33058
|
+
}, 16, ["loading", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
33015
33059
|
])
|
|
33016
33060
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
33017
33061
|
], 6), [
|