mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-01 19:09:51 +01:00
fix group name comma use
This commit is contained in:
parent
7050d16751
commit
a6f088c2c7
@ -8,6 +8,7 @@ import { Button } from '../../button';
|
|||||||
import { Collapse } from '../../collapse';
|
import { Collapse } from '../../collapse';
|
||||||
|
|
||||||
import { node } from '../../../utility/node';
|
import { node } from '../../../utility/node';
|
||||||
|
import { complexNode } from '../../../utility/complexNode';
|
||||||
import { get } from '../../../utility/get';
|
import { get } from '../../../utility/get';
|
||||||
import { set } from '../../../utility/set';
|
import { set } from '../../../utility/set';
|
||||||
import { convertColor } from '../../../utility/convertColor';
|
import { convertColor } from '../../../utility/convertColor';
|
||||||
@ -66,12 +67,14 @@ export const Control_select = function({
|
|||||||
option.forEach((item, i) => {
|
option.forEach((item, i) => {
|
||||||
|
|
||||||
this.select.appendChild(
|
this.select.appendChild(
|
||||||
node(
|
complexNode({
|
||||||
'option:' +
|
tag: 'option',
|
||||||
item +
|
text: item,
|
||||||
'|value:' +
|
attr: [{
|
||||||
trimString(item).replace(/\s+/g, '-').toLowerCase()
|
key: 'value',
|
||||||
)
|
value: trimString(item).replace(/\s+/g, '-').toLowerCase()
|
||||||
|
}]
|
||||||
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { node } from '../../../../utility/node';
|
import { node } from '../../../../utility/node';
|
||||||
|
import { complexNode } from '../../../../utility/complexNode';
|
||||||
import { trimString } from '../../../../utility/trimString';
|
import { trimString } from '../../../../utility/trimString';
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
@ -38,12 +39,14 @@ export const select = function({
|
|||||||
option.forEach((item, i) => {
|
option.forEach((item, i) => {
|
||||||
|
|
||||||
select.appendChild(
|
select.appendChild(
|
||||||
node(
|
complexNode({
|
||||||
'option:' +
|
tag: 'option',
|
||||||
item +
|
text: item,
|
||||||
'|value:' +
|
attr: [{
|
||||||
trimString(item).replace(/\s+/g, '-').toLowerCase()
|
key: 'value',
|
||||||
)
|
value: trimString(item).replace(/\s+/g, '-').toLowerCase()
|
||||||
|
}]
|
||||||
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user