Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from smoti123/master
Browse files Browse the repository at this point in the history
Added TextField component
  • Loading branch information
s-bauer authored Dec 27, 2018
2 parents 594366e + 405bb20 commit abe8ed2
Show file tree
Hide file tree
Showing 4 changed files with 478 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This library is in early alpha stage. The list of supported components is pretty
## Supported Components

- Checkbox
- Model: checked
- Model: :checked / @change
- Props: disabled, label
- Button
- Props: disabled, checked, primary
Expand All @@ -35,12 +35,13 @@ This library is in early alpha stage. The list of supported components is pretty
- Props: iconName
- Image
- Info: Take a look at the [Official Documentation](https://developer.microsoft.com/en-us/fabric#/components/image). I implemented all features and the syntax is very similar!
- TextField
- Model: :text / @input
- Props: label, disabled, multiline, borderless, required, resizable, underlined, inputClassName

## In-Progress Components

- TextField
- ChoiceGroup
- Icon

## Contribution

Expand Down
8 changes: 7 additions & 1 deletion src/components/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import {ImageFit} from "./Image/OfficeImage.types";
<OfficeImage src="http://placehold.it/350x150" alt="Example" maximizeFrame/>
<hr>
<OfficeIcon iconName="BingLogo"/>
<hr>
<OfficeTextField label="Test Text" v-model="txt"></OfficeTextField>
<OfficeTextField label="Test Text" underlined required v-model="txt"></OfficeTextField>
</div>
</template>

Expand All @@ -30,18 +33,21 @@ import {ImageFit} from "./Image/OfficeImage.types";
import {Component, Prop, Vue} from "vue-property-decorator";
import OfficeButton from "./Button/OfficeButton.vue";
import OfficeCheckbox from "./Checkbox/OfficeCheckbox.vue";
import OfficeTextField from "@/components/TextField/OfficeTextField.vue";
@Component({
components: {
OfficeIcon,
OfficeImage,
OfficeLabel,
OfficeCheckbox,
OfficeButton
OfficeButton,
OfficeTextField
},
})
export default class Overview extends Vue {
@Prop() private msg!: string;
private txt: string = "test";
private currentImageFit: ImageFit = ImageFit.contain;
Expand Down
Loading

0 comments on commit abe8ed2

Please sign in to comment.