djm-ui 0.67.2 → 0.67.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/dist/djm-ui.cjs +18 -2
- package/dist/djm-ui.cjs.map +2 -2
- package/dist/djm-ui.css +1 -1
- package/dist/djm-ui.esm.js +18 -2
- package/dist/djm-ui.esm.js.map +2 -2
- package/dist/djm-ui.esm.min.js +3 -3
- package/dist/djm-ui.min.cjs +3 -3
- package/dist/djm-ui.min.css +1 -1
- package/dist/djm-ui.umd.js +18 -2
- package/dist/djm-ui.umd.min.js +3 -3
- package/package.json +1 -1
- package/src/components/input/index.js +17 -0
- package/src/index.js +1 -1
- package/src/styles/components/layout.css +35 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 0.67.3
|
|
4
|
+
|
|
5
|
+
- 修复浏览器自动填充残留:`DjmInput` 挂载时、`pageshow` 时若 `autocomplete="off"` 且模型为空,清掉 DOM 里被填入的值,输入框不会再显示一个没参与筛选的账号
|
|
6
|
+
- 登录类字段(`autocomplete="username"` / `current-password`)保留自动填充,不受影响
|
|
7
|
+
- 示例应用补 `:autofill` 检测,动态渲染的筛选框被自动填充时同样会清空
|
|
8
|
+
|
|
3
9
|
## 0.67.2
|
|
4
10
|
|
|
5
11
|
- 数据字典页左侧类型列表改为独立列表:去掉与面板标题重复的表头,名称与条目数同行、编码跟随下一行,选中态用内缩圆角底色
|
package/README.md
CHANGED
|
@@ -65,9 +65,9 @@ import DjmCol from 'djm-ui/components/grid/col'
|
|
|
65
65
|
UMD 产物复用全局 Vue,不会重复打包 Vue。Vue 必须先加载:
|
|
66
66
|
|
|
67
67
|
```html
|
|
68
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/djm-ui@0.67.
|
|
68
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/djm-ui@0.67.3/dist/djm-ui.min.css" />
|
|
69
69
|
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
|
|
70
|
-
<script src="https://cdn.jsdelivr.net/npm/djm-ui@0.67.
|
|
70
|
+
<script src="https://cdn.jsdelivr.net/npm/djm-ui@0.67.3/dist/djm-ui.umd.min.js"></script>
|
|
71
71
|
|
|
72
72
|
<script>
|
|
73
73
|
Vue.createApp({
|
package/dist/djm-ui.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! DJM UI v0.67.
|
|
1
|
+
/*! DJM UI v0.67.3 · MIT · 2026-10-26 */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1235,6 +1235,13 @@ var input_default = {
|
|
|
1235
1235
|
this.$emit("update:modelValue", event.target.value);
|
|
1236
1236
|
this.$emit("input", event);
|
|
1237
1237
|
},
|
|
1238
|
+
// 浏览器自动填充与前进后退的表单恢复只改 DOM 值、不触发 input,
|
|
1239
|
+
// 模型为空时清掉,否则会看到有值但实际没按它筛选;登录类字段保留自动填充
|
|
1240
|
+
clearStaleValue() {
|
|
1241
|
+
const input = this.$refs.input;
|
|
1242
|
+
if (!input || this.autocomplete !== "off") return;
|
|
1243
|
+
if (String(this.modelValue ?? "").length === 0 && input.value) input.value = "";
|
|
1244
|
+
},
|
|
1238
1245
|
clear() {
|
|
1239
1246
|
this.$emit("update:modelValue", "");
|
|
1240
1247
|
this.$emit("clear");
|
|
@@ -1248,6 +1255,15 @@ var input_default = {
|
|
|
1248
1255
|
if (this.$refs.input) this.$refs.input.blur();
|
|
1249
1256
|
}
|
|
1250
1257
|
},
|
|
1258
|
+
mounted() {
|
|
1259
|
+
this.clearStaleValue();
|
|
1260
|
+
this.staleTimer = setTimeout(() => this.clearStaleValue(), 300);
|
|
1261
|
+
window.addEventListener("pageshow", this.clearStaleValue);
|
|
1262
|
+
},
|
|
1263
|
+
beforeUnmount() {
|
|
1264
|
+
clearTimeout(this.staleTimer);
|
|
1265
|
+
window.removeEventListener("pageshow", this.clearStaleValue);
|
|
1266
|
+
},
|
|
1251
1267
|
template: `
|
|
1252
1268
|
<div v-if="hasAffix" class="djm-input-wrap">
|
|
1253
1269
|
<input
|
|
@@ -15377,7 +15393,7 @@ var components = [
|
|
|
15377
15393
|
org_chart_default,
|
|
15378
15394
|
page_tabs_default
|
|
15379
15395
|
];
|
|
15380
|
-
var version = "0.67.
|
|
15396
|
+
var version = "0.67.3";
|
|
15381
15397
|
function install(app, options = {}) {
|
|
15382
15398
|
if (options.locale) setLocale(options.locale);
|
|
15383
15399
|
components.forEach((component) => app.component(component.name, component));
|