@tmagic/form 1.0.0-beta.13 → 1.0.0-beta.16
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/coverage/clover.xml +274 -261
- package/coverage/coverage-final.json +37 -36
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/src/Form.vue.html +2 -2
- package/coverage/lcov-report/src/FormDialog.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Col.vue.html +253 -0
- package/coverage/lcov-report/src/containers/Container.vue.html +28 -16
- package/coverage/lcov-report/src/containers/Fieldset.vue.html +1 -1
- package/coverage/lcov-report/src/containers/GroupList.vue.html +1 -1
- package/coverage/lcov-report/src/containers/GroupListItem.vue.html +5 -5
- package/coverage/lcov-report/src/containers/Panel.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Row.vue.html +22 -34
- package/coverage/lcov-report/src/containers/Step.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Table.vue.html +32 -8
- package/coverage/lcov-report/src/containers/Tabs.vue.html +1 -1
- package/coverage/lcov-report/src/containers/index.html +41 -26
- package/coverage/lcov-report/src/fields/Cascader.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Checkbox.vue.html +3 -3
- package/coverage/lcov-report/src/fields/CheckboxGroup.vue.html +1 -1
- package/coverage/lcov-report/src/fields/ColorPicker.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Date.vue.html +1 -1
- package/coverage/lcov-report/src/fields/DateTime.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Daterange.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Display.vue.html +1 -1
- package/coverage/lcov-report/src/fields/DynamicField.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Hidden.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Link.vue.html +2 -2
- package/coverage/lcov-report/src/fields/Number.vue.html +1 -1
- package/coverage/lcov-report/src/fields/RadioGroup.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Select.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Switch.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Text.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Textarea.vue.html +13 -19
- package/coverage/lcov-report/src/fields/Time.vue.html +1 -1
- package/coverage/lcov-report/src/fields/index.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/theme/index.html +1 -1
- package/coverage/lcov-report/src/theme/index.scss.html +1 -1
- package/coverage/lcov-report/src/utils/config.ts.html +1 -1
- package/coverage/lcov-report/src/utils/createForm.ts.html +1 -1
- package/coverage/lcov-report/src/utils/fieldProps.ts.html +1 -1
- package/coverage/lcov-report/src/utils/form.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/useAddField.ts.html +1 -1
- package/coverage/lcov.info +528 -497
- package/dist/style.css +7 -9
- package/dist/tmagic-form.es.js +143 -99
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +143 -99
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/Form.vue.d.ts +362 -0
- package/dist/types/src/FormDialog.vue.d.ts +757 -0
- package/dist/types/src/containers/Col.vue.d.ts +42 -0
- package/dist/types/src/containers/Container.vue.d.ts +1 -0
- package/dist/types/src/containers/Row.vue.d.ts +0 -1
- package/dist/types/src/containers/Table.vue.d.ts +2601 -0
- package/dist/types/src/fields/Checkbox.vue.d.ts +2 -2
- package/dist/types/src/fields/Link.vue.d.ts +1596 -0
- package/package.json +10 -6
- package/src/Form.vue +1 -1
- package/src/containers/Col.vue +56 -0
- package/src/containers/Container.vue +9 -5
- package/src/containers/GroupListItem.vue +4 -4
- package/src/containers/Row.vue +13 -17
- package/src/containers/Table.vue +14 -6
- package/src/fields/Checkbox.vue +2 -2
- package/src/fields/Link.vue +1 -1
- package/src/fields/Textarea.vue +11 -13
- package/src/theme/form.scss +24 -17
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">30% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>3/
|
|
28
|
+
<span class='fraction'>3/10</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/4</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">33.33% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>3/
|
|
49
|
+
<span class='fraction'>3/9</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -127,12 +127,7 @@
|
|
|
127
127
|
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
128
|
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
129
|
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
-
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
-
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
-
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
-
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
-
<a name='L69'></a><a href='#L69'>69</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
135
|
-
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<a name='L65'></a><a href='#L65'>65</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
136
131
|
<span class="cline-any cline-neutral"> </span>
|
|
137
132
|
<span class="cline-any cline-neutral"> </span>
|
|
138
133
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -150,15 +145,15 @@
|
|
|
150
145
|
<span class="cline-any cline-neutral"> </span>
|
|
151
146
|
<span class="cline-any cline-neutral"> </span>
|
|
152
147
|
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-yes">17x</span>
|
|
153
149
|
<span class="cline-any cline-neutral"> </span>
|
|
154
150
|
<span class="cline-any cline-neutral"> </span>
|
|
155
151
|
<span class="cline-any cline-neutral"> </span>
|
|
156
152
|
<span class="cline-any cline-yes">17x</span>
|
|
157
153
|
<span class="cline-any cline-neutral"> </span>
|
|
158
|
-
<span class="cline-any cline-neutral"> </span>
|
|
159
154
|
<span class="cline-any cline-yes">17x</span>
|
|
160
155
|
<span class="cline-any cline-neutral"> </span>
|
|
161
|
-
<span class="cline-any cline-
|
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
157
|
<span class="cline-any cline-neutral"> </span>
|
|
163
158
|
<span class="cline-any cline-neutral"> </span>
|
|
164
159
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -192,31 +187,24 @@
|
|
|
192
187
|
<span class="cline-any cline-no"> </span>
|
|
193
188
|
<span class="cline-any cline-neutral"> </span>
|
|
194
189
|
<span class="cline-any cline-neutral"> </span>
|
|
195
|
-
<span class="cline-any cline-no"> </span>
|
|
196
|
-
<span class="cline-any cline-neutral"> </span>
|
|
197
|
-
<span class="cline-any cline-neutral"> </span>
|
|
198
190
|
<span class="cline-any cline-neutral"> </span>
|
|
199
191
|
<span class="cline-any cline-neutral"> </span>
|
|
200
192
|
<span class="cline-any cline-neutral"> </span>
|
|
201
193
|
<span class="cline-any cline-neutral"> </span>
|
|
202
194
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><template>
|
|
203
195
|
<el-row :gutter="10">
|
|
204
|
-
<
|
|
196
|
+
<Col
|
|
205
197
|
v-for="(col, index) in config.items"
|
|
206
|
-
:style="!display(col) || col.type === 'hidden' ? 'display: none' : ''"
|
|
207
198
|
:key="col[mForm?.keyProp || '__key'] ?? index"
|
|
208
199
|
:span="col.span || config.span || 24 / config.items.length"
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
@change="changeHandler"
|
|
218
|
-
></m-form-container>
|
|
219
|
-
</el-col>
|
|
200
|
+
:config="col"
|
|
201
|
+
:labelWidth="config.labelWidth || labelWidth"
|
|
202
|
+
:expandMore="expandMore"
|
|
203
|
+
:model="name ? model[name] : model"
|
|
204
|
+
:prop="prop"
|
|
205
|
+
:size="size"
|
|
206
|
+
@change="changeHandler"
|
|
207
|
+
/>
|
|
220
208
|
</el-row>
|
|
221
209
|
</template>
|
|
222
210
|
|
|
@@ -224,10 +212,13 @@
|
|
|
224
212
|
import { defineComponent, inject, PropType } from 'vue';
|
|
225
213
|
|
|
226
214
|
import { FormState, RowConfig } from '../schema';
|
|
227
|
-
|
|
215
|
+
|
|
216
|
+
import Col from './Col.vue';
|
|
228
217
|
|
|
229
218
|
export default defineComponent({
|
|
230
219
|
name: 'm-form-row',
|
|
220
|
+
|
|
221
|
+
components: { Col },
|
|
231
222
|
|
|
232
223
|
props: {
|
|
233
224
|
labelWidth: String,
|
|
@@ -259,9 +250,6 @@ export default defineComponent({
|
|
|
259
250
|
|
|
260
251
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
261
252
|
mForm,
|
|
262
|
-
<span class="fstat-no" title="function not covered" > display(</span>config: any) {
|
|
263
|
-
<span class="cstat-no" title="statement not covered" > return d</span>isplayFunction(mForm, config.display, props);
|
|
264
|
-
},
|
|
265
253
|
changeHandler,
|
|
266
254
|
};
|
|
267
255
|
},
|
|
@@ -274,7 +262,7 @@ export default defineComponent({
|
|
|
274
262
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
275
263
|
Code coverage generated by
|
|
276
264
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
277
|
-
at Fri
|
|
265
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
278
266
|
</div>
|
|
279
267
|
<script src="../../prettify.js"></script>
|
|
280
268
|
<script>
|
|
@@ -316,7 +316,7 @@ export default defineComponent({
|
|
|
316
316
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
317
317
|
Code coverage generated by
|
|
318
318
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
319
|
-
at Fri
|
|
319
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
320
320
|
</div>
|
|
321
321
|
<script src="../../prettify.js"></script>
|
|
322
322
|
<script>
|
|
@@ -689,7 +689,23 @@
|
|
|
689
689
|
<a name='L624'></a><a href='#L624'>624</a>
|
|
690
690
|
<a name='L625'></a><a href='#L625'>625</a>
|
|
691
691
|
<a name='L626'></a><a href='#L626'>626</a>
|
|
692
|
-
<a name='L627'></a><a href='#L627'>627</a
|
|
692
|
+
<a name='L627'></a><a href='#L627'>627</a>
|
|
693
|
+
<a name='L628'></a><a href='#L628'>628</a>
|
|
694
|
+
<a name='L629'></a><a href='#L629'>629</a>
|
|
695
|
+
<a name='L630'></a><a href='#L630'>630</a>
|
|
696
|
+
<a name='L631'></a><a href='#L631'>631</a>
|
|
697
|
+
<a name='L632'></a><a href='#L632'>632</a>
|
|
698
|
+
<a name='L633'></a><a href='#L633'>633</a>
|
|
699
|
+
<a name='L634'></a><a href='#L634'>634</a>
|
|
700
|
+
<a name='L635'></a><a href='#L635'>635</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
701
|
+
<span class="cline-any cline-neutral"> </span>
|
|
702
|
+
<span class="cline-any cline-neutral"> </span>
|
|
703
|
+
<span class="cline-any cline-neutral"> </span>
|
|
704
|
+
<span class="cline-any cline-neutral"> </span>
|
|
705
|
+
<span class="cline-any cline-neutral"> </span>
|
|
706
|
+
<span class="cline-any cline-neutral"> </span>
|
|
707
|
+
<span class="cline-any cline-neutral"> </span>
|
|
708
|
+
<span class="cline-any cline-neutral"> </span>
|
|
693
709
|
<span class="cline-any cline-neutral"> </span>
|
|
694
710
|
<span class="cline-any cline-neutral"> </span>
|
|
695
711
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1342,8 +1358,8 @@
|
|
|
1342
1358
|
<template v-slot="scope">
|
|
1343
1359
|
<el-button
|
|
1344
1360
|
v-show="showDelete(scope.$index + 1 + pagecontext * pagesize - 1)"
|
|
1345
|
-
|
|
1346
|
-
|
|
1361
|
+
type="danger"
|
|
1362
|
+
text
|
|
1347
1363
|
:icon="Delete"
|
|
1348
1364
|
@click="removeHandler(scope.$index + 1 + pagecontext * pagesize - 1)"
|
|
1349
1365
|
></el-button>
|
|
@@ -1360,8 +1376,9 @@
|
|
|
1360
1376
|
<el-button
|
|
1361
1377
|
plain
|
|
1362
1378
|
size="small"
|
|
1379
|
+
type="primary"
|
|
1363
1380
|
:icon="ArrowUp"
|
|
1364
|
-
|
|
1381
|
+
text
|
|
1365
1382
|
@click="upHandler(scope.$index + 1 + pagecontext * pagesize - 1)"
|
|
1366
1383
|
@dblclick="topHandler(scope.$index + 1 + pagecontext * pagesize - 1)"
|
|
1367
1384
|
></el-button>
|
|
@@ -1374,8 +1391,9 @@
|
|
|
1374
1391
|
<el-button
|
|
1375
1392
|
plain
|
|
1376
1393
|
size="small"
|
|
1394
|
+
type="primary"
|
|
1377
1395
|
:icon="ArrowDown"
|
|
1378
|
-
|
|
1396
|
+
text
|
|
1379
1397
|
@click="downHandler(scope.$index + 1 + pagecontext * pagesize - 1)"
|
|
1380
1398
|
@dblclick="bottomHandler(scope.$index + 1 + pagecontext * pagesize - 1)"
|
|
1381
1399
|
></el-button>
|
|
@@ -1424,10 +1442,16 @@
|
|
|
1424
1442
|
</el-tooltip>
|
|
1425
1443
|
<slot></slot>
|
|
1426
1444
|
<el-button v-if="addable" size="small" type="primary" plain @click="newHandler()">添加</el-button> &nbsp;
|
|
1427
|
-
<el-button :icon="Grid" size="small" @click="toggleMode" v-if="enableToggleMode && !isFullscreen"
|
|
1445
|
+
<el-button :icon="Grid" size="small" type="primary" @click="toggleMode" v-if="enableToggleMode && !isFullscreen"
|
|
1428
1446
|
>展开配置</el-button
|
|
1429
1447
|
>
|
|
1430
|
-
<el-button
|
|
1448
|
+
<el-button
|
|
1449
|
+
:icon="FullScreen"
|
|
1450
|
+
size="small"
|
|
1451
|
+
type="primary"
|
|
1452
|
+
@click="toggleFullscreen"
|
|
1453
|
+
v-if="config.enableFullscreen !== false"
|
|
1454
|
+
>
|
|
1431
1455
|
{{ isFullscreen ? '退出全屏' : '全屏编辑' }}
|
|
1432
1456
|
</el-button>
|
|
1433
1457
|
<el-upload
|
|
@@ -1948,7 +1972,7 @@ export default defineComponent({
|
|
|
1948
1972
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1949
1973
|
Code coverage generated by
|
|
1950
1974
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1951
|
-
at Fri
|
|
1975
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
1952
1976
|
</div>
|
|
1953
1977
|
<script src="../../prettify.js"></script>
|
|
1954
1978
|
<script>
|
|
@@ -610,7 +610,7 @@ export default Tab;
|
|
|
610
610
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
611
611
|
Code coverage generated by
|
|
612
612
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
613
|
-
at Fri
|
|
613
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
614
614
|
</div>
|
|
615
615
|
<script src="../../prettify.js"></script>
|
|
616
616
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">22.
|
|
26
|
+
<span class="strong">22.94% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>120/523</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">10.11% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>36/356</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">17.
|
|
40
|
+
<span class="strong">17.8% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>26/146</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">23.
|
|
47
|
+
<span class="strong">23.58% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>108/458</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -79,18 +79,33 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
+
<td class="file low" data-value="Col.vue"><a href="Col.vue.html">Col.vue</a></td>
|
|
83
|
+
<td data-value="27.27" class="pic low">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 27%"></div><div class="cover-empty" style="width: 73%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="27.27" class="pct low">27.27%</td>
|
|
87
|
+
<td data-value="11" class="abs low">3/11</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
90
|
+
<td data-value="0" class="pct low">0%</td>
|
|
91
|
+
<td data-value="5" class="abs low">0/5</td>
|
|
92
|
+
<td data-value="30" class="pct low">30%</td>
|
|
93
|
+
<td data-value="10" class="abs low">3/10</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
82
97
|
<td class="file high" data-value="Container.vue"><a href="Container.vue.html">Container.vue</a></td>
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
98
|
+
<td data-value="86.11" class="pic high">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 86%"></div><div class="cover-empty" style="width: 14%"></div></div>
|
|
85
100
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
90
|
-
<td data-value="
|
|
91
|
-
<td data-value="
|
|
92
|
-
<td data-value="86.
|
|
93
|
-
<td data-value="
|
|
101
|
+
<td data-value="86.11" class="pct high">86.11%</td>
|
|
102
|
+
<td data-value="72" class="abs high">62/72</td>
|
|
103
|
+
<td data-value="53.84" class="pct medium">53.84%</td>
|
|
104
|
+
<td data-value="65" class="abs medium">35/65</td>
|
|
105
|
+
<td data-value="95" class="pct high">95%</td>
|
|
106
|
+
<td data-value="20" class="abs high">19/20</td>
|
|
107
|
+
<td data-value="86.44" class="pct high">86.44%</td>
|
|
108
|
+
<td data-value="59" class="abs high">51/59</td>
|
|
94
109
|
</tr>
|
|
95
110
|
|
|
96
111
|
<tr>
|
|
@@ -155,17 +170,17 @@
|
|
|
155
170
|
|
|
156
171
|
<tr>
|
|
157
172
|
<td class="file low" data-value="Row.vue"><a href="Row.vue.html">Row.vue</a></td>
|
|
158
|
-
<td data-value="
|
|
159
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
173
|
+
<td data-value="30" class="pic low">
|
|
174
|
+
<div class="chart"><div class="cover-fill" style="width: 30%"></div><div class="cover-empty" style="width: 70%"></div></div>
|
|
160
175
|
</td>
|
|
161
|
-
<td data-value="
|
|
162
|
-
<td data-value="
|
|
176
|
+
<td data-value="30" class="pct low">30%</td>
|
|
177
|
+
<td data-value="10" class="abs low">3/10</td>
|
|
163
178
|
<td data-value="0" class="pct low">0%</td>
|
|
164
179
|
<td data-value="2" class="abs low">0/2</td>
|
|
165
180
|
<td data-value="0" class="pct low">0%</td>
|
|
166
|
-
<td data-value="
|
|
167
|
-
<td data-value="
|
|
168
|
-
<td data-value="
|
|
181
|
+
<td data-value="4" class="abs low">0/4</td>
|
|
182
|
+
<td data-value="33.33" class="pct low">33.33%</td>
|
|
183
|
+
<td data-value="9" class="abs low">3/9</td>
|
|
169
184
|
</tr>
|
|
170
185
|
|
|
171
186
|
<tr>
|
|
@@ -221,7 +236,7 @@
|
|
|
221
236
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
222
237
|
Code coverage generated by
|
|
223
238
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
224
|
-
at Fri
|
|
239
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
225
240
|
</div>
|
|
226
241
|
<script src="../../prettify.js"></script>
|
|
227
242
|
<script>
|
|
@@ -511,7 +511,7 @@ export default defineComponent({
|
|
|
511
511
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
512
512
|
Code coverage generated by
|
|
513
513
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
514
|
-
at Fri
|
|
514
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
515
515
|
</div>
|
|
516
516
|
<script src="../../prettify.js"></script>
|
|
517
517
|
<script>
|
|
@@ -242,7 +242,7 @@ export default defineComponent({
|
|
|
242
242
|
<span class="cstat-no" title="statement not covered" > return p</span>rops.config.activeValue;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
return
|
|
245
|
+
return undefined;
|
|
246
246
|
}),
|
|
247
247
|
|
|
248
248
|
inactiveValue: computed(() => {
|
|
@@ -254,7 +254,7 @@ export default defineComponent({
|
|
|
254
254
|
<span class="cstat-no" title="statement not covered" > return p</span>rops.config.inactiveValue;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
return
|
|
257
|
+
return undefined;
|
|
258
258
|
}),
|
|
259
259
|
|
|
260
260
|
<span class="fstat-no" title="function not covered" > changeHandler(</span>value: number | boolean) {
|
|
@@ -271,7 +271,7 @@ export default defineComponent({
|
|
|
271
271
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
272
272
|
Code coverage generated by
|
|
273
273
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
274
|
-
at Fri
|
|
274
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
275
275
|
</div>
|
|
276
276
|
<script src="../../prettify.js"></script>
|
|
277
277
|
<script>
|
|
@@ -202,7 +202,7 @@ export default defineComponent({
|
|
|
202
202
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
203
203
|
Code coverage generated by
|
|
204
204
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
205
|
-
at Fri
|
|
205
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
206
206
|
</div>
|
|
207
207
|
<script src="../../prettify.js"></script>
|
|
208
208
|
<script>
|
|
@@ -184,7 +184,7 @@ const changeHandler = (value: string) => emit('change', value);
|
|
|
184
184
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
185
185
|
Code coverage generated by
|
|
186
186
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
187
|
-
at Fri
|
|
187
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
188
188
|
</div>
|
|
189
189
|
<script src="../../prettify.js"></script>
|
|
190
190
|
<script>
|
|
@@ -223,7 +223,7 @@ export default defineComponent({
|
|
|
223
223
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
224
224
|
Code coverage generated by
|
|
225
225
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
226
|
-
at Fri
|
|
226
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
227
227
|
</div>
|
|
228
228
|
<script src="../../prettify.js"></script>
|
|
229
229
|
<script>
|
|
@@ -247,7 +247,7 @@ export default defineComponent({
|
|
|
247
247
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
248
248
|
Code coverage generated by
|
|
249
249
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
250
|
-
at Fri
|
|
250
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
251
251
|
</div>
|
|
252
252
|
<script src="../../prettify.js"></script>
|
|
253
253
|
<script>
|
|
@@ -295,7 +295,7 @@ export default defineComponent({
|
|
|
295
295
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
296
296
|
Code coverage generated by
|
|
297
297
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
298
|
-
at Fri
|
|
298
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
299
299
|
</div>
|
|
300
300
|
<script src="../../prettify.js"></script>
|
|
301
301
|
<script>
|
|
@@ -172,7 +172,7 @@ useAddField(props.prop);
|
|
|
172
172
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
173
173
|
Code coverage generated by
|
|
174
174
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
175
|
-
at Fri
|
|
175
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
176
176
|
</div>
|
|
177
177
|
<script src="../../prettify.js"></script>
|
|
178
178
|
<script>
|
|
@@ -397,7 +397,7 @@ export default defineComponent({
|
|
|
397
397
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
398
398
|
Code coverage generated by
|
|
399
399
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
400
|
-
at Fri
|
|
400
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
401
401
|
</div>
|
|
402
402
|
<script src="../../prettify.js"></script>
|
|
403
403
|
<script>
|
|
@@ -157,7 +157,7 @@ useAddField(props.prop);
|
|
|
157
157
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
158
158
|
Code coverage generated by
|
|
159
159
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
160
|
-
at Fri
|
|
160
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
161
161
|
</div>
|
|
162
162
|
<script src="../../prettify.js"></script>
|
|
163
163
|
<script>
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
<a v-if="config.href && !disabled" target="_blank" :href="href" :style="config.css || {}">{{ displayText }}</a>
|
|
292
292
|
<span v-else-if="config.href && disabled" :style="config.disabledCss || {}">{{ displayText }}</span>
|
|
293
293
|
<div v-else class="m-fields-link">
|
|
294
|
-
<el-button type="
|
|
294
|
+
<el-button text type="primary" @click="editHandler">点击编辑</el-button>
|
|
295
295
|
<m-form-dialog
|
|
296
296
|
ref="editor"
|
|
297
297
|
:title="config.formTitle || '编辑扩展配置'"
|
|
@@ -406,7 +406,7 @@ export default defineComponent({
|
|
|
406
406
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
407
407
|
Code coverage generated by
|
|
408
408
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
409
|
-
at Fri
|
|
409
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
410
410
|
</div>
|
|
411
411
|
<script src="../../prettify.js"></script>
|
|
412
412
|
<script>
|
|
@@ -229,7 +229,7 @@ export default defineComponent({
|
|
|
229
229
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
230
230
|
Code coverage generated by
|
|
231
231
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
232
|
-
at Fri
|
|
232
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
233
233
|
</div>
|
|
234
234
|
<script src="../../prettify.js"></script>
|
|
235
235
|
<script>
|
|
@@ -169,7 +169,7 @@ export default defineComponent({
|
|
|
169
169
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
170
170
|
Code coverage generated by
|
|
171
171
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
172
|
-
at Fri
|
|
172
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
173
173
|
</div>
|
|
174
174
|
<script src="../../prettify.js"></script>
|
|
175
175
|
<script>
|
|
@@ -1252,7 +1252,7 @@ export default defineComponent({
|
|
|
1252
1252
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1253
1253
|
Code coverage generated by
|
|
1254
1254
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1255
|
-
at Fri
|
|
1255
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
1256
1256
|
</div>
|
|
1257
1257
|
<script src="../../prettify.js"></script>
|
|
1258
1258
|
<script>
|
|
@@ -265,7 +265,7 @@ export default defineComponent({
|
|
|
265
265
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
266
266
|
Code coverage generated by
|
|
267
267
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
268
|
-
at Fri
|
|
268
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
269
269
|
</div>
|
|
270
270
|
<script src="../../prettify.js"></script>
|
|
271
271
|
<script>
|
|
@@ -472,7 +472,7 @@ export default defineComponent({
|
|
|
472
472
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
473
473
|
Code coverage generated by
|
|
474
474
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
475
|
-
at Fri
|
|
475
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
476
476
|
</div>
|
|
477
477
|
<script src="../../prettify.js"></script>
|
|
478
478
|
<script>
|
|
@@ -123,11 +123,7 @@
|
|
|
123
123
|
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
124
|
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
125
|
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
-
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
-
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
-
<a name='L63'></a><a href='#L63'>63</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
129
|
-
<span class="cline-any cline-neutral"> </span>
|
|
130
|
-
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
131
127
|
<span class="cline-any cline-neutral"> </span>
|
|
132
128
|
<span class="cline-any cline-neutral"> </span>
|
|
133
129
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -188,19 +184,17 @@
|
|
|
188
184
|
<span class="cline-any cline-neutral"> </span>
|
|
189
185
|
<span class="cline-any cline-neutral"> </span>
|
|
190
186
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><template>
|
|
191
|
-
<
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
</el-input>
|
|
203
|
-
</div>
|
|
187
|
+
<el-input
|
|
188
|
+
v-model="model[name]"
|
|
189
|
+
type="textarea"
|
|
190
|
+
:size="size"
|
|
191
|
+
clearable
|
|
192
|
+
:placeholder="config.placeholder"
|
|
193
|
+
:disabled="disabled"
|
|
194
|
+
@change="changeHandler"
|
|
195
|
+
@input="inputHandler"
|
|
196
|
+
>
|
|
197
|
+
</el-input>
|
|
204
198
|
</template>
|
|
205
199
|
|
|
206
200
|
<script lang="ts">
|
|
@@ -256,7 +250,7 @@ export default defineComponent({
|
|
|
256
250
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
257
251
|
Code coverage generated by
|
|
258
252
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
259
|
-
at Fri
|
|
253
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
260
254
|
</div>
|
|
261
255
|
<script src="../../prettify.js"></script>
|
|
262
256
|
<script>
|
|
@@ -214,7 +214,7 @@ export default defineComponent({
|
|
|
214
214
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
215
215
|
Code coverage generated by
|
|
216
216
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
217
|
-
at Fri
|
|
217
|
+
at Fri May 13 2022 20:42:35 GMT+0800 (China Standard Time)
|
|
218
218
|
</div>
|
|
219
219
|
<script src="../../prettify.js"></script>
|
|
220
220
|
<script>
|