ts-glitter 17.6.0 → 17.6.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/lowcode/Entry.js CHANGED
@@ -89,7 +89,7 @@ export class Entry {
89
89
  }
90
90
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
91
91
  console.log(`Entry-time:`, window.renderClock.stop());
92
- glitter.share.editerVersion = 'V_17.6.0';
92
+ glitter.share.editerVersion = 'V_17.6.1';
93
93
  glitter.share.start = new Date();
94
94
  const vm = {
95
95
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -90,7 +90,7 @@ export class Entry {
90
90
  }
91
91
  (window as any).renderClock = (window as any).renderClock ?? clockF();
92
92
  console.log(`Entry-time:`, (window as any).renderClock.stop());
93
- glitter.share.editerVersion = 'V_17.6.0';
93
+ glitter.share.editerVersion = 'V_17.6.1';
94
94
  glitter.share.start = new Date();
95
95
  const vm: {
96
96
  appConfig: any;
@@ -134,9 +134,17 @@ export class MarketShopee {
134
134
  ${gvc.bindView(() => {
135
135
  const id = gvc.glitter.getUUID();
136
136
  let loading = false;
137
+ let first = true;
138
+ function reload() {
139
+ gvc.notifyDataChange(id);
140
+ }
137
141
  return {
138
142
  bind: id,
139
- view: () => {
143
+ view: () => __awaiter(this, void 0, void 0, function* () {
144
+ if (first) {
145
+ loading = (yield ApiShopee.syncStatus()).response.result;
146
+ first = false;
147
+ }
140
148
  return [
141
149
  html `
142
150
  <div class="tx_700 d-flex flex-column">匯入蝦皮商品
@@ -262,6 +270,8 @@ export class MarketShopee {
262
270
  const endTime = Math.floor(new Date(endDate).getTime() / 1000);
263
271
  ApiShopee.getItemList(startTime, endTime, (response) => { });
264
272
  gvc.closeDialog();
273
+ loading = true;
274
+ reload();
265
275
  })}">確定
266
276
  </button>
267
277
  </div>
@@ -272,7 +282,7 @@ export class MarketShopee {
272
282
  </div>
273
283
  `
274
284
  ].join('');
275
- },
285
+ }),
276
286
  divCreate: {
277
287
  class: `d-flex flex-column`, style: 'gap:8px;'
278
288
  }, onCreate: () => {
@@ -143,9 +143,17 @@ export class MarketShopee {
143
143
  ${gvc.bindView(() => {
144
144
  const id = gvc.glitter.getUUID()
145
145
  let loading=false
146
+ let first=true
147
+ function reload(){
148
+ gvc.notifyDataChange(id)
149
+ }
146
150
  return {
147
151
  bind: id,
148
- view: () => {
152
+ view: async () => {
153
+ if(first){
154
+ loading=(await ApiShopee.syncStatus()).response.result;
155
+ first=false
156
+ }
149
157
  return [
150
158
  html`
151
159
  <div class="tx_700 d-flex flex-column">匯入蝦皮商品
@@ -273,7 +281,8 @@ export class MarketShopee {
273
281
  const endTime = Math.floor(new Date(endDate).getTime() / 1000);
274
282
  ApiShopee.getItemList(startTime, endTime, (response: any) => {})
275
283
  gvc.closeDialog()
276
-
284
+ loading=true
285
+ reload()
277
286
  })}">確定
278
287
  </button>
279
288
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "17.6.0",
3
+ "version": "17.6.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {