Customizing Field Mapping in uni-data-select for Nonstandard Value and Text Properties
When a backend dataset does not follow the conventional { value, text } schema, the uni-data-select component requires custom mapping to correctly render options.
Approach 1: Transform Data on the Client Side
Remap incoming records into the expected shape before assigning them to the component.
import { ref } from 'vue';
const mappedOpts = []; ...
Posted on Thu, 15 Oct 2026 16:15:27 +0000 by jyhm
WeChat Mini Program Select Dropdown Component
1. Source Code
https://github.com/imxiaoer/WeChatMiniSelect
2. Preview
Note: The screen recording quality is poor, so you might see ghosting artiafcts.
3. Component Code
3.1 select.wxml
<view class="select-box">
<view class="select-current" catchtap="toggleDropdown">
<text class="current- ...
Posted on Fri, 04 Sep 2026 16:40:21 +0000 by misty