UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

67 lines (66 loc) 1.52 kB
/** * Button Group 组件为不同使用场景提供了一组按钮展示样式。 * * @example * ```vue * <script setup lang="ts"> * import { ref } from 'vue' * * const data = ref([ * { * id: 'b1', * text: '增加', * type: 'primary' * }, * { * id: 'b2', * text: '删除', * type: 'warning' * }, * { * id: 'b3', * text: '保存', * type: 'success' * }, * { * id: 'b4', * text: '编辑', * type: 'danger' * } * ]) * const data2 = ref([ * { * id: 'b1', * text: '增加' * }, * { * id: 'b2', * text: '删除' * }, * { * id: 'b3', * text: '保存' * } * ]) * </script> * * <template> * <div> * <f-button-group :count="3" :data="data"></f-button-group> * <div style="padding: 10px"> * <f-button-group :count="3" :data="data2" type="primary" mode="group"></f-button-group> * </div> * </div> * </template> * ``` * * @public */ declare const _default: import("vue").DefineComponent<{ [x: string]: any; }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{ [x: string]: any; }> & Readonly<{}>, { [x: string]: any; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;