vxe-pc-ui 3.17.6 → 3.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/es/color-picker/src/color-picker.js +12 -6
- 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 +15 -6
- 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 +17 -8
- 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 +12 -6
- package/types/components/color-picker.d.ts +2 -0
- /package/es/icon/{iconfont.1787137242564.ttf → iconfont.1787197085834.ttf} +0 -0
- /package/es/icon/{iconfont.1787137242564.woff → iconfont.1787197085834.woff} +0 -0
- /package/es/icon/{iconfont.1787137242564.woff2 → iconfont.1787197085834.woff2} +0 -0
- /package/es/{iconfont.1787137242564.ttf → iconfont.1787197085834.ttf} +0 -0
- /package/es/{iconfont.1787137242564.woff → iconfont.1787197085834.woff} +0 -0
- /package/es/{iconfont.1787137242564.woff2 → iconfont.1787197085834.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787137242564.ttf → iconfont.1787197085834.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787137242564.woff → iconfont.1787197085834.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787137242564.woff2 → iconfont.1787197085834.woff2} +0 -0
- /package/lib/{iconfont.1787137242564.ttf → iconfont.1787197085834.ttf} +0 -0
- /package/lib/{iconfont.1787137242564.woff → iconfont.1787197085834.woff} +0 -0
- /package/lib/{iconfont.1787137242564.woff2 → iconfont.1787197085834.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -13261,7 +13261,7 @@ var es_array_join = __webpack_require__(8598);
|
|
|
13261
13261
|
|
|
13262
13262
|
|
|
13263
13263
|
var log_log = VxeUI.log;
|
|
13264
|
-
var uiVersion = "ui v".concat("3.17.
|
|
13264
|
+
var uiVersion = "ui v".concat("3.17.7");
|
|
13265
13265
|
function createComponentLog(name) {
|
|
13266
13266
|
var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
|
|
13267
13267
|
var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
|
|
@@ -13281,7 +13281,7 @@ var errLog = log_log.create('error', uiVersion);
|
|
|
13281
13281
|
|
|
13282
13282
|
|
|
13283
13283
|
|
|
13284
|
-
var ui_version = "3.17.
|
|
13284
|
+
var ui_version = "3.17.7";
|
|
13285
13285
|
VxeUI.uiVersion = ui_version;
|
|
13286
13286
|
VxeUI.dynamicApp = dynamicApp;
|
|
13287
13287
|
function config(options) {
|
|
@@ -32665,6 +32665,12 @@ var typeList = [{
|
|
|
32665
32665
|
return getConfig().colorPicker.clickToCopy;
|
|
32666
32666
|
}
|
|
32667
32667
|
},
|
|
32668
|
+
defaultColor: {
|
|
32669
|
+
type: String,
|
|
32670
|
+
default: function _default() {
|
|
32671
|
+
return getConfig().colorPicker.defaultColor;
|
|
32672
|
+
}
|
|
32673
|
+
},
|
|
32668
32674
|
placement: String,
|
|
32669
32675
|
transfer: {
|
|
32670
32676
|
type: Boolean,
|
|
@@ -32853,13 +32859,16 @@ var typeList = [{
|
|
|
32853
32859
|
},
|
|
32854
32860
|
updateModelColor: function updateModelColor() {
|
|
32855
32861
|
var $xeColorPicker = this;
|
|
32862
|
+
var props = $xeColorPicker;
|
|
32856
32863
|
var reactData = $xeColorPicker.reactData;
|
|
32864
|
+
var modelValue = props.value,
|
|
32865
|
+
defaultColor = props.defaultColor;
|
|
32857
32866
|
var selectColor = reactData.selectColor,
|
|
32858
32867
|
isAniVisible = reactData.isAniVisible;
|
|
32859
32868
|
var isRgb = $xeColorPicker.computeIsRgb;
|
|
32860
32869
|
var hueSliderEl = $xeColorPicker.$refs.refHueSliderElem;
|
|
32861
32870
|
var alphaSliderEl = $xeColorPicker.$refs.refAlphaSliderElem;
|
|
32862
|
-
var colorRest = parseValColor(selectColor);
|
|
32871
|
+
var colorRest = parseValColor(modelValue ? selectColor : defaultColor);
|
|
32863
32872
|
reactData.hexValue = '';
|
|
32864
32873
|
reactData.rValue = 0;
|
|
32865
32874
|
reactData.gValue = 0;
|
|
@@ -32902,7 +32911,7 @@ var typeList = [{
|
|
|
32902
32911
|
$xeColorPicker.handlePanelColor(offsetLeft, offsetTop);
|
|
32903
32912
|
}
|
|
32904
32913
|
if (hueSliderEl) {
|
|
32905
|
-
$xeColorPicker.handleHueColor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().ceil((1 - hsvRest.h / 360) * hueSliderEl.clientWidth));
|
|
32914
|
+
$xeColorPicker.handleHueColor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().ceil((1 - hsvRest.h / 360) * hueSliderEl.clientWidth) - 1);
|
|
32906
32915
|
}
|
|
32907
32916
|
}
|
|
32908
32917
|
if (alphaSliderEl) {
|
|
@@ -33644,7 +33653,7 @@ var typeList = [{
|
|
|
33644
33653
|
var className = props.className,
|
|
33645
33654
|
popupClassName = props.popupClassName,
|
|
33646
33655
|
clearable = props.clearable,
|
|
33647
|
-
|
|
33656
|
+
modelValue = props.value;
|
|
33648
33657
|
var initialized = reactData.initialized,
|
|
33649
33658
|
isActivated = reactData.isActivated,
|
|
33650
33659
|
isAniVisible = reactData.isAniVisible,
|
|
@@ -33660,7 +33669,7 @@ var typeList = [{
|
|
|
33660
33669
|
}, [h('div', {
|
|
33661
33670
|
class: 'vxe-color-picker--readonly-color',
|
|
33662
33671
|
style: {
|
|
33663
|
-
backgroundColor:
|
|
33672
|
+
backgroundColor: modelValue
|
|
33664
33673
|
}
|
|
33665
33674
|
})]);
|
|
33666
33675
|
}
|
|
@@ -33668,7 +33677,7 @@ var typeList = [{
|
|
|
33668
33677
|
ref: 'refElem',
|
|
33669
33678
|
class: ['vxe-color-picker', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
33670
33679
|
$colorPicker: $xeColorPicker
|
|
33671
|
-
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--selected', !!
|
|
33680
|
+
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--selected', !!modelValue), 'is--visible', visiblePanel), 'is--disabled', isDisabled), 'is--active', isActivated)]
|
|
33672
33681
|
}, [h('input', {
|
|
33673
33682
|
ref: 'refInputTarget',
|
|
33674
33683
|
class: 'vxe-color-picker--input',
|
|
@@ -33684,7 +33693,7 @@ var typeList = [{
|
|
|
33684
33693
|
}, [h('div', {
|
|
33685
33694
|
class: 'vxe-color-picker--inner-color',
|
|
33686
33695
|
style: {
|
|
33687
|
-
backgroundColor:
|
|
33696
|
+
backgroundColor: modelValue
|
|
33688
33697
|
}
|
|
33689
33698
|
})]), h('div', {
|
|
33690
33699
|
ref: 'refOptionPanel',
|