UNPKG

729 BJavaScriptView Raw
1import { r as registerInstance, h, H as Host } from './index-8809c729.js';
2import { c as classnames } from './index-1d8e8acd.js';
3
4const 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}";
5
6let Text = class {
7 constructor(hostRef) {
8 registerInstance(this, hostRef);
9 this.selectable = false;
10 }
11 render() {
12 const cls = classnames({
13 'taro-text__selectable': this.selectable
14 });
15 return (h(Host, { class: cls }, h("slot", null)));
16 }
17};
18Text.style = indexCss;
19
20export { Text as taro_text_core };