@mintjamsinc/ichigojs 0.1.57 → 0.1.58
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.
- package/README.md +31 -0
- package/dist/ichigo.cjs +8 -0
- package/dist/ichigo.cjs.map +1 -1
- package/dist/ichigo.esm.js +8 -0
- package/dist/ichigo.esm.js.map +1 -1
- package/dist/ichigo.esm.min.js +1 -1
- package/dist/ichigo.min.cjs +1 -1
- package/dist/ichigo.umd.js +8 -0
- package/dist/ichigo.umd.js.map +1 -1
- package/dist/ichigo.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/ichigo.umd.js
CHANGED
|
@@ -8653,6 +8653,14 @@
|
|
|
8653
8653
|
// Other directives (@click, :class, etc.) will be processed on the cloned/rendered elements.
|
|
8654
8654
|
const attributes = [];
|
|
8655
8655
|
if (element.hasAttribute(StandardDirectiveName.V_FOR)) {
|
|
8656
|
+
// <template v-for v-if> is not supported: v-for clones .content (a
|
|
8657
|
+
// DocumentFragment), so the v-if attribute on the <template> itself
|
|
8658
|
+
// is lost. Warn the developer so silent failure is avoided.
|
|
8659
|
+
if (element instanceof HTMLTemplateElement && element.hasAttribute(StandardDirectiveName.V_IF)) {
|
|
8660
|
+
console.warn('[ichigo.js] <template> cannot combine v-for and v-if. ' +
|
|
8661
|
+
'The v-if will be ignored. Move v-if to an inner element, ' +
|
|
8662
|
+
'or replace <template> with a regular element.', element);
|
|
8663
|
+
}
|
|
8656
8664
|
// For v-for template element: only process v-for and :key
|
|
8657
8665
|
// Other attributes will be processed when child VNodes are created for cloned elements
|
|
8658
8666
|
attributes.push(element.getAttributeNode(StandardDirectiveName.V_FOR));
|