Browse Source

chore: numberkeyboard 使用名称变更

eiinu 3 years ago
parent
commit
12a6a31bc9

+ 13 - 13
src/packages/__VUE/numberkeyboard/demo.vue

@@ -1,10 +1,10 @@
 <template>
 <template>
   <div class="demo">
   <div class="demo">
     <nut-cell :isLink="true" @click="showKeyBoard(1)" :showIcon="true" :title="translate('basic')"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(1)" :showIcon="true" :title="translate('basic')"></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible1" @input="input" @delete="onDelete" @close="close(1)">
-    </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible1" @input="input" @delete="onDelete" @close="close(1)">
+    </nut-numberkey-board>
     <nut-cell :isLink="true" @click="showKeyBoard(2)" :showIcon="true" :title="translate('sidebar')"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(2)" :showIcon="true" :title="translate('sidebar')"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible2"
       v-model:visible="visible2"
       :custom-key="customKey1"
       :custom-key="customKey1"
@@ -12,9 +12,9 @@
       @input="input"
       @input="input"
       @close="close(2)"
       @close="close(2)"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
     <nut-cell :isLink="true" @click="showKeyBoard(3)" :showIcon="true" :title="translate('randomKeyOrder')"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(3)" :showIcon="true" :title="translate('randomKeyOrder')"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible3"
       v-model:visible="visible3"
       :randomKeys="true"
       :randomKeys="true"
@@ -22,17 +22,17 @@
       @input="input"
       @input="input"
       @close="close(3)"
       @close="close(3)"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 
 
     <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" :title="translate('withTitle')"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" :title="translate('withTitle')"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       :title="translate('title')"
       :title="translate('title')"
       v-model:visible="visible4"
       v-model:visible="visible4"
       :custom-key="customKey2"
       :custom-key="customKey2"
       @input="input"
       @input="input"
       @close="close(4)"
       @close="close(4)"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 
 
     <nut-cell
     <nut-cell
       :isLink="true"
       :isLink="true"
@@ -40,8 +40,8 @@
       :showIcon="true"
       :showIcon="true"
       :title="translate('idNumberKeyboard')"
       :title="translate('idNumberKeyboard')"
     ></nut-cell>
     ></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible6" :custom-key="customKey3" @input="input" @close="close(6)">
-    </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible6" :custom-key="customKey3" @input="input" @close="close(6)">
+    </nut-numberkey-board>
     <nut-cell
     <nut-cell
       :isLink="true"
       :isLink="true"
       desc-text-align="left"
       desc-text-align="left"
@@ -50,15 +50,15 @@
       :showIcon="true"
       :showIcon="true"
       :title="translate('bindValue')"
       :title="translate('bindValue')"
     ></nut-cell>
     ></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible5" v-model:value="value" maxlength="6" @close="close(5)">
-    </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible5" v-model:value="value" maxlength="6" @close="close(5)">
+    </nut-numberkey-board>
   </div>
   </div>
 </template>
 </template>
 
 
 <script lang="ts">
 <script lang="ts">
 import { ref, getCurrentInstance, reactive } from 'vue';
 import { ref, getCurrentInstance, reactive } from 'vue';
 import { createComponent } from '@/packages/utils/create';
 import { createComponent } from '@/packages/utils/create';
-const { createDemo, translate } = createComponent('numberkeyboard');
+const { createDemo, translate } = createComponent('numberkey-board');
 import { useTranslate } from '@/sites/assets/util/useTranslate';
 import { useTranslate } from '@/sites/assets/util/useTranslate';
 const initTranslate = () =>
 const initTranslate = () =>
   useTranslate({
   useTranslate({

+ 11 - 11
src/packages/__VUE/numberkeyboard/doc.en-US.md

@@ -26,7 +26,7 @@ For online debugging, please change the browser to mobile mode
 ```html
 ```html
 <template>
 <template>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="Default Keyboard"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="Default Keyboard"></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible" @input="input" @delete="onDelete" @close="close"> </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible" @input="input" @delete="onDelete" @close="close"> </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref } from 'vue';
 import { ref } from 'vue';
@@ -65,7 +65,7 @@ export default{
 ```html
 ```html
 <template>
 <template>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="Keyboard With Sidebar"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="Keyboard With Sidebar"></nut-cell>
-     <nut-numberkeyboard
+     <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible"
       v-model:visible="visible"
       :custom-key="customKey"
       :custom-key="customKey"
@@ -73,7 +73,7 @@ export default{
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -111,7 +111,7 @@ export default{
 ```html
 ```html
 <template>
 <template>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="Random Key Order"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="Random Key Order"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible"
       v-model:visible="visible"
       :randomKeys="true"
       :randomKeys="true"
@@ -119,7 +119,7 @@ export default{
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -155,14 +155,14 @@ export default{
 ```html
 ```html
 <template>
 <template>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="Show Keyboard With Title"></nut-cell>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="Show Keyboard With Title"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       title="title"
       title="title"
       v-model:visible="visible"
       v-model:visible="visible"
       :custom-key="customKey"
       :custom-key="customKey"
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -198,13 +198,13 @@ export default{
 ```html
 ```html
 <template>
 <template>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="IdNumber Keyboard"></nut-cell>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="IdNumber Keyboard"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       v-model:visible="visible"
       v-model:visible="visible"
       :custom-key="customKey"
       :custom-key="customKey"
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -248,12 +248,12 @@ export default{
       :showIcon="true"
       :showIcon="true"
       title="Bind Value"
       title="Bind Value"
     ></nut-cell>
     ></nut-cell>
-     <nut-numberkeyboard 
+     <nut-numberkey-board 
        v-model:visible="visible" 
        v-model:visible="visible" 
        v-model:value="value" 
        v-model:value="value" 
        maxlength="6" 
        maxlength="6" 
        @close="close">
        @close="close">
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';

+ 11 - 11
src/packages/__VUE/numberkeyboard/doc.md

@@ -26,7 +26,7 @@ app.use(Popup);
 ```html
 ```html
 <template>
 <template>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="默认键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="默认键盘"></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible" @input="input" @delete="onDelete" @close="close"> </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible" @input="input" @delete="onDelete" @close="close"> </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref } from 'vue';
 import { ref } from 'vue';
@@ -65,7 +65,7 @@ export default{
 ```html
 ```html
 <template>
 <template>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="带右侧栏键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="带右侧栏键盘"></nut-cell>
-     <nut-numberkeyboard
+     <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible"
       v-model:visible="visible"
       :custom-key="customKey"
       :custom-key="customKey"
@@ -73,7 +73,7 @@ export default{
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -111,7 +111,7 @@ export default{
 ```html
 ```html
 <template>
 <template>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="随机数键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard" :showIcon="true" title="随机数键盘"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible"
       v-model:visible="visible"
       :randomKeys="true"
       :randomKeys="true"
@@ -119,7 +119,7 @@ export default{
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -155,14 +155,14 @@ export default{
 ```html
 ```html
 <template>
 <template>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="带标题栏键盘"></nut-cell>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="带标题栏键盘"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       title="默认键盘"
       title="默认键盘"
       v-model:visible="visible"
       v-model:visible="visible"
       :custom-key="customKey"
       :custom-key="customKey"
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -198,13 +198,13 @@ export default{
 ```html
 ```html
 <template>
 <template>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="身份证键盘"></nut-cell>
      <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="身份证键盘"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       v-model:visible="visible"
       v-model:visible="visible"
       :custom-key="customKey"
       :custom-key="customKey"
       @input="input"
       @input="input"
       @close="close"
       @close="close"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';
@@ -248,12 +248,12 @@ export default{
       :showIcon="true"
       :showIcon="true"
       title="双向绑定:"
       title="双向绑定:"
     ></nut-cell>
     ></nut-cell>
-     <nut-numberkeyboard 
+     <nut-numberkey-board 
        v-model:visible="visible" 
        v-model:visible="visible" 
        v-model:value="value" 
        v-model:value="value" 
        maxlength="6" 
        maxlength="6" 
        @close="close">
        @close="close">
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 </template>
 </template>
 <script>
 <script>
 import { ref,reactive } from 'vue';
 import { ref,reactive } from 'vue';

+ 1 - 1
src/packages/__VUE/numberkeyboard/index.taro.vue

@@ -78,7 +78,7 @@
 import { computed, onMounted, provide, reactive, nextTick, ref, watch, Ref } from 'vue';
 import { computed, onMounted, provide, reactive, nextTick, ref, watch, Ref } from 'vue';
 import { createComponent } from '@/packages/utils/create';
 import { createComponent } from '@/packages/utils/create';
 import Popup from '../popup/index.taro.vue';
 import Popup from '../popup/index.taro.vue';
-const { create, translate } = createComponent('numberkeyboard');
+const { create, translate } = createComponent('numberkey-board');
 export interface keys {
 export interface keys {
   id: number | string;
   id: number | string;
   type: string;
   type: string;

+ 1 - 1
src/packages/__VUE/numberkeyboard/index.vue

@@ -80,7 +80,7 @@
 import { computed, onMounted, provide, reactive, nextTick, ref, watch, Ref } from 'vue';
 import { computed, onMounted, provide, reactive, nextTick, ref, watch, Ref } from 'vue';
 import { createComponent } from '@/packages/utils/create';
 import { createComponent } from '@/packages/utils/create';
 import Popup from '../popup/index.vue';
 import Popup from '../popup/index.vue';
-const { create, translate } = createComponent('numberkeyboard');
+const { create, translate } = createComponent('numberkey-board');
 export interface keys {
 export interface keys {
   id: number | string;
   id: number | string;
   type: string;
   type: string;

+ 12 - 12
src/sites/mobile-taro/vue/src/dentry/pages/numberkeyboard/index.vue

@@ -1,19 +1,19 @@
 <template>
 <template>
   <div class="demo">
   <div class="demo">
     <nut-cell :isLink="true" @click="showKeyBoard(1)" :showIcon="true" title="默认键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(1)" :showIcon="true" title="默认键盘"></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible1" @input="input" @delete="onDelete" @close="close(1)">
-    </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible1" @input="input" @delete="onDelete" @close="close(1)">
+    </nut-numberkey-board>
     <nut-cell :isLink="true" @click="showKeyBoard(2)" :showIcon="true" title="带右侧栏键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(2)" :showIcon="true" title="带右侧栏键盘"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible2"
       v-model:visible="visible2"
       :custom-key="customKey1"
       :custom-key="customKey1"
       @input="input"
       @input="input"
       @close="close(2)"
       @close="close(2)"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
     <nut-cell :isLink="true" @click="showKeyBoard(3)" :showIcon="true" title="随机数键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(3)" :showIcon="true" title="随机数键盘"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       type="rightColumn"
       type="rightColumn"
       v-model:visible="visible3"
       v-model:visible="visible3"
       :randomKeys="true"
       :randomKeys="true"
@@ -21,27 +21,27 @@
       @input="input"
       @input="input"
       @close="close(3)"
       @close="close(3)"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
 
 
     <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="带标题栏键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(4)" :showIcon="true" title="带标题栏键盘"></nut-cell>
-    <nut-numberkeyboard
+    <nut-numberkey-board
       title="默认键盘"
       title="默认键盘"
       v-model:visible="visible4"
       v-model:visible="visible4"
       :custom-key="customKey2"
       :custom-key="customKey2"
       @input="input"
       @input="input"
       @close="close(4)"
       @close="close(4)"
     >
     >
-    </nut-numberkeyboard>
+    </nut-numberkey-board>
     <nut-cell :isLink="true" @click="showKeyBoard(6)" :showIcon="true" title="身份证键盘"></nut-cell>
     <nut-cell :isLink="true" @click="showKeyBoard(6)" :showIcon="true" title="身份证键盘"></nut-cell>
-    <nut-numberkeyboard v-model:visible="visible6" :custom-key="customKey3" @input="input" @close="close(6)">
-    </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible6" :custom-key="customKey3" @input="input" @close="close(6)">
+    </nut-numberkey-board>
     <div class="boardValue" @click="showKeyBoard(5)">
     <div class="boardValue" @click="showKeyBoard(5)">
       <div class="value">
       <div class="value">
         <nut-input v-model="value" readonly label="双向绑定:" />
         <nut-input v-model="value" readonly label="双向绑定:" />
       </div>
       </div>
     </div>
     </div>
-    <nut-numberkeyboard v-model:visible="visible5" v-model:value="value" maxlength="6" @close="close(5)">
-    </nut-numberkeyboard>
+    <nut-numberkey-board v-model:visible="visible5" v-model:value="value" maxlength="6" @close="close(5)">
+    </nut-numberkey-board>
   </div>
   </div>
 </template>
 </template>