{"version":3,"file":"highlight.mjs","sources":["../../../../../../packages/components/highlight/src/highlight.ts"],"sourcesContent":["import { buildProps } from '@lit-element/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type highlight from './highlight.vue'\n\nexport const highlightProps = buildProps({\n  /**\n   * @description 要高亮的文本\n   */\n  text: {\n    type: String,\n    default: '',\n  },\n  /**\n   * @description 关键词\n   */\n  keyword: {\n    type: Array as PropType<string[]>, // 明确指定数组元素类型\n    default: () => [],\n  },\n  /**\n   * @description 区分字母大小写\n   */\n  caseSensitive: {\n    type: Boolean,\n    default: false,\n  },\n  /**\n   * @description 高亮内容的类名\n   */\n  highlightStyle: {\n    type: Object as PropType<{ [key: string]: string }>,\n    default: () => ({ backgroundColor: 'yellow' }),\n  },\n} as const)\n\nexport type HighLightProps = ExtractPropTypes<typeof highlightProps>\nexport type HighLightInstance = InstanceType<typeof highlight>\n"],"names":[],"mappings":";;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC;AAClD,GAAG;AACH,CAAC;;;;"}