@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
41 lines (40 loc) • 1.27 kB
TypeScript
/**
* Number Spinner 数字输入框用来展示和录入数字类数据。
*
* @example
* ```vue
* <script setup lang="ts">
* import { ref } from 'vue'
*
* const value = ref(1000)
* const readonly = ref(false)
* </script>
*
* <template>
* <div style="padding: 10px">
* <div class="custom-control custom-checkbox custom-control-inline">
* <input type="checkbox" v-model="readonly" class="custom-control-input" id="readonly" />
* <label class="custom-control-label" for="readonly">是否只读</label>
* </div>
* </div>
*
* <f-number-spinner
* v-model="value"
* :readonly="readonly"
* ></f-number-spinner>
*
* <div class="mt-2">当前值:{{ value }}</div></template>
* ```
*
* @public
*/
declare const _default: import("vue").DefineComponent<{
[x: string]: any;
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{
[x: string]: any;
}> & Readonly<{
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
}>, {
[x: string]: any;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;