clickgo 3.10.4 → 3.11.0
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 +9 -2
- package/dist/app/demo/config.json +1 -0
- package/dist/app/demo/form/control/alayout/alayout.xml +2 -2
- package/dist/app/demo/form/control/button/button.css +1 -1
- package/dist/app/demo/form/control/button/button.scss +2 -2
- package/dist/app/demo/form/control/check/check.xml +2 -2
- package/dist/app/demo/form/control/dialog/dialog.xml +8 -8
- package/dist/app/demo/form/control/file/file.xml +1 -1
- package/dist/app/demo/form/control/html/html.xml +3 -3
- package/dist/app/demo/form/control/layout/layout.xml +1 -1
- package/dist/app/demo/form/control/list/list.css +1 -1
- package/dist/app/demo/form/control/list/list.scss +1 -1
- package/dist/app/demo/form/control/list/list.xml +2 -2
- package/dist/app/demo/form/control/map/map.xml +10 -10
- package/dist/app/demo/form/control/panel/panel.js +1 -0
- package/dist/app/demo/form/control/panel/panel.xml +4 -1
- package/dist/app/demo/form/control/select/select.js +1 -0
- package/dist/app/demo/form/control/select/select.xml +9 -8
- package/dist/app/demo/form/control/svg/svg.xml +11 -11
- package/dist/app/demo/form/control/tab/tab.xml +9 -9
- package/dist/app/demo/form/control/tag/tag.xml +20 -0
- package/dist/app/demo/form/control/text/text.js +3 -0
- package/dist/app/demo/form/control/text/text.xml +8 -2
- package/dist/app/demo/form/event/task/task.xml +3 -3
- package/dist/app/demo/form/main.js +4 -0
- package/dist/app/demo/form/main.xml +1 -0
- package/dist/app/demo/form/method/core/core.js +3 -0
- package/dist/app/demo/form/method/core/core.xml +3 -1
- package/dist/app/demo/form/method/dom/dom.xml +14 -14
- package/dist/app/demo/form/method/fs/fs.xml +6 -6
- package/dist/app/demo/form/method/native/native.xml +5 -5
- package/dist/app/demo/form/method/task/task.xml +28 -28
- package/dist/app/demo/form/method/theme/theme.xml +7 -7
- package/dist/app/demo/form/method/tool/tool.xml +15 -15
- package/dist/app/demo/form/method/zip/zip.xml +2 -2
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/common.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/global.css +1 -1
- package/dist/lib/control.ts +1 -1
- package/dist/lib/core.js +3 -1
- package/dist/lib/core.ts +3 -0
- package/dist/lib/fs.js +1 -1
- package/dist/lib/fs.ts +1 -1
- package/dist/lib/task.js +1 -0
- package/dist/lib/task.ts +1 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +13 -0
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.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.1/dist/loader.min.js?path=index&npm={'clickgo':'3.11.0'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -148,4 +148,11 @@ This library is published under [Apache-2.0](./LICENSE) license.
|
|
|
148
148
|
#### Arteditor
|
|
149
149
|
|
|
150
150
|
[Bold SVG Vector](https://www.svgrepo.com/svg/501109/bold)
|
|
151
|
-
[Italic SVG Vector](https://www.svgrepo.com/svg/501238/italic)
|
|
151
|
+
[Italic SVG Vector](https://www.svgrepo.com/svg/501238/italic)
|
|
152
|
+
|
|
153
|
+
### **LICENSE:** CC Attribution License **AUTHOR:** Dazzle UI
|
|
154
|
+
|
|
155
|
+
#### Text
|
|
156
|
+
|
|
157
|
+
[Eye Slash Alt SVG](https://www.svgrepo.com/svg/532463/eye-slash-alt)
|
|
158
|
+
[Eye Alt SVG Vector ](https://www.svgrepo.com/svg/532492/eye-alt)
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<alayout-cell style="background:hsl(0,0%,80%);">
|
|
21
21
|
<label>1</label>
|
|
22
22
|
</alayout-cell>
|
|
23
|
-
<alayout-cell style="background:hsl(0,20%,80%);">
|
|
24
|
-
<label>2</label>
|
|
23
|
+
<alayout-cell align-v="center" align-h="center" style="background:hsl(0,20%,80%);">
|
|
24
|
+
<label>2</label><label>1</label>
|
|
25
25
|
</alayout-cell>
|
|
26
26
|
<alayout-cell style="background:hsl(0,40%,80%);">
|
|
27
27
|
<label>3</label>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.buttons button{flex:3
|
|
1
|
+
.buttons button{flex:3}.buttons select{flex:1}.tbuttons{padding:5px;background-color:rgba(255,255,255,.1)}.tbuttons button{margin-right:2px}img{width:16px;height:16px}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<check v-model="checked3" v-model:indeterminate="indeterminate3" :disabled="disabled" style="flex: 1;">check3</check>
|
|
11
11
|
<check v-model:indeterminate="indeterminate4" :disabled="disabled" @change="onChange" style="flex: 1;">check4 (not)</check>
|
|
12
12
|
</layout>
|
|
13
|
-
<button
|
|
14
|
-
<button
|
|
13
|
+
<button @click="indeterminate1=true;indeterminate2=true;indeterminate3=true;indeterminate4=true">Set indeterminate</button>
|
|
14
|
+
<button @click="disabled = !disabled">{{disabled ? 'Remove' : 'Set'}} disabled</button>
|
|
15
15
|
</layout>
|
|
16
16
|
</form>
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
<form title="Title" :min="false" :max="false" :resize="false" width="auto" height="auto" direction="v">
|
|
5
5
|
<dialog @select="btn = $event" :buttons="buttons" :direction="message === 'lines' ? 'v' : 'h'">
|
|
6
6
|
<template v-if="message === 'message'">Message</template>
|
|
7
|
-
<template v-else-if="message === 'buttons'"><button style="flex: 1;
|
|
7
|
+
<template v-else-if="message === 'buttons'"><button style="flex: 1;">Button1</button><button style="margin-left: 10px; flex: 1;">Button2</button></template>
|
|
8
8
|
<template v-else-if="message === 'lines'"><block v-for="i of 5">Line {{i}}.</block></template>
|
|
9
9
|
<template v-else>longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong</template>
|
|
10
10
|
</dialog>
|
|
11
11
|
</form>
|
|
12
12
|
</layout>
|
|
13
13
|
<layout gutter="10">
|
|
14
|
-
<button style="flex: 1;
|
|
15
|
-
<button style="flex: 1;
|
|
16
|
-
<button style="flex: 1;
|
|
14
|
+
<button style="flex: 1;" @click="buttons = ['A', 'B', 'C']">['A', 'B', 'C']</button>
|
|
15
|
+
<button style="flex: 1;" @click="buttons = ['Cancel', 'OK']">['Cancel', 'OK']</button>
|
|
16
|
+
<button style="flex: 1;" @click="buttons = ['OK']">['OK']</button>
|
|
17
17
|
</layout>
|
|
18
18
|
<layout gutter="10">
|
|
19
|
-
<button style="flex: 1;
|
|
20
|
-
<button style="flex: 1;
|
|
21
|
-
<button style="flex: 1;
|
|
22
|
-
<button style="flex: 1;
|
|
19
|
+
<button style="flex: 1;" @click="message = 'message'">Message</button>
|
|
20
|
+
<button style="flex: 1;" @click="message = 'long'">Long</button>
|
|
21
|
+
<button style="flex: 1;" @click="message = 'buttons'">Two buttons</button>
|
|
22
|
+
<button style="flex: 1;" @click="message = 'lines'">Multiple lines</button>
|
|
23
23
|
</layout>
|
|
24
24
|
<label>You click: {{btn}}.</label>
|
|
25
25
|
</layout>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<radio v-model="dir" value="true" style="flex: 1;">true</radio>
|
|
17
17
|
<radio v-model="dir" value="false" style="flex: 1;">false</radio>
|
|
18
18
|
</layout>
|
|
19
|
-
<button @click="select"
|
|
19
|
+
<button @click="select">
|
|
20
20
|
Select
|
|
21
21
|
<file ref="file" @change="change" :accept="[accept]" :multi="multi" :dir="dir"></file>
|
|
22
22
|
</button>
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<html :html="html[htmlIndex]" :css="rcss" style="background: var(--g-plain-background); border: solid 1px var(--g-plain-border-color); padding: 10px; flex: 1; width: 0;"></html>
|
|
6
6
|
</layout>
|
|
7
7
|
<layout gutter="10">
|
|
8
|
-
<button style="
|
|
9
|
-
<button style="
|
|
10
|
-
<button style="
|
|
8
|
+
<button style="flex: 1;" @click="lcss = lcss ? '' : css">Left {{lcss ? 'remove' : 'add'}} css</button>
|
|
9
|
+
<button style="flex: 1;" @click="htmlIndex = htmlIndex ? 0 : 1">Toogle html</button>
|
|
10
|
+
<button style="flex: 1;" @click="rcss = rcss ? '' : css">Right {{rcss ? 'remove' : 'add'}} css</button>
|
|
11
11
|
</layout>
|
|
12
12
|
</layout>
|
|
13
13
|
</form>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<block style="background: var(--success); flex: 1;" />
|
|
6
6
|
<block style="flex: 1;" :style="{'background': bigColor ? 'var(--warning)' : 'var(--info)'}" />
|
|
7
7
|
</layout>
|
|
8
|
-
<button @click="media = media.length ? [] : [300, 450]"
|
|
8
|
+
<button @click="media = media.length ? [] : [300, 450]">media: {{media}}</button>
|
|
9
9
|
<layout align-v="center" gutter="10">
|
|
10
10
|
<label>gutter:</label>
|
|
11
11
|
<select v-model="gutter" :data="[0, 10, 12, 30, 31, 50]" style="flex: 1;"></select>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
tab,.tip,.ctr{margin-top:10px}.ctr button{
|
|
1
|
+
tab,.tip,.ctr{margin-top:10px}.ctr button{flex:1}
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
<greatlist v-model="select3" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :data="listData3" v-slot="data" style="flex: 1; height: 0;">
|
|
75
75
|
{{data.row.value ? data.row.value : data.row}}
|
|
76
76
|
</greatlist>
|
|
77
|
-
<button v-if="listData3.length === 0" @click="listData3 = [{'value': 'A', disabled: true}, 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'];select3 = [12]"
|
|
77
|
+
<button v-if="listData3.length === 0" @click="listData3 = [{'value': 'A', disabled: true}, 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'];select3 = [12]">Load data</button>
|
|
78
78
|
</layout>
|
|
79
79
|
<layout direction="v" gutter="10" style="flex: 1; width: 0;">
|
|
80
80
|
<label>list: {{select4}}</label>
|
|
81
81
|
<list v-model="select4" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :data="listData4" style="flex: 1; height: 0;"></list>
|
|
82
|
-
<button v-if="listData4.length === 0" @click="listData4 = [{'value': 'A', disabled: true}, 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'];select4 = ['M']"
|
|
82
|
+
<button v-if="listData4.length === 0" @click="listData4 = [{'value': 'A', disabled: true}, 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'];select4 = ['M']">Load data</button>
|
|
83
83
|
</layout>
|
|
84
84
|
</layout>
|
|
85
85
|
</tab>
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
</layout>
|
|
6
6
|
<map :akey="keyReal" :factory="factoryReal" :css="css" v-model:zoom="zoom" :zoomControl="zoomControl" v-model:lat="lat" v-model:lng="lng" v-model:markers="markers" v-model:lines="lines" v-model:polygons="polygons" v-model:overlays="overlays" @mapClick="click" @markerClick="mc" @markerUpdate="markerEvent" @lineInsert="lineEvent" @lineRemove="lineEvent" @lineUpdate="lineEvent" style="flex: 1; height: 0;"></map>
|
|
7
7
|
<layout gutter="10">
|
|
8
|
-
<select v-model="factory" :data="['google', 'tianditu']"
|
|
9
|
-
<text v-model="key" placeholder="Key" style="flex: 1;
|
|
10
|
-
<button @click="load"
|
|
8
|
+
<select v-model="factory" :data="['google', 'tianditu']"></select>
|
|
9
|
+
<text v-model="key" placeholder="Key" style="flex: 1;" />
|
|
10
|
+
<button @click="load">Load</button>
|
|
11
11
|
</layout>
|
|
12
12
|
<layout gutter="10" align-v="center">
|
|
13
|
-
<label>zoom:</label><text v-model="zoom" style="
|
|
14
|
-
<button @click="zoomControl = !zoomControl"
|
|
13
|
+
<label>zoom:</label><text v-model="zoom" style="flex: 1;" />
|
|
14
|
+
<button @click="zoomControl = !zoomControl">zoomCtrl: {{zoomControl ? 'true' : 'false'}}</button>
|
|
15
15
|
</layout>
|
|
16
16
|
<layout gutter="10" align-v="center">
|
|
17
17
|
<label>marker:</label>
|
|
18
|
-
<button @click="markerAdd"
|
|
19
|
-
<button @click="markerRemove"
|
|
20
|
-
<button @click="markerDrag"
|
|
21
|
-
<button @click="markerAddGaoqiao(false)"
|
|
22
|
-
<button @click="markerAddGaoqiao(true)"
|
|
18
|
+
<button @click="markerAdd">Add</button>
|
|
19
|
+
<button @click="markerRemove">Remove</button>
|
|
20
|
+
<button @click="markerDrag">Change 2 drag</button>
|
|
21
|
+
<button @click="markerAddGaoqiao(false)">Gaoqiao (GCJ02)</button>
|
|
22
|
+
<button @click="markerAddGaoqiao(true)">WGS84</button>
|
|
23
23
|
</layout>
|
|
24
24
|
<tab v-model="ntab" :tabs="['marker', 'line', 'polygon', 'overlay', 'log']">
|
|
25
25
|
<flow direction="v" style="line-height: 1.5; flex: 1; height: 100px; padding: 5px;">
|
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
<layout gutter="10">
|
|
6
6
|
<button v-if="selected[0] !== './test1'" style="flex: 1;" @click="go">Go test1 with {'type': 'show'}</button>
|
|
7
7
|
<button style="flex: 1;" @click="ssend">send {'type': 'send'}</button>
|
|
8
|
+
</layout>
|
|
9
|
+
<layout gutter="10">
|
|
10
|
+
<button style="flex: 1;" @click="plain = !plain">{{plain ? '' : '!'}}plain</button>
|
|
8
11
|
<button style="flex: 1;" @click="changeMap">{{map ? '' : '!'}}map</button>
|
|
9
12
|
</layout>
|
|
10
|
-
<panel ref="panel" v-model="panelv" :map="map" @go="loading=true" @went="loading=false" style="flex: 1;"></panel>
|
|
13
|
+
<panel ref="panel" v-model="panelv" :plain="plain" :map="map" @go="loading=true" @went="loading=false" style="flex: 1;"></panel>
|
|
11
14
|
</layout>
|
|
12
15
|
</form>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<!-- greatselect -->
|
|
5
5
|
<layout v-if="ntab === 'greatselect'" gutter="10" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
6
6
|
<label>Now select value is {{select}}:</label>
|
|
7
|
-
<greatselect v-model="select" :data="slist" :area="area" :disabled="disabled" :multi="multi" :sizes="sizes" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}" style="line-height: 1.3;" @add="onGAdd" @remove="onGRemove">
|
|
7
|
+
<greatselect v-model="select" :data="slist" :area="area" :disabled="disabled" :multi="multi" :plain="plain" :sizes="sizes" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}" style="line-height: 1.3;" @add="onGAdd" @remove="onGRemove">
|
|
8
8
|
<layout align-v="center" gutter="5" style="flex: 1;">
|
|
9
9
|
<img :src="slist[select[0]] ? slist[select[0]].src : ''" style="width: 32px; height: 32px;"></img>
|
|
10
10
|
<block>
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
</greatselect>
|
|
31
31
|
<label>Custom pop:</label>
|
|
32
|
-
<greatselect pop="custom" :area="area" :disabled="disabled" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}">
|
|
32
|
+
<greatselect pop="custom" :area="area" :plain="plain" :disabled="disabled" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}">
|
|
33
33
|
<label>Pop is button.</label>
|
|
34
34
|
<template v-slot:pop>
|
|
35
35
|
<button>Nothing</button>
|
|
36
36
|
</template>
|
|
37
37
|
</greatselect>
|
|
38
38
|
<layout gutter="10">
|
|
39
|
-
<button @click="slist.splice(-2, 0, {'type': 0, 'name': 'Card' + slist.length, 'path': 'Bob >> folder >> Card', 'src': '/package/res/r-2.svg','disabled': false})" style="flex: 1;
|
|
40
|
-
<button @click="slist.splice(-3, 1)" style="flex: 1;
|
|
39
|
+
<button @click="slist.splice(-2, 0, {'type': 0, 'name': 'Card' + slist.length, 'path': 'Bob >> folder >> Card', 'src': '/package/res/r-2.svg','disabled': false})" style="flex: 1;">Add item</button>
|
|
40
|
+
<button @click="slist.splice(-3, 1)" style="flex: 1;">Remove item</button>
|
|
41
41
|
</layout>
|
|
42
42
|
</layout>
|
|
43
43
|
<!-- select -->
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
<layout gutter="10" direction="v" style="padding: 10px;">
|
|
46
46
|
<label>Now select value is {{select2}}</label>
|
|
47
47
|
<label>Label: {{label2}}</label>
|
|
48
|
-
<select v-model="select2" @label="label2 = $event" :data="slist2" :disabled="disabled" :editable="editable" :multi="multi" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" @load="onLoad" @remote="onRemote" @add="onAdd" @remove="onRemove" @added="onAdded" @removed="onRemoved" @tagclick="onTagclick" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
48
|
+
<select v-model="select2" @label="label2 = $event" :data="slist2" :disabled="disabled" :editable="editable" :multi="multi" :plain="plain" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" @load="onLoad" @remote="onRemote" @add="onAdd" @remove="onRemove" @added="onAdded" @removed="onRemoved" @tagclick="onTagclick" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
49
49
|
<list :data="addRemoveList" style="height: 100px;"></list>
|
|
50
50
|
<label>Custom height:</label>
|
|
51
|
-
<select :data="['1','2','3','4','5']" :disabled="disabled" :editable="editable" :multi="multi" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" style="height: 60px;" @load="onLoad" @remote="onRemote" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
51
|
+
<select :data="['1','2','3','4','5']" :disabled="disabled" :editable="editable" :multi="multi" :plain="plain" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" style="height: 60px;" @load="onLoad" @remote="onRemote" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
52
52
|
<label>Always editable: {{aemodel}}</label>
|
|
53
53
|
<layout gutter="10">
|
|
54
|
-
<select v-model="aemodel" :data="['1','2','3','4','5']" :disabled="disabled" editable :multi="multi" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" placeholder="Please enter" @load="onLoad" @remote="onRemote" style="flex: 1;" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
54
|
+
<select v-model="aemodel" :data="['1','2','3','4','5']" :disabled="disabled" editable :multi="multi" :plain="plain" :tree="tree" :async="async" :search="search" :remote="remote" :remote-delay="remoteDelay[0]" :icon="icon" icon-default="../../../res/txt.svg" placeholder="Please enter" @load="onLoad" @remote="onRemote" style="flex: 1;" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></select>
|
|
55
55
|
<button @click="aemodel.length=0">clear</button>
|
|
56
56
|
<button @click="aemodel[0] = '4'">4</button>
|
|
57
57
|
</layout>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<label>Now select value is {{select3}}</label>
|
|
82
82
|
<label>Label: {{label3}}</label>
|
|
83
83
|
<label>Level: {{level3}}</label>
|
|
84
|
-
<levelselect ref="lese" v-model="select3" @label="label3 = $event" @level="level3 = $event" :data="s3other ? slist3r : slist2" :disabled="disabled" :
|
|
84
|
+
<levelselect ref="lese" v-model="select3" @label="label3 = $event" @level="level3 = $event" :data="s3other ? slist3r : slist2" :disabled="disabled" :plain="plain" :async="async" placeholder="Please enter" @load="onLoad" @loaded="onLoaded" :style="{'font-size': fontSize ? '16px' : undefined, 'padding': padding ? '15px' : undefined, 'background': background ? 'red' : undefined, 'color': background ? '#FFF' : undefined}"></levelselect>
|
|
85
85
|
<button @click="async = !async">{{async ? '' : '!'}}async</button>
|
|
86
86
|
<button @click="select3 = 'title'">Set: 'title'</button>
|
|
87
87
|
<button @click="select3 = 'haha2'">Set: 'haha2'</button>
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
</flow>
|
|
93
93
|
</tab>
|
|
94
94
|
<layout gutter="10">
|
|
95
|
+
<button @click="plain = !plain" style="flex: 1;">{{plain ? '' : '!'}}plain</button>
|
|
95
96
|
<button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
|
|
96
97
|
<button v-if="ntab === 'greatselect'" @click="changeArea" style="flex: 1;">Area: {{area}}</button>
|
|
97
98
|
<button v-else-if="ntab === 'select'" @click="editable = !editable" style="flex: 1;">{{editable ? '' : '!'}}editable</button>
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
<svg :layout="layout" :src="file" style="width: 64px; height: 64px;" />
|
|
6
6
|
</layout>
|
|
7
7
|
<layout gutter="10" style="margin-top: 10px;">
|
|
8
|
-
<button @click="color = undefined" style="padding: 0 10px; flex: 1; width: 0;
|
|
9
|
-
<button @click="color = 'green'" style="padding: 0 10px; flex: 1; width: 0;
|
|
10
|
-
<button @click="color = 'red'" style="padding: 0 10px; flex: 1; width: 0;
|
|
8
|
+
<button @click="color = undefined" style="padding: 0 10px; flex: 1; width: 0;">Default</button>
|
|
9
|
+
<button @click="color = 'green'" style="padding: 0 10px; flex: 1; width: 0;">Green</button>
|
|
10
|
+
<button @click="color = 'red'" style="padding: 0 10px; flex: 1; width: 0;">Red</button>
|
|
11
11
|
</layout>
|
|
12
12
|
<layout gutter="10" style="margin-top: 10px;">
|
|
13
|
-
<button @click="i = 0" style="padding: 0 10px; flex: 1; width: 0;
|
|
14
|
-
<button @click="i = 1" style="padding: 0 10px; flex: 1; width: 0;
|
|
15
|
-
<button @click="i = 2" style="padding: 0 10px; flex: 1; width: 0;
|
|
16
|
-
<button @click="i = 3" style="padding: 0 10px; flex: 1; width: 0;
|
|
13
|
+
<button @click="i = 0" style="padding: 0 10px; flex: 1; width: 0;">Shape 0</button>
|
|
14
|
+
<button @click="i = 1" style="padding: 0 10px; flex: 1; width: 0;">1</button>
|
|
15
|
+
<button @click="i = 2" style="padding: 0 10px; flex: 1; width: 0;">2</button>
|
|
16
|
+
<button @click="i = 3" style="padding: 0 10px; flex: 1; width: 0;">None</button>
|
|
17
17
|
</layout>
|
|
18
18
|
<layout gutter="10" style="margin-top: 10px;">
|
|
19
|
-
<button @click="f = 0" style="padding: 0 10px; flex: 1; width: 0;
|
|
20
|
-
<button @click="f = 1" style="padding: 0 10px; flex: 1; width: 0;
|
|
21
|
-
<button @click="f = 2" style="padding: 0 10px; flex: 1; width: 0;
|
|
22
|
-
<button @click="f = 3" style="padding: 0 10px; flex: 1; width: 0;
|
|
19
|
+
<button @click="f = 0" style="padding: 0 10px; flex: 1; width: 0;">File 0</button>
|
|
20
|
+
<button @click="f = 1" style="padding: 0 10px; flex: 1; width: 0;">1</button>
|
|
21
|
+
<button @click="f = 2" style="padding: 0 10px; flex: 1; width: 0;">2</button>
|
|
22
|
+
<button @click="f = 3" style="padding: 0 10px; flex: 1; width: 0;">None</button>
|
|
23
23
|
</layout>
|
|
24
24
|
</form>
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
<tab v-model="ntab" v-model:tabs="tabs" :tabPosition="tabPosition" :drag="drag" :close="cclose" @close="onClose" style="margin-top: 10px; flex: 1; height: 0;" :style="{'font-size': size, 'color': color}">
|
|
4
4
|
<!-- 默认 -->
|
|
5
5
|
<layout style="padding: 10px;">
|
|
6
|
-
<button v-if="ntab === 'tab2'" style="padding: 0 10px;
|
|
6
|
+
<button v-if="ntab === 'tab2'" style="padding: 0 10px;">Test button</button>
|
|
7
7
|
<label v-else>The tab's value is "{{ntab}}";</label>
|
|
8
8
|
</layout>
|
|
9
9
|
</tab>
|
|
10
10
|
<layout gutter="10" style="margin-top: 10px;">
|
|
11
|
-
<button @click="add" style="padding: 0 10px; flex: 1; width: 0;
|
|
12
|
-
<button @click="remove" style="padding: 0 10px; flex: 1; width: 0;
|
|
13
|
-
<button @click="position" style="padding: 0 10px; flex: 1; width: 0;
|
|
14
|
-
<button @click="ntab = 'tab2'" style="padding: 0 10px; flex: 1; width: 0;
|
|
11
|
+
<button @click="add" style="padding: 0 10px; flex: 1; width: 0;">Add</button>
|
|
12
|
+
<button @click="remove" style="padding: 0 10px; flex: 1; width: 0;">Remove</button>
|
|
13
|
+
<button @click="position" style="padding: 0 10px; flex: 1; width: 0;">Position</button>
|
|
14
|
+
<button @click="ntab = 'tab2'" style="padding: 0 10px; flex: 1; width: 0;">Tab2</button>
|
|
15
15
|
</layout>
|
|
16
16
|
<layout gutter="10" style="margin-top: 10px;">
|
|
17
|
-
<button @click="color = color ? undefined : 'red'" style="padding: 0 10px; flex: 1; width: 0;
|
|
18
|
-
<button @click="size = size ? undefined : '18px'" style="padding: 0 10px; flex: 1; width: 0;
|
|
19
|
-
<button @click="drag = !drag" style="padding: 0 10px; flex: 1; width: 0;
|
|
20
|
-
<button @click="cclose = !cclose" style="padding: 0 10px; flex: 1; width: 0;
|
|
17
|
+
<button @click="color = color ? undefined : 'red'" style="padding: 0 10px; flex: 1; width: 0;">{{color ? '' : '!'}}red</button>
|
|
18
|
+
<button @click="size = size ? undefined : '18px'" style="padding: 0 10px; flex: 1; width: 0;">{{size ? '' : '!'}}18px</button>
|
|
19
|
+
<button @click="drag = !drag" style="padding: 0 10px; flex: 1; width: 0;">{{drag ? '' : '!'}}drag</button>
|
|
20
|
+
<button @click="cclose = !cclose" style="padding: 0 10px; flex: 1; width: 0;">{{cclose ? '' : '!'}}close</button>
|
|
21
21
|
</layout>
|
|
22
22
|
</form>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<form width="450" height="300" title="Tag" padding="10">
|
|
2
|
+
<layout direction="v" gutter="10">
|
|
3
|
+
<label>Default:</label>
|
|
4
|
+
<layout gutter="10">
|
|
5
|
+
<tag>Default</tag>
|
|
6
|
+
<tag type="primary">Primary</tag>
|
|
7
|
+
<tag type="info">Info</tag>
|
|
8
|
+
<tag type="warning">Warning</tag>
|
|
9
|
+
<tag type="danger">Danger</tag>
|
|
10
|
+
</layout>
|
|
11
|
+
<label>Plain:</label>
|
|
12
|
+
<layout gutter="10">
|
|
13
|
+
<tag plain>Default</tag>
|
|
14
|
+
<tag type="primary" plain>Primary</tag>
|
|
15
|
+
<tag type="info" plain>Info</tag>
|
|
16
|
+
<tag type="warning" plain>Warning</tag>
|
|
17
|
+
<tag type="danger" plain>Danger</tag>
|
|
18
|
+
</layout>
|
|
19
|
+
</layout>
|
|
20
|
+
</form>
|
|
@@ -58,7 +58,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
58
58
|
this.long = false;
|
|
59
59
|
this.lineHeight = 1;
|
|
60
60
|
this.fontSize = 12;
|
|
61
|
+
this.prepend = false;
|
|
61
62
|
this.append = false;
|
|
63
|
+
this.before = false;
|
|
64
|
+
this.after = false;
|
|
62
65
|
this.border = 'solid';
|
|
63
66
|
this.background = undefined;
|
|
64
67
|
this.phcolor = undefined;
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
<menulist v-if="menu">
|
|
7
7
|
<menulist-item>Custom</menulist-item>
|
|
8
8
|
</menulist>
|
|
9
|
+
<template v-if="before" v-slot:before><select :data="['A','B','C']" plain></select></template>
|
|
10
|
+
<template v-if="prepend" v-slot:prepend>$</template>
|
|
9
11
|
<template v-if="append" v-slot:append>KG</template>
|
|
12
|
+
<template v-if="after" v-slot:after><select :data="['D','E','F']" plain></select></template>
|
|
10
13
|
</text>
|
|
11
14
|
<layout gutter="10">
|
|
12
15
|
<button @click="multi = !multi" style="flex: 1;">{{multi ? '' : '!'}}multi</button>
|
|
@@ -21,13 +24,16 @@
|
|
|
21
24
|
<button @click="gesture = !gesture" style="flex: 1;">{{gesture ? '' : '!'}}gesture</button>
|
|
22
25
|
</layout>
|
|
23
26
|
<layout gutter="10">
|
|
27
|
+
<button @click="prepend = !prepend" style="flex: 1;">{{prepend ? '' : '!'}}prepend</button>
|
|
24
28
|
<button @click="append = !append" style="flex: 1;">{{append ? '' : '!'}}append</button>
|
|
25
29
|
<button @click="adaption = !adaption" style="flex: 1;">{{adaption ? '' : '!'}}adaption</button>
|
|
26
30
|
<button @click="longClick" style="flex: 1;">{{long ? '' : '!'}}long</button>
|
|
27
31
|
</layout>
|
|
28
32
|
<layout gutter="10">
|
|
29
|
-
<button @click="lineHeight = lineHeight === 1 ? 1.5 : 1" style="flex: 1;">
|
|
30
|
-
<button @click="fontSize = fontSize === 12 ? 16 : 12" style="flex: 1;">
|
|
33
|
+
<button @click="lineHeight = lineHeight === 1 ? 1.5 : 1" style="flex: 1;">line to {{lineHeight === 1 ? 1.5 : 1}}</button>
|
|
34
|
+
<button @click="fontSize = fontSize === 12 ? 16 : 12" style="flex: 1;">size to {{fontSize === 12 ? 16 : 12}}</button>
|
|
35
|
+
<button @click="before = !before" style="flex: 1;">{{before ? '' : '!'}}before</button>
|
|
36
|
+
<button @click="after = !after" style="flex: 1;">{{after ? '' : '!'}}after</button>
|
|
31
37
|
</layout>
|
|
32
38
|
<layout gutter="10">
|
|
33
39
|
<button @click="border = 'solid'" style="flex: 2;">Set border solid</button>
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
<layout direction="v" gutter="10">
|
|
5
5
|
<label>Select task id: {{tid[0]}}</label>
|
|
6
6
|
<list v-model="tid" :data="tlist" style="width: 200px; height: 200px;"></list>
|
|
7
|
-
<button @click="runTask"
|
|
7
|
+
<button @click="runTask">Run task app</button>
|
|
8
8
|
<layout gutter="10">
|
|
9
|
-
<button @click="run" style="flex: 1; width: 0;
|
|
10
|
-
<button @click="end" style="flex: 1; width: 0;
|
|
9
|
+
<button @click="run" style="flex: 1; width: 0;">Run self</button>
|
|
10
|
+
<button @click="end" style="flex: 1; width: 0;">End</button>
|
|
11
11
|
</layout>
|
|
12
12
|
</layout>
|
|
13
13
|
</layout>
|
|
@@ -167,6 +167,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
167
167
|
frm = yield clickgo.form.create(step_1.default);
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
|
+
case 'ctag': {
|
|
171
|
+
frm = yield clickgo.form.create('/form/control/tag/tag');
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
170
174
|
case 'cxterm': {
|
|
171
175
|
frm = yield clickgo.form.create(xterm_1.default);
|
|
172
176
|
break;
|
|
@@ -42,6 +42,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
42
42
|
get config() {
|
|
43
43
|
return JSON.stringify(clickgo.core.config, null, 4).replace(/"icon": "([\s\S]+?)"/g, '"icon": "data:image/..."');
|
|
44
44
|
}
|
|
45
|
+
get global() {
|
|
46
|
+
return JSON.stringify(clickgo.core.global, null, 4);
|
|
47
|
+
}
|
|
45
48
|
getCdn() {
|
|
46
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
50
|
yield clickgo.form.dialog(clickgo.core.getCdn());
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
<form width="350" height="
|
|
1
|
+
<form width="350" height="600" title="Library task" padding="10">
|
|
2
2
|
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
3
|
<label>config:</label>
|
|
4
4
|
<text v-model="config" readonly multi style="flex: 1;"></text>
|
|
5
|
+
<label>global:</label>
|
|
6
|
+
<text v-model="global" readonly multi style="flex: 1;"></text>
|
|
5
7
|
<button @click="getCdn">getCdn()</button>
|
|
6
8
|
<button @click="getAvailArea">getAvailArea()</button>
|
|
7
9
|
<layout gutter="10">
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
<form width="400" height="450" title="Library dom">
|
|
2
2
|
<flow direction="v" style="flex: 1; padding: 10px;">
|
|
3
3
|
<layout gutter="10" direction="v" style="flex: 1;">
|
|
4
|
-
<button @click="setGlobalCursor('wait')"
|
|
5
|
-
<button @click="setGlobalCursor"
|
|
6
|
-
<button @click="hasTouchButMouse"
|
|
7
|
-
<button @click="getStyleCount"
|
|
4
|
+
<button @click="setGlobalCursor('wait')" >setGlobalCursor('wait')</button>
|
|
5
|
+
<button @click="setGlobalCursor" >setGlobalCursor()</button>
|
|
6
|
+
<button @click="hasTouchButMouse" >hasTouchButMouse()</button>
|
|
7
|
+
<button @click="getStyleCount" >getStyleCount({{taskId}}, 'form')</button>
|
|
8
8
|
<layout gutter="10">
|
|
9
9
|
<button @click="watchSize" ref="watchSize" :style="{'height': (watchSizeHeight ? 30 : 50) + 'px'}" style="padding: 0 5px; flex: 1;">{{watchSizeText ? '' : '!'}}watchSize</button>
|
|
10
10
|
<button @click="watchSizeHeight = !watchSizeHeight" style="padding: 0 5px; flex: 1;">Change</button>
|
|
11
11
|
</layout>
|
|
12
12
|
<layout gutter="10">
|
|
13
|
-
<button style="
|
|
14
|
-
<button style="
|
|
13
|
+
<button style="flex: 1;" @click="getWatchSizeCount()">getWatchSizeCount()</button>
|
|
14
|
+
<button style="flex: 1;" @click="getWatchSizeCount(taskId)">getWatchSizeCount({{taskId}})</button>
|
|
15
15
|
</layout>
|
|
16
16
|
<layout gutter="10">
|
|
17
17
|
<layout ref="watch" align-v="center" align-h="center" style="flex: 1; background: var(--g-plain-background); border: solid 1px var(--g-plain-border-color);">{{watchInner ? 'inner' : 'Inner'}}</layout>
|
|
18
|
-
<button @click="wwatch" style="
|
|
18
|
+
<button @click="wwatch" style="padding: 0 5px;">{{watchText ? '' : '!'}}watch</button>
|
|
19
19
|
<button @click="watchInner = !watchInner" style="padding: 0 5px;">Change</button>
|
|
20
20
|
</layout>
|
|
21
21
|
<layout gutter="10">
|
|
22
|
-
<button style="
|
|
23
|
-
<button style="
|
|
22
|
+
<button style="flex: 1;" @click="getWatchCount()">getWatchCount()</button>
|
|
23
|
+
<button style="flex: 1;" @click="getWatchCount(taskId)">getWatchCount({{taskId}})</button>
|
|
24
24
|
</layout>
|
|
25
|
-
<button @click="watchStyleChange = !watchStyleChange" ref="watchStyle"
|
|
26
|
-
<button @click="isWatchStyle"
|
|
25
|
+
<button @click="watchStyleChange = !watchStyleChange" ref="watchStyle" :style="{'font-size': watchStyleChange ? 'inherit' : '16px'}">watchStyle(this.refs.watchStyle.$el, 'font-size', (n, v) => { ... })</button>
|
|
26
|
+
<button @click="isWatchStyle" >isWatchStyle(this.refs.watchStyle.$el)</button>
|
|
27
27
|
<!-- getWatchInfo -->
|
|
28
28
|
<text :model-value="getWatchInfoText" readonly multi style="height: 300px;"></text>
|
|
29
|
-
<button @click="getWatchInfo" :disabled="getWatchInfoDisabled" style="
|
|
29
|
+
<button @click="getWatchInfo" :disabled="getWatchInfoDisabled" style="padding: 0 10px;">getWatchInfo 20s</button>
|
|
30
30
|
<block @mousedown="bindGesture" @touchstart="bindGesture" style="height: 50px; display: flex; justify-content: center; align-items: center; font-size: 14px; background: var(--g-plain-background); border: solid 1px var(--g-plain-border-color);">{{bindGestureText ? bindGestureText : 'bindGesture(e: Touch | Mouse, { ... })'}}</block>
|
|
31
31
|
<block @wheel="bindGestureWheel" style="height: 50px; display: flex; justify-content: center; align-items: center; font-size: 14px; background: var(--g-plain-background); border: solid 1px var(--g-plain-border-color);">{{bindGestureWheelText ? bindGestureWheelText : 'bindGesture(e: Wheel, { ... })'}}</block>
|
|
32
|
-
<button @click="bindLong" ref="bindLong" @mousedown="bindLongDown" @touchstart="bindLongDown"
|
|
32
|
+
<button @click="bindLong" ref="bindLong" @mousedown="bindLongDown" @touchstart="bindLongDown" >{{bindLongText ? 'Yeah!' : 'bindLong(e, () => { ... })'}}</button>
|
|
33
33
|
<block style="height: 100px; display: flex; background: var(--g-plain-background); border: solid 1px var(--g-plain-border-color);">
|
|
34
34
|
<block style="flex: 1; display: flex; justify-content: center; align-items: center;">
|
|
35
35
|
<block @mousedown="bindDragDown" @touchstart="bindDragDown" ref="bindDrag" style="width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border: solid 1px var(--g-plain-border-color);">Drag</block>
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<label>bindMove(e, { ... })</label>
|
|
57
57
|
<block ref="move" style="background: #07c160; position: absolute;" :style="{'left': moveLeft + 'px', 'top': moveTop + 'px', 'width': moveWidth + 'px', 'height': moveHeight + 'px'}" @touchstart="moveDown" @mousedown="moveDown"></block>
|
|
58
58
|
</block>
|
|
59
|
-
<button @click="fullscreen"
|
|
59
|
+
<button @click="fullscreen" >fullscreen()</button>
|
|
60
60
|
<label>clickgo.dom.is.move: {{isMove ? 'true' : 'false'}}</label>
|
|
61
61
|
<label>clickgo.dom.is.shift: {{isShift ? 'true' : 'false'}}</label>
|
|
62
62
|
<label>clickgo.dom.is.ctrl: {{isCtrl ? 'true' : 'false'}}</label>
|