Skip to content

Commit 21a207f

Browse files
author
minjk-bl
committed
Except block changed
1 parent e0fec5a commit 21a207f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

css/root.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ hr.vp-extra-menu-line {
288288
.wp5 {
289289
width: 5% !important;
290290
}
291+
.w150 {
292+
width: 150px !important;
293+
}
291294
.w100 {
292295
width: 100px !important;
293296
}

js/m_logic/Except.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ define([
3131
this.state = {
3232
v1: '',
3333
v2: '',
34-
v3: '',
3534
...this.state
3635
}
3736
}
3837

3938
templateForBody() {
40-
let { v1, v2, v3 } = this.state;
39+
let { v1, v2 } = this.state;
4140
let page = new com_String();
4241
// suggestInput for operator
4342
let errorList = [
@@ -48,7 +47,7 @@ define([
4847
];
4948
var suggestInput = new SuggestInput();
5049
suggestInput.setComponentID('v1');
51-
suggestInput.addClass('vp-input vp-state w100 v1');
50+
suggestInput.addClass('vp-input vp-state w150 v1');
5251
suggestInput.setSuggestList(function() { return errorList; });
5352
suggestInput.setPlaceholder('Error');
5453
suggestInput.setNormalFilter(false);
@@ -59,16 +58,16 @@ define([
5958
$(this.wrapSelector()).trigger('change');
6059
});
6160
page.appendLine(suggestInput.toTagString());
61+
page.appendLine('<label style="padding: 0 10px 0 10px;">as</label>');
6262
page.appendFormatLine('<input type="text" id="v2" class="vp-input vp-state w50 v2" value="{0}"/>', v2);
63-
page.appendFormatLine('<input type="text" id="v3" class="vp-input vp-state w50 v3" value="{0}"/>', v3);
6463
return page.toString();
6564
}
6665

6766
generateCode() {
68-
let { v1, v2, v3 } = this.state;
67+
let { v1, v2 } = this.state;
6968
let asVariableStr = '';
7069
if (v2 != '') {
71-
asVariableStr = ' ' + v2 + ' ' + v3;
70+
asVariableStr = ' as ' + v2;
7271
}
7372
return `except ${v1}${asVariableStr}:`;
7473
}

0 commit comments

Comments
 (0)