clickgo 3.1.1-dev10 → 3.1.3-dev12
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/dist/app/demo/app.js +0 -72
- package/dist/app/demo/config.json +109 -0
- package/dist/app/demo/form/control/button/button.js +12 -11
- package/dist/app/demo/form/control/button/button.xml +6 -6
- package/dist/app/demo/form/control/check/check.js +14 -10
- package/dist/app/demo/form/control/file/file.js +15 -13
- package/dist/app/demo/form/control/{overflow/overflow.css → flow/flow.css} +0 -0
- package/dist/app/demo/form/control/flow/flow.js +64 -0
- package/dist/app/demo/form/control/{overflow/overflow.scss → flow/flow.scss} +0 -0
- package/dist/app/demo/form/control/flow/flow.xml +101 -0
- package/dist/app/demo/form/control/form/form.js +1 -1
- package/dist/app/demo/form/control/form/form.xml +3 -3
- package/dist/app/demo/form/control/img/img.xml +2 -2
- package/dist/app/demo/form/control/list/list.js +95 -75
- package/dist/app/demo/form/control/list/list.xml +15 -11
- package/dist/app/demo/form/control/marquee/marquee.js +12 -10
- package/dist/app/demo/form/control/menu/menu.js +10 -6
- package/dist/app/demo/form/control/monaco/monaco.js +50 -60
- package/dist/app/demo/form/control/monaco/monaco.xml +6 -5
- package/dist/app/demo/form/control/property/property.js +131 -127
- package/dist/app/demo/form/control/radio/radio.js +9 -5
- package/dist/app/demo/form/control/scroll/scroll.js +16 -12
- package/dist/app/demo/form/control/scroll/scroll.xml +10 -10
- package/dist/app/demo/form/control/select/select.js +132 -71
- package/dist/app/demo/form/control/select/select.xml +69 -67
- package/dist/app/demo/form/control/tab/tab.js +21 -20
- package/dist/app/demo/form/control/tab/tab.xml +2 -2
- package/dist/app/demo/form/control/text/text.js +53 -45
- package/dist/app/demo/form/control/text/text.xml +3 -3
- package/dist/app/demo/form/control/{greatview/greatview.css → vflow/vflow.css} +0 -0
- package/dist/app/demo/form/control/vflow/vflow.js +79 -0
- package/dist/app/demo/form/control/{greatview/greatview.scss → vflow/vflow.scss} +0 -0
- package/dist/app/demo/form/control/{greatview/greatview.xml → vflow/vflow.xml} +25 -25
- package/dist/app/demo/form/event/form/form.js +58 -56
- package/dist/app/demo/form/event/form/form.xml +3 -3
- package/dist/app/demo/form/event/screen/screen.js +30 -28
- package/dist/app/demo/form/event/screen/screen.xml +2 -2
- package/dist/app/demo/form/event/task/task.js +31 -31
- package/dist/app/demo/form/event/task/task.xml +3 -3
- package/dist/app/demo/form/main.js +166 -5
- package/dist/app/demo/form/main.xml +37 -35
- package/dist/app/demo/form/method/aform/aform.js +57 -0
- package/dist/app/demo/form/method/aform/aform.xml +35 -0
- package/dist/app/demo/form/method/aform/test.xml +6 -0
- package/dist/app/demo/form/method/core/core.js +11 -8
- package/dist/app/demo/form/method/core/core.xml +2 -1
- package/dist/app/demo/form/method/dom/dom.js +91 -99
- package/dist/app/demo/form/method/dom/dom.xml +6 -7
- package/dist/app/demo/form/method/form/form.js +10 -28
- package/dist/app/demo/form/method/form/form.xml +8 -15
- package/dist/app/demo/form/method/fs/fs.js +34 -33
- package/dist/app/demo/form/method/fs/fs.xml +1 -1
- package/dist/app/demo/form/method/fs/text.js +12 -12
- package/dist/app/demo/form/method/native/native.js +50 -0
- package/dist/app/demo/form/method/native/native.xml +12 -0
- package/dist/app/demo/form/method/system/system.js +50 -0
- package/dist/app/demo/form/method/system/system.xml +11 -0
- package/dist/app/demo/form/method/task/task.js +59 -61
- package/dist/app/demo/form/method/task/task.xml +4 -6
- package/dist/app/demo/form/method/theme/theme.js +14 -14
- package/dist/app/demo/form/method/tool/tool.js +29 -28
- package/dist/app/demo/form/method/tool/tool.xml +3 -3
- package/dist/app/demo/form/method/zip/zip.js +46 -41
- package/dist/app/demo/form/method/zip/zip.xml +1 -1
- package/dist/app/task/app.js +0 -25
- package/dist/app/task/config.json +29 -0
- package/dist/app/task/form/bar/bar.js +2 -2
- package/dist/app/task/form/bar/bar.xml +1 -1
- package/dist/clickgo.js +17 -5
- package/dist/clickgo.ts +22 -3
- package/dist/control/common.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/global.css +1 -1
- package/dist/index.js +28 -8
- package/dist/index.ts +33 -7
- package/dist/lib/control.js +75 -105
- package/dist/lib/control.ts +102 -124
- package/dist/lib/core.js +108 -252
- package/dist/lib/core.ts +122 -268
- package/dist/lib/dom.js +564 -483
- package/dist/lib/dom.ts +703 -546
- package/dist/lib/form.js +170 -153
- package/dist/lib/form.ts +132 -99
- package/dist/lib/fs.js +1 -1
- package/dist/lib/fs.ts +1 -1
- package/dist/lib/native.js +135 -8
- package/dist/lib/native.ts +176 -12
- package/dist/lib/task.js +301 -175
- package/dist/lib/task.ts +330 -207
- package/dist/lib/tool.js +48 -1
- package/dist/lib/tool.ts +61 -0
- package/dist/lib/zip.ts +2 -0
- package/dist/theme/familiar.cgt +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +26 -29
- package/dist/app/demo/form/control/greatview/greatview.js +0 -92
- package/dist/app/demo/form/control/overflow/overflow.js +0 -70
- package/dist/app/demo/form/control/overflow/overflow.xml +0 -98
- package/dist/app/demo/form/control/view/view.css +0 -1
- package/dist/app/demo/form/control/view/view.js +0 -73
- package/dist/app/demo/form/control/view/view.scss +0 -18
- package/dist/app/demo/form/control/view/view.xml +0 -94
- package/dist/app/demo/form/method/form/test.xml +0 -5
|
@@ -1,129 +1,133 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
3
|
+
const clickgo = require("clickgo");
|
|
4
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.data = [
|
|
8
|
+
{
|
|
9
|
+
'kind': 'Design',
|
|
10
|
+
'title': 'Name',
|
|
11
|
+
'desc': 'The control name.',
|
|
12
|
+
'type': 'property',
|
|
13
|
+
'control': 'text',
|
|
14
|
+
'default': 'Control1',
|
|
15
|
+
'value': 'Control1'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
'kind': 'Design',
|
|
19
|
+
'title': 'Locked',
|
|
20
|
+
'desc': 'Locked the control.',
|
|
21
|
+
'type': 'property',
|
|
22
|
+
'control': 'check',
|
|
23
|
+
'default': 'false',
|
|
24
|
+
'value': 'false'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
'kind': 'Layout',
|
|
28
|
+
'title': 'Like',
|
|
29
|
+
'desc': 'The like desc.',
|
|
30
|
+
'type': 'property',
|
|
31
|
+
'control': 'select',
|
|
32
|
+
'default': 'Button',
|
|
33
|
+
'value': 'Button',
|
|
34
|
+
'data': ['Button', 'Select', 'Check']
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
'kind': 'Layout',
|
|
38
|
+
'title': 'Dock',
|
|
39
|
+
'desc': 'The dock.',
|
|
40
|
+
'type': 'property',
|
|
41
|
+
'control': 'dock',
|
|
42
|
+
'default': 'none',
|
|
43
|
+
'value': 'none'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
'kind': 'Layout',
|
|
47
|
+
'title': 'Location',
|
|
48
|
+
'desc': 'Location of parent layout.',
|
|
49
|
+
'type': 'property',
|
|
50
|
+
'control': 'text',
|
|
51
|
+
'default': '100, 1000',
|
|
52
|
+
'value': '100, 1000',
|
|
53
|
+
'sub': [
|
|
54
|
+
{
|
|
55
|
+
'title': 'X',
|
|
56
|
+
'desc': 'X of location.',
|
|
57
|
+
'control': 'text'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
'title': 'Y',
|
|
61
|
+
'desc': 'Y of location.',
|
|
62
|
+
'control': 'text'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
'title': 'Z',
|
|
66
|
+
'desc': 'Z of location.',
|
|
67
|
+
'control': 'text'
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
'kind': 'Other',
|
|
73
|
+
'title': 'Sub',
|
|
74
|
+
'desc': 'Children.',
|
|
75
|
+
'type': 'property',
|
|
76
|
+
'control': 'text',
|
|
77
|
+
'default': '',
|
|
78
|
+
'value': '',
|
|
79
|
+
'sub': [
|
|
80
|
+
{
|
|
81
|
+
'title': 'Dock',
|
|
82
|
+
'desc': 'Dock of sub.',
|
|
83
|
+
'control': 'dock'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
'title': 'Check',
|
|
87
|
+
'desc': 'Check of sub.',
|
|
88
|
+
'control': 'check'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
'title': 'Select',
|
|
92
|
+
'desc': 'Select of sub.',
|
|
93
|
+
'control': 'select',
|
|
94
|
+
'data': ['', 'A', 'B', 'C']
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
'kind': 'Mouse',
|
|
100
|
+
'title': 'MouseDown',
|
|
101
|
+
'desc': 'On mouse down.',
|
|
102
|
+
'type': 'event',
|
|
103
|
+
'default': '',
|
|
104
|
+
'value': 'mousedown'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
'kind': 'Mouse',
|
|
108
|
+
'title': 'MouseUp',
|
|
109
|
+
'desc': 'On mouse up.',
|
|
110
|
+
'type': 'event',
|
|
111
|
+
'default': '',
|
|
112
|
+
'value': 'mouseup'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
'kind': 'Key',
|
|
116
|
+
'title': 'KeyDown',
|
|
117
|
+
'desc': 'On key down.',
|
|
118
|
+
'type': 'event',
|
|
119
|
+
'default': '',
|
|
120
|
+
'value': 'kedown'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
'kind': 'Key',
|
|
124
|
+
'title': 'KeyUp',
|
|
125
|
+
'desc': 'On key up.',
|
|
126
|
+
'type': 'event',
|
|
127
|
+
'default': '',
|
|
128
|
+
'value': 'keyup'
|
|
129
|
+
}
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.default = default_1;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const clickgo = require("clickgo");
|
|
4
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.value = 'radio1';
|
|
8
|
+
this.disabled = false;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.default = default_1;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
const clickgo = require("clickgo");
|
|
4
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.sh1 = 1000;
|
|
8
|
+
this.c1 = 100;
|
|
9
|
+
this.so1 = 500;
|
|
10
|
+
this.sh2 = 0;
|
|
11
|
+
this.c2 = 0;
|
|
12
|
+
this.so2 = 0;
|
|
13
|
+
this.count = 3;
|
|
14
|
+
this.float = false;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = default_1;
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
<layout gutter="10" direction="v" style="flex: 1; width: 0;">
|
|
3
3
|
<layout gutter="10" style="flex: 1; height: 0;">
|
|
4
4
|
<layout gutter="10" direction="v" style="flex: 1;">
|
|
5
|
-
<label>
|
|
5
|
+
<label>Offset: {{so1}}</label>
|
|
6
6
|
<layout gutter="10">
|
|
7
|
-
<button @click="
|
|
7
|
+
<button @click="sh1 = (sh1 === 1000 ? 2000 : 1000)" style="height: 30px; flex: 1;">Set length {{sh1 === 1000 ? '2000' : '1000'}}</button>
|
|
8
8
|
<button @click="c1 = (c1 === 100 ? 200 : 100)" style="height: 30px; flex: 1;">Set client {{c1 === 100 ? '200' : '100'}}</button>
|
|
9
9
|
</layout>
|
|
10
10
|
<layout gutter="10">
|
|
11
11
|
<button @click="disabled = !disabled" style="height: 30px; flex: 1;">{{disabled ? 'Remove' : 'Set'}} disabled</button>
|
|
12
|
-
<button @click="
|
|
12
|
+
<button @click="sh1 = 1000;c1 = 2000" style="height: 30px; flex: 1;">Set client > length</button>
|
|
13
13
|
</layout>
|
|
14
14
|
</layout>
|
|
15
|
-
<scroll :length="
|
|
16
|
-
<scroll
|
|
15
|
+
<scroll :length="sh1" :client="c1" v-model:offset="so1" :disabled="disabled" style="width: 20px;"></scroll>
|
|
16
|
+
<scroll offset="200" :disabled="disabled" style="width: 30px;"></scroll>
|
|
17
17
|
<scroll :disabled="disabled" style="width: 30px;"></scroll>
|
|
18
18
|
</layout>
|
|
19
19
|
<scroll direction="h" :disabled="disabled" style="height: 30px;"></scroll>
|
|
20
20
|
<layout style="border: solid 1px rgba(0, 0, 0, .3); flex: 1; height: 0;">
|
|
21
|
-
<
|
|
21
|
+
<flow v-model:scroll-top="so2" direction="v" @clientheight="c2 = $event" @scrollheight="sh2 = $event" style="line-height: 1.5; flex: 1;">
|
|
22
22
|
<block style="padding: 10px;">
|
|
23
|
-
<block>Length: {{
|
|
23
|
+
<block>Length: {{sh2}}, Client: {{c2}}.</block>
|
|
24
24
|
<block v-for="line of count">Line {{line}}.</block>
|
|
25
25
|
</block>
|
|
26
|
-
</
|
|
27
|
-
<scroll :length="
|
|
26
|
+
</flow>
|
|
27
|
+
<scroll :length="sh2" :client="c2" v-model:offset="so2" :float="float" :disabled="disabled" style="width: 20px;"></scroll>
|
|
28
28
|
</layout>
|
|
29
29
|
<layout gutter="10" align-v="center">
|
|
30
|
-
<label style="flex: 1;">On the left is the
|
|
30
|
+
<label style="flex: 1;">On the left is the flow control.</label>
|
|
31
31
|
<button @click="float = !float" style="padding: 0 10px; height: 30px;">{{float ? 'Remove' : 'Set'}} float</button>
|
|
32
32
|
<button @click="count += 10" style="padding: 0 10px; height: 30px;">Add 10 lines</button>
|
|
33
33
|
</layout>
|
|
@@ -9,83 +9,144 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
12
|
+
const clickgo = require("clickgo");
|
|
13
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.ntab = '';
|
|
17
|
+
this.area = 'all';
|
|
18
|
+
this.slist = [
|
|
19
|
+
{
|
|
20
|
+
'type': 0,
|
|
21
|
+
'name': 'Appraise',
|
|
22
|
+
'path': 'Bob >> folder >> Appraise',
|
|
23
|
+
'src': '/package/res/r-1.svg'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
'type': 0,
|
|
27
|
+
'name': 'Card',
|
|
28
|
+
'path': 'Bob >> folder >> Card',
|
|
29
|
+
'src': '/package/res/r-2.svg',
|
|
30
|
+
'menu': true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
'type': 0,
|
|
34
|
+
'name': 'Appraise2',
|
|
35
|
+
'path': 'Bob >> folder >> Appraise2',
|
|
36
|
+
'src': '/package/res/r-1.svg',
|
|
37
|
+
'disabled': true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
'control': 'split'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
'type': 1
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
this.select = [];
|
|
47
|
+
this.slist2 = [
|
|
48
|
+
'haha1', 'haha2', 'haha3', 'haha4', {
|
|
49
|
+
'value': 'ha5',
|
|
50
|
+
'label': 'The value is ha5'
|
|
51
|
+
}, {
|
|
52
|
+
'value': 'ha6',
|
|
53
|
+
'label': 'Can not be selected',
|
|
54
|
+
'disabled': true
|
|
55
|
+
}, {
|
|
56
|
+
'value': 'title',
|
|
57
|
+
'children': [
|
|
58
|
+
{
|
|
59
|
+
'label': 'sub1label'
|
|
60
|
+
}, {
|
|
61
|
+
'label': 'sub2'
|
|
62
|
+
}, {
|
|
63
|
+
'label': 'Sub title',
|
|
64
|
+
'children': ['1', '2']
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}, {
|
|
68
|
+
'label': 'happy',
|
|
69
|
+
'children': ['xixi', 'xixida', 'gogogo']
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
this.slist2r = [];
|
|
73
|
+
this.select2 = ['haha2'];
|
|
74
|
+
this.label2 = [];
|
|
75
|
+
this.padding = false;
|
|
76
|
+
this.fontSize = false;
|
|
77
|
+
this.background = false;
|
|
78
|
+
this.disabled = false;
|
|
79
|
+
this.multi = false;
|
|
80
|
+
this.editable = false;
|
|
81
|
+
this.tree = false;
|
|
82
|
+
this.async = false;
|
|
83
|
+
this.icon = false;
|
|
84
|
+
this.remote = false;
|
|
85
|
+
}
|
|
86
|
+
get sizes() {
|
|
87
|
+
const rtn = {};
|
|
88
|
+
for (let i = 0; i < this.slist.length; ++i) {
|
|
89
|
+
if (this.slist[i].control === 'split') {
|
|
90
|
+
rtn[i] = 3;
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if (this.slist[i].type === 1) {
|
|
94
|
+
rtn[i] = 31;
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
42
97
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'value': 'ha6',
|
|
52
|
-
'label': 'Can not be selected',
|
|
53
|
-
'disabled': true
|
|
54
|
-
}, {
|
|
55
|
-
'value': 'title',
|
|
56
|
-
'children': [
|
|
57
|
-
{
|
|
58
|
-
'label': 'sub1label'
|
|
59
|
-
}, {
|
|
60
|
-
'label': 'sub2'
|
|
61
|
-
}, {
|
|
62
|
-
'label': 'Sub title',
|
|
63
|
-
'children': ['1', '2']
|
|
98
|
+
return rtn;
|
|
99
|
+
}
|
|
100
|
+
onLoad(value, resolve) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
if (value !== 'haha4') {
|
|
103
|
+
yield clickgo.tool.sleep(100);
|
|
104
|
+
if (value === '2') {
|
|
105
|
+
resolve(['60']);
|
|
64
106
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
'background': false
|
|
76
|
-
};
|
|
77
|
-
exports.watch = {
|
|
78
|
-
'select': function (n, o) {
|
|
107
|
+
else {
|
|
108
|
+
resolve();
|
|
109
|
+
}
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
yield clickgo.tool.sleep(300);
|
|
113
|
+
resolve(['he', 'ha']);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
onRemote(value, resolve) {
|
|
79
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
|
|
118
|
+
yield clickgo.tool.sleep(300);
|
|
119
|
+
if (value === '8') {
|
|
120
|
+
this.slist2r = [];
|
|
121
|
+
resolve();
|
|
81
122
|
return;
|
|
82
123
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
124
|
+
this.slist2r = ['test', value, 'remote'];
|
|
125
|
+
resolve();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
onMounted() {
|
|
129
|
+
this.watch(() => this.select.join(','), (n, o) => {
|
|
130
|
+
let select = [];
|
|
131
|
+
const now = n.split(',');
|
|
132
|
+
const old = o.split(',');
|
|
133
|
+
for (const item of now) {
|
|
134
|
+
if (this.slist[parseInt(item)].type !== 0) {
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
select.push(parseInt(item));
|
|
138
|
+
}
|
|
139
|
+
if (select.length === now.length) {
|
|
86
140
|
return;
|
|
87
141
|
}
|
|
88
|
-
|
|
142
|
+
select = [];
|
|
143
|
+
for (const item of old) {
|
|
144
|
+
select.push(parseInt(item));
|
|
145
|
+
}
|
|
146
|
+
this.select = select;
|
|
147
|
+
}, {
|
|
148
|
+
'deep': true
|
|
89
149
|
});
|
|
90
150
|
}
|
|
91
|
-
}
|
|
151
|
+
}
|
|
152
|
+
exports.default = default_1;
|