w-component-vue
Version:
A simple component for vue(vue2).
564 lines (439 loc) • 22.2 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>WTextInt - Documentation</title>
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
<script src="scripts/nav.js" defer></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
<div class="navicon"></div>
</label>
<label for="nav-trigger" class="overlay"></label>
<nav >
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-WAggridVueDyn.html">WAggridVueDyn</a></li><li><a href="module-WBadge.html">WBadge</a></li><li><a href="module-WButtonChip.html">WButtonChip</a></li><li><a href="module-WButtonCircle.html">WButtonCircle</a></li><li><a href="module-WCheckbox.html">WCheckbox</a></li><li><a href="module-WCkeditorVueDyn.html">WCkeditorVueDyn</a></li><li><a href="module-WColorPickAlpha.html">WColorPickAlpha</a></li><li><a href="module-WColorPickHexagon.html">WColorPickHexagon</a></li><li><a href="module-WColorPickHexagonGray.html">WColorPickHexagonGray</a></li><li><a href="module-WColorPickHsv.html">WColorPickHsv</a></li><li><a href="module-WColorPickHue.html">WColorPickHue</a></li><li><a href="module-WColorPickStripe.html">WColorPickStripe</a></li><li><a href="module-WColorSelect.html">WColorSelect</a></li><li><a href="module-WColorSelectInput.html">WColorSelectInput</a></li><li><a href="module-WColorSelectPanel.html">WColorSelectPanel</a></li><li><a href="module-WColorSelectPanelBlock.html">WColorSelectPanelBlock</a></li><li><a href="module-WColorSelectPanelHsva.html">WColorSelectPanelHsva</a></li><li><a href="module-WConfirm.html">WConfirm</a></li><li><a href="module-WDialog.html">WDialog</a></li><li><a href="module-WDrawer.html">WDrawer</a></li><li><a href="module-WDropfiles.html">WDropfiles</a></li><li><a href="module-WDynamicList.html">WDynamicList</a></li><li><a href="module-WEchartsVueDyn.html">WEchartsVueDyn</a></li><li><a href="module-WExplorer.html">WExplorer</a></li><li><a href="module-WGroupBaggage.html">WGroupBaggage</a></li><li><a href="module-WGroupChipCheck.html">WGroupChipCheck</a></li><li><a href="module-WGroupChipRadio.html">WGroupChipRadio</a></li><li><a href="module-WGroupDragdrop.html">WGroupDragdrop</a></li><li><a href="module-WGroupIconCheck.html">WGroupIconCheck</a></li><li><a href="module-WGroupIconRadio.html">WGroupIconRadio</a></li><li><a href="module-WGroupTags.html">WGroupTags</a></li><li><a href="module-WHighchartsBitmapDyn.html">WHighchartsBitmapDyn</a></li><li><a href="module-WHighchartsVueDyn.html">WHighchartsVueDyn</a></li><li><a href="module-WHighstockVueDyn.html">WHighstockVueDyn</a></li><li><a href="module-WIcon.html">WIcon</a></li><li><a href="module-WIconLoading.html">WIconLoading</a></li><li><a href="module-WImageCascadingDyn.html">WImageCascadingDyn</a></li><li><a href="module-WImageLazy.html">WImageLazy</a></li><li><a href="module-WImageViewerDyn.html">WImageViewerDyn</a></li><li><a href="module-WInputCheckbox.html">WInputCheckbox</a></li><li><a href="module-WInputRadio.html">WInputRadio</a></li><li><a href="module-WJsonView.html">WJsonView</a></li><li><a href="module-WLeafletVueDyn.html">WLeafletVueDyn</a></li><li><a href="module-WLevelGrade.html">WLevelGrade</a></li><li><a href="module-WListCheck.html">WListCheck</a></li><li><a href="module-WListExpand.html">WListExpand</a></li><li><a href="module-WListExpandItem.html">WListExpandItem</a></li><li><a href="module-WListHorizontal.html">WListHorizontal</a></li><li><a href="module-WListItem.html">WListItem</a></li><li><a href="module-WListRadio.html">WListRadio</a></li><li><a href="module-WListVertical.html">WListVertical</a></li><li><a href="module-WPanelAvatar.html">WPanelAvatar</a></li><li><a href="module-WPanelBulge.html">WPanelBulge</a></li><li><a href="module-WPanelDivideHorizontal.html">WPanelDivideHorizontal</a></li><li><a href="module-WPanelDivideVertical.html">WPanelDivideVertical</a></li><li><a href="module-WPanelLabelItem.html">WPanelLabelItem</a></li><li><a href="module-WPanelScale.html">WPanelScale</a></li><li><a href="module-WPanelScrolly.html">WPanelScrolly</a></li><li><a href="module-WPanelScrollyCore.html">WPanelScrollyCore</a></li><li><a href="module-WPanelStripe.html">WPanelStripe</a></li><li><a href="module-WPopup.html">WPopup</a></li><li><a href="module-WPopupEditText.html">WPopupEditText</a></li><li><a href="module-WProgressBar.html">WProgressBar</a></li><li><a href="module-WProgressCircle.html">WProgressCircle</a></li><li><a href="module-WQuillVueDyn.html">WQuillVueDyn</a></li><li><a href="module-WSegmentsVertical.html">WSegmentsVertical</a></li><li><a href="module-WShellBottomLine.html">WShellBottomLine</a></li><li><a href="module-WShellEllipse.html">WShellEllipse</a></li><li><a href="module-WSlider.html">WSlider</a></li><li><a href="module-WSwitch.html">WSwitch</a></li><li><a href="module-WTableDyn.html">WTableDyn</a></li><li><a href="module-WText.html">WText</a></li><li><a href="module-WTextCore.html">WTextCore</a></li><li><a href="module-WTextInt.html">WTextInt</a></li><li><a href="module-WTextIntCore.html">WTextIntCore</a></li><li><a href="module-WTextSelect.html">WTextSelect</a></li><li><a href="module-WTextSuggest.html">WTextSuggest</a></li><li><a href="module-WTextSuggestCore.html">WTextSuggestCore</a></li><li><a href="module-WTextarea.html">WTextarea</a></li><li><a href="module-WTextareaCore.html">WTextareaCore</a></li><li><a href="module-WThreejsVueDyn.html">WThreejsVueDyn</a></li><li><a href="module-WTimeday.html">WTimeday</a></li><li><a href="module-WTimedayCore.html">WTimedayCore</a></li><li><a href="module-WTimedayCoreRe.html">WTimedayCoreRe</a></li><li><a href="module-WTimedayRange.html">WTimedayRange</a></li><li><a href="module-WTimedayRangeCore.html">WTimedayRangeCore</a></li><li><a href="module-WTimeminute.html">WTimeminute</a></li><li><a href="module-WTimeminuteCore.html">WTimeminuteCore</a></li><li><a href="module-WTimeminuteRange.html">WTimeminuteRange</a></li><li><a href="module-WTimeminuteRangeCore.html">WTimeminuteRangeCore</a></li><li><a href="module-WTinymceVueDyn.html">WTinymceVueDyn</a></li><li><a href="module-WTooltip.html">WTooltip</a></li><li><a href="module-WTree.html">WTree</a></li><li><a href="module-WTreeIconCheckbox.html">WTreeIconCheckbox</a></li><li><a href="module-WTreeIconToggle.html">WTreeIconToggle</a></li><li><a href="module-WVditorDyn.html">WVditorDyn</a></li></ul><h3>Global</h3><ul><li><a href="global.html#binarySearch">binarySearch</a></li><li><a href="global.html#convertColor">convertColor</a></li></ul>
</nav>
<div id="main">
<h1 class="page-title">WTextInt</h1>
<section>
<header>
</header>
<article>
<div class="container-overview">
<dl class="details">
<dt class="tag-description">Description:</dt>
<dd class="tag-description"><ul class="dummy"><li></p></div></div>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
<table data-jsdoc-vuejs="table-props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Required?</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>width</code></td>
<td>Number</td>
<td><code>70</code></td>
<td>No</td>
<td>輸入框寬度,單位為px,預設70</td>
</tr><tr>
<td><code>paddingStyle</code></td>
<td>Object</td>
<td><code>{v:0,h:15}</code></td>
<td>No</td>
<td>輸入內寬距離物件,可用鍵值為v、h、left、right、top、bottom,v代表同時設定top與bottom,h代表設定left與right,若有重複設定時後面鍵值會覆蓋前面,各鍵值為寬度數字,單位為px,預設{v:0,h:15}</td>
</tr><tr>
<td><code>borderRadius</code></td>
<td>Number</td>
<td><code>30</code></td>
<td>No</td>
<td>輸入框圓角度數字,單位為px,預設30</td>
</tr><tr>
<td><code>shadow</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入是否為陰影模式,預設true</td>
</tr><tr>
<td><code>value</code></td>
<td>Number</td>
<td><code>0</code></td>
<td>No</td>
<td>輸入整數值數字,預設0</td>
</tr><tr>
<td><code>valueMax</code></td>
<td>Number</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入最大整數值數字,預設null</td>
</tr><tr>
<td><code>textFontSize</code></td>
<td>String</td>
<td><code>'1rem'</code></td>
<td>No</td>
<td>輸入文字大小字串,預設'1rem'</td>
</tr><tr>
<td><code>textColor</code></td>
<td>String</td>
<td><code>'black'</code></td>
<td>No</td>
<td>輸入文字顏色字串,預設'black'</td>
</tr><tr>
<td><code>icon</code></td>
<td>String</td>
<td><code>''</code></td>
<td>No</td>
<td>輸入框外左側圖標字串,可為mdi,md,fa代號或mdi/js路徑,預設''</td>
</tr><tr>
<td><code>iconSize</code></td>
<td>Number</td>
<td><code>24</code></td>
<td>No</td>
<td>輸入左側圖標大小,單位為px,預設24</td>
</tr><tr>
<td><code>iconColor</code></td>
<td>String</td>
<td><code>'deep-orange lighten-2'</code></td>
<td>No</td>
<td>輸入框外左側圖標顏色字串,預設'deep-orange lighten-2'</td>
</tr><tr>
<td><code>iconColorHover</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入滑鼠移入時框外左側圖標顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>iconColorFocus</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入取得焦點時框外左側圖標顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>iconTooltip</code></td>
<td>String</td>
<td><code>''</code></td>
<td>No</td>
<td>輸入框外左側圖標提示文字字串,預設''</td>
</tr><tr>
<td><code>leftIconTooltip</code></td>
<td>String</td>
<td><code>'減少'</code></td>
<td>No</td>
<td>輸入框內左側圖標提示文字字串,預設'減少'</td>
</tr><tr>
<td><code>rightIconTooltip</code></td>
<td>String</td>
<td><code>'增加'</code></td>
<td>No</td>
<td>輸入框內右側圖標提示文字字串,預設'增加'</td>
</tr><tr>
<td><code>iconShiftOuter</code></td>
<td>Number</td>
<td><code>-10</code></td>
<td>No</td>
<td>輸入左右側圖標與外框距離數字,單位為px,預設-10</td>
</tr><tr>
<td><code>iconShiftInner</code></td>
<td>Number</td>
<td><code>5</code></td>
<td>No</td>
<td>輸入左右側圖標與內插槽區距離數字,單位為px,預設5</td>
</tr><tr>
<td><code>backgroundColor</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入背景顏色字串,預設'white'</td>
</tr><tr>
<td><code>backgroundColorHover</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入滑鼠移入時背景顏色字串,預設'white'</td>
</tr><tr>
<td><code>backgroundColorFocus</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入取得焦點時背景顏色字串,預設'white'</td>
</tr><tr>
<td><code>buttonIconSize</code></td>
<td>Number</td>
<td><code>24</code></td>
<td>No</td>
<td>輸入框內圖標大小,單位為px,預設24</td>
</tr><tr>
<td><code>borderColor</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入邊框顏色字串,預設'white'</td>
</tr><tr>
<td><code>borderColorHover</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入滑鼠移入時邊框顏色字串,預設'white'</td>
</tr><tr>
<td><code>borderColorFocus</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入取得焦點時邊框顏色字串,預設'white'</td>
</tr><tr>
<td><code>buttonColor</code></td>
<td>String</td>
<td><code>'deep-orange lighten-2'</code></td>
<td>No</td>
<td>輸入框內圖標按鈕顏色字串,預設'deep-orange lighten-2'</td>
</tr><tr>
<td><code>buttonColorHover</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入滑鼠移入時框內圖標按鈕顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>buttonColorFocus</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入取得焦點時框內圖標按鈕顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>editable</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入是否為編輯模式布林值,預設true</td>
</tr><tr>
<td><code>focused</code></td>
<td>Boolean</td>
<td><code>false</code></td>
<td>No</td>
<td>輸入是否為取得焦點狀態,預設false</td>
</tr></tbody>
</table>
<div class="container-overview"><div><p>
</li></ul></dd>
</dl>
<div class="description usertext"></p></div></div>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
<table data-jsdoc-vuejs="table-props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Required?</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>width</code></td>
<td>Number</td>
<td><code>70</code></td>
<td>No</td>
<td>輸入框寬度,單位為px,預設70</td>
</tr><tr>
<td><code>paddingStyle</code></td>
<td>Object</td>
<td><code>{v:0,h:15}</code></td>
<td>No</td>
<td>輸入內寬距離物件,可用鍵值為v、h、left、right、top、bottom,v代表同時設定top與bottom,h代表設定left與right,若有重複設定時後面鍵值會覆蓋前面,各鍵值為寬度數字,單位為px,預設{v:0,h:15}</td>
</tr><tr>
<td><code>borderRadius</code></td>
<td>Number</td>
<td><code>30</code></td>
<td>No</td>
<td>輸入框圓角度數字,單位為px,預設30</td>
</tr><tr>
<td><code>shadow</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入是否為陰影模式,預設true</td>
</tr><tr>
<td><code>value</code></td>
<td>Number</td>
<td><code>0</code></td>
<td>No</td>
<td>輸入整數值數字,預設0</td>
</tr><tr>
<td><code>valueMax</code></td>
<td>Number</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入最大整數值數字,預設null</td>
</tr><tr>
<td><code>textFontSize</code></td>
<td>String</td>
<td><code>'1rem'</code></td>
<td>No</td>
<td>輸入文字大小字串,預設'1rem'</td>
</tr><tr>
<td><code>textColor</code></td>
<td>String</td>
<td><code>'black'</code></td>
<td>No</td>
<td>輸入文字顏色字串,預設'black'</td>
</tr><tr>
<td><code>icon</code></td>
<td>String</td>
<td><code>''</code></td>
<td>No</td>
<td>輸入框外左側圖標字串,可為mdi,md,fa代號或mdi/js路徑,預設''</td>
</tr><tr>
<td><code>iconSize</code></td>
<td>Number</td>
<td><code>24</code></td>
<td>No</td>
<td>輸入左側圖標大小,單位為px,預設24</td>
</tr><tr>
<td><code>iconColor</code></td>
<td>String</td>
<td><code>'deep-orange lighten-2'</code></td>
<td>No</td>
<td>輸入框外左側圖標顏色字串,預設'deep-orange lighten-2'</td>
</tr><tr>
<td><code>iconColorHover</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入滑鼠移入時框外左側圖標顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>iconColorFocus</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入取得焦點時框外左側圖標顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>iconTooltip</code></td>
<td>String</td>
<td><code>''</code></td>
<td>No</td>
<td>輸入框外左側圖標提示文字字串,預設''</td>
</tr><tr>
<td><code>leftIconTooltip</code></td>
<td>String</td>
<td><code>'減少'</code></td>
<td>No</td>
<td>輸入框內左側圖標提示文字字串,預設'減少'</td>
</tr><tr>
<td><code>rightIconTooltip</code></td>
<td>String</td>
<td><code>'增加'</code></td>
<td>No</td>
<td>輸入框內右側圖標提示文字字串,預設'增加'</td>
</tr><tr>
<td><code>iconShiftOuter</code></td>
<td>Number</td>
<td><code>-10</code></td>
<td>No</td>
<td>輸入左右側圖標與外框距離數字,單位為px,預設-10</td>
</tr><tr>
<td><code>iconShiftInner</code></td>
<td>Number</td>
<td><code>5</code></td>
<td>No</td>
<td>輸入左右側圖標與內插槽區距離數字,單位為px,預設5</td>
</tr><tr>
<td><code>backgroundColor</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入背景顏色字串,預設'white'</td>
</tr><tr>
<td><code>backgroundColorHover</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入滑鼠移入時背景顏色字串,預設'white'</td>
</tr><tr>
<td><code>backgroundColorFocus</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入取得焦點時背景顏色字串,預設'white'</td>
</tr><tr>
<td><code>buttonIconSize</code></td>
<td>Number</td>
<td><code>24</code></td>
<td>No</td>
<td>輸入框內圖標大小,單位為px,預設24</td>
</tr><tr>
<td><code>borderColor</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入邊框顏色字串,預設'white'</td>
</tr><tr>
<td><code>borderColorHover</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入滑鼠移入時邊框顏色字串,預設'white'</td>
</tr><tr>
<td><code>borderColorFocus</code></td>
<td>String</td>
<td><code>'white'</code></td>
<td>No</td>
<td>輸入取得焦點時邊框顏色字串,預設'white'</td>
</tr><tr>
<td><code>buttonColor</code></td>
<td>String</td>
<td><code>'deep-orange lighten-2'</code></td>
<td>No</td>
<td>輸入框內圖標按鈕顏色字串,預設'deep-orange lighten-2'</td>
</tr><tr>
<td><code>buttonColorHover</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入滑鼠移入時框內圖標按鈕顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>buttonColorFocus</code></td>
<td>String</td>
<td><code>'deep-orange lighten-1'</code></td>
<td>No</td>
<td>輸入取得焦點時框內圖標按鈕顏色字串,預設'deep-orange lighten-1'</td>
</tr><tr>
<td><code>editable</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入是否為編輯模式布林值,預設true</td>
</tr><tr>
<td><code>focused</code></td>
<td>Boolean</td>
<td><code>false</code></td>
<td>No</td>
<td>輸入是否為取得焦點狀態,預設false</td>
</tr></tbody>
</table>
<div class="container-overview"><div><p>
</div>
</div>
</article>
</section>
</div>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Sep 23 2025 16:05:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
<script src="scripts/polyfill.js"></script>
<script src="scripts/linenumber.js"></script>
</body>
</html>