- Homepage
- /
- Tencent WeDa
- /
- Developer
Tencent WeDa developer learning path
WeDa extension development panorama for engineers: code blocks / custom components / cloud functions SCF / OpenAPI / custom connectors / WeCom API / mini program in-depth extension / Tencent Cloud native integration.
WeDa extended development four-tier system
Low-code JS code blocks
Front-end interaction and business logic, including $page $w $app built-in variables.
Applicable: Field linkage/dynamic display/complex verification
Custom component
Developed based on React/Vue, packaged and published to the component library through CLI.
Applicable to: Rich text editor/map/chart/video playback
Cloud Function SCF
Node.js/Python backend function, which can be called by pages/processes/scheduled tasks.
Applicable to: complex business rules/data cleaning/three-party API combination
Custom connector
Register the third-party REST API as a data source and use it directly in drag and drop.
Applicable to: ERP / CRM / HR system docking
Low-code JS code block example
1. dynamic approval routing (amount ≥ 50,000 plus CFO)
// 事件:表单提交前 const amount = Number($w.amountInput.value || 0); const dept = await app.cloud.callFunction({ name: 'getManager', data: { userId: app.dataSources.user.openid, level: 1 } }); let approvers = [dept.data, 'finance_head_id']; if (amount >= 50000) approvers.push('cfo_id'); return { approverIds: approvers.filter(Boolean) };
2. calls a custom connector to query ERP
// 事件:页面加载 const res = await app.dataSources.ErpCustomer.wedaGetRecords({ filter: { where: { region: { $eq: '华东' } } }, pageSize: 50 }); $w.customerTable.setData(res.records); // 错误兜底 if (!res.records?.length) app.utils.toast('无数据');
Tencent Cloud native integration matrix
| Tencent Cloud products | Integration method | Typical uses |
|---|---|---|
| Cloud database TDSQL-C/MongoDB | Direct connection to data source | Business master data reading and writing |
| Object Storage COS | Built-in upload component | Pictures/Attachments/Large Files |
| Cloud Function SCF | function call | Backend business/three-party API combination |
| API gateway | Custom connector | Unified authentication and current limiting |
| 腾讯云 BI | Chart embedding | Complex signage / cockpit |
| Log Service CLS | SCF log delivery | Centralized search and alerting |
| WeCom Open API | Connector + JS-SDK | Organizational Structure/Message/Approval |
| WeChat applet | Publish with one click | C-side access/scan code/payment |
Multiple environments & DevOps best practices
🧪 Development/Testing/Production
Use WeDa multi-environment isolation, and configure variables to point to different databases and connectors to avoid production data pollution.
🧭 Version and Grayscale
Version snapshots and rollbacks are supported. Key changes are grayscaled to 10% users first, and error rates are monitored before full rollout.
📦 Export with Git
The application can export zip structured files and cooperate with Git for version management, code review and branch merging.
📊 Monitoring & Alerting
Cloud function log → CLS; operating indicators → cloud monitoring; when the error rate/delay exceeds the threshold, the enterprise micro notification is on duty.
🔐 Key management
Third-party keys are stored in "environment variables" or Tencent Cloud SSM parameter warehouse, and hard coding into code blocks is strictly prohibited.
🧱 Component library management
The enterprise private component library is released in versions and can be referenced by semver in the application. Downgrades can be rolled back with one click.
Developer core resources
Tencent WeDa official development documents
Data source API / low-code JS / component development specifications
Cloud Function SCF development documentation
Node.js / Python function writing and triggers
Object Storage COS Development Documents
Large file upload/signed URL/anti-leeching
WeCom Open API
Address Book / Message / Approval / Sidebar Extension
WeChat applet development documentation
Knowledge required for mini program release and in-depth expansion
Tencent Cloud Developer Community: WeDa Extension
Components/Cloud Functions/Performance Optimization Article Collection