@csntgao/uni-base 0.1.0 → 0.1.1
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/package.json
CHANGED
|
@@ -787,13 +787,15 @@ export class UniplatUserLogin extends LitElement {
|
|
|
787
787
|
.security-icon::before {
|
|
788
788
|
position: absolute;
|
|
789
789
|
bottom: 8px;
|
|
790
|
-
left:
|
|
790
|
+
left: 50%;
|
|
791
|
+
box-sizing: border-box;
|
|
791
792
|
width: 8px;
|
|
792
793
|
height: 6px;
|
|
793
794
|
border: 1.3px solid currentcolor;
|
|
794
795
|
border-bottom: 0;
|
|
795
796
|
border-radius: 6px 6px 0 0;
|
|
796
797
|
content: '';
|
|
798
|
+
transform: translateX(-50%);
|
|
797
799
|
}
|
|
798
800
|
|
|
799
801
|
.tab:focus-visible,
|
|
@@ -86,6 +86,9 @@ describe('<uniplat-user-login>', () => {
|
|
|
86
86
|
expect(login.shadowRoot?.querySelector('.security-footer')?.textContent).toContain(
|
|
87
87
|
'登录凭证仅用于企业工作台认证,请勿向他人透露验证码',
|
|
88
88
|
)
|
|
89
|
+
expect(UniplatUserLogin.styles.cssText).toMatch(
|
|
90
|
+
/\.security-icon::before\s*\{[^}]*left:\s*50%;[^}]*box-sizing:\s*border-box;[^}]*transform:\s*translateX\(-50%\);/s,
|
|
91
|
+
)
|
|
89
92
|
expect(login.shadowRoot?.textContent).toContain('验证码登录')
|
|
90
93
|
expect(login.shadowRoot?.querySelectorAll('[role="tab"]')).toHaveLength(3)
|
|
91
94
|
expect(
|