1 line
24 KiB
Plaintext
1 line
24 KiB
Plaintext
|
{"version":3,"file":"wd-col-picker.js","sources":["../../../../../../../node_modules/wot-design-uni/components/wd-col-picker/wd-col-picker.vue","../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL25vZGVfbW9kdWxlcy93b3QtZGVzaWduLXVuaS9jb21wb25lbnRzL3dkLWNvbC1waWNrZXIvd2QtY29sLXBpY2tlci52dWU"],"sourcesContent":["<template>\n <view :class=\"`wd-col-picker ${cell.border.value ? 'is-border' : ''} ${customClass}`\" :style=\"customStyle\">\n <view class=\"wd-col-picker__field\" @click=\"showPicker\">\n <slot v-if=\"useDefaultSlot\"></slot>\n <view\n v-else\n :class=\"`wd-col-picker__cell ${disabled && 'is-disabled'} ${readonly && 'is-readonly'} ${alignRight && 'is-align-right'} ${\n error && 'is-error'\n } ${size && 'is-' + size}`\"\n >\n <view\n v-if=\"label || useLabelSlot\"\n :class=\"`wd-col-picker__label ${isRequired && 'is-required'} ${customLabelClass}`\"\n :style=\"labelWidth ? 'min-width:' + labelWidth + ';max-width:' + labelWidth + ';' : ''\"\n >\n <template v-if=\"label\">{{ label }}</template>\n <slot v-else name=\"label\"></slot>\n </view>\n <view class=\"wd-col-picker__body\">\n <view class=\"wd-col-picker__value-wraper\">\n <view\n :class=\"`wd-col-picker__value ${ellipsis && 'is-ellipsis'} ${customValueClass} ${showValue ? '' : 'wd-col-picker__value--placeholder'}`\"\n >\n {{ showValue || placeholder || translate('placeholder') }}\n </view>\n <wd-icon v-if=\"!disabled && !readonly\" custom-class=\"wd-col-picker__arrow\" name=\"arrow-right\" />\n </view>\n <view v-if=\"errorMessage\" class=\"wd-col-picker__error-message\">{{ errorMessage }}</view>\n </view>\n </view>\n </view>\n <wd-action-sheet\n v-model=\"pickerShow\"\n :duration=\"250\"\n :title=\"title || translate('title')\"\n :close-on-click-modal=\"closeOnClickModal\"\n :z-index=\"zIndex\"\n :safe-area-inset-bottom=\"safeAreaInsetBottom\"\n @open=\"handlePickerOpend\"\n @close=\"handlePickerClose\"\n >\n <view class=\"wd-col-picker__selected\">\n <scroll-view :scroll-x=\"true\" scroll-with-animation :scroll-left=\"scrollLeft\">\n <view class=\"wd-col-picker__selected-container\">\n <view\n v-for=\"(select, colIndex) in selectList\"\n :key=\"colIndex\"\n :class=\"`wd-col-picker__selected-item ${colIndex === currentCol && 'is-selected'}`\"\n @click=\"handleColClick(colIndex)\"\n >\n {{ selectShowList[colIndex] || translate('select') }}\n </view>\n <view class=\"wd-col-picker__selected-line\" :style=\"lineStyle\"></view>\n </view>\n </scroll-view>\n </view>\n <view class=\"wd-col-picker__list-container\">\n <view\n v-for=\"(col, colIndex) in selectList\"\n :key=\"colIndex\"\n class=\"wd-col-picker__list\"\n :style=\"colIndex === currentCol ? 'display: block;' : 'display: none;'\"\n >\n <view\n v-for=\"(item, index) in col\"\n :key=\"index\"\n :class=\"`wd-col-picker__list-item ${pickerColSelected[colIndex] && item[valueKey] === pickerColSelected[colIndex] && 'is-selected'} ${\n item.disabled && 'is-disabled'\n }`\"\n @click=\"chooseItem(colIndex, index)\"\n >\n <view>\n <view class=\"wd-col-picker__list-item-label\">{{ item[labelKey] }}</view>\n <view v-if=\"item[tipKey]\" class=\"wd-col-picker__list-item-tip\">{{ item[tipKey] }}</view>\n </view>\n <wd-icon custom-class=\"wd-col-picker__checked\" name=\"check\"></wd-icon>\n </view>\n <view v-if=\"loading\" class=\"wd-col-picker__loading\">\n <wd-loading :color=\"loadingColor\" />\n </view>\n </view>\n </view>\n </wd-ac
|