UNPKG

@inkline/inkline

Version:

Inkline is the Vue.js UI/UX Library built for creating your next design system

23 lines 588 B
import { defineComponent } from 'vue'; import { memoize, markSearchString } from '../../helpers/index.mjs'; const memoizedMarkSearchString = memoize(markSearchString); const componentName = 'IMark'; export default defineComponent({ name: componentName, props: { text: { type: String, default: '' }, query: { type: String, default: '' } }, computed: { parts() { return memoizedMarkSearchString(this.text, this.query); } } }); //# sourceMappingURL=script.mjs.map