eoss-ui 0.4.65 → 0.4.67
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/lib/button-group.js +17 -8
- package/lib/button.js +17 -8
- package/lib/checkbox-group.js +53 -15
- package/lib/data-table-form.js +17 -8
- package/lib/data-table.js +17 -8
- package/lib/date-picker.js +17 -8
- package/lib/dialog.js +20 -11
- package/lib/editor.js +2 -2
- package/lib/eoss-ui.common.js +6479 -5844
- package/lib/flow-group.js +17 -8
- package/lib/flow-list.js +17 -8
- package/lib/flow.js +22 -12
- package/lib/form.js +6354 -5979
- package/lib/handle-user.js +17 -8
- package/lib/handler.js +17 -8
- package/lib/index.js +1 -1
- package/lib/input-number.js +17 -8
- package/lib/input.js +37 -15
- package/lib/login.js +22 -15
- package/lib/main.js +138 -101
- package/lib/menu.js +7 -3
- package/lib/nav.js +21 -11
- package/lib/page.js +17 -8
- package/lib/player.js +19 -10
- package/lib/qr-code.js +17 -8
- package/lib/radio-group.js +53 -15
- package/lib/retrial-auth.js +17 -8
- package/lib/select-ganged.js +42 -13
- package/lib/select.js +72 -23
- package/lib/selector-panel.js +17 -8
- package/lib/selector.js +17 -8
- package/lib/sizer.js +17 -8
- package/lib/steps.js +17 -8
- package/lib/switch.js +17 -8
- package/lib/table-form.js +1320 -1204
- package/lib/tabs.js +17 -8
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/tips.js +17 -8
- package/lib/tree-group.js +17 -8
- package/lib/tree.js +17 -8
- package/lib/upload.js +17 -8
- package/lib/utils/util.js +17 -8
- package/lib/wujie.js +17 -8
- package/lib/wxlogin.js +17 -8
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +47 -5
- package/packages/flow/src/main.vue +6 -5
- package/packages/form/src/main.vue +1442 -1315
- package/packages/form/src/table.vue +375 -318
- package/packages/input/src/main.vue +20 -7
- package/packages/login/src/main.vue +3 -5
- package/packages/main/src/main.vue +82 -61
- package/packages/main/src/userinfo.vue +12 -2
- package/packages/menu/src/main.vue +19 -3
- package/packages/nav/src/main.vue +2 -1
- package/packages/radio-group/src/main.vue +47 -5
- package/packages/select/src/main.vue +66 -21
- package/packages/select-ganged/src/main.vue +42 -18
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/src/main.scss +5 -1
- package/packages/theme-chalk/src/menu.scss +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +18 -8
package/lib/input-number.js
CHANGED
|
@@ -2275,16 +2275,19 @@ var uuid = function uuid(len) {
|
|
|
2275
2275
|
**/
|
|
2276
2276
|
var watermark = function watermark(option) {
|
|
2277
2277
|
// 默认设置
|
|
2278
|
+
var _width = parseInt(option.width || 480, 10);
|
|
2279
|
+
var _height = parseInt(option.width || 180, 10);
|
|
2280
|
+
var _rows = Math.round(document.body.clientHeight / _height);
|
|
2281
|
+
var _cols = Math.round(document.body.clientWidth / _width);
|
|
2278
2282
|
var config = {
|
|
2279
|
-
rows:
|
|
2280
|
-
cols:
|
|
2283
|
+
rows: _rows, // 水印行数
|
|
2284
|
+
cols: _cols,
|
|
2281
2285
|
html: '水印示例', // 水印文本内容
|
|
2282
2286
|
angle: -15, // 旋转角度
|
|
2283
2287
|
color: '#000', // 水印文字颜色
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
lineHeight: 120, // 水印行高
|
|
2288
|
+
minWidth: _width, // 水印最小宽度
|
|
2289
|
+
height: _height, // 水印高度
|
|
2290
|
+
lineHeight: 20, // 水印行高
|
|
2288
2291
|
opacity: 0.1, // 水印透明度
|
|
2289
2292
|
fontSize: 14, // 水印文字字体大小
|
|
2290
2293
|
fontWeight: 400, // 水印字体粗细
|
|
@@ -2310,7 +2313,6 @@ var watermark = function watermark(option) {
|
|
|
2310
2313
|
html = options.html,
|
|
2311
2314
|
angle = options.angle,
|
|
2312
2315
|
color = options.color,
|
|
2313
|
-
width = options.width,
|
|
2314
2316
|
minWidth = options.minWidth,
|
|
2315
2317
|
height = options.height,
|
|
2316
2318
|
lineHeight = options.lineHeight,
|
|
@@ -2327,11 +2329,18 @@ var watermark = function watermark(option) {
|
|
|
2327
2329
|
for (var i = 0; i < num; i++) {
|
|
2328
2330
|
var item = document.createElement('div');
|
|
2329
2331
|
item.innerHTML = html;
|
|
2330
|
-
item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' +
|
|
2332
|
+
item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' + 100 / cols + '%;min-width: ' + (minWidth ? parseInt(minWidth, 10) + 'px' : '') + ';height: ' + height + 'px;line-height: ' + lineHeight + 'px;font-size:' + fontSize + 'px;font-weight: ' + fontWeight + ';font-family: ' + fontFamily + ';text-align: ' + textAlign + ';transform: rotate(' + angle + 'deg);opacity: ' + opacity + ';';
|
|
2331
2333
|
docFrag.appendChild(item);
|
|
2332
2334
|
}
|
|
2333
2335
|
wrap.appendChild(docFrag);
|
|
2334
2336
|
document.body.appendChild(wrap);
|
|
2337
|
+
var _timeout = void 0;
|
|
2338
|
+
window.onresize = function () {
|
|
2339
|
+
clearTimeout(_timeout);
|
|
2340
|
+
_timeout = setTimeout(function () {
|
|
2341
|
+
watermark(options);
|
|
2342
|
+
}, 1000);
|
|
2343
|
+
};
|
|
2335
2344
|
};
|
|
2336
2345
|
|
|
2337
2346
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
package/lib/input.js
CHANGED
|
@@ -2275,16 +2275,19 @@ var uuid = function uuid(len) {
|
|
|
2275
2275
|
**/
|
|
2276
2276
|
var watermark = function watermark(option) {
|
|
2277
2277
|
// 默认设置
|
|
2278
|
+
var _width = parseInt(option.width || 480, 10);
|
|
2279
|
+
var _height = parseInt(option.width || 180, 10);
|
|
2280
|
+
var _rows = Math.round(document.body.clientHeight / _height);
|
|
2281
|
+
var _cols = Math.round(document.body.clientWidth / _width);
|
|
2278
2282
|
var config = {
|
|
2279
|
-
rows:
|
|
2280
|
-
cols:
|
|
2283
|
+
rows: _rows, // 水印行数
|
|
2284
|
+
cols: _cols,
|
|
2281
2285
|
html: '水印示例', // 水印文本内容
|
|
2282
2286
|
angle: -15, // 旋转角度
|
|
2283
2287
|
color: '#000', // 水印文字颜色
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
lineHeight: 120, // 水印行高
|
|
2288
|
+
minWidth: _width, // 水印最小宽度
|
|
2289
|
+
height: _height, // 水印高度
|
|
2290
|
+
lineHeight: 20, // 水印行高
|
|
2288
2291
|
opacity: 0.1, // 水印透明度
|
|
2289
2292
|
fontSize: 14, // 水印文字字体大小
|
|
2290
2293
|
fontWeight: 400, // 水印字体粗细
|
|
@@ -2310,7 +2313,6 @@ var watermark = function watermark(option) {
|
|
|
2310
2313
|
html = options.html,
|
|
2311
2314
|
angle = options.angle,
|
|
2312
2315
|
color = options.color,
|
|
2313
|
-
width = options.width,
|
|
2314
2316
|
minWidth = options.minWidth,
|
|
2315
2317
|
height = options.height,
|
|
2316
2318
|
lineHeight = options.lineHeight,
|
|
@@ -2327,11 +2329,18 @@ var watermark = function watermark(option) {
|
|
|
2327
2329
|
for (var i = 0; i < num; i++) {
|
|
2328
2330
|
var item = document.createElement('div');
|
|
2329
2331
|
item.innerHTML = html;
|
|
2330
|
-
item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' +
|
|
2332
|
+
item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' + 100 / cols + '%;min-width: ' + (minWidth ? parseInt(minWidth, 10) + 'px' : '') + ';height: ' + height + 'px;line-height: ' + lineHeight + 'px;font-size:' + fontSize + 'px;font-weight: ' + fontWeight + ';font-family: ' + fontFamily + ';text-align: ' + textAlign + ';transform: rotate(' + angle + 'deg);opacity: ' + opacity + ';';
|
|
2331
2333
|
docFrag.appendChild(item);
|
|
2332
2334
|
}
|
|
2333
2335
|
wrap.appendChild(docFrag);
|
|
2334
2336
|
document.body.appendChild(wrap);
|
|
2337
|
+
var _timeout = void 0;
|
|
2338
|
+
window.onresize = function () {
|
|
2339
|
+
clearTimeout(_timeout);
|
|
2340
|
+
_timeout = setTimeout(function () {
|
|
2341
|
+
watermark(options);
|
|
2342
|
+
}, 1000);
|
|
2343
|
+
};
|
|
2335
2344
|
};
|
|
2336
2345
|
|
|
2337
2346
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
@@ -2969,9 +2978,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2969
2978
|
scope: {},
|
|
2970
2979
|
exclude: Boolean
|
|
2971
2980
|
},
|
|
2981
|
+
watch: {
|
|
2982
|
+
data: {
|
|
2983
|
+
immediate: true,
|
|
2984
|
+
deep: true,
|
|
2985
|
+
handler: function handler(val) {
|
|
2986
|
+
this.results = val;
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
},
|
|
2972
2990
|
data: function data() {
|
|
2973
2991
|
return {
|
|
2974
|
-
results:
|
|
2992
|
+
results: []
|
|
2975
2993
|
};
|
|
2976
2994
|
},
|
|
2977
2995
|
|
|
@@ -3034,7 +3052,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3034
3052
|
mounted: function mounted() {},
|
|
3035
3053
|
|
|
3036
3054
|
methods: {
|
|
3037
|
-
getData: function getData(query, callback) {
|
|
3055
|
+
getData: function getData(query, callback, isChange) {
|
|
3038
3056
|
var _this2 = this;
|
|
3039
3057
|
|
|
3040
3058
|
if (_typeof(this.url) && this.results.length === 0) {
|
|
@@ -3055,18 +3073,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3055
3073
|
}
|
|
3056
3074
|
});
|
|
3057
3075
|
} else {
|
|
3058
|
-
var results = query ? this.results.filter(this.searchFilter(query)) : this.results;
|
|
3076
|
+
var results = query ? this.results.filter(this.searchFilter(query, isChange)) : this.results;
|
|
3059
3077
|
callback(results);
|
|
3060
3078
|
}
|
|
3061
3079
|
},
|
|
3062
|
-
searchFilter: function searchFilter(query) {
|
|
3080
|
+
searchFilter: function searchFilter(query, isChange) {
|
|
3063
3081
|
var _this3 = this;
|
|
3064
3082
|
|
|
3065
3083
|
return function (state) {
|
|
3066
|
-
if (
|
|
3067
|
-
return state.value.
|
|
3084
|
+
if (isChange) {
|
|
3085
|
+
return state.value.indexOf(query) > -1;
|
|
3068
3086
|
} else {
|
|
3069
|
-
|
|
3087
|
+
if (_this3.exclude) {
|
|
3088
|
+
return state.value !== query;
|
|
3089
|
+
} else {
|
|
3090
|
+
return state.value === query;
|
|
3091
|
+
}
|
|
3070
3092
|
}
|
|
3071
3093
|
};
|
|
3072
3094
|
},
|
package/lib/login.js
CHANGED
|
@@ -2275,16 +2275,19 @@ var uuid = function uuid(len) {
|
|
|
2275
2275
|
**/
|
|
2276
2276
|
var watermark = function watermark(option) {
|
|
2277
2277
|
// 默认设置
|
|
2278
|
+
var _width = parseInt(option.width || 480, 10);
|
|
2279
|
+
var _height = parseInt(option.width || 180, 10);
|
|
2280
|
+
var _rows = Math.round(document.body.clientHeight / _height);
|
|
2281
|
+
var _cols = Math.round(document.body.clientWidth / _width);
|
|
2278
2282
|
var config = {
|
|
2279
|
-
rows:
|
|
2280
|
-
cols:
|
|
2283
|
+
rows: _rows, // 水印行数
|
|
2284
|
+
cols: _cols,
|
|
2281
2285
|
html: '水印示例', // 水印文本内容
|
|
2282
2286
|
angle: -15, // 旋转角度
|
|
2283
2287
|
color: '#000', // 水印文字颜色
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
lineHeight: 120, // 水印行高
|
|
2288
|
+
minWidth: _width, // 水印最小宽度
|
|
2289
|
+
height: _height, // 水印高度
|
|
2290
|
+
lineHeight: 20, // 水印行高
|
|
2288
2291
|
opacity: 0.1, // 水印透明度
|
|
2289
2292
|
fontSize: 14, // 水印文字字体大小
|
|
2290
2293
|
fontWeight: 400, // 水印字体粗细
|
|
@@ -2310,7 +2313,6 @@ var watermark = function watermark(option) {
|
|
|
2310
2313
|
html = options.html,
|
|
2311
2314
|
angle = options.angle,
|
|
2312
2315
|
color = options.color,
|
|
2313
|
-
width = options.width,
|
|
2314
2316
|
minWidth = options.minWidth,
|
|
2315
2317
|
height = options.height,
|
|
2316
2318
|
lineHeight = options.lineHeight,
|
|
@@ -2327,11 +2329,18 @@ var watermark = function watermark(option) {
|
|
|
2327
2329
|
for (var i = 0; i < num; i++) {
|
|
2328
2330
|
var item = document.createElement('div');
|
|
2329
2331
|
item.innerHTML = html;
|
|
2330
|
-
item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' +
|
|
2332
|
+
item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' + 100 / cols + '%;min-width: ' + (minWidth ? parseInt(minWidth, 10) + 'px' : '') + ';height: ' + height + 'px;line-height: ' + lineHeight + 'px;font-size:' + fontSize + 'px;font-weight: ' + fontWeight + ';font-family: ' + fontFamily + ';text-align: ' + textAlign + ';transform: rotate(' + angle + 'deg);opacity: ' + opacity + ';';
|
|
2331
2333
|
docFrag.appendChild(item);
|
|
2332
2334
|
}
|
|
2333
2335
|
wrap.appendChild(docFrag);
|
|
2334
2336
|
document.body.appendChild(wrap);
|
|
2337
|
+
var _timeout = void 0;
|
|
2338
|
+
window.onresize = function () {
|
|
2339
|
+
clearTimeout(_timeout);
|
|
2340
|
+
_timeout = setTimeout(function () {
|
|
2341
|
+
watermark(options);
|
|
2342
|
+
}, 1000);
|
|
2343
|
+
};
|
|
2335
2344
|
};
|
|
2336
2345
|
|
|
2337
2346
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
@@ -2881,7 +2890,7 @@ function normalizeComponent(
|
|
|
2881
2890
|
// ESM COMPAT FLAG
|
|
2882
2891
|
__webpack_require__.r(__webpack_exports__);
|
|
2883
2892
|
|
|
2884
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
2893
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=39507db1&
|
|
2885
2894
|
var render = function () {
|
|
2886
2895
|
var _vm = this
|
|
2887
2896
|
var _h = _vm.$createElement
|
|
@@ -3021,7 +3030,7 @@ var render = function () {
|
|
|
3021
3030
|
placeholder: _vm.username.placeholder,
|
|
3022
3031
|
focusShow: _vm.focusShow,
|
|
3023
3032
|
data: _vm.users,
|
|
3024
|
-
autocomplete:
|
|
3033
|
+
autocomplete: true,
|
|
3025
3034
|
},
|
|
3026
3035
|
on: { select: _vm.handleBlur },
|
|
3027
3036
|
model: {
|
|
@@ -3739,7 +3748,7 @@ var staticRenderFns = []
|
|
|
3739
3748
|
render._withStripped = true
|
|
3740
3749
|
|
|
3741
3750
|
|
|
3742
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
3751
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=39507db1&
|
|
3743
3752
|
|
|
3744
3753
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=4f5da52e&
|
|
3745
3754
|
var resetPasswordvue_type_template_id_4f5da52e_render = function () {
|
|
@@ -4959,10 +4968,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4959
4968
|
}
|
|
4960
4969
|
}
|
|
4961
4970
|
},
|
|
4962
|
-
handleBlur: function handleBlur() {
|
|
4963
|
-
|
|
4964
|
-
this.getRemember(this.formData.username);
|
|
4965
|
-
}
|
|
4971
|
+
handleBlur: function handleBlur(res) {
|
|
4972
|
+
this.getRemember(res.value);
|
|
4966
4973
|
},
|
|
4967
4974
|
handleRemember: function handleRemember() {
|
|
4968
4975
|
var values = localStorage.getItem('unpd');
|