Files
FreeERP.Applet/miniprogram/pages/components/search-input/search-input.ts

25 lines
397 B
TypeScript
Raw Normal View History

2026-01-21 17:05:30 +08:00
Component({
options: { multipleSlots: true },
/**
*
*/
properties: { label: null },
/**
*
*/
data: {},
/**
*
*/
methods: {
onChange(e: any) {
this.triggerEvent('change', { value: e.detail.value });
},
onClear() {
this.triggerEvent('change', { value: '' });
},
},
});