clickgo 3.15.3 → 3.15.5

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.15.3'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.5'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -38,6 +38,7 @@ class default_1 extends clickgo.form.AbstractForm {
38
38
  this.start = false;
39
39
  this.ym = '';
40
40
  this.hm = '';
41
+ this.lockhm = false;
41
42
  }
42
43
  settime() {
43
44
  this.ts = clickgo.tool.rand(1504304812000, 1704304812000);
@@ -45,5 +46,8 @@ class default_1 extends clickgo.form.AbstractForm {
45
46
  onChanged(e) {
46
47
  console.log('onChanged', e, JSON.stringify(e));
47
48
  }
49
+ onRange(e) {
50
+ console.log('onRange', e);
51
+ }
48
52
  }
49
53
  exports.default = default_1;
@@ -2,7 +2,7 @@
2
2
  <layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
3
3
  <label>Timestamp: {{ts}}, Time zone: {{tz}}</label>
4
4
  <label>yearmonth: {{ym}}, hourminute: {{hm}}</label>
5
- <datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="ym" v-model:hourminute="hm" :time="time" :zone="zone" :disabled="disabled" :plain="plain" :range="range" :start="start ? 1704067200_000 : undefined" @changed="onChanged" style="flex: 1;">
5
+ <datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="ym" v-model:hourminute="hm" :time="time" :zone="zone" :disabled="disabled" :plain="plain" :range="range" @range="onRange" :start="start ? 1704067200_000 : undefined" :lockhm="lockhm" @changed="onChanged" style="flex: 1;">
6
6
  <template v-if="bottom" v-slot="d">
7
7
  <layout style="flex: 1;" align-h="center">{{d.year}}</layout>
8
8
  </template>
@@ -26,6 +26,7 @@
26
26
  <button @click="ym = '200708'" style="flex: 1;">Set yearmonth</button>
27
27
  <button @click="hm = '220232'" style="flex: 1;">Set hourminute</button>
28
28
  <button @click="tz = 7.5" style="flex: 1;">Set tz</button>
29
+ <button @click="lockhm = !lockhm" style="flex: 1;">{{lockhm ? '' : '!'}}lockhm</button>
29
30
  </layout>
30
31
  </layout>
31
32
  </form>
@@ -118,6 +118,7 @@ class default_1 extends clickgo.form.AbstractForm {
118
118
  this.scroll = 'auto';
119
119
  this.virtual = false;
120
120
  this.check = false;
121
+ this.listDataEmpty = false;
121
122
  }
122
123
  get sizes() {
123
124
  const rtn = {};
@@ -52,11 +52,14 @@
52
52
  <label>Raw data:</label>
53
53
  <flow direction="v" style="border: solid 1px #b3b3b3; line-height: 1.5; height: 50px; padding: 5px;">{{listData}}</flow>
54
54
  <layout gutter="10" style="flex: 1; height: 0;">
55
- <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">
56
- <menulist>
57
- <menulist-item alt="I" @click="showIndex2">Show select</menulist-item>
58
- </menulist>
59
- </list>
55
+ <layout direction="v" gutter="10" style="flex: 2; width: 0;">
56
+ <list v-model="select2" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :data="listDataEmpty ? [] : listData" :check="check" @label="label2 = $event" style="flex: 1; height: 0;" :tree="tree" :async="async" :icon="icon" icon-default="../../../res/txt.svg" :virtual="virtual" @load="onSelectLoad" @add="onLAdd" @Remove="onLRemove">
57
+ <menulist>
58
+ <menulist-item alt="I" @click="showIndex2">Show select</menulist-item>
59
+ </menulist>
60
+ </list>
61
+ <button @click="listDataEmpty = !listDataEmpty">{{listDataEmpty ? '' : '!'}}empty</button>
62
+ </layout>
60
63
  <layout direction="v" gutter="10" style="flex: 1; width: 0;">
61
64
  <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" :disabledList="disabledList" style="flex: 1;">
62
65
  <template v-slot:row="data">
@@ -113,7 +113,8 @@ class default_1 extends clickgo.form.AbstractForm {
113
113
  this.editableData = {
114
114
  '0': ['1', '2', '3', { 'label': 'is gDa', 'value': 'gDa' }, '5'],
115
115
  '1': ['6', '7', '8', '9', '10', { 'label': 'But gDa', 'value': 'gDa' }],
116
- '2': ['11', '12', '13', '14', 'gDa', { 'label': 'Other', 'value': 'o' }]
116
+ '2': ['11', '12', '13', '14', 'gDa', { 'label': 'Other', 'value': 'o' }],
117
+ '3': []
117
118
  };
118
119
  this.disabledList = [];
119
120
  this.unavailableList = [];
@@ -1,4 +1,4 @@
1
- <form title="Select" width="400" height="600" min-width="300" min-height="400" padding="10">
1
+ <form title="Select" width="400" height="650" min-width="300" min-height="400" padding="10">
2
2
  <layout gutter="10" direction="v" style="flex: 1; width: 0;">
3
3
  <tab v-model="ntab" :tabs="['greatselect', 'select', 'levelselect']" style="flex: 1; height: 0;">
4
4
  <!-- greatselect -->
@@ -61,7 +61,7 @@
61
61
  <button @click="aemodel[0] = '4'">4</button>
62
62
  <button @click="aemodel[0] = '22'">22</button>
63
63
  <label>data</label>
64
- <select v-model="editableDataValue" :data="['0','1','2']" />
64
+ <select v-model="editableDataValue" :data="['0','1','2','3']" />
65
65
  </layout>
66
66
  <layout gutter="10">
67
67
  <button @click="icon = !icon" style="flex: 1;">{{icon ? '' : '!'}}icon</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.15.3';
27
+ const version = '3.15.5';
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.15.3';
16
+ const version = '3.15.5';
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/index.ts CHANGED
@@ -40,7 +40,7 @@ export function hasFrame(): boolean {
40
40
  export abstract class AbstractBoot {
41
41
 
42
42
  /** --- 当前是否是 debug 模式 --- */
43
- private _debug: boolean = false;
43
+ private readonly _debug: boolean = false;
44
44
 
45
45
  /** --- 判断当前是否是 debug 模式 --- */
46
46
  public isDebug(): boolean {
@@ -145,7 +145,9 @@ export abstract class AbstractBoot {
145
145
  }
146
146
 
147
147
  /** --- 窗体的 formHash 改变事件 --- */
148
- public onFormHashChange(taskId: number, formId: number, value: string, data: Record<string, any>): void | Promise<void>;
148
+ public onFormHashChange(
149
+ taskId: number, formId: number, value: string, data: Record<string, any>
150
+ ): void | Promise<void>;
149
151
  public onFormHashChange(): void {
150
152
  return;
151
153
  }
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.15.3",
3
+ "version": "3.15.5",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",