first commit
This commit is contained in:
13
uni_modules/tdesign-uniapp/components/input/computed.js
Normal file
13
uni_modules/tdesign-uniapp/components/input/computed.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export function getInputClass(classPrefix, suffix, align, disabled) {
|
||||
const className = [`${classPrefix}__control`];
|
||||
|
||||
if (align) {
|
||||
className.push(`${classPrefix}--${align}`);
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
className.push(`${classPrefix}__control--disabled`);
|
||||
}
|
||||
return className.join(' ');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user