UNPKG

@tarojs/components

Version:
25 lines (19 loc) 800 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-dd4b7ba3.js'); const index$1 = require('./index-dffbd352.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) { index.registerInstance(this, hostRef); this.selectable = false; } render() { const cls = index$1.classnames({ 'taro-text__selectable': this.selectable }); return (index.h(index.Host, { class: cls }, index.h("slot", null))); } }; Text.style = indexCss; exports.taro_text_core = Text;