Skip to content

商品分类输入

代码事例
vue
<template>
	<p>单选</p>
	<GoodsCategoryInput v-model="model.single" placeholder="商品分类" />
	<p>多选</p>
	<GoodsCategoryInput v-model="model.multiple" multiple placeholder="商品分类" />
	<p>数据模型</p>
	<fk-row>
		<JsonViewer :data="model" />
	</fk-row>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import { GoodsCategoryInput } from '@erp/biz';

const model = ref({
	single: '',
	multiple: [],
});
</script>

商品分类输入 API

<goods-category-input> Props

参数名描述类型默认值
model-value (v-model) (必填)绑定值union-
allow-clear是否允许清空输入框booleanfalse
disabled是否禁用booleanfalse
multiple是否多选booleanfalse
placeholder提示文字string-

基于 MIT 许可发布