@lvce-editor/virtual-dom 2.7.0 → 2.8.0
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/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ const Select$1 = 'select';
|
|
|
51
51
|
const Option$1 = 'option';
|
|
52
52
|
const Code$1 = 'code';
|
|
53
53
|
const Label$1 = 'label';
|
|
54
|
+
const Dt$1 = 'dt';
|
|
54
55
|
|
|
55
56
|
const Audio = 0;
|
|
56
57
|
const Button = 1;
|
|
@@ -106,6 +107,7 @@ const Select = 63;
|
|
|
106
107
|
const Option = 64;
|
|
107
108
|
const Code = 65;
|
|
108
109
|
const Label = 66;
|
|
110
|
+
const Dt = 67;
|
|
109
111
|
|
|
110
112
|
const getElementTag = type => {
|
|
111
113
|
switch (type) {
|
|
@@ -215,6 +217,8 @@ const getElementTag = type => {
|
|
|
215
217
|
return Code$1;
|
|
216
218
|
case Label:
|
|
217
219
|
return Label$1;
|
|
220
|
+
case Dt:
|
|
221
|
+
return Dt$1;
|
|
218
222
|
default:
|
|
219
223
|
throw new Error(`element tag not found ${type}`);
|
|
220
224
|
}
|
package/package.json
CHANGED
|
@@ -109,6 +109,8 @@ export const getElementTag = (type: number): string => {
|
|
|
109
109
|
return ElementTag.Code
|
|
110
110
|
case VirtualDomElements.Label:
|
|
111
111
|
return ElementTag.Label
|
|
112
|
+
case VirtualDomElements.Dt:
|
|
113
|
+
return ElementTag.Dt
|
|
112
114
|
default:
|
|
113
115
|
throw new Error(`element tag not found ${type}`)
|
|
114
116
|
}
|