Ready to update
This commit is contained in:
parent
c635e838c8
commit
e75cfd96a6
@ -10,7 +10,6 @@
|
||||
},
|
||||
"homepage": "https://cg-select.itguild.info",
|
||||
"scripts": {
|
||||
"start": "parcel ./test/index.html -p 4500 --open",
|
||||
"watch": "parcel watch",
|
||||
"build": "parcel build",
|
||||
"deploy": "gh-pages -d dist",
|
||||
|
@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- TODO: Удалить после окончания обновления -->
|
||||
<button class="cg-dropdown cg-dropdown_selector"></button>
|
||||
</body>
|
||||
<script src="index.js" type="module"></script>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
import { CGSelect } from '../src/cg-select';
|
||||
import { newTheme } from './test';
|
||||
|
||||
const dropdown = new CGSelect({
|
||||
selector: '.cg-dropdown_selector',
|
||||
placeholder: 'Выберите авто',
|
||||
label: 'HI',
|
||||
items: [
|
||||
'BMW',
|
||||
{
|
||||
id: '213sade',
|
||||
title: 'Opel',
|
||||
value: 1,
|
||||
},
|
||||
'Mersedes',
|
||||
'MAN',
|
||||
'Ferari',
|
||||
],
|
||||
searchMode: true,
|
||||
multiselect: true,
|
||||
multiselectTag: true,
|
||||
theme: newTheme,
|
||||
});
|
29
test/test.ts
29
test/test.ts
@ -1,29 +0,0 @@
|
||||
import { CustomThemeJson } from 'components/theme/theme.interface';
|
||||
|
||||
export const newTheme: CustomThemeJson = {
|
||||
name: 'lol',
|
||||
styles: {
|
||||
head: {
|
||||
color: 'red',
|
||||
fontSize: '18px',
|
||||
background: '#ff000066',
|
||||
},
|
||||
lable: {
|
||||
color: 'black',
|
||||
fontSize: '26px',
|
||||
},
|
||||
list: {
|
||||
background: 'black',
|
||||
color: 'red',
|
||||
},
|
||||
placeholder: {
|
||||
color: 'green',
|
||||
},
|
||||
caret: {
|
||||
borderTop: '6px solid #607ab1',
|
||||
},
|
||||
search: {
|
||||
background: 'red',
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user