jcjy-components 0.1.5 → 0.1.7
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/README.md +12 -0
- package/dist/components/auth-gateway/ag-input.vue.d.ts +16 -1
- package/dist/components/auth-gateway/interface.d.ts +7 -0
- package/dist/index.es.js +1596 -1843
- package/dist/index.umd.cjs +1 -14
- package/dist/jcjy-components.css +2 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -77,6 +77,18 @@ import type { AuthGatewayConfig } from "jcjy-components";
|
|
|
77
77
|
</template>
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
`AuthGatewayConfig` 中与登录页展示相关的行为:
|
|
81
|
+
|
|
82
|
+
- `loginBackground` 传值时,组件按该图片渲染登录页背景;若同时传 `nb: "1"`,则不显示背景图。
|
|
83
|
+
- `loginBackground` 不传或传空字符串时,组件不再使用内置默认图,而是显示内置的侧边宣传文案区。
|
|
84
|
+
- `layout` 仍支持 `default`、`center`、`left`,用于控制认证区在不同布局下的位置。
|
|
85
|
+
|
|
86
|
+
普通账号登录默认展示“记住我”:
|
|
87
|
+
|
|
88
|
+
- 勾选后登录,组件会把账号和原始密码保存到浏览器 `localStorage`,下次进入登录页自动回填。
|
|
89
|
+
- 未勾选登录时,组件会清理已保存的账号和密码。
|
|
90
|
+
- 保存时会对账号和密码做基于 `charCodeAt` 的可逆字符编码混淆,避免在 `localStorage` 中直接显示明文;该方式不等同安全加密,不能抵御同源脚本读取或有代码访问权限的人还原。
|
|
91
|
+
|
|
80
92
|
### 主题工具
|
|
81
93
|
|
|
82
94
|
```ts
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
2
3
|
modelValue: string;
|
|
3
4
|
type?: "text" | "password";
|
|
4
5
|
id?: string;
|
|
5
6
|
placeholder?: string;
|
|
6
7
|
autocomplete?: string;
|
|
8
|
+
showPassword?: boolean;
|
|
7
9
|
};
|
|
8
|
-
declare
|
|
10
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
suffix?: (props: typeof __VLS_3) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
17
|
"update:modelValue": (value: string) => any;
|
|
10
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
19
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
@@ -14,6 +22,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
14
22
|
id: string;
|
|
15
23
|
placeholder: string;
|
|
16
24
|
autocomplete: string;
|
|
25
|
+
showPassword: boolean;
|
|
17
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
28
|
declare const _default: typeof __VLS_export;
|
|
19
29
|
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|