clickgo 3.11.23 → 3.11.24

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
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
28
28
  **index.html**
29
29
 
30
30
  ```html
31
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.23'}"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.24'}"></script>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -92,6 +92,7 @@ class default_1 extends clickgo.form.AbstractForm {
92
92
  this.icon = false;
93
93
  this.scroll = 'auto';
94
94
  this.virtual = false;
95
+ this.check = false;
95
96
  }
96
97
  get sizes() {
97
98
  const rtn = {};
@@ -1,4 +1,4 @@
1
- <form title="List" width="450" height="450" min-width="300" min-height="400" padding="10" direction="v">
1
+ <form title="List" width="500" height="650" min-width="300" min-height="400" padding="10" direction="v">
2
2
  <label>Greatlist: {{select}}, list: {{select2}}, label: {{label2}}</label>
3
3
  <tab v-model="ntab" :tabs="['greatlist', 'adaptation', 'beyond', 'list', 'object', 'async']" style="flex: 1; height: 0;">
4
4
  <!-- 默认 -->
@@ -51,12 +51,12 @@
51
51
  <label>Raw data:</label>
52
52
  <flow direction="v" style="border: solid 1px #b3b3b3; line-height: 1.5; height: 50px; padding: 5px;">{{listData}}</flow>
53
53
  <layout gutter="10" style="flex: 1; height: 0;">
54
- <list v-model="select2" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :data="listData" @label="label2 = $event" style="flex: 2; width: 0;" :tree="tree" :async="async" :icon="icon" icon-default="../../../res/txt.svg" :virtual="virtual" @load="onSelectLoad" @add="onLAdd" @Remove="onLRemove">
54
+ <list v-model="select2" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :data="listData" :check="check" @label="label2 = $event" style="flex: 2; width: 0;" :tree="tree" :async="async" :icon="icon" icon-default="../../../res/txt.svg" :virtual="virtual" @load="onSelectLoad" @add="onLAdd" @Remove="onLRemove">
55
55
  <menulist>
56
56
  <menulist-item alt="I" @click="showIndex2">Show select</menulist-item>
57
57
  </menulist>
58
58
  </list>
59
- <list :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :virtual="virtual" :data="listData2" style="flex: 1; width: 0;">
59
+ <list :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :virtual="virtual" :data="listData2" :check="check" style="flex: 1; width: 0;">
60
60
  <template v-slot:row="data">
61
61
  <layout gutter="10" align-v="center">
62
62
  <label style="flex: 1;">{{data.row.label}}</label>
@@ -106,6 +106,7 @@
106
106
  <button @click="disabled = !disabled">{{disabled ? '' : '!'}}disabled</button>
107
107
  <button @click="multi = !multi">{{multi ? '' : '!'}}multi</button>
108
108
  <button @click="ctrl = !ctrl">{{ctrl ? '' : '!'}}ctrl</button>
109
+ <button v-show="ntab === 'list'" @click="check = !check">{{check ? '' : '!'}}check</button>
109
110
  </layout>
110
111
  <layout class="ctr" gutter="10">
111
112
  <button @click="must = !must">{{must ? '' : '!'}}must</button>
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.11.23';
27
+ const version = '3.11.24';
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.11.23';
16
+ const version = '3.11.24';
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
@@ -140,9 +140,12 @@ function remove(key, taskId) {
140
140
  return true;
141
141
  }
142
142
  delete sizeso[key];
143
- if (!Object.keys(sizeso).length) {
143
+ if (Object.keys(sizeso).length) {
144
144
  localStorage.removeItem('clickgo-size-' + t.path);
145
145
  }
146
+ else {
147
+ localStorage.setItem('clickgo-size-' + t.path, JSON.stringify(sizeso));
148
+ }
146
149
  localStorage.removeItem('clickgo-item-' + t.path + '-' + key);
147
150
  return true;
148
151
  }
@@ -144,9 +144,12 @@ export function remove(key: string, taskId?: number): boolean {
144
144
  return true;
145
145
  }
146
146
  delete sizeso[key];
147
- if (!Object.keys(sizeso).length) {
147
+ if (Object.keys(sizeso).length) {
148
148
  localStorage.removeItem('clickgo-size-' + t.path);
149
149
  }
150
+ else {
151
+ localStorage.setItem('clickgo-size-' + t.path, JSON.stringify(sizeso));
152
+ }
150
153
  localStorage.removeItem('clickgo-item-' + t.path + '-' + key);
151
154
  return true;
152
155
  }
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.11.23",
3
+ "version": "3.11.24",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
@@ -20,10 +20,10 @@
20
20
  "devDependencies": {
21
21
  "@litert/eslint-plugin-rules": "^0.1.7",
22
22
  "@litert/loader": "^3.5.1",
23
- "@types/node": "^20.11.30",
24
- "electron": "^29.1.5",
23
+ "@types/node": "^20.12.5",
24
+ "electron": "^29.2.0",
25
25
  "jszip": "^3.10.1",
26
- "terser": "^5.29.2",
27
- "typescript": "^5.4.3"
26
+ "terser": "^5.30.3",
27
+ "typescript": "^5.4.4"
28
28
  }
29
29
  }
package/types/index.d.ts CHANGED
@@ -813,6 +813,30 @@ export interface ILevelselectLevelEvent {
813
813
  };
814
814
  }
815
815
 
816
+ // --- Checklist Control ---
817
+
818
+ export interface IChecklistRemoveEvent extends ICustomEvent {
819
+ 'detail': {
820
+ 'index': number;
821
+ 'value': string;
822
+ };
823
+ }
824
+
825
+ export interface IChecklistAddEvent extends ICustomEvent {
826
+ 'detail': {
827
+ 'index': number;
828
+ 'value': string;
829
+ };
830
+ }
831
+
832
+ export interface IChecklistItemclickedEvent {
833
+ 'detail': {
834
+ 'event': MouseEvent | TouchEvent;
835
+ 'value': string;
836
+ 'arrow': boolean;
837
+ };
838
+ }
839
+
816
840
  // --- List Control ---
817
841
 
818
842
  export interface IListRemoveEvent extends ICustomEvent {
@@ -940,6 +964,20 @@ export interface ITableSortEvent extends ICustomEvent {
940
964
  };
941
965
  }
942
966
 
967
+ // --- Tuieditor Control ---
968
+
969
+ export interface ITuieditorImguploadEvent {
970
+ 'detail': {
971
+ 'file': Blob;
972
+ 'callback': (url: string, opt?: {
973
+ 'alt'?: string;
974
+ 'width'?: number;
975
+ 'height'?: number;
976
+ 'align'?: string;
977
+ }) => void | Promise<void>;
978
+ };
979
+ }
980
+
943
981
  // -------------------------
944
982
  // ---------- vue ----------
945
983
  // -------------------------