first commit
This commit is contained in:
9
uni_modules/tdesign-uniapp/components/slider/computed.js
Normal file
9
uni_modules/tdesign-uniapp/components/slider/computed.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getRegExp } from '../common/runtime/wxs-polyfill';
|
||||
|
||||
const REGEXP = getRegExp('[$][{value}]{7}');
|
||||
|
||||
export function getValue(label, value) {
|
||||
if (label && label === 'true') return value;
|
||||
if (REGEXP.test(label)) return label.replace(REGEXP, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user