Skip to content

Commit

Permalink
Create InputNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Sep 29, 2023
1 parent ab9282e commit 36b068c
Show file tree
Hide file tree
Showing 7 changed files with 620 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ PaperOffset(paper)
import {useTweeq} from '@/tweeq'
import CommandPalette from '@/tweeq/CommandPalette'
import FloatingPane from '@/tweeq/FloatingPane'
import InputNumber from '@/tweeq/InputNumber'
import InputString from '@/tweeq/InputString'
import MonacoEditor, {ErrorInfo} from '@/tweeq/MonacoEditor'
import RoundButton from '@/tweeq/RoundButton'
Expand All @@ -41,6 +42,7 @@ const {appStorage, registerActions, performAction} = useTweeq(
)
const testString = ref('Hello World')
const testNumber = ref(100)
// interface PaperDesc {
// id?: string
Expand Down Expand Up @@ -411,6 +413,7 @@ window.addEventListener('drop', async e => {
:position="{anchor: 'bottom', height: 200}"
>
<InputString v-model="testString" />
<InputNumber v-model="testNumber" :min="0" :max="100" />
</FloatingPane>
</div>
</template>
Expand Down
Loading

0 comments on commit 36b068c

Please sign in to comment.