mirror of
https://github.com/esiur/iui.git
synced 2025-06-27 01:13:12 +00:00
docs
This commit is contained in:
@ -116,6 +116,13 @@
|
||||
<i-route name="repeat" caption="Repeat" :content="load(this)">
|
||||
</i-route>
|
||||
|
||||
<i-route name="input" caption="Input" :content="load(this)">
|
||||
</i-route>
|
||||
|
||||
<i-route name="select" caption="Select" :content="load(this)">
|
||||
</i-route>
|
||||
|
||||
|
||||
</i-route>
|
||||
|
||||
|
||||
|
@ -1,5 +1,48 @@
|
||||
# I-Input
|
||||
|
||||
Text input
|
||||
<i-codepreview>
|
||||
|
||||
</i-codepreview>
|
||||
<i-input :data="'Hello World'"> </i-input>
|
||||
</i-codepreview>
|
||||
|
||||
Field attribute
|
||||
|
||||
<i-codepreview>
|
||||
<div :data="{msg: 'Hello World'}">
|
||||
<i-input field="msg"></i-input>
|
||||
</div>
|
||||
</i-codepreview>
|
||||
|
||||
Auto
|
||||
|
||||
<i-codepreview>
|
||||
<div :data="{msg: 'Edit me'}">
|
||||
<i-input field="msg" auto></i-input>
|
||||
<button onclick="alert(this.data.msg)"> Click Me </button>
|
||||
</div>
|
||||
</i-codepreview>
|
||||
|
||||
Auto with Modifiable
|
||||
|
||||
<i-codepreview>
|
||||
<div :data="new Modifiable({msg: 'Write something'})">
|
||||
<i-input field="msg" auto></i-input>
|
||||
<div>${d.msg}</div>
|
||||
</div>
|
||||
</i-codepreview>
|
||||
|
||||
|
||||
Types
|
||||
|
||||
<i-codepreview>
|
||||
<i-input type="number"></i-input>
|
||||
<i-input type="checkbox"></i-input>
|
||||
<i-input type="date"></i-input>
|
||||
<i-input type="file"></i-input>
|
||||
</i-codepreview>
|
||||
|
||||
Validation
|
||||
|
||||
<i-codepreview>
|
||||
<i-input auto :validate="() => this.data.length > 5" vmsg="Min length 6 letters"></i-input>
|
||||
</i-codepreview>
|
||||
|
7
docs/md/components/select.md
Normal file
7
docs/md/components/select.md
Normal file
@ -0,0 +1,7 @@
|
||||
# I-Select
|
||||
|
||||
<i-codepreview>
|
||||
<i-select :query=>
|
||||
</i-select>
|
||||
</i-codepreview>
|
||||
|
Reference in New Issue
Block a user