Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(components): add checkbox / radio button #36

Merged
merged 3 commits into from
Jan 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/webpack.base.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const isProd = process.env.NODE_ENV === 'production';

const baseConfig = {
Expand All @@ -24,7 +23,6 @@ const baseConfig = {
DEVELOPMENT: !isProd,
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
}),
new HardSourceWebpackPlugin(),
],
module: {
rules: [
Expand Down
189 changes: 31 additions & 158 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
"file-loader": "1.1.6",
"generate-changelog": "1.7.0",
"glob": "7.1.2",
"hard-source-webpack-plugin": "0.5.16",
"html-webpack-plugin": "2.30.1",
"husky": "0.14.3",
"identity-obj-proxy": "3.0.0",
Expand Down
47 changes: 33 additions & 14 deletions src/app/components/Components/Components.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,40 @@
TEST
</vue-modal>
</vue-grid-item>

<vue-grid-item>
<div class="h1">Checkboxes / RadioButtons</div>

<vue-check-box id="check" label="checkbox" :checked="checked" @click="checked = !checked" />
<br />
<vue-check-box id="check2" label="checkbox" :checked="checked" @click="checked = !checked" :disabled="true" />
<br />
<br />
<vue-check-box id="radio" label="radio" :checked="radio === 'radio1'" radio @click="radio = 'radio1'" />
<br />
<vue-check-box id="radio2" label="radio" :checked="radio === 'radio2'" radio @click="radio = 'radio2'" />
<br />
<vue-check-box id="radio3" label="radio" :checked="radio === 'radio3'" radio @click="radio = 'radio3'" :disabled="true" />
</vue-grid-item>
</vue-grid>
</div>
</template>

<script lang="ts">
import VueGrid from '../../shared/components/VueGrid/VueGrid';
import VueGridItem from '../../shared/components/VueGridItem/VueGridItem';
import VueButton from '../../shared/components/VueButton/VueButton';
import VueLoader from '../../shared/components/VueLoader/VueLoader';
import VuePanel from '../../shared/components/VuePanel/VuePanel';
import VuePanelHeader from '../../shared/components/VuePanel/VuePanelHeader/VuePanelHeader';
import VuePanelBody from '../../shared/components/VuePanel/VuePanelBody/VuePanelBody';
import VuePanelFooter from '../../shared/components/VuePanel/VuePanelFooter/VuePanelFooter';
import VueInput from '../../shared/components/VueInput/VueInput';
import VueCollapse from '../../shared/components/VueCollapse/VueCollapse';
import VueModal from '../../shared/components/VueModal/VueModal';
import VueTabGroup from '../../shared/components/VueTabGroup/VueTabGroup';
import VueTabItem from '../../shared/components/VueTabItem/VueTabItem';
import VueGrid from '../../shared/components/VueGrid/VueGrid.vue';
import VueGridItem from '../../shared/components/VueGridItem/VueGridItem.vue';
import VueButton from '../../shared/components/VueButton/VueButton.vue';
import VueLoader from '../../shared/components/VueLoader/VueLoader.vue';
import VuePanel from '../../shared/components/VuePanel/VuePanel.vue';
import VuePanelHeader from '../../shared/components/VuePanel/VuePanelHeader/VuePanelHeader.vue';
import VuePanelBody from '../../shared/components/VuePanel/VuePanelBody/VuePanelBody.vue';
import VuePanelFooter from '../../shared/components/VuePanel/VuePanelFooter/VuePanelFooter.vue';
import VueInput from '../../shared/components/VueInput/VueInput.vue';
import VueCollapse from '../../shared/components/VueCollapse/VueCollapse.vue';
import VueModal from '../../shared/components/VueModal/VueModal.vue';
import VueTabGroup from '../../shared/components/VueTabGroup/VueTabGroup.vue';
import VueTabItem from '../../shared/components/VueTabItem/VueTabItem.vue';
import VueCheckBox from '../../shared/components/VueCheckBox/VueCheckBox.vue';

export default {
metaInfo: {
Expand All @@ -174,13 +190,16 @@
VueModal,
VueTabGroup,
VueTabItem,
VueCheckBox,
},
data() {
return {
collapseDemo: true,
showModal: false,
checked: true,
radio: 'radio1'
}
}
},
};
</script>

Expand Down
Loading