@tagplus/components 5.3.8 → 5.3.11
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/node_modules/@element-plus/icons-vue/dist/index.mjs +20 -29
- package/dist/es/node_modules/@popperjs/core/dist/index.mjs +586 -0
- package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -5
- package/dist/es/node_modules/@vueuse/core/index.mjs +58 -103
- package/dist/es/node_modules/@vueuse/shared/index.mjs +16 -47
- package/dist/es/node_modules/element-plus/es/constants/size.mjs +6 -1
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +14 -39
- package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +5 -8
- package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +7 -12
- package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +7 -22
- package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +1 -4
- package/dist/es/node_modules/element-plus/es/hooks/use-size/index.mjs +3 -3
- package/dist/es/node_modules/element-plus/es/locale/lang/en.mjs +28 -31
- package/dist/es/node_modules/element-plus/es/utils/dom/aria.mjs +6 -14
- package/dist/es/node_modules/element-plus/es/utils/error.mjs +4 -3
- package/dist/es/node_modules/element-plus/es/utils/vue/props/runtime.mjs +19 -25
- package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +1 -1
- package/dist/es/src/components/Autosuggest/autosuggest-props.mjs +2 -2
- package/dist/es/src/components/Autosuggest/option.vue.mjs +2 -2
- package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +2 -2
- package/dist/es/src/components/Autosuggest/useSelect.mjs +1 -1
- package/dist/es/src/components/Inline/Inline.vue.mjs +1 -1
- package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +25 -9
- package/dist/es/src/components/InputNumber/input-number.mjs +10 -2
- package/dist/es/src/components/Loader/Loader.vue.mjs +1 -1
- package/dist/es/src/components/Money/Money.vue.mjs +1 -1
- package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +1 -1
- package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +1 -1
- package/dist/es/src/components/Percent/Percent.vue.mjs +3 -3
- package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +1 -1
- package/dist/es/src/components/Step/Step.vue.mjs +1 -1
- package/dist/es/src/components/Tip/Tip.vue.mjs +7 -9
- package/dist/es/src/utils/constants.mjs +2 -2
- package/dist/es/src/utils/use-derived-namespace.mjs +1 -1
- package/dist/es/src/utils/use-form-common-props.mjs +1 -1
- package/dist/es/src/utils/use-id.mjs +2 -2
- package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +19 -28
- package/dist/lib/node_modules/@popperjs/core/dist/index.js +586 -0
- package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -5
- package/dist/lib/node_modules/@vueuse/core/index.js +56 -100
- package/dist/lib/node_modules/@vueuse/shared/index.js +15 -46
- package/dist/lib/node_modules/element-plus/es/constants/size.js +6 -1
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +14 -39
- package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +5 -8
- package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +6 -11
- package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +7 -22
- package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +1 -4
- package/dist/lib/node_modules/element-plus/es/hooks/use-size/index.js +3 -3
- package/dist/lib/node_modules/element-plus/es/locale/lang/en.js +28 -31
- package/dist/lib/node_modules/element-plus/es/utils/dom/aria.js +6 -14
- package/dist/lib/node_modules/element-plus/es/utils/error.js +4 -3
- package/dist/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +19 -25
- package/dist/lib/src/components/Autosuggest/autosuggest-props.js +2 -2
- package/dist/lib/src/components/Autosuggest/option.vue.js +2 -2
- package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +1 -1
- package/dist/lib/src/components/Autosuggest/useSelect.js +1 -1
- package/dist/lib/src/components/InputNumber/InputNumber.vue.js +24 -8
- package/dist/lib/src/components/InputNumber/input-number.js +10 -2
- package/dist/lib/src/components/Percent/Percent.vue.js +2 -2
- package/dist/lib/src/components/Tip/Tip.vue.js +6 -8
- package/dist/lib/src/utils/constants.js +2 -2
- package/dist/lib/src/utils/use-derived-namespace.js +1 -1
- package/dist/lib/src/utils/use-form-common-props.js +1 -1
- package/dist/lib/src/utils/use-id.js +1 -1
- package/package.json +1 -1
- package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +0 -22
- package/dist/es/node_modules/element-plus/es/utils/types.mjs +0 -9
- package/dist/lib/node_modules/@popperjs/core/lib/enums.js +0 -22
- package/dist/lib/node_modules/element-plus/es/utils/types.js +0 -9
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const isFocusable = (element) => {
|
|
4
|
-
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null)
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
4
|
+
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) return true;
|
|
5
|
+
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") return false;
|
|
10
6
|
switch (element.nodeName) {
|
|
11
|
-
case "A":
|
|
7
|
+
case "A":
|
|
12
8
|
return !!element.href && element.rel !== "ignore";
|
|
13
|
-
|
|
14
|
-
case "INPUT": {
|
|
9
|
+
case "INPUT":
|
|
15
10
|
return !(element.type === "hidden" || element.type === "file");
|
|
16
|
-
}
|
|
17
11
|
case "BUTTON":
|
|
18
12
|
case "SELECT":
|
|
19
|
-
case "TEXTAREA":
|
|
13
|
+
case "TEXTAREA":
|
|
20
14
|
return true;
|
|
21
|
-
|
|
22
|
-
default: {
|
|
15
|
+
default:
|
|
23
16
|
return false;
|
|
24
|
-
}
|
|
25
17
|
}
|
|
26
18
|
};
|
|
27
19
|
exports.isFocusable = isFocusable;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const shared_esmBundler = require("../../../@vue/shared/dist/shared.esm-bundler.js");
|
|
4
|
-
|
|
4
|
+
require("lodash-es");
|
|
5
|
+
var ElementPlusError = class extends Error {
|
|
5
6
|
constructor(m) {
|
|
6
7
|
super(m);
|
|
7
8
|
this.name = "ElementPlusError";
|
|
8
9
|
}
|
|
9
|
-
}
|
|
10
|
+
};
|
|
10
11
|
function debugWarn(scope, message) {
|
|
11
|
-
|
|
12
|
+
{
|
|
12
13
|
const error = shared_esmBundler.isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
13
14
|
console.warn(error);
|
|
14
15
|
}
|
|
@@ -1,40 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
require("lodash-es");
|
|
5
3
|
const shared_esmBundler = require("../../../../../@vue/shared/dist/shared.esm-bundler.js");
|
|
4
|
+
require("lodash-es");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
const epPropKey = "__epPropKey";
|
|
7
7
|
const isEpProp = (val) => shared_esmBundler.isObject(val) && !!val[epPropKey];
|
|
8
8
|
const buildProp = (prop, key) => {
|
|
9
|
-
if (!shared_esmBundler.isObject(prop) || isEpProp(prop))
|
|
10
|
-
return prop;
|
|
9
|
+
if (!shared_esmBundler.isObject(prop) || isEpProp(prop)) return prop;
|
|
11
10
|
const { values, required, default: defaultValue, type, validator } = prop;
|
|
12
|
-
const _validator = values || validator ? (val) => {
|
|
13
|
-
let valid = false;
|
|
14
|
-
let allowedValues = [];
|
|
15
|
-
if (values) {
|
|
16
|
-
allowedValues = Array.from(values);
|
|
17
|
-
if (shared_esmBundler.hasOwn(prop, "default")) {
|
|
18
|
-
allowedValues.push(defaultValue);
|
|
19
|
-
}
|
|
20
|
-
valid || (valid = allowedValues.includes(val));
|
|
21
|
-
}
|
|
22
|
-
if (validator)
|
|
23
|
-
valid || (valid = validator(val));
|
|
24
|
-
if (!valid && allowedValues.length > 0) {
|
|
25
|
-
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
26
|
-
vue.warn(`Invalid prop: validation failed${""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
27
|
-
}
|
|
28
|
-
return valid;
|
|
29
|
-
} : void 0;
|
|
30
11
|
const epProp = {
|
|
31
12
|
type,
|
|
32
13
|
required: !!required,
|
|
33
|
-
validator:
|
|
14
|
+
validator: values || validator ? (val) => {
|
|
15
|
+
let valid = false;
|
|
16
|
+
let allowedValues = [];
|
|
17
|
+
if (values) {
|
|
18
|
+
allowedValues = Array.from(values);
|
|
19
|
+
if (shared_esmBundler.hasOwn(prop, "default")) allowedValues.push(defaultValue);
|
|
20
|
+
valid ||= allowedValues.includes(val);
|
|
21
|
+
}
|
|
22
|
+
if (validator) valid ||= validator(val);
|
|
23
|
+
if (!valid && allowedValues.length > 0) {
|
|
24
|
+
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
25
|
+
vue.warn(`Invalid prop: validation failed${""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
26
|
+
}
|
|
27
|
+
return valid;
|
|
28
|
+
} : void 0,
|
|
34
29
|
[epPropKey]: true
|
|
35
30
|
};
|
|
36
|
-
if (shared_esmBundler.hasOwn(prop, "default"))
|
|
37
|
-
epProp.default = defaultValue;
|
|
31
|
+
if (shared_esmBundler.hasOwn(prop, "default")) epProp.default = defaultValue;
|
|
38
32
|
return epProp;
|
|
39
33
|
};
|
|
40
34
|
exports.buildProp = buildProp;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const index = require("../../../node_modules/@popperjs/core/dist/index.js");
|
|
4
4
|
const autosuggestProps = {
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
|
@@ -140,7 +140,7 @@ const autosuggestProps = {
|
|
|
140
140
|
*/
|
|
141
141
|
placement: {
|
|
142
142
|
type: String,
|
|
143
|
-
values:
|
|
143
|
+
values: index.placements,
|
|
144
144
|
default: "bottom-start"
|
|
145
145
|
},
|
|
146
146
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const useOption = require("./useOption.js");
|
|
4
|
-
const vue = require("vue");
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
4
|
const index = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
7
5
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-id/index.js");
|
|
6
|
+
const vue = require("vue");
|
|
7
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
8
|
const _sfc_main = vue.defineComponent({
|
|
9
9
|
name: "ElOption",
|
|
10
10
|
componentName: "ElOption",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index = require("../../../node_modules/@vueuse/core/index.js");
|
|
4
|
+
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
4
5
|
const vue = require("vue");
|
|
5
6
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
7
7
|
const _sfc_main = vue.defineComponent({
|
|
8
8
|
name: "ElSelectDropdown",
|
|
9
9
|
componentName: "ElSelectDropdown",
|
|
@@ -12,8 +12,8 @@ const useFormCommonProps = require("../../utils/use-form-common-props.js");
|
|
|
12
12
|
const useFormItem = require("../../utils/use-form-item.js");
|
|
13
13
|
const useInput = require("../../utils/use-input.js");
|
|
14
14
|
const index = require("../../../node_modules/element-plus/es/hooks/use-locale/index.js");
|
|
15
|
-
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-id/index.js");
|
|
16
15
|
const index$2 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
16
|
+
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-id/index.js");
|
|
17
17
|
const index$3 = require("../../../node_modules/element-plus/es/hooks/use-focus-controller/index.js");
|
|
18
18
|
const index$4 = require("../../../node_modules/@vueuse/shared/index.js");
|
|
19
19
|
const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
@@ -8,9 +8,9 @@ const types = require("../../utils/types.js");
|
|
|
8
8
|
const useFormCommonProps = require("../../utils/use-form-common-props.js");
|
|
9
9
|
const useFormItem = require("../../utils/use-form-item.js");
|
|
10
10
|
const elementPlus = require("element-plus");
|
|
11
|
-
const lodashEs = require("lodash-es");
|
|
12
11
|
const index = require("../../../node_modules/element-plus/es/hooks/use-locale/index.js");
|
|
13
12
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
13
|
+
const lodashEs = require("lodash-es");
|
|
14
14
|
const shared_esmBundler = require("../../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
15
15
|
const _hoisted_1 = ["aria-label"];
|
|
16
16
|
const _hoisted_2 = ["aria-label"];
|
|
@@ -61,6 +61,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
61
61
|
});
|
|
62
62
|
const inputNumberSize = useFormCommonProps.useFormSize();
|
|
63
63
|
const inputNumberDisabled = useFormCommonProps.useFormDisabled();
|
|
64
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
65
|
+
const toNumberValue = (value) => {
|
|
66
|
+
if (value === "") return null;
|
|
67
|
+
const normalizedValue = String(value).replace(",", ".");
|
|
68
|
+
const parsedValue = Number(normalizedValue);
|
|
69
|
+
return Number.isNaN(parsedValue) ? null : parsedValue;
|
|
70
|
+
};
|
|
64
71
|
const displayValue = vue.computed(() => {
|
|
65
72
|
if (data.userInput !== null) {
|
|
66
73
|
return data.userInput;
|
|
@@ -82,18 +89,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
82
89
|
const decimalChar = vm.$t("locale.number.decimal");
|
|
83
90
|
const thousandsChar = vm.$t("locale.number.thousands");
|
|
84
91
|
return (value) => {
|
|
85
|
-
|
|
86
|
-
const
|
|
87
|
-
|
|
92
|
+
if (value === null || value === void 0) return value;
|
|
93
|
+
const noLetters = String(value).replaceAll(/[a-zA-Z]/g, "");
|
|
94
|
+
if (!props.usarVirgula) {
|
|
95
|
+
return noLetters;
|
|
96
|
+
}
|
|
97
|
+
return noLetters.replace(".", decimalChar).replace(/\B(?=(\d{3})+(?!\d))/g, thousandsChar);
|
|
88
98
|
};
|
|
89
99
|
});
|
|
90
100
|
const inputParser = vue.computed(() => {
|
|
91
101
|
const decimalChar = vm.$t("locale.number.decimal");
|
|
92
102
|
const thousandsChar = vm.$t("locale.number.thousands");
|
|
93
103
|
return (value) => {
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
|
|
104
|
+
if (!value) return value;
|
|
105
|
+
const inputValue = String(value).replaceAll(/[a-zA-Z]/g, "");
|
|
106
|
+
if (props.usarVirgula) {
|
|
107
|
+
const thousandsRegex = new RegExp(escapeRegExp(thousandsChar), "g");
|
|
108
|
+
const withoutThousands = inputValue.replace(thousandsRegex, "");
|
|
109
|
+
return withoutThousands.replace(decimalChar, ".");
|
|
110
|
+
}
|
|
111
|
+
return inputValue.replaceAll(",", "");
|
|
97
112
|
};
|
|
98
113
|
});
|
|
99
114
|
const toPrecision = (num, pre) => {
|
|
@@ -186,8 +201,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
186
201
|
};
|
|
187
202
|
const handleInput = (value) => {
|
|
188
203
|
data.userInput = value;
|
|
189
|
-
const newVal =
|
|
204
|
+
const newVal = toNumberValue(value);
|
|
190
205
|
emit(INPUT_EVENT, newVal);
|
|
206
|
+
emit(CHANGE_EVENT, newVal, data.currentValue);
|
|
191
207
|
setCurrentValue(newVal, false);
|
|
192
208
|
};
|
|
193
209
|
const handleInputChange = (value) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index = require("../../utils/index.js");
|
|
4
|
+
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-size/index.js");
|
|
4
5
|
const lodashEs = require("lodash-es");
|
|
5
6
|
const runtime = require("../../utils/runtime.js");
|
|
6
|
-
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-size/index.js");
|
|
7
7
|
const types = require("../../utils/types.js");
|
|
8
8
|
const inputNumberProps = runtime.buildProps({
|
|
9
9
|
/**
|
|
@@ -115,10 +115,18 @@ const inputNumberProps = runtime.buildProps({
|
|
|
115
115
|
stringDefaultsZero: {
|
|
116
116
|
type: Boolean,
|
|
117
117
|
default: true
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
* @tagplus
|
|
121
|
+
* Permite usar virgula como separador decimal na digitacao
|
|
122
|
+
**/
|
|
123
|
+
usarVirgula: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: true
|
|
118
126
|
}
|
|
119
127
|
});
|
|
120
128
|
const inputNumberEmits = {
|
|
121
|
-
[index.CHANGE_EVENT]: (cur, prev) => prev
|
|
129
|
+
[index.CHANGE_EVENT]: (cur, prev) => (types.isNumber(cur) || lodashEs.isNil(cur) || cur === "") && (types.isNumber(prev) || lodashEs.isNil(prev) || prev === ""),
|
|
122
130
|
blur: (e) => e instanceof FocusEvent,
|
|
123
131
|
focus: (e) => e instanceof FocusEvent,
|
|
124
132
|
[index.INPUT_EVENT]: (val) => types.isNumber(val) || lodashEs.isNil(val),
|
|
@@ -60,14 +60,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
60
|
!_ctx.removePrepend ? {
|
|
61
61
|
name: "prepend",
|
|
62
62
|
fn: vue.withCtx(() => [
|
|
63
|
-
_cache[1] || (_cache[1] = vue.createTextVNode(" % "))
|
|
63
|
+
_cache[1] || (_cache[1] = vue.createTextVNode(" % ", -1))
|
|
64
64
|
]),
|
|
65
65
|
key: "0"
|
|
66
66
|
} : void 0,
|
|
67
67
|
_ctx.showAppend ? {
|
|
68
68
|
name: "append",
|
|
69
69
|
fn: vue.withCtx(() => [
|
|
70
|
-
_cache[2] || (_cache[2] = vue.createTextVNode(" % "))
|
|
70
|
+
_cache[2] || (_cache[2] = vue.createTextVNode(" % ", -1))
|
|
71
71
|
]),
|
|
72
72
|
key: "1"
|
|
73
73
|
} : void 0
|
|
@@ -72,11 +72,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
72
|
sm: 1,
|
|
73
73
|
class: "icone"
|
|
74
74
|
}, {
|
|
75
|
-
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
75
|
+
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
76
76
|
vue.createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
77
|
-
])),
|
|
78
|
-
_: 1
|
|
79
|
-
__: [2]
|
|
77
|
+
])]),
|
|
78
|
+
_: 1
|
|
80
79
|
}),
|
|
81
80
|
vue.createVNode(_component_el_col, {
|
|
82
81
|
xs: 21,
|
|
@@ -106,11 +105,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
105
|
}, {
|
|
107
106
|
default: vue.withCtx(() => [
|
|
108
107
|
vue.createVNode(_component_el_row, { justify: "start" }, {
|
|
109
|
-
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
108
|
+
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
110
109
|
vue.createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
111
|
-
])),
|
|
112
|
-
_: 1
|
|
113
|
-
__: [3]
|
|
110
|
+
])]),
|
|
111
|
+
_: 1
|
|
114
112
|
})
|
|
115
113
|
]),
|
|
116
114
|
_: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const formContextKey = Symbol("formContextKey");
|
|
4
|
-
const formItemContextKey = Symbol("formItemContextKey");
|
|
3
|
+
const formContextKey = /* @__PURE__ */ Symbol("formContextKey");
|
|
4
|
+
const formItemContextKey = /* @__PURE__ */ Symbol("formItemContextKey");
|
|
5
5
|
exports.formContextKey = formContextKey;
|
|
6
6
|
exports.formItemContextKey = formItemContextKey;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const defaultNamespace = "el";
|
|
5
|
-
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
5
|
+
const namespaceContextKey = /* @__PURE__ */ Symbol("namespaceContextKey");
|
|
6
6
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
7
7
|
const derivedNamespace = vue.getCurrentInstance() ? vue.inject(namespaceContextKey, vue.ref(defaultNamespace)) : vue.ref(defaultNamespace);
|
|
8
8
|
const namespace = vue.computed(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const constants = require("./constants.js");
|
|
4
|
-
const vue = require("vue");
|
|
5
4
|
const index = require("../../node_modules/element-plus/es/hooks/use-prop/index.js");
|
|
6
5
|
const index$1 = require("../../node_modules/element-plus/es/hooks/use-size/index.js");
|
|
6
|
+
const vue = require("vue");
|
|
7
7
|
const useFormSize = (fallback, ignore = {}) => {
|
|
8
8
|
const emptyRef = vue.ref(void 0);
|
|
9
9
|
const size = ignore.prop ? emptyRef : index.useProp("size");
|
|
@@ -8,7 +8,7 @@ const defaultIdInjection = {
|
|
|
8
8
|
prefix: Math.floor(Math.random() * 1e4),
|
|
9
9
|
current: 0
|
|
10
10
|
};
|
|
11
|
-
const ID_INJECTION_KEY = Symbol("elIdInjection");
|
|
11
|
+
const ID_INJECTION_KEY = /* @__PURE__ */ Symbol("elIdInjection");
|
|
12
12
|
const useIdInjection = () => {
|
|
13
13
|
return vue.getCurrentInstance() ? vue.inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var top = "top";
|
|
2
|
-
var bottom = "bottom";
|
|
3
|
-
var right = "right";
|
|
4
|
-
var left = "left";
|
|
5
|
-
var auto = "auto";
|
|
6
|
-
var basePlacements = [top, bottom, right, left];
|
|
7
|
-
var start = "start";
|
|
8
|
-
var end = "end";
|
|
9
|
-
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
10
|
-
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
11
|
-
}, []);
|
|
12
|
-
export {
|
|
13
|
-
auto,
|
|
14
|
-
basePlacements,
|
|
15
|
-
bottom,
|
|
16
|
-
end,
|
|
17
|
-
left,
|
|
18
|
-
placements,
|
|
19
|
-
right,
|
|
20
|
-
start,
|
|
21
|
-
top
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var top = "top";
|
|
4
|
-
var bottom = "bottom";
|
|
5
|
-
var right = "right";
|
|
6
|
-
var left = "left";
|
|
7
|
-
var auto = "auto";
|
|
8
|
-
var basePlacements = [top, bottom, right, left];
|
|
9
|
-
var start = "start";
|
|
10
|
-
var end = "end";
|
|
11
|
-
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
12
|
-
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
13
|
-
}, []);
|
|
14
|
-
exports.auto = auto;
|
|
15
|
-
exports.basePlacements = basePlacements;
|
|
16
|
-
exports.bottom = bottom;
|
|
17
|
-
exports.end = end;
|
|
18
|
-
exports.left = left;
|
|
19
|
-
exports.placements = placements;
|
|
20
|
-
exports.right = right;
|
|
21
|
-
exports.start = start;
|
|
22
|
-
exports.top = top;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("lodash-es");
|
|
4
|
-
const isElement = (e) => {
|
|
5
|
-
if (typeof Element === "undefined")
|
|
6
|
-
return false;
|
|
7
|
-
return e instanceof Element;
|
|
8
|
-
};
|
|
9
|
-
exports.isElement = isElement;
|