@htmlplus/element 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,7 +195,7 @@ export const document = (options) => {
|
|
|
195
195
|
};
|
|
196
196
|
});
|
|
197
197
|
})();
|
|
198
|
-
const tags = getTags(context.class);
|
|
198
|
+
const tags = getTags(context.class).filter((tag) => !['part', 'slot'].includes(tag.key));
|
|
199
199
|
const title = capitalCase(context.componentKey);
|
|
200
200
|
const component = {
|
|
201
201
|
events,
|
package/compiler/utils/tags.js
CHANGED
|
@@ -32,7 +32,7 @@ export const getTags = (node, filter) => {
|
|
|
32
32
|
export const hasTag = (node, name) => {
|
|
33
33
|
return getTags(node).some((tag) => tag.key === name);
|
|
34
34
|
};
|
|
35
|
-
export const parseTag = (tag, spliter = '-') => {
|
|
35
|
+
export const parseTag = (tag, spliter = ' - ') => {
|
|
36
36
|
var _a, _b;
|
|
37
37
|
const sections = ((_a = tag.value) === null || _a === void 0 ? void 0 : _a.split(spliter)) || [];
|
|
38
38
|
const name = (_b = sections[0]) === null || _b === void 0 ? void 0 : _b.trim();
|