vue-devui 1.6.29 → 1.6.30
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/package.json
CHANGED
|
@@ -19,6 +19,7 @@ export declare class MDRenderService {
|
|
|
19
19
|
setOptions(options?: {}): void;
|
|
20
20
|
setPlugins(plugins: Array<MdPlugin>): void;
|
|
21
21
|
private onIgnoreTagAttr;
|
|
22
|
+
private onTagAttr;
|
|
22
23
|
private replaceInternalUrl;
|
|
23
24
|
private handleHeaderId;
|
|
24
25
|
generateHTML(text: string): string;
|
package/vue-devui.es.js
CHANGED
|
@@ -37010,7 +37010,12 @@ class MDRenderService {
|
|
|
37010
37010
|
});
|
|
37011
37011
|
}
|
|
37012
37012
|
onIgnoreTagAttr(tag2, name, value, isWhiteAttr) {
|
|
37013
|
-
if (!isWhiteAttr && (name === "id" || tag2 === "span" && name === "style")) {
|
|
37013
|
+
if (!isWhiteAttr && (name === "id" || tag2 === "span" && name === "style" || tag2 === "a" && name === "href")) {
|
|
37014
|
+
return name + "=" + value;
|
|
37015
|
+
}
|
|
37016
|
+
}
|
|
37017
|
+
onTagAttr(tag2, name, value, isWhiteAttr) {
|
|
37018
|
+
if (isWhiteAttr && (tag2 === "a" && name === "href")) {
|
|
37014
37019
|
return name + "=" + value;
|
|
37015
37020
|
}
|
|
37016
37021
|
}
|
|
@@ -37042,6 +37047,7 @@ class MDRenderService {
|
|
|
37042
37047
|
html = filterXSS(html, {
|
|
37043
37048
|
whiteList: this.xssWhiteList,
|
|
37044
37049
|
onIgnoreTagAttr: this.onIgnoreTagAttr,
|
|
37050
|
+
onTagAttr: this.onTagAttr,
|
|
37045
37051
|
css: {
|
|
37046
37052
|
whiteList: Object.assign({}, this.cssWhiteList, {
|
|
37047
37053
|
top: true,
|
|
@@ -54448,7 +54454,7 @@ const installs = [
|
|
|
54448
54454
|
VirtualListInstall
|
|
54449
54455
|
];
|
|
54450
54456
|
var vueDevui = {
|
|
54451
|
-
version: "1.6.
|
|
54457
|
+
version: "1.6.30",
|
|
54452
54458
|
install(app) {
|
|
54453
54459
|
installs.forEach((p) => app.use(p));
|
|
54454
54460
|
}
|