mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Theming API: implement $dt(tokenPath, 'value')
method
This commit is contained in:
parent
14c6e47b32
commit
855be4bfa1
4 changed files with 78 additions and 9 deletions
|
@ -34,6 +34,9 @@ export default {
|
|||
.toLowerCase()
|
||||
: str;
|
||||
},
|
||||
toTokenKey(str) {
|
||||
return this.isString(str) ? str.replace(/[A-Z]/g, (c, i) => (i === 0 ? c : '.' + c.toLowerCase())).toLowerCase() : str;
|
||||
},
|
||||
merge(value1, value2) {
|
||||
if (this.isArray(value1)) {
|
||||
value1.push(...(value2 || []));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue