Git Product home page Git Product logo

agel-form's People

Contributors

agrass-github avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

agel-form's Issues

component: 'el-autocomplete', fetchSuggestions正常使用,triggerOnfocus不生效

fileds.js
`export default function () {
return {
data: {},
items: [
{
clearable: true,
component: 'el-autocomplete',
prop: 'supplier',
label: '商品编码',
/**
* @param {string} api
* @param {string} key
* @description getAncillaryCode 商品编码
*/
fetchSuggestions: this.$autoCompleteInputFunc(
'getAncillaryCode',
'code',
'productCode'
),

    triggerOnfocus: false
  }
]

}
}
`

autoCompleteInputFunc.js
`import * as autoCompleteInputApi from '@/service/api/autoCompleteInput'
/**
*

export const autoCompleteInputFunc = (api, key, field) => {
const keyName = key
return async (queryString, cb) => {
try {
let result = await autoCompleteInputApi[api]({
[keyName]: queryString
})
// console.log('result',))
result = result.data.map((v) => ({ value: v[field], id: v.id }))
console.log('cb', cb)
cb(result)
} catch (err) {
console.error(err)
}
}
}
`

0.3.32版本使用vite启动项目报错

微信图片_20220107100223
老哥..0.3.32版本打包有个小优化的位置..

agel-form/src/index.js路劲下
第8行import tableditorMenuColumn from "./form/tableditor-menu-column"
建议改成import tableditorMenuColumn from "./form/tableditor-menu-column.vue"
添加一个.vue后缀.
现在使用webpack启动项目没问题.但是用vite启动项目的话,vite不能识别这个.项目会报错..建议添加一下.vue后缀更加方便.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.