
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mini-ddui-comps
Advanced tools
钉钉e应用(小程序)ui组件库,目前支持autocomplete-input,有好的ui组件需求欢迎提issues。
autocomplete-input 带模糊匹配的自动完成输入组件$ npm install mini-ddui-comps --save
在页面json中文件中进行注册,如autocomplete-input组件的注册如下所示:
{
"usingComponents": {
"autocomplete-input": "mini-ddui-comps/es/auto-complete-input/index",
}
}
在axml文件中进行调用:
<view>
<autocomplete-input
value="1"
className="abc"
style="color: #333;"
placeholder="请输入"
type="text"
disabled="{{false}}"
maxlength="10"
focus="{{false}}"
onInput="onInput"
onConfirm="onConfirm"
onFocus="onFocus"
onBlur="onBlur"
onSearch="onSearch"
onSelect="onSelect"
/>
</view>
在js文件中处理事件:
Page({
data: {
},
onLoad() {
console.log('on load');
},
onInput(e) {
console.log('on input', e);
},
onConfirm(e) {
console.log('on confirm:', e);
},
onFocus(e) {
console.log('onFocus:', e);
},
onBlur(e) {
console.log('on blur:', e);
},
onSearch(key, done) {
console.log('on search:', key);
setTimeout(() => {
done(null, [{name: 'a',value: '0',},
{name: 'aa', value: '1',},
{name: 'aba',value: '2',},
{name: 'abc',value: '3',},
{name: 'abcd',value: '4',},
{name: 'bcf',value: '5',},
{name: '中国',value: '6',},
{name: '家中',value: '7',},
{name: '你好',value: '8',},
{name: '好啊',value: '9',}].filter(item => item['name'].includes(key))
)
}, 1200);
},
onSelect(row) {
console.log('on select:', row);
}
})
如果你有好的意见或建议,欢迎给我们提issue。
FAQs
钉钉e应用(小程序)ui组件库,目前支持autocomplete-input,有好的ui组件需求欢迎提issues。
We found that mini-ddui-comps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.