fix: eslint jsdoc
parent
d937c81931
commit
43dff1cdb3
|
@ -102,8 +102,8 @@ function setGlobalConfigState(formItem: IVFormComponent) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加属性
|
* 添加属性
|
||||||
* @param schemas
|
* @param _formItems
|
||||||
* @param index
|
* @param _index
|
||||||
*/
|
*/
|
||||||
function handleAddAttrs(_formItems: IVFormComponent[], _index: number) {}
|
function handleAddAttrs(_formItems: IVFormComponent[], _index: number) {}
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ function handleCopy(item: IVFormComponent = formConfig.value.currentItem as IVFo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加到表单中
|
* 添加到表单中
|
||||||
* @param newIndex {object} 事件对象
|
* @param {newIndex} {object} 事件对象
|
||||||
* @param schemas {IVFormComponent[]} 表单项列表
|
* @param schemas {IVFormComponent[]} 表单项列表
|
||||||
* @param isCopy {boolean} 是否复制
|
* @param isCopy {boolean} 是否复制
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -18,7 +18,6 @@ const { formConfig } = useFormDesignState()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 拖拽完成事件
|
* 拖拽完成事件
|
||||||
* @param newIndex
|
|
||||||
*/
|
*/
|
||||||
function addItem({ newIndex }: any) {
|
function addItem({ newIndex }: any) {
|
||||||
formConfig.value.schemas = formConfig.value.schemas || []
|
formConfig.value.schemas = formConfig.value.schemas || []
|
||||||
|
@ -77,8 +76,7 @@ const layoutTag = computed(() => {
|
||||||
.list-main {
|
.list-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-content: flex-start;
|
place-content: flex-start flex-start;
|
||||||
justify-content: flex-start;
|
|
||||||
|
|
||||||
.layout-width {
|
.layout-width {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -133,7 +133,7 @@ export const findFormItem: (
|
||||||
/**
|
/**
|
||||||
* 打开json模态框时删除当前项属性
|
* 打开json模态框时删除当前项属性
|
||||||
* @param formConfig {IFormConfig}
|
* @param formConfig {IFormConfig}
|
||||||
* @returns {IFormConfig}
|
* @returns {IFormConfig} copyFormConfig
|
||||||
*/
|
*/
|
||||||
export function removeAttrs(formConfig: IFormConfig): IFormConfig {
|
export function removeAttrs(formConfig: IFormConfig): IFormConfig {
|
||||||
const copyFormConfig = cloneDeep(formConfig)
|
const copyFormConfig = cloneDeep(formConfig)
|
||||||
|
|
|
@ -43,7 +43,7 @@ export const useErrorLogStore = defineStore('app-error-log', {
|
||||||
/**
|
/**
|
||||||
* Triggered after ajax request error
|
* Triggered after ajax request error
|
||||||
* @param error
|
* @param error
|
||||||
* @returns
|
* @return addAjaxErrorInfo
|
||||||
*/
|
*/
|
||||||
addAjaxErrorInfo(error) {
|
addAjaxErrorInfo(error) {
|
||||||
const { useErrorHandle } = projectSetting
|
const { useErrorHandle } = projectSetting
|
||||||
|
|
|
@ -154,7 +154,7 @@ export function withInstall<T extends CustomComponent>(component: T, alias?: str
|
||||||
*
|
*
|
||||||
* @param fn 要防抖的函数
|
* @param fn 要防抖的函数
|
||||||
* @param delay 防抖的毫秒数
|
* @param delay 防抖的毫秒数
|
||||||
* @returns {Function}
|
* @returns {Function} simpleDebounce
|
||||||
*/
|
*/
|
||||||
export function simpleDebounce(fn, delay = 100) {
|
export function simpleDebounce(fn, delay = 100) {
|
||||||
let timer: any | null = null
|
let timer: any | null = null
|
||||||
|
|
|
@ -39,7 +39,7 @@ export interface Emitter<Events extends Record<EventType, unknown>> {
|
||||||
/**
|
/**
|
||||||
* Mitt: Tiny (~200b) functional event emitter / pubsub.
|
* Mitt: Tiny (~200b) functional event emitter / pubsub.
|
||||||
* @name mitt
|
* @name mitt
|
||||||
* @returns {Mitt}
|
* @returns {Mitt} mitt
|
||||||
*/
|
*/
|
||||||
export function mitt<Events extends Record<EventType, unknown>>(
|
export function mitt<Events extends Record<EventType, unknown>>(
|
||||||
all?: EventHandlerMap<Events>,
|
all?: EventHandlerMap<Events>,
|
||||||
|
|
Loading…
Reference in New Issue