vxe-pc-ui
Version:
A vue based PC component library
18 lines (17 loc) • 542 B
JavaScript
import { handleGetFormDesignWidgetName } from '../render/util';
import { getI18n } from '@vxe-ui/core';
import XEUtils from 'xe-utils';
export const getWidgetSelectConfig = () => {
return {
title: handleGetFormDesignWidgetName,
icon: 'vxe-icon-select',
query: true,
options: {
options: XEUtils.range(0, 3).map((v, i) => {
return {
value: getI18n('vxe.formDesign.widgetProp.dataSource.defValue', [i + 1])
};
})
}
};
};