eoss-ui 0.4.65 → 0.4.66
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 +17 -8
- 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 +17 -8
- package/lib/eoss-ui.common.js +6646 -6148
- package/lib/flow-group.js +17 -8
- package/lib/flow-list.js +17 -8
- package/lib/flow.js +22 -12
- package/lib/form.js +8648 -8278
- 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 +78 -60
- package/lib/nav.js +20 -11
- package/lib/page.js +17 -8
- package/lib/player.js +17 -8
- package/lib/qr-code.js +17 -8
- package/lib/radio-group.js +17 -8
- package/lib/retrial-auth.js +17 -8
- package/lib/select-ganged.js +17 -8
- package/lib/select.js +17 -8
- 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/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/flow/src/main.vue +6 -5
- package/packages/form/src/main.vue +1435 -1313
- 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 +60 -54
- package/packages/nav/src/main.vue +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +18 -8
package/lib/player.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/qr-code.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/radio-group.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/retrial-auth.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/select-ganged.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/select.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/selector-panel.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/selector.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/sizer.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/steps.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/switch.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"] = ({
|