-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sergey
authored
Jan 19, 2022
1 parent
a46acfa
commit 2d5cefc
Showing
19 changed files
with
926 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"*.{js,ts}": ["eslint --fix", "prettier --write"], | ||
"*.scss": ["stylelint --fix", "prettier --write"], | ||
"*.vue": ["stylelint --fix", "prettier --write", "eslint --fix"], | ||
"*.{vue,html}": ["stylelint --fix", "prettier --write", "eslint --fix"], | ||
"{*.json,.*rc}": ["prettier --parser json --write"], | ||
"*.{yaml,yml}": ["prettier --parser yaml --write"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
/public | ||
/dist | ||
/stories/intro.stories.mdx | ||
/docs/.vuepress/.temp | ||
/docs/.vuepress/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<div class="block"> | ||
<q-checkbox :model-value="false" label="Default" /> | ||
</div> | ||
<div class="block"> | ||
<q-checkbox :model-value="true" label="Selected" /> | ||
</div> | ||
<div class="block"> | ||
<q-checkbox :model-value="false" label="Indeterminate" indeterminate /> | ||
</div> | ||
<div class="block"> | ||
<q-checkbox :model-value="false" label="Default Disabled" disabled /> | ||
</div> | ||
<div class="block"> | ||
<q-checkbox :model-value="true" label="Selected Disabled" disabled /> | ||
</div> | ||
<div class="block"> | ||
<q-checkbox | ||
:model-value="false" | ||
label="Indeterminate Disabled" | ||
disabled | ||
indeterminate | ||
/> | ||
</div> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import JavaScript --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const app = Vue.createApp({}); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
#app { | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
gap: 20px; | ||
align-items: center; | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<q-checkbox label="Disabled" disabled /> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import JavaScript --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const app = Vue.createApp({}); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
#app { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<q-checkbox v-model="model" label="Indeterminate" indeterminate /> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import JavaScript --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const App = { | ||
data() { | ||
const { ref } = Vue; | ||
|
||
const model = ref(true); | ||
|
||
return { model }; | ||
} | ||
}; | ||
|
||
const app = Vue.createApp(App); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
#app { | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<q-checkbox v-model="model" label="Label" /> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import JavaScript --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const App = { | ||
data() { | ||
const { ref } = Vue; | ||
|
||
const model = ref(true); | ||
|
||
return { model }; | ||
} | ||
}; | ||
|
||
const app = Vue.createApp(App); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
#app { | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<q-checkbox v-model="model" :label="`modelValue = ${model}`" /> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import JavaScript --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const App = { | ||
data() { | ||
const { ref } = Vue; | ||
|
||
const model = ref(true); | ||
|
||
return { model }; | ||
} | ||
}; | ||
|
||
const app = Vue.createApp(App); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
#app { | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<q-form :model="model" :rules="rules"> | ||
<q-form-item prop="checkbox"> | ||
<q-checkbox | ||
v-model="model.checkbox" | ||
label="Required checkbox" | ||
validate-event | ||
/> | ||
</q-form-item> | ||
</q-form> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import Qui-Max --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const { createApp, reactive } = Vue; | ||
const App = { | ||
data() { | ||
const rules = { | ||
checkbox: { | ||
required: true, | ||
type: 'enum', | ||
enum: [true], | ||
message: 'Please select checkbox', | ||
trigger: 'change' | ||
} | ||
}; | ||
|
||
const model = reactive({ checkbox: true }); | ||
|
||
return { model, rules }; | ||
} | ||
}; | ||
|
||
const app = createApp(App); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
.q-form { | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- import CSS --> | ||
<link rel="stylesheet" href="https://unpkg.com/@qvant/qui/dist/qui.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<q-checkbox-group v-model="checkedCities"> | ||
<q-checkbox v-for="city in cities" :key="city" :label="city" /> | ||
</q-checkbox-group> | ||
</div> | ||
</body> | ||
<!-- import Vue before Qui --> | ||
<script src="https://unpkg.com/vue@next"></script> | ||
<!-- import JavaScript --> | ||
<script src="https://unpkg.com/@qvant/qui-max@latest"></script> | ||
<script> | ||
const App = { | ||
data() { | ||
const checkedCities = Vue.ref(['Shanghai', 'Beijing']); | ||
const cities = Vue.ref([ | ||
'Shanghai', | ||
'Beijing', | ||
'Guangzhou', | ||
'Shenzhen' | ||
]); | ||
|
||
return { checkedCities, cities }; | ||
} | ||
}; | ||
|
||
const app = Vue.createApp(App); | ||
const Qui = window.QuiMax.default; | ||
app.use(Qui); | ||
app.mount('#app'); | ||
</script> | ||
<style> | ||
#app { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 25px; | ||
} | ||
</style> | ||
</html> |
Oops, something went wrong.