import{o as t,c as a,a as n}from"./app.c38d1953.js";const s='{"title":"IAgree 我同意","description":"","frontmatter":{},"headers":[{"level":2,"title":"用法","slug":"用法"},{"level":2,"title":"Avatars 属性","slug":"avatars-属性"},{"level":3,"title":"link","slug":"link"}],"relativePath":"components/i-agree.md","lastUpdated":1721206001124}',e={},d=n('
用于同意协议选项
IAgree 组件位于 src/components/IAgree 内
<template>\n <IAgree\n :link="[\n {\n text: '《隐私政策》',\n url: 'https://www.baidu.com'\n }\n ]"\n text="我同意《隐私政策》"\n />\n</template>\n\n
属性 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
text | 文案 | string | - | - |
link | 需要跳转的高亮数据,详见 | LinkItem[] | - | - |
属性 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
url | 跳转地址,非必填 | string | - | - |
text | 高亮文案 | string | - | - |
onClick | 点击高亮文案执行的方法,非必填 | () => void | - | - |