clickgo 3.14.0 → 3.14.2

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 CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.14.0'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.14.2'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -61,8 +61,8 @@
61
61
  <template v-slot:pop>
62
62
  <menulist>
63
63
  <layout>
64
- <menulist-item alt="A" style="padding: 20px;">Box 1</menulist-item>
65
- <menulist-item alt="B" style="padding: 20px;">
64
+ <menulist-item alt="A">Box 1</menulist-item>
65
+ <menulist-item alt="B">
66
66
  <template v-slot>Box 2</template>
67
67
  <template v-slot:pop>
68
68
  <menulist>
package/dist/clickgo.js CHANGED
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
27
- const version = '3.14.0';
27
+ const version = '3.14.2';
28
28
  function getVersion() {
29
29
  return version;
30
30
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.14.0';
16
+ const version = '3.14.2';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/lib/form.js CHANGED
@@ -1817,15 +1817,16 @@ function hidePop(pop) {
1817
1817
  }
1818
1818
  else {
1819
1819
  if (popInfo.list[level]) {
1820
- popInfo.list[level].removeAttribute('data-cg-open');
1821
- popInfo.list[level].removeAttribute('data-cg-level');
1820
+ const opop = popInfo.list[level];
1821
+ opop.removeAttribute('data-cg-open');
1822
+ opop.removeAttribute('data-cg-level');
1822
1823
  clickgo.dom.unwatchSize(popInfo.list[level]);
1823
1824
  clickgo.dom.unwatchPosition(pop);
1824
1825
  clickgo.tool.sleep(334).then(() => {
1825
- if (popInfo.list[level].dataset.cgLevel !== undefined) {
1826
+ if (opop.dataset.cgLevel !== undefined) {
1826
1827
  return;
1827
1828
  }
1828
- popInfo.list[level].dataset.cgPopNone = '';
1829
+ opop.dataset.cgPopNone = '';
1829
1830
  }).catch(() => {
1830
1831
  });
1831
1832
  }
@@ -1868,7 +1869,7 @@ function doFocusAndPopEvent(e) {
1868
1869
  if (!item.tagName) {
1869
1870
  continue;
1870
1871
  }
1871
- if (item.dataset.cgPopOpen !== undefined) {
1872
+ if (item.dataset.cgLevel !== undefined && item.dataset.cgPop === undefined) {
1872
1873
  isCgPopOpen = item;
1873
1874
  continue;
1874
1875
  }
package/dist/lib/form.ts CHANGED
@@ -2285,7 +2285,7 @@ export function showPop(el: HTMLElement | types.IVue, pop: HTMLElement | types.I
2285
2285
  el.dataset.cgLevel = (popInfo.elList.length - 1).toString();
2286
2286
  return;
2287
2287
  }
2288
- // --- 准备显示 pop ---
2288
+ // --- 准备显示 pop ---
2289
2289
  pop.removeAttribute('data-cg-pop-none');
2290
2290
  popInfo.list.push(pop);
2291
2291
  popInfo.elList.push(el);
@@ -2381,15 +2381,17 @@ export function hidePop(pop?: HTMLElement | types.IVue): void {
2381
2381
  }
2382
2382
  else {
2383
2383
  if (popInfo.list[level]) {
2384
- popInfo.list[level].removeAttribute('data-cg-open');
2385
- popInfo.list[level].removeAttribute('data-cg-level');
2384
+ /** --- el 对应的 pop --- */
2385
+ const opop = popInfo.list[level];
2386
+ opop.removeAttribute('data-cg-open');
2387
+ opop.removeAttribute('data-cg-level');
2386
2388
  clickgo.dom.unwatchSize(popInfo.list[level]);
2387
2389
  clickgo.dom.unwatchPosition(pop);
2388
2390
  clickgo.tool.sleep(334).then(() => {
2389
- if (popInfo.list[level].dataset.cgLevel !== undefined) {
2391
+ if (opop.dataset.cgLevel !== undefined) {
2390
2392
  return;
2391
2393
  }
2392
- popInfo.list[level].dataset.cgPopNone = '';
2394
+ opop.dataset.cgPopNone = '';
2393
2395
  }).catch(() => {
2394
2396
  //
2395
2397
  });
@@ -2439,7 +2441,7 @@ export function doFocusAndPopEvent(e: MouseEvent | TouchEvent): void {
2439
2441
  if (!item.tagName) {
2440
2442
  continue;
2441
2443
  }
2442
- if (item.dataset.cgPopOpen !== undefined) {
2444
+ if (item.dataset.cgLevel !== undefined && item.dataset.cgPop === undefined) {
2443
2445
  isCgPopOpen = item;
2444
2446
  continue;
2445
2447
  }
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.14.0",
3
+ "version": "3.14.2",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",