فهرست منبع

input 添加 autocomplete="off"

yangzhijie 4 سال پیش
والد
کامیت
dc8048279f

+ 21 - 0
.vscode/launch.json

@@ -0,0 +1,21 @@
+{
+    // 使用 IntelliSense 了解相关属性。 
+    // 悬停以查看现有属性的描述。
+    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "pc-component-v3",   // 启动配置名称
+            "type": "node",     // 调试器类型,我们是 Node.js 环境
+            "request": "launch",    // 请求方式,有 launch(启动) 和 attach(附加) 两种
+            "cwd": "${workspaceRoot}",
+            "runtimeExecutable": "npm", // 任务运行工具,'npm', 'mocha', 'gulp' 等
+            // 启动我们的 egg-bin debug 并默认是 brk
+            "runtimeArgs": [ "run", "dev"],
+            // 日志输出到 Terminal,否则启动期的日志看不到
+            "console": "integratedTerminal",
+            // 自动 attach 子进程 
+            "autoAttachChildProcesses": true
+        }
+    ]
+}

+ 1 - 1
packages/checkbox/src/Checkbox.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="checkbox-component">
-    <input
+    <input autocomplete="off"
       :id="id"
       type="checkbox"
       :name="name"

+ 2 - 2
packages/datetime-v2/src/DateTimeV2.vue

@@ -3,7 +3,7 @@
     class="datetime-container input-group"
     :class="{'has-error' : isValid === false}"
   >
-    <input
+    <input autocomplete="off"
       id="datetime"
       type="datetime-local"
       :readonly="readonly"
@@ -12,7 +12,7 @@
       @change="datetimeLocalValueChanged($event)"
     />
 
-    <input
+    <input autocomplete="off"
       type="text"
       :readonly="readonly"
       :value="dateValue"

+ 4 - 4
packages/info/src/DocGeneratorGrid.vue

@@ -12,7 +12,7 @@
               width="50px"
               class="fixed-cell"
             >
-              <input
+              <input autocomplete="off"
                 :checked="allSelected"
                 type="checkbox"
                 @click="selectAll($event)"
@@ -49,7 +49,7 @@
             height="40px"
           >
             <td class="fixed-cell">
-              <input
+              <input autocomplete="off"
                 v-model="rowData.checked"
                 type="checkbox"
                 :value="rowData.id"
@@ -59,14 +59,14 @@
               v-for="infoGridField in infoGridFields"
               :key="infoGridField.fieldName + '_' + rowData.id"
             >
-              <input
+              <input autocomplete="off"
                 v-if="infoGridField.simpleDisplayType == 'TextEditor'"
                 type="text"
                 class="form-control"
                 :value="getDisplayValue(rowData, infoGridField)"
                 @keyup="valueChange($event, rowData, infoGridField)"
               />
-              <input
+              <input autocomplete="off"
                 v-if="infoGridField.simpleDisplayType == 'NumberEditor'"
                 type="number"
                 class="form-control"

+ 2 - 2
packages/info/src/DocGeneratorSelected.vue

@@ -64,14 +64,14 @@
               v-for="infoGridField in infoGridFields"
               :key="infoGridField.fieldName + '_' + rowData.id"
             >
-              <input
+              <input autocomplete="off"
                 v-if="infoGridField.simpleDisplayType == 'TextEditor'"
                 type="text"
                 class="form-control"
                 :value="getDisplayValue(rowData, infoGridField)"
                 @keyup="valueChange($event, rowData, infoGridField)"
               />
-              <input
+              <input autocomplete="off"
                 v-if="infoGridField.simpleDisplayType == 'NumberEditor'"
                 type="number"
                 class="form-control"

+ 2 - 2
packages/info/src/InfoHeader.vue

@@ -35,7 +35,7 @@
               <template #item="{element}">
                 <div style="margin-left: 15px;margin-right: 15px;">
                   <div class="column">
-                    <input
+                    <input autocomplete="off"
                       :id="'InfoForm' + '_' + infoWindowNo + '_' + element.fieldName"
                       v-model="element.isShow"
                       class="isShow-checkbox"
@@ -78,7 +78,7 @@
               <template #item="{element}">
                 <div style="margin-left: 15px;margin-right: 15px;">
                   <div class="column">
-                    <input
+                    <input autocomplete="off"
                       :id="'InfoGrid' + '_' + infoWindowNo + '_' + element.fieldName"
                       v-model="element.isShow"
                       class="isShow-checkbox"

+ 6 - 6
packages/info/src/QueryConditionComplex.vue

@@ -21,7 +21,7 @@
             class="form-inline-div"
             @keyup.enter="complexSearch()"
           >
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='TextEditor'"
               :id="item.id"
               v-model="item.value.value1"
@@ -29,7 +29,7 @@
               :placeholder="$t('lang.QueryConditionComplex.pleaseInputTheContent')"
               class="form-control form-control-complex form-input"
             />
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='NumberEditor'"
               :id="item.id"
               v-model="item.value.value1"
@@ -117,7 +117,7 @@
             v-if="item.index == 2"
             class="form-inline-div"
           >
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='TextEditor'"
               :id="item.id"
               v-model="item.value.value2"
@@ -126,7 +126,7 @@
               class="form-control form-control-complex form-input"
               @keyup.enter="complexSearch()"
             />
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='NumberEditor'"
               :id="item.id"
               v-model="item.value.value2"
@@ -146,11 +146,11 @@
               <option value="false">{{ $t('lang.QueryConditionComplex.false') }}</option>
             </select>
 
-            <!-- <input v-if="item.displayType =='CheckBoxEditor'" 
+            <!-- <input autocomplete="off" v-if="item.displayType =='CheckBoxEditor'" 
                 type="checkbox" class="form-control form-control-complex form-input" 
                 :id="item.id" v-model="item.value.value2" 
                 @keyup.enter="complexSearch()"> -->
-            <!-- <input v-if="item.displayType =='DateTimeBoxEditor'" 
+            <!-- <input autocomplete="off" v-if="item.displayType =='DateTimeBoxEditor'" 
                 type="date" 
                 placeholder="yyyy-MM-dd" 
                 class="form-control form-control-complex form-input" 

+ 1 - 1
packages/info/src/QueryConditionSimple.vue

@@ -2,7 +2,7 @@
 <template>
   <div>
     <div>
-      <input
+      <input autocomplete="off"
         v-model="simpleConditionValue"
         type="text"
         class="form-control input-simple"

+ 2 - 2
packages/info/src/QueryPage.vue

@@ -61,7 +61,7 @@
                 :class="{'mulitiple-select': multipleSelect}"
                 @click.self="changeSelectMode"
               >
-                <input
+                <input autocomplete="off"
                   v-model="isSelectAll"
                   type="checkbox"
                 />
@@ -103,7 +103,7 @@
               <td style="text-align: center;">{{ index+1+(pagination.current_page-1)*pagination.per_page }}</td>
 
               <td class="text-center">
-                <input
+                <input autocomplete="off"
                   type="checkbox"
                   :checked="item1.select"
                   @click.self="selectNodeForSearch(item1)"

+ 1 - 1
packages/info/src/SearchWidget.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="input-group">
-    <input
+    <input autocomplete="off"
       aria-describedby="addon"
       type="text"
       class="form-control"

+ 1 - 1
packages/loading/src/Loading.vue

@@ -1,7 +1,7 @@
 <template>
   <teleport to="body">
     <div :key="id" class="loading">
-      <input
+      <input autocomplete="off"
         ref="focusInput"
         class="focus-input"
       />

+ 5 - 5
packages/process/src/ProcessReportArchive.vue

@@ -36,7 +36,7 @@
       <div v-show="startArchive == true">
         <div class="form-group">
           <label>标题</label>
-          <input
+          <input autocomplete="off"
             v-model="title"
             type="text"
             class="form-control"
@@ -52,7 +52,7 @@
         </div>
         <div class="form-group">
           <label>备注</label>
-          <input
+          <input autocomplete="off"
             v-model="description"
             type="description"
             class="form-control"
@@ -60,7 +60,7 @@
         </div>
         <div class="form-group">
           <label>归档日期</label>
-          <input
+          <input autocomplete="off"
             v-model="archiveDate"
             type="text"
             class="form-control"
@@ -69,7 +69,7 @@
         </div>
         <div class="form-group">
           <label>归档人</label>
-          <input
+          <input autocomplete="off"
             v-model="userName"
             type="text"
             class="form-control"
@@ -82,7 +82,7 @@
           class="form-group"
         >
           <label>报表路径{{ index + 1 }}</label>
-          <input
+          <input autocomplete="off"
             v-model="item.htmlPreviewUrl"
             type="text"
             class="form-control"

+ 5 - 5
packages/process/src/ProcessReportDynamic.vue

@@ -20,7 +20,7 @@
               :for="'editor_' + item.id"
             >{{ item.displayName }}</label>
 
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='TextEditor'"
               :id="'editor_' + item.id"
               v-model="item.fieldValue.displayValue[0]"
@@ -41,7 +41,7 @@
               @change="valueChanged(item)"
             />
 
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='NumberEditor'"
               :id="'editor_' + item.id"
               v-model="item.fieldValue.displayValue[0]"
@@ -51,7 +51,7 @@
               @change="valueChanged(item)"
             />
 
-            <!-- <input v-if="item.displayType =='CheckBoxEditor'" type="checkbox" v-model="item.fieldValue.displayValue[0]" class="form-control" :id="'editor_' + item.id"/> -->
+            <!-- <input autocomplete="off" v-if="item.displayType =='CheckBoxEditor'" type="checkbox" v-model="item.fieldValue.displayValue[0]" class="form-control" :id="'editor_' + item.id"/> -->
 
             <Switches
               v-if="item.displayType =='CheckBoxEditor'"
@@ -102,7 +102,7 @@
           </div>
           <!--<div v-if = "item.constraintEnum == 'Between'" class="form-inline-div">
 						<label v-if="item.displayType != 'ListBoxEnumEditor'" :for="'editor_' + item.id">——</label>
-						<input v-if="item.displayType =='NumberEditor'" type="number" v-model="item.value2" 
+						<input autocomplete="off" v-if="item.displayType =='NumberEditor'" type="number" v-model="item.value2" 
               class="form-control m-input-group" :id="'editor_' + item.id" placeholder="请输入数字" @change="valueChanged(item)"/>
 		
 						<DateTime v-if="item.displayType =='DateTimeBoxEditor'" :dateValue="item.value2" 
@@ -119,7 +119,7 @@
         >
           <span class="glyphicon glyphicon-question-sign" />
         </button>
-        <input
+        <input autocomplete="off"
           type="button"
           class="btn btn-primary"
           style="margin-top: 15px;"

+ 3 - 3
packages/process/src/ProcessReportStatic.vue

@@ -26,7 +26,7 @@
           >该项为必填项字段</span>
 
           <div class="input-group">
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='TextEditor'"
               :id="'editor_' + item.id"
               v-model="item.fieldValue.displayValue[0]"
@@ -47,7 +47,7 @@
               @change="valueChanged(item)"
             />
 
-            <input
+            <input autocomplete="off"
               v-if="item.displayType =='NumberEditor'"
               :id="'editor_' + item.id"
               v-model="item.fieldValue.displayValue[0]"
@@ -127,7 +127,7 @@
         >
           <span class="glyphicon glyphicon-question-sign" />
         </button>
-        <input
+        <input autocomplete="off"
           type="button"
           class="btn btn-primary"
           style="margin-top: 15px;"

+ 1 - 1
packages/switches/src/Switches.vue

@@ -1,6 +1,6 @@
 <template>
   <label :class="classObject">
-    <input
+    <input autocomplete="off"
       v-model="value"
       type="checkbox"
       :disabled="disabled"

+ 1 - 1
packages/time/src/Time.vue

@@ -1,5 +1,5 @@
 <template>
-  <input v-model="innerValue" type="time" :readonly="readonly" />
+  <input autocomplete="off" v-model="innerValue" type="time" :readonly="readonly" />
 </template>
 
 <script>

+ 1 - 1
packages/upload-widget/src/UploadWidget.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <input
+    <input autocomplete="off"
       ref="fileInput"
       type="file"
       class="form-control file-input"

+ 1 - 1
packages/vue-datepicker/src/vue-datepicker.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="cov-vue-date">
     <div class="datepickbox">
-      <input
+      <input autocomplete="off"
         v-model="date.time"
         type="text"
         title="input date"

+ 1 - 1
packages/vue-monthly-picker/src/VueMonthlyPicker.vue

@@ -4,7 +4,7 @@
       class="month-picker-wrapper"
       :class="{ 'active visible':showMenu }"
     >
-      <div class="month-year-label picker" type="text" autocomplete="off" tabindex="0" @click="openMenu">
+      <div class="month-year-label picker" type="text"  tabindex="0" @click="openMenu">
         <div
           class="month-year-display"
           :disabled="disabled"