mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Theming API: Add dt
props to all component
This commit is contained in:
parent
3589ef9e38
commit
7c299f55f9
6 changed files with 61 additions and 24 deletions
|
@ -180,7 +180,7 @@ export default {
|
|||
},
|
||||
|
||||
findSingle(element, selector) {
|
||||
return this.isElement(element) ? element.querySelector(selector) : null;
|
||||
return this.isElement(element) ? (element.matches(selector) ? element : element.querySelector(selector)) : null;
|
||||
},
|
||||
|
||||
createElement(type, attributes = {}, ...children) {
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
var lastId = 0;
|
||||
const lastIds = {};
|
||||
|
||||
export default function (prefix = 'pv_id_') {
|
||||
lastId++;
|
||||
if (!lastIds.hasOwnProperty(prefix)) {
|
||||
lastIds[prefix] = 0;
|
||||
}
|
||||
|
||||
return `${prefix}${lastId}`;
|
||||
lastIds[prefix]++;
|
||||
|
||||
return `${prefix}${lastIds[prefix]}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue