@jctrans-materials/comps-vue3 1.0.42-beta.3 → 1.0.42-beta.4
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.esm.js
CHANGED
|
@@ -11900,9 +11900,22 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11900
11900
|
return props.isEn ? "Set Password" : "设置密码";
|
|
11901
11901
|
});
|
|
11902
11902
|
const emit = __emit;
|
|
11903
|
+
const visibleTabs = computed(() => {
|
|
11904
|
+
var _a, _b, _c;
|
|
11905
|
+
return {
|
|
11906
|
+
password: props.showPasswordTab && ((_a = props.userAccount) == null ? void 0 : _a.hasPassword) !== false,
|
|
11907
|
+
email: !!((_b = props.userAccount) == null ? void 0 : _b.email),
|
|
11908
|
+
mobile: !!((_c = props.userAccount) == null ? void 0 : _c.mobile)
|
|
11909
|
+
};
|
|
11910
|
+
});
|
|
11903
11911
|
const currentVisible = ref(props.visible);
|
|
11904
|
-
const initialTab =
|
|
11905
|
-
|
|
11912
|
+
const initialTab = computed(() => {
|
|
11913
|
+
if (visibleTabs.value.password) return "password";
|
|
11914
|
+
if (visibleTabs.value.email) return "email";
|
|
11915
|
+
if (visibleTabs.value.mobile) return "mobile";
|
|
11916
|
+
return "email";
|
|
11917
|
+
});
|
|
11918
|
+
const activeTab = ref(initialTab.value);
|
|
11906
11919
|
const loading = ref(false);
|
|
11907
11920
|
const formRef = ref();
|
|
11908
11921
|
const form = reactive({
|
|
@@ -12002,7 +12015,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12002
12015
|
form.confirmPassword = "";
|
|
12003
12016
|
form.code = "";
|
|
12004
12017
|
codeVerifyUuid.value = "";
|
|
12005
|
-
activeTab.value = initialTab;
|
|
12018
|
+
activeTab.value = initialTab.value;
|
|
12006
12019
|
loading.value = false;
|
|
12007
12020
|
(_a = formRef.value) == null ? void 0 : _a.clearValidate();
|
|
12008
12021
|
}
|
|
@@ -12110,7 +12123,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12110
12123
|
createElementVNode("h1", null, toDisplayString(computedTitle.value), 1)
|
|
12111
12124
|
]),
|
|
12112
12125
|
createElementVNode("div", _hoisted_3$q, [
|
|
12113
|
-
|
|
12126
|
+
visibleTabs.value.password ? (openBlock(), createElementBlock("div", {
|
|
12114
12127
|
key: 0,
|
|
12115
12128
|
class: normalizeClass(["tab-item", { active: activeTab.value === "password" }]),
|
|
12116
12129
|
onClick: _cache[0] || (_cache[0] = ($event) => handleTabChange("password"))
|
|
@@ -12133,7 +12146,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12133
12146
|
], -1)),
|
|
12134
12147
|
createTextVNode(" " + toDisplayString(__props.isEn ? "Password Verify" : "密码验证"), 1)
|
|
12135
12148
|
], 2)) : createCommentVNode("", true),
|
|
12136
|
-
|
|
12149
|
+
visibleTabs.value.email ? (openBlock(), createElementBlock("div", {
|
|
12150
|
+
key: 1,
|
|
12137
12151
|
class: normalizeClass(["tab-item", { active: activeTab.value === "email" }]),
|
|
12138
12152
|
onClick: _cache[1] || (_cache[1] = ($event) => handleTabChange("email"))
|
|
12139
12153
|
}, [
|
|
@@ -12149,8 +12163,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12149
12163
|
})
|
|
12150
12164
|
], -1)),
|
|
12151
12165
|
createTextVNode(" " + toDisplayString(__props.isEn ? "Email Verify" : "邮箱验证"), 1)
|
|
12152
|
-
], 2),
|
|
12153
|
-
|
|
12166
|
+
], 2)) : createCommentVNode("", true),
|
|
12167
|
+
visibleTabs.value.mobile ? (openBlock(), createElementBlock("div", {
|
|
12168
|
+
key: 2,
|
|
12154
12169
|
class: normalizeClass(["tab-item", { active: activeTab.value === "mobile" }]),
|
|
12155
12170
|
onClick: _cache[2] || (_cache[2] = ($event) => handleTabChange("mobile"))
|
|
12156
12171
|
}, [
|
|
@@ -12166,7 +12181,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12166
12181
|
})
|
|
12167
12182
|
], -1)),
|
|
12168
12183
|
createTextVNode(" " + toDisplayString(__props.isEn ? "Mobile Verify" : "手机验证"), 1)
|
|
12169
|
-
], 2)
|
|
12184
|
+
], 2)) : createCommentVNode("", true)
|
|
12170
12185
|
]),
|
|
12171
12186
|
createVNode(unref(ElForm), {
|
|
12172
12187
|
ref_key: "formRef",
|
|
@@ -12321,7 +12336,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12321
12336
|
};
|
|
12322
12337
|
}
|
|
12323
12338
|
});
|
|
12324
|
-
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
12339
|
+
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-dbd901cf"]]);
|
|
12325
12340
|
const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12326
12341
|
__proto__: null,
|
|
12327
12342
|
default: index$5
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jctrans-materials/comps-vue3",
|
|
3
|
-
"version": "1.0.42-beta.
|
|
3
|
+
"version": "1.0.42-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"nanoid": "^5.1.6",
|
|
39
39
|
"qrcode": "^1.5.4",
|
|
40
40
|
"tailwindcss": "4.1.18",
|
|
41
|
-
"@jctrans-materials/shared": "1.0.42-beta.
|
|
41
|
+
"@jctrans-materials/shared": "1.0.42-beta.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tailwindcss/postcss": "4.1.18",
|