vxe-pc-ui 4.17.5 → 4.17.7
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/dist/all.esm.js +9 -4
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/color-picker/src/color-picker.js +7 -2
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/color-picker/src/color-picker.js +10 -2
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +12 -4
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +7 -2
- package/types/components/color-picker.d.ts +2 -0
- package/types/components/table.d.ts +89 -2
- /package/es/icon/{iconfont.1787124948086.ttf → iconfont.1787197092496.ttf} +0 -0
- /package/es/icon/{iconfont.1787124948086.woff → iconfont.1787197092496.woff} +0 -0
- /package/es/icon/{iconfont.1787124948086.woff2 → iconfont.1787197092496.woff2} +0 -0
- /package/es/{iconfont.1787124948086.ttf → iconfont.1787197092496.ttf} +0 -0
- /package/es/{iconfont.1787124948086.woff → iconfont.1787197092496.woff} +0 -0
- /package/es/{iconfont.1787124948086.woff2 → iconfont.1787197092496.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787124948086.ttf → iconfont.1787197092496.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787124948086.woff → iconfont.1787197092496.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787124948086.woff2 → iconfont.1787197092496.woff2} +0 -0
- /package/lib/{iconfont.1787124948086.ttf → iconfont.1787197092496.ttf} +0 -0
- /package/lib/{iconfont.1787124948086.woff → iconfont.1787197092496.woff} +0 -0
- /package/lib/{iconfont.1787124948086.woff2 → iconfont.1787197092496.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,7 +81,7 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.17.
|
|
84
|
+
const uiVersion = `ui v${"4.17.7"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$i = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.17.
|
|
98
|
+
const version = "4.17.7";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -16266,6 +16266,10 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16266
16266
|
type: Boolean,
|
|
16267
16267
|
default: () => getConfig$3().colorPicker.clickToCopy
|
|
16268
16268
|
},
|
|
16269
|
+
defaultColor: {
|
|
16270
|
+
type: String,
|
|
16271
|
+
default: () => getConfig$3().colorPicker.defaultColor
|
|
16272
|
+
},
|
|
16269
16273
|
placement: String,
|
|
16270
16274
|
transfer: {
|
|
16271
16275
|
type: Boolean,
|
|
@@ -16416,11 +16420,12 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16416
16420
|
updateMode();
|
|
16417
16421
|
};
|
|
16418
16422
|
const updateModelColor = () => {
|
|
16423
|
+
const { modelValue, defaultColor } = props;
|
|
16419
16424
|
const { selectColor, isAniVisible } = reactData;
|
|
16420
16425
|
const isRgb = computeIsRgb.value;
|
|
16421
16426
|
const hueSliderEl = refHueSliderElem.value;
|
|
16422
16427
|
const alphaSliderEl = refAlphaSliderElem.value;
|
|
16423
|
-
const colorRest = parseValColor(selectColor);
|
|
16428
|
+
const colorRest = parseValColor(modelValue ? selectColor : defaultColor);
|
|
16424
16429
|
reactData.hexValue = '';
|
|
16425
16430
|
reactData.rValue = 0;
|
|
16426
16431
|
reactData.gValue = 0;
|
|
@@ -16465,7 +16470,7 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16465
16470
|
handlePanelColor(offsetLeft, offsetTop);
|
|
16466
16471
|
}
|
|
16467
16472
|
if (hueSliderEl) {
|
|
16468
|
-
handleHueColor(XEUtils.ceil((1 - hsvRest.h / 360) * hueSliderEl.clientWidth));
|
|
16473
|
+
handleHueColor(XEUtils.ceil((1 - hsvRest.h / 360) * hueSliderEl.clientWidth) - 1);
|
|
16469
16474
|
}
|
|
16470
16475
|
}
|
|
16471
16476
|
if (alphaSliderEl) {
|