fix: web text set fixed lineHeight for maxLines
This commit is contained in:
parent
310f5d0ff7
commit
ba35172ae0
2
doric-web/dist/index.js
vendored
2
doric-web/dist/index.js
vendored
@ -7204,7 +7204,6 @@ var doric_web = (function (exports, axios, sandbox) {
|
||||
const div = document.createElement('div');
|
||||
div.style.display = "flex";
|
||||
div.style.overflow = "hidden";
|
||||
div.style.lineHeight = `${this.lineHeight()}em`;
|
||||
this.textElement = document.createElement('span');
|
||||
div.appendChild(this.textElement);
|
||||
div.style.justifyContent = "center";
|
||||
@ -7269,6 +7268,7 @@ var doric_web = (function (exports, axios, sandbox) {
|
||||
case "maxLines":
|
||||
this.maxLines = prop;
|
||||
this.view.style.whiteSpace = 'normal';
|
||||
this.view.style.lineHeight = `${this.lineHeight()}em`;
|
||||
break;
|
||||
case "maxWidth":
|
||||
if (prop) {
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -8,7 +8,6 @@ export class DoricTextNode extends DoricViewNode {
|
||||
const div = document.createElement('div')
|
||||
div.style.display = "flex"
|
||||
div.style.overflow = "hidden"
|
||||
div.style.lineHeight = `${this.lineHeight()}em`
|
||||
this.textElement = document.createElement('span')
|
||||
div.appendChild(this.textElement)
|
||||
div.style.justifyContent = "center"
|
||||
@ -70,6 +69,7 @@ export class DoricTextNode extends DoricViewNode {
|
||||
case "maxLines":
|
||||
this.maxLines = prop as number
|
||||
this.view.style.whiteSpace = 'normal'
|
||||
this.view.style.lineHeight = `${this.lineHeight()}em`
|
||||
break
|
||||
case "maxWidth":
|
||||
if (prop) {
|
||||
|
Reference in New Issue
Block a user