iview采坑记:tooltip组件用到了定位后,内容过长不会自动换行了

如果使用iview中的tooltip组件,并且tooltip组件加上了定位,那么想要让它自动换行,就得这么写,例子如下:
 
            <FormItem label="密码" prop="password">
              <Tooltip
                max-width="200"
                style="position:absolute;top:0;left:-80px;min-200px;"
                theme="light"
                placement="top"
                content="密码由数字和字母组成,必须含有数字和字母,长度6-16位之间"
              >
                <Icon :size="18" type="ios-help-circle-outline" />
              </Tooltip>
              <Input
                placeholder="请输入"
                type="password"
                password
                v-model="formData.password"
                :maxlength="32"
              />
            </FormItem>
 
---------------------------------------------------------------------------------------------------------------------------------------------------------------
标红的代码就是在tooltip组件被加上定位属性后,还能继续实现内容过长自动换行的关键。
 
原文地址:https://www.cnblogs.com/shidawang/p/14150042.html