@wfrog/vc-ui 1.3.0 → 1.4.0
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/es/chunk/{CCmEeM7D.mjs → B3GxuXVE.mjs} +6 -6
- package/dist/es/chunk/BL8WhaLp.mjs +427 -0
- package/dist/es/chunk/{BiHWk71g.mjs → BPqrpkTb.mjs} +4 -4
- package/dist/es/chunk/{C_7t9blX.mjs → BZ1uhZQF.mjs} +1 -1
- package/dist/es/chunk/{-ga82G_B.mjs → BdVq9mV6.mjs} +1 -1
- package/dist/es/chunk/{DGGhWn1A.mjs → BfjuZmry.mjs} +6 -5
- package/dist/es/chunk/{BLLKi_0v.mjs → Bu3XHP55.mjs} +1 -1
- package/dist/es/chunk/{DEiqPcuO.mjs → BvNFaD5d.mjs} +3 -3
- package/dist/es/chunk/BxibBO68.mjs +5741 -0
- package/dist/es/chunk/{DO-mBaf5.mjs → By7FMB3I.mjs} +1 -43
- package/dist/es/chunk/{DATKTbFj.mjs → CGhekNBa.mjs} +5 -5
- package/dist/es/chunk/{plK2vnjp.mjs → CJ0afvkJ.mjs} +1 -1
- package/dist/es/chunk/{CtYp4FB7.mjs → CK5Bluh4.mjs} +2 -2
- package/dist/es/chunk/{Vv8g5_A1.mjs → CKZGL4_3.mjs} +9 -8
- package/dist/es/chunk/CNEMJL35.mjs +69 -0
- package/dist/es/chunk/{C9ldJ8Hh.mjs → CPCieLBG.mjs} +1 -1
- package/dist/es/chunk/{C50_dziC.mjs → CQz3lhyS.mjs} +2 -1
- package/dist/es/chunk/{Cekqdlxf.mjs → CbYM6R_O.mjs} +12 -77
- package/dist/es/chunk/{CQbpo0im.mjs → CboHfRXN.mjs} +5 -6
- package/dist/es/chunk/{BambM7zX.mjs → Cdh3HNZa.mjs} +2 -2
- package/dist/es/chunk/{aX4SRHmD.mjs → Cg-Krnly.mjs} +2 -1
- package/dist/es/chunk/{9qQNa4bM.mjs → Cjp0Czyu.mjs} +1 -1
- package/dist/es/chunk/Cmb_E8Ip.mjs +184 -0
- package/dist/es/chunk/{BIK5Djc_.mjs → Co77DVCw.mjs} +2 -2
- package/dist/es/chunk/CqTa_Vd-.mjs +375 -0
- package/dist/es/{components/dual-pane/dual-pane.mjs → chunk/CsjEhAYY.mjs} +11 -91
- package/dist/es/chunk/{BQyZW57B.mjs → CwXV7M2F.mjs} +3 -3
- package/dist/es/chunk/{b9dx0jdT.mjs → D1MHFKtN.mjs} +3 -3
- package/dist/es/chunk/{DskGUrkJ.mjs → D6m3vWpc.mjs} +2 -1
- package/dist/es/chunk/{4F1xxyju.mjs → D6nWUATi.mjs} +48 -2117
- package/dist/es/chunk/{C6bIuBQg.mjs → D7CQDxqy.mjs} +3 -3
- package/dist/es/chunk/{Dqk3gyUk.mjs → D9Lr0Bzb.mjs} +1 -374
- package/dist/es/chunk/{Xk5kfdyT.mjs → DAIuzoFs.mjs} +2 -1
- package/dist/es/chunk/{OVbHCQoq.mjs → DCS0eqqM.mjs} +3 -101
- package/dist/es/chunk/{BJTCqgn1.mjs → DDR6UjaC.mjs} +1 -1
- package/dist/es/chunk/{BKmk2ptO.mjs → DNsAO9iB.mjs} +2 -2
- package/dist/es/chunk/{-_x5oKYF.mjs → DQK0ezHm.mjs} +5 -4
- package/dist/es/chunk/{BQHHM_Gw.mjs → DQi1QPak.mjs} +30 -70
- package/dist/es/chunk/{BaqDgAvL.mjs → DSt2uDNE.mjs} +22 -434
- package/dist/es/chunk/DSw4GnC6.mjs +44 -0
- package/dist/es/chunk/DTbnchOm.mjs +94 -0
- package/dist/es/chunk/DViraU6I.mjs +45 -0
- package/dist/es/chunk/{C540ZOUa.mjs → DX84QR5M.mjs} +10 -9
- package/dist/es/chunk/DYKOYbzT.mjs +2003 -0
- package/dist/es/chunk/{D1PKXAql.mjs → D_F7nIja.mjs} +3 -4
- package/dist/es/chunk/{DcTh6n4x.mjs → D_Mvdscy.mjs} +5 -4
- package/dist/es/chunk/DhGOsWxx.mjs +6 -0
- package/dist/es/chunk/{DFxeI_lP.mjs → DhGcJR5p.mjs} +6 -6
- package/dist/es/chunk/DxxbB5jY.mjs +34 -0
- package/dist/es/chunk/EMeQxUfH.mjs +49 -0
- package/dist/es/chunk/{eN6VJ63C.mjs → F2ph6lWu.mjs} +9 -8
- package/dist/es/chunk/{Dn-BFXcJ.mjs → dN0VcQc2.mjs} +1 -1
- package/dist/es/chunk/{DTpr71Gd.mjs → e5i7OJY-.mjs} +4 -4
- package/dist/es/chunk/fueZ9sVu.mjs +890 -0
- package/dist/es/chunk/{CV2NA_2e.mjs → ipA7n6-J.mjs} +1 -1
- package/dist/es/chunk/{Dw-yyl2m.mjs → q2jRgbir.mjs} +2 -2
- package/dist/es/chunk/{C72pWnuz.mjs → w7VqVeWU.mjs} +5 -4
- package/dist/es/chunk/{DWcIzeMM.mjs → ytiKcA3H.mjs} +108 -10
- package/dist/es/chunk/{DFHjl3eL.mjs → yuIXvUxc.mjs} +1 -1
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.d.ts +2 -1
- package/dist/es/components/button/button.mjs +68 -17
- package/dist/es/components/button/button.vue.d.ts +4 -1
- package/dist/es/components/choice/choice.mjs +3 -2
- package/dist/es/components/color-switcher/color-switcher.d.ts +15 -0
- package/dist/es/components/color-switcher/color-switcher.mjs +1215 -0
- package/dist/es/components/color-switcher/color-switcher.vue.d.ts +122 -0
- package/dist/es/components/color-switcher/index.css +5 -0
- package/dist/es/components/color-switcher/index.d.ts +4 -0
- package/dist/es/components/color-switcher/index.mjs +6 -0
- package/dist/es/components/cropper/cropper.mjs +12 -11
- package/dist/es/components/cropper/cropper.vue.d.ts +2 -2
- package/dist/es/components/currency/currency.mjs +7 -7
- package/dist/es/components/dark-switcher/dark-switcher.d.ts +10 -0
- package/dist/es/components/dark-switcher/dark-switcher.mjs +87 -0
- package/dist/es/components/dark-switcher/dark-switcher.vue.d.ts +12 -0
- package/dist/es/components/dark-switcher/index.css +11 -0
- package/dist/es/components/dark-switcher/index.d.ts +4 -0
- package/dist/es/components/dark-switcher/index.mjs +6 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +21 -20
- package/dist/es/components/dialog/dialog.d.ts +1 -1
- package/dist/es/components/dialog/dialog.mjs +46 -61
- package/dist/es/components/dialog/dialog.vue.d.ts +1 -3
- package/dist/es/components/dialog/index.css +31 -32
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +12 -12
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -5
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -13
- package/dist/es/components/document.vue.d.ts +14 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +14 -14
- package/dist/es/components/drag-verify/index.css +11 -11
- package/dist/es/components/drawer/drawer.mjs +14 -14
- package/dist/es/components/drawer/index.css +16 -15
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/example-wrapper.vue.d.ts +19 -0
- package/dist/es/components/explorer/docs/data.d.ts +13 -0
- package/dist/es/components/explorer/explorer.d.ts +12 -0
- package/dist/es/components/explorer/explorer.mjs +64 -0
- package/dist/es/components/explorer/explorer.vue.d.ts +183 -0
- package/dist/es/components/explorer/explorer2.mjs +6 -0
- package/dist/es/components/explorer/index.css +14 -0
- package/dist/es/components/explorer/index.d.ts +4 -0
- package/dist/es/components/explorer/index.mjs +6 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.d.ts +23 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +2948 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1486 -0
- package/dist/es/components/explorer-column-table/index.css +49 -0
- package/dist/es/components/explorer-column-table/index.d.ts +4 -0
- package/dist/es/components/explorer-column-table/index.mjs +6 -0
- package/dist/es/components/explorer-filter/explorer-filter.d.ts +12 -0
- package/dist/es/components/explorer-filter/explorer-filter.mjs +81 -0
- package/dist/es/components/explorer-filter/explorer-filter.vue.d.ts +14 -0
- package/dist/es/components/explorer-filter/index.css +7 -0
- package/dist/es/components/explorer-filter/index.d.ts +4 -0
- package/dist/es/components/explorer-filter/index.mjs +6 -0
- package/dist/es/components/explorer-footer/explorer-footer.d.ts +5 -0
- package/dist/es/components/explorer-footer/explorer-footer.mjs +92 -0
- package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +21 -0
- package/dist/es/components/explorer-footer/index.css +7 -0
- package/dist/es/components/explorer-footer/index.d.ts +4 -0
- package/dist/es/components/explorer-footer/index.mjs +6 -0
- package/dist/es/components/explorer-list/explorer-list.d.ts +23 -0
- package/dist/es/components/explorer-list/explorer-list.mjs +157 -0
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +38 -0
- package/dist/es/components/explorer-list/index.css +47 -0
- package/dist/es/components/explorer-list/index.d.ts +4 -0
- package/dist/es/components/explorer-list/index.mjs +6 -0
- package/dist/es/components/explorer-panel/explorer-panel.d.ts +14 -0
- package/dist/es/components/explorer-panel/explorer-panel.mjs +77 -0
- package/dist/es/components/explorer-panel/explorer-panel.vue.d.ts +253 -0
- package/dist/es/components/explorer-panel/explorer-panel2.mjs +6 -0
- package/dist/es/components/explorer-panel/index.css +12 -0
- package/dist/es/components/explorer-panel/index.d.ts +4 -0
- package/dist/es/components/explorer-panel/index.mjs +6 -0
- package/dist/es/components/explorer-query/explorer-query.d.ts +11 -0
- package/dist/es/components/explorer-query/explorer-query.mjs +2376 -0
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +396 -0
- package/dist/es/components/explorer-query/index.css +36 -0
- package/dist/es/components/explorer-query/index.d.ts +4 -0
- package/dist/es/components/explorer-query/index.mjs +6 -0
- package/dist/es/components/explorer-table/explorer-table.d.ts +11 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +116 -0
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +25 -0
- package/dist/es/components/explorer-table/index.css +18 -0
- package/dist/es/components/explorer-table/index.d.ts +4 -0
- package/dist/es/components/explorer-table/index.mjs +6 -0
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +3028 -0
- package/dist/es/components/explorer-tools/explorer-tools.d.ts +35 -0
- package/dist/es/components/explorer-tools/explorer-tools.mjs +585 -0
- package/dist/es/components/explorer-tools/explorer-tools.vue.d.ts +43 -0
- package/dist/es/components/explorer-tools/index.css +60 -0
- package/dist/es/components/explorer-tools/index.d.ts +4 -0
- package/dist/es/components/explorer-tools/index.mjs +6 -0
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +22 -0
- package/dist/es/components/explorer-tree/explorer-tree.mjs +174 -0
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2055 -0
- package/dist/es/components/explorer-tree/index.css +55 -0
- package/dist/es/components/explorer-tree/index.d.ts +4 -0
- package/dist/es/components/explorer-tree/index.mjs +6 -0
- package/dist/es/components/icon/icon2.mjs +2 -2
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +242 -196
- package/dist/es/components/icon-picker/icon-picker.mjs +38 -921
- package/dist/es/components/icon-picker/index.css +31 -29
- package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/image/image.vue.d.ts +7 -7
- package/dist/es/components/input/index.css +4 -5
- package/dist/es/components/input/input.mjs +7 -7
- package/dist/es/components/input/input.vue.d.ts +3 -3
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/components/c.vue.d.ts +3 -3
- package/dist/es/components/pca-picker/index.css +4 -4
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -209
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +10 -10
- package/dist/es/components/screenfull/screenfull.mjs +4 -4
- package/dist/es/components/scrollbar/index.css +6 -5
- package/dist/es/components/scrollbar/scrollbar.d.ts +2 -0
- package/dist/es/components/scrollbar/scrollbar.mjs +17 -12
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +156 -134
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/index.css +11 -11
- package/dist/es/components/single-player/single-player.mjs +20 -19
- package/dist/es/components/splitter/index.d.ts +4 -0
- package/dist/es/components/splitter/index.mjs +6 -0
- package/dist/es/components/splitter/splitter.d.ts +4 -0
- package/dist/es/components/splitter/splitter.mjs +28 -0
- package/dist/es/components/{dual-pane/dual-pane.vue.d.ts → splitter/splitter.vue.d.ts} +3 -5
- package/dist/es/components/splitter-panel/index.css +5 -0
- package/dist/es/components/splitter-panel/index.d.ts +4 -0
- package/dist/es/components/splitter-panel/index.mjs +6 -0
- package/dist/es/components/splitter-panel/splitter-panel.d.ts +3 -0
- package/dist/es/components/splitter-panel/splitter-panel.mjs +49 -0
- package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +20 -0
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +12 -11
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -8
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +20 -11
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -10
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +10 -10
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +14 -1
- package/dist/es/index.mjs +69 -39
- package/dist/es/use/usePersistentModel/index.d.ts +4 -0
- package/dist/es/use/usePersistentModel/index.mjs +19 -0
- package/dist/global.d.ts +14 -1
- package/dist/index.css +450 -123
- package/package.json +4 -1
- package/dist/es/chunk/DVNTpOBR.mjs +0 -4
- package/dist/es/components/dual-pane/dual-pane.d.ts +0 -8
- package/dist/es/components/dual-pane/index.css +0 -8
- package/dist/es/components/dual-pane/index.d.ts +0 -4
- package/dist/es/components/dual-pane/index.mjs +0 -6
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { f as isArray } from './ytiKcA3H.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Casts `value` as an array if it's not one.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 4.4.0
|
|
9
|
+
* @category Lang
|
|
10
|
+
* @param {*} value The value to inspect.
|
|
11
|
+
* @returns {Array} Returns the cast array.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.castArray(1);
|
|
15
|
+
* // => [1]
|
|
16
|
+
*
|
|
17
|
+
* _.castArray({ 'a': 1 });
|
|
18
|
+
* // => [{ 'a': 1 }]
|
|
19
|
+
*
|
|
20
|
+
* _.castArray('abc');
|
|
21
|
+
* // => ['abc']
|
|
22
|
+
*
|
|
23
|
+
* _.castArray(null);
|
|
24
|
+
* // => [null]
|
|
25
|
+
*
|
|
26
|
+
* _.castArray(undefined);
|
|
27
|
+
* // => [undefined]
|
|
28
|
+
*
|
|
29
|
+
* _.castArray();
|
|
30
|
+
* // => []
|
|
31
|
+
*
|
|
32
|
+
* var array = [1, 2, 3];
|
|
33
|
+
* console.log(_.castArray(array) === array);
|
|
34
|
+
* // => true
|
|
35
|
+
*/
|
|
36
|
+
function castArray() {
|
|
37
|
+
if (!arguments.length) {
|
|
38
|
+
return [];
|
|
39
|
+
}
|
|
40
|
+
var value = arguments[0];
|
|
41
|
+
return isArray(value) ? value : [value];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { castArray as c };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, onUpdated, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, useAttrs } from 'vue';
|
|
2
|
+
import { b as buildProps, u as useNamespace } from './By7FMB3I.mjs';
|
|
3
|
+
import { c as componentSizes } from './CPCieLBG.mjs';
|
|
4
|
+
import { _ as _export_sfc, w as withInstall } from './dN0VcQc2.mjs';
|
|
5
|
+
import { c as useFormSize } from './BvNFaD5d.mjs';
|
|
6
|
+
import { c as isUndefined } from './DViraU6I.mjs';
|
|
7
|
+
|
|
8
|
+
const textProps = buildProps({
|
|
9
|
+
type: {
|
|
10
|
+
type: String,
|
|
11
|
+
values: ["primary", "success", "info", "warning", "danger", ""],
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
values: componentSizes,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
truncated: Boolean,
|
|
20
|
+
lineClamp: {
|
|
21
|
+
type: [String, Number]
|
|
22
|
+
},
|
|
23
|
+
tag: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "span"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const _sfc_main = defineComponent({
|
|
30
|
+
...{
|
|
31
|
+
name: "ElText"
|
|
32
|
+
},
|
|
33
|
+
__name: "text",
|
|
34
|
+
props: textProps,
|
|
35
|
+
setup(__props) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const textRef = ref();
|
|
38
|
+
const textSize = useFormSize();
|
|
39
|
+
const ns = useNamespace("text");
|
|
40
|
+
const textKls = computed(() => [
|
|
41
|
+
ns.b(),
|
|
42
|
+
ns.m(props.type),
|
|
43
|
+
ns.m(textSize.value),
|
|
44
|
+
ns.is("truncated", props.truncated),
|
|
45
|
+
ns.is("line-clamp", !isUndefined(props.lineClamp))
|
|
46
|
+
]);
|
|
47
|
+
const bindTitle = () => {
|
|
48
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
49
|
+
const inheritTitle = useAttrs().title;
|
|
50
|
+
if (inheritTitle)
|
|
51
|
+
return;
|
|
52
|
+
let shouldAddTitle = false;
|
|
53
|
+
const text = ((_a = textRef.value) == null ? void 0 : _a.textContent) || "";
|
|
54
|
+
if (props.truncated) {
|
|
55
|
+
const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
|
|
56
|
+
const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
|
|
57
|
+
if (width && scrollWidth && scrollWidth > width) {
|
|
58
|
+
shouldAddTitle = true;
|
|
59
|
+
}
|
|
60
|
+
} else if (!isUndefined(props.lineClamp)) {
|
|
61
|
+
const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
|
|
62
|
+
const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
|
|
63
|
+
if (height && scrollHeight && scrollHeight > height) {
|
|
64
|
+
shouldAddTitle = true;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (shouldAddTitle) {
|
|
68
|
+
(_f = textRef.value) == null ? void 0 : _f.setAttribute("title", text);
|
|
69
|
+
} else {
|
|
70
|
+
(_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
onMounted(bindTitle);
|
|
74
|
+
onUpdated(bindTitle);
|
|
75
|
+
return (_ctx, _cache) => {
|
|
76
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
77
|
+
ref_key: "textRef",
|
|
78
|
+
ref: textRef,
|
|
79
|
+
class: normalizeClass(textKls.value),
|
|
80
|
+
style: normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
|
|
81
|
+
}, {
|
|
82
|
+
default: withCtx(() => [
|
|
83
|
+
renderSlot(_ctx.$slots, "default")
|
|
84
|
+
]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 8, ["class", "style"]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
|
|
91
|
+
|
|
92
|
+
const ElText = withInstall(Text);
|
|
93
|
+
|
|
94
|
+
export { ElText as E };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { i as isString, c as isArray, j as isObject } from './By7FMB3I.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if `value` is `null` or `undefined`.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 4.0.0
|
|
9
|
+
* @category Lang
|
|
10
|
+
* @param {*} value The value to check.
|
|
11
|
+
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.isNil(null);
|
|
15
|
+
* // => true
|
|
16
|
+
*
|
|
17
|
+
* _.isNil(void 0);
|
|
18
|
+
* // => true
|
|
19
|
+
*
|
|
20
|
+
* _.isNil(NaN);
|
|
21
|
+
* // => false
|
|
22
|
+
*/
|
|
23
|
+
function isNil(value) {
|
|
24
|
+
return value == null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const isUndefined = (val) => val === void 0;
|
|
28
|
+
const isBoolean = (val) => typeof val === "boolean";
|
|
29
|
+
const isNumber = (val) => typeof val === "number";
|
|
30
|
+
const isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
|
|
31
|
+
const isElement = (e) => {
|
|
32
|
+
if (typeof Element === "undefined")
|
|
33
|
+
return false;
|
|
34
|
+
return e instanceof Element;
|
|
35
|
+
};
|
|
36
|
+
const isPropAbsent = (prop) => isNil(prop);
|
|
37
|
+
const isStringNumber = (val) => {
|
|
38
|
+
if (!isString(val)) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
return !Number.isNaN(Number(val));
|
|
42
|
+
};
|
|
43
|
+
const isWindow = (val) => val === window;
|
|
44
|
+
|
|
45
|
+
export { isEmpty as a, isNumber as b, isUndefined as c, isBoolean as d, isPropAbsent as e, isElement as f, isWindow as g, isStringNumber as h, isNil as i };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, watch, onMounted, onUpdated, createElementBlock, openBlock, withModifiers, normalizeClass, unref, withDirectives, createCommentVNode, createVNode, withKeys, renderSlot, withCtx, createBlock, createSlots } from 'vue';
|
|
2
|
-
import { E as ElInput } from './
|
|
3
|
-
import { E as ElIcon } from './
|
|
2
|
+
import { E as ElInput } from './CKZGL4_3.mjs';
|
|
3
|
+
import { E as ElIcon } from './D1MHFKtN.mjs';
|
|
4
4
|
import { ArrowDown, Minus, ArrowUp, Plus } from '@element-plus/icons-vue';
|
|
5
|
-
import {
|
|
6
|
-
import { u as useSizeProp } from './
|
|
7
|
-
import {
|
|
5
|
+
import { b as buildProps, d as definePropType, u as useNamespace, a as debugWarn, t as throwError, i as isString } from './By7FMB3I.mjs';
|
|
6
|
+
import { u as useSizeProp } from './CPCieLBG.mjs';
|
|
7
|
+
import { b as isNumber, i as isNil, c as isUndefined } from './DViraU6I.mjs';
|
|
8
|
+
import { u as useAriaProps } from './DCS0eqqM.mjs';
|
|
8
9
|
import { U as UPDATE_MODEL_EVENT, I as INPUT_EVENT, C as CHANGE_EVENT } from './Ct6q2FXg.mjs';
|
|
9
|
-
import { _ as _export_sfc, w as withInstall } from './
|
|
10
|
-
import { v as vRepeatClick } from './
|
|
10
|
+
import { _ as _export_sfc, w as withInstall } from './dN0VcQc2.mjs';
|
|
11
|
+
import { v as vRepeatClick } from './Cjp0Czyu.mjs';
|
|
11
12
|
import { g as getEventCode, a as getEventKey, E as EVENT_CODE } from './BTpNRPQW.mjs';
|
|
12
|
-
import { u as useLocale } from './
|
|
13
|
-
import { u as useFormItem, c as useFormSize,
|
|
13
|
+
import { u as useLocale } from './CJ0afvkJ.mjs';
|
|
14
|
+
import { u as useFormItem, c as useFormSize, a as useFormDisabled } from './BvNFaD5d.mjs';
|
|
14
15
|
|
|
15
16
|
const inputNumberProps = buildProps({
|
|
16
17
|
id: {
|