sykj 0.1.6 → 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/lib/focus.ts CHANGED
@@ -6,8 +6,6 @@ const globalKey = window.$sy.key;
6
6
  let st: any = null;
7
7
 
8
8
  document.addEventListener("focusin", (event) => {
9
- console.log(123);
10
-
11
9
  const target = event.target as HTMLElement;
12
10
  if (target?.tagName === "INPUT" || target?.tagName === "TEXTAREA") {
13
11
  if (!isEditableFormComponent(target)) return;
@@ -31,10 +29,7 @@ document.addEventListener("focusout", (event) => {
31
29
 
32
30
  // 是否展示输入法
33
31
  const isEditableFormComponent = (el: HTMLElement): boolean => {
34
- console.log(el.isContentEditable);
35
-
36
32
  const notType: Array<string> = ["checkbox", "radio"];
37
-
38
33
  if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement))
39
34
  return false; // 类型守卫
40
35
  if (el.readOnly || notType.includes(el.type)) {
package/lib/store.ts CHANGED
@@ -1,4 +1,4 @@
1
- window.globalThis.$sy = {
1
+ (window.globalThis as any).$sy = {
2
2
  key: {
3
3
  show_keyboard: false,
4
4
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sykj",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "rem adaptation🚀",
5
5
  "main": "lib/common.ts",
6
6
  "files": [