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 { node } from '../../../utility/node';
|
||||
import { complexNode } from '../../../utility/complexNode';
|
||||
import { get } from '../../../utility/get';
|
||||
import { set } from '../../../utility/set';
|
||||
import { convertColor } from '../../../utility/convertColor';
|
||||
@ -66,12 +67,14 @@ export const Control_select = function({
|
||||
option.forEach((item, i) => {
|
||||
|
||||
this.select.appendChild(
|
||||
node(
|
||||
'option:' +
|
||||
item +
|
||||
'|value:' +
|
||||
trimString(item).replace(/\s+/g, '-').toLowerCase()
|
||||
)
|
||||
complexNode({
|
||||
tag: 'option',
|
||||
text: item,
|
||||
attr: [{
|
||||
key: 'value',
|
||||
value: trimString(item).replace(/\s+/g, '-').toLowerCase()
|
||||
}]
|
||||
})
|
||||
);
|
||||
|
||||
});
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { node } from '../../../../utility/node';
|
||||
import { complexNode } from '../../../../utility/complexNode';
|
||||
import { trimString } from '../../../../utility/trimString';
|
||||
|
||||
import './index.css';
|
||||
@ -38,12 +39,14 @@ export const select = function({
|
||||
option.forEach((item, i) => {
|
||||
|
||||
select.appendChild(
|
||||
node(
|
||||
'option:' +
|
||||
item +
|
||||
'|value:' +
|
||||
trimString(item).replace(/\s+/g, '-').toLowerCase()
|
||||
)
|
||||
complexNode({
|
||||
tag: 'option',
|
||||
text: item,
|
||||
attr: [{
|
||||
key: 'value',
|
||||
value: trimString(item).replace(/\s+/g, '-').toLowerCase()
|
||||
}]
|
||||
})
|
||||
);
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user