UNPKG

@tarojs/components

Version:
21 lines (17 loc) 729 B
import { r as registerInstance, h, H as Host } from './index-5bd7cbab.js'; import { c as classnames } from './index-cd1a2d33.js'; const indexCss = "taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}"; let Text = class { constructor(hostRef) { registerInstance(this, hostRef); this.selectable = false; } render() { const cls = classnames({ 'taro-text__selectable': this.selectable }); return (h(Host, { class: cls }, h("slot", null))); } }; Text.style = indexCss; export { Text as taro_text_core };