diff --git a/.vite/deps_temp_76ad3e3e/package.json b/.vite/deps_temp_76ad3e3e/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c34deb5837d8d5e168b54f95f7872b2c50eca13
--- /dev/null
+++ b/.vite/deps_temp_76ad3e3e/package.json
@@ -0,0 +1 @@
+{"type":"module"}
\ No newline at end of file
diff --git a/.vite/deps_temp_b9315225/package.json b/.vite/deps_temp_b9315225/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c34deb5837d8d5e168b54f95f7872b2c50eca13
--- /dev/null
+++ b/.vite/deps_temp_b9315225/package.json
@@ -0,0 +1 @@
+{"type":"module"}
\ No newline at end of file
diff --git a/pages/componentsA/text/text.nvue b/pages/componentsA/text/text.nvue
index 9d41724954ea6484ca0bdcbf6581f23f2878f732..064fd39cc3b4de2d830da15c3882af702b085dc1 100644
--- a/pages/componentsA/text/text.nvue
+++ b/pages/componentsA/text/text.nvue
@@ -1,5 +1,18 @@
+
+ 设置标题装饰
+
+
+
+
+
+
+
+
+
基础功能
@@ -12,34 +25,19 @@
设置主题
-
+
-
+
-
+
-
+
-
+
@@ -47,15 +45,8 @@
拨打电话
-
-
+
+
@@ -63,10 +54,7 @@
日期格式化
-
+
@@ -74,11 +62,7 @@
姓名脱敏
-
+
@@ -86,11 +70,7 @@
超链接
-
+
@@ -98,61 +78,47 @@
显示金额
-
+
前后图标
-
-
+
+
-
+
超出隐藏
-
+
小程序开放能力
-
+
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/uni_modules/uv-action-sheet/components/uv-action-sheet/uv-action-sheet.vue b/uni_modules/uv-action-sheet/components/uv-action-sheet/uv-action-sheet.vue
index edca08926cc08d8fede984cafeab1e4eca1a497d..acdefa176e14297761e91b176cac56cc49615335 100644
--- a/uni_modules/uv-action-sheet/components/uv-action-sheet/uv-action-sheet.vue
+++ b/uni_modules/uv-action-sheet/components/uv-action-sheet/uv-action-sheet.vue
@@ -1,106 +1,53 @@
-
-
+
-
@@ -143,9 +90,11 @@
* @event {Function} opensetting 在打开授权设置页后回调,openType="openSetting"时有效
* @example
*/
+
+ import popup from '@/uni_modules/uv-ui-tools/libs/mixin/popup.js'
export default {
name: "uv-action-sheet",
- mixins: [openType, button, mpMixin , mixin, props],
+ mixins: [openType, button, mpMixin, mixin, props, popup()],
emits: ['close', 'select'],
computed: {
// 操作项目的样式
@@ -167,9 +116,6 @@
close() {
this.$refs.popup.close();
},
- popupChange(e) {
- if(!e.show) this.$emit('close');
- },
// 点击取消按钮
cancel() {
this.close();
@@ -193,24 +139,24 @@
@import '@/uni_modules/uv-ui-tools/libs/css/variable.scss';
@import '@/uni_modules/uv-ui-tools/libs/css/components.scss';
@import '@/uni_modules/uv-ui-tools/libs/css/color.scss';
- $uv-action-sheet-reset-button-width:100% !default;
+ $uv-action-sheet-reset-button-width: 100% !default;
$uv-action-sheet-title-font-size: 16px !default;
$uv-action-sheet-title-padding: 12px 30px !default;
$uv-action-sheet-title-color: $uv-main-color !default;
- $uv-action-sheet-header-icon-wrap-right:15px !default;
- $uv-action-sheet-header-icon-wrap-top:15px !default;
- $uv-action-sheet-description-font-size:13px !default;
- $uv-action-sheet-description-color:14px !default;
+ $uv-action-sheet-header-icon-wrap-right: 15px !default;
+ $uv-action-sheet-header-icon-wrap-top: 15px !default;
+ $uv-action-sheet-description-font-size: 13px !default;
+ $uv-action-sheet-description-color: 14px !default;
$uv-action-sheet-description-margin: 18px 15px !default;
- $uv-action-sheet-item-wrap-item-padding:15px !default;
- $uv-action-sheet-item-wrap-name-font-size:16px !default;
- $uv-action-sheet-item-wrap-subname-font-size:13px !default;
+ $uv-action-sheet-item-wrap-item-padding: 15px !default;
+ $uv-action-sheet-item-wrap-name-font-size: 16px !default;
+ $uv-action-sheet-item-wrap-subname-font-size: 13px !default;
$uv-action-sheet-item-wrap-subname-color: #c0c4cc !default;
- $uv-action-sheet-item-wrap-subname-margin-top:10px !default;
- $uv-action-sheet-cancel-text-font-size:16px !default;
- $uv-action-sheet-cancel-text-color:$uv-content-color !default;
- $uv-action-sheet-cancel-text-font-size:15px !default;
- $uv-action-sheet-cancel-text-hover-background-color:rgb(242, 243, 245) !default;
+ $uv-action-sheet-item-wrap-subname-margin-top: 10px !default;
+ $uv-action-sheet-cancel-text-font-size: 16px !default;
+ $uv-action-sheet-cancel-text-color: $uv-content-color !default;
+ $uv-action-sheet-cancel-text-font-size: 15px !default;
+ $uv-action-sheet-cancel-text-hover-background-color: rgb(242, 243, 245) !default;
.uv-reset-button {
width: $uv-action-sheet-reset-button-width;
@@ -218,9 +164,11 @@
.uv-action-sheet {
text-align: center;
+
&__header {
position: relative;
padding: $uv-action-sheet-title-padding;
+
&__title {
font-size: $uv-action-sheet-title-font-size;
color: $uv-action-sheet-title-color;
@@ -277,4 +225,4 @@
background-color: $uv-action-sheet-cancel-text-hover-background-color;
}
}
-
+
\ No newline at end of file
diff --git a/uni_modules/uv-calendars/components/uv-calendars/uv-calendars.vue b/uni_modules/uv-calendars/components/uv-calendars/uv-calendars.vue
index 8d5b3770a3762b89839cf4d398e711b75420fdcb..2ee3001241fc49e6bd91d78cf2535f22c2919a07 100644
--- a/uni_modules/uv-calendars/components/uv-calendars/uv-calendars.vue
+++ b/uni_modules/uv-calendars/components/uv-calendars/uv-calendars.vue
@@ -1,58 +1,22 @@
-
+
-
+
-
-
+
@@ -92,14 +56,22 @@
import mixin from '@/uni_modules/uv-ui-tools/libs/mixin/mixin.js';
import Calendar from './util.js';
import calendarBody from './calendar-body.vue';
- import { initVueI18n } from '@dcloudio/uni-i18n';
+ import popup from '@/uni_modules/uv-ui-tools/libs/mixin/popup.js'
+
+
+ import {
+ initVueI18n
+ } from '@dcloudio/uni-i18n';
import i18nMessages from './i18n/index.js';
- const { t } = initVueI18n(i18nMessages);
+ const {
+ t
+ } = initVueI18n(i18nMessages);
export default {
+ name: 'uv-calendars',
components: {
calendarBody
},
- mixins: [mpMixin, mixin],
+ mixins: [mpMixin, mixin,popup()],
emits: ['close', 'confirm', 'change', 'monthSwitch'],
props: {
// 取消按钮颜色
@@ -124,7 +96,7 @@
},
// 默认显示日期
date: {
- type: [String,Array],
+ type: [String, Array],
default: ''
},
// 打点等设置
@@ -171,7 +143,7 @@
},
// 弹窗圆角
round: {
- type: [Number,String],
+ type: [Number, String],
default: 8
},
// 点击遮罩是否关闭弹窗
@@ -201,7 +173,7 @@
},
...uni.$uv?.props?.calendars
},
- data(){
+ data() {
return {
weeks: [],
calendar: {},
@@ -211,7 +183,7 @@
range: false
}
},
- computed:{
+ computed: {
/**
* for i18n
*/
@@ -222,9 +194,9 @@
return t("uv-calender.cancel")
},
getConfirmColor() {
- if(this.range || this.multiple || this.readonly) {
- return this.allowConfirm? this.confirmColor: '#999'
- }else {
+ if (this.range || this.multiple || this.readonly) {
+ return this.allowConfirm ? this.confirmColor : '#999'
+ } else {
return this.confirmColor;
}
}
@@ -246,23 +218,31 @@
selected(newVal) {
this.cale.setSelectInfo(this.nowDate.fullDate, newVal)
this.weeks = this.cale.weeks
- }
+ },
+ mode() {
+ this.initCreated()
+ },
},
created() {
- this.setMode();
- this.cale = new Calendar({
- selected: this.selected,
- startDate: this.startDate,
- endDate: this.endDate,
- range: this.range,
- multiple: this.multiple,
- allowSameDay: this.allowSameDay
- })
- this.init(this.date)
+ this.initCreated()
},
methods: {
+ initCreated() {
+ this.setMode();
+ this.cale = new Calendar({
+ selected: this.selected,
+ startDate: this.startDate,
+ endDate: this.endDate,
+ range: this.range,
+ multiple: this.multiple,
+ allowSameDay: this.allowSameDay
+ })
+ this.init(this.date)
+ },
setMode() {
- switch (this.mode){
+ this.range = false
+ this.multiple = false
+ switch (this.mode) {
case 'range':
this.range = true;
break;
@@ -277,7 +257,7 @@
this.cale.cleanRangeStatus()
this.init(this.date)
}
- if(!this.insert){
+ if (!this.insert) {
this.$refs.popup.open();
}
},
@@ -286,26 +266,29 @@
this.$emit('close');
},
confirm() {
- if(this.readonly) {
+ if (this.readonly) {
return;
- } else if(this.range && !this.cale.rangeStatus.after) {
+ } else if (this.range && !this.cale.rangeStatus.after) {
return;
- } else if(this.multiple && this.cale.multipleStatus.data.length == 0){
+ } else if (this.multiple && this.cale.multipleStatus.data.length == 0) {
return;
}
this.setEmit('confirm');
this.close()
},
maskClick() {
- if(this.closeOnClickOverlay) {
+ if (this.closeOnClickOverlay) {
this.$emit('close');
}
},
bindDateChange(e) {
const value = e.detail.value + '-1'
this.setDate(value)
-
- const { year, month } = this.cale.getDate(value)
+
+ const {
+ year,
+ month
+ } = this.cale.getDate(value)
this.$emit('monthSwitch', {
year,
month
@@ -316,14 +299,14 @@
* @param {Object} date
*/
init(date) {
- if(this.range) {
+ if (this.range) {
// 重置范围选择状态
this.cale.cleanRangeStatus();
- }else if(this.multiple){
+ } else if (this.multiple) {
// 重置多选状态
this.cale.cleanMultipleStatus();
}
- this.cale.setDate(date,'init')
+ this.cale.setDate(date, 'init')
this.weeks = this.cale.weeks
this.nowDate = this.calendar = this.cale.getInfo(date)
this.changeConfirmStatus();
@@ -337,11 +320,11 @@
this.setEmit('change')
},
changeConfirmStatus() {
- if(this.readonly) {
+ if (this.readonly) {
this.allowConfirm = false;
} else if (this.range) {
this.allowConfirm = this.cale.rangeStatus.after ? true : false;
- } else if(this.multiple) {
+ } else if (this.multiple) {
this.allowConfirm = this.cale.multipleStatus.data.length > 0 ? true : false;
}
},
@@ -439,9 +422,11 @@
+
\ No newline at end of file
diff --git a/uni_modules/uv-notify/components/uv-notify/props.js b/uni_modules/uv-notify/components/uv-notify/props.js
index 5728276973f9df04254a4c6394f4b15251145f4c..b948f6bf3afc2dd80df3b8b7d1cac418a168ab2e 100644
--- a/uni_modules/uv-notify/components/uv-notify/props.js
+++ b/uni_modules/uv-notify/components/uv-notify/props.js
@@ -1,5 +1,9 @@
export default {
props: {
+ showNotify: {
+ type: Boolean,
+ default: false
+ },
// 到顶部的距离
top: {
type: [String, Number],
diff --git a/uni_modules/uv-notify/components/uv-notify/uv-notify.vue b/uni_modules/uv-notify/components/uv-notify/uv-notify.vue
index 96c156647be2e37fc6768363b420af341b247fe8..b73fb37ddf9b9249fbc23d19284277a662c9c0cb 100644
--- a/uni_modules/uv-notify/components/uv-notify/uv-notify.vue
+++ b/uni_modules/uv-notify/components/uv-notify/uv-notify.vue
@@ -1,32 +1,18 @@
-
-
+
+
-
+
- {{ tmpConfig.message }}
+ }">{{ tmpConfig.message }}
@@ -61,28 +47,19 @@
// 是否展示组件
open: false,
timer: null,
- config: {
- // 到顶部的距离
- top: this.top,
- // type主题,primary,success,warning,error
- type: this.type,
- // 字体颜色
- color: this.color,
- // 背景颜色
- bgColor: this.bgColor,
- // 展示的文字内容
- message: this.message,
- // 展示时长,为0时不消失,单位ms
- duration: this.duration,
- // 字体大小
- fontSize: this.fontSize,
- // 是否留出顶部安全距离(状态栏高度)
- safeAreaInsetTop: this.safeAreaInsetTop
- },
// 合并后的配置,避免多次调用组件后,可能会复用之前使用的配置参数
tmpConfig: {}
}
},
+ watch: {
+ showNotify: function(bool) {
+ if (bool) {
+ this.show({})
+ } else {
+ this.close()
+ }
+ }
+ },
computed: {
containerStyle() {
let top = 0
@@ -137,7 +114,24 @@
methods: {
show(options) {
// 不将结果合并到this.config变量,避免多次调用uv-toast,前后的配置造成混乱
- this.tmpConfig = this.$uv.deepMerge(this.config, options)
+ this.tmpConfig = this.$uv.deepMerge({
+ // 到顶部的距离
+ top: this.top,
+ // type主题,primary,success,warning,error
+ type: this.type,
+ // 字体颜色
+ color: this.color,
+ // 背景颜色
+ bgColor: this.bgColor,
+ // 展示的文字内容
+ message: this.message,
+ // 展示时长,为0时不消失,单位ms
+ duration: this.duration,
+ // 字体大小
+ fontSize: this.fontSize,
+ // 是否留出顶部安全距离(状态栏高度)
+ safeAreaInsetTop: this.safeAreaInsetTop
+ }, options)
// 任何定时器初始化之前,都要执行清除操作,否则可能会造成混乱
this.clearTimer()
this.open = true
@@ -217,4 +211,4 @@
background-color: $uv-notify-warning-bgColor;
}
}
-
+
\ No newline at end of file
diff --git a/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue b/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue
index f283a924c54bcbef41f72a730a3b865307cffbdb..c9b8ebbf78851ad21af0ad0c5a10e9a29c424880 100644
--- a/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue
+++ b/uni_modules/uv-pick-color/components/uv-pick-color/uv-pick-color.vue
@@ -1,181 +1,125 @@
-
+
-
-
+
+ }">
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
- 切换
- 模式
-
-
-
- {{hex}}
-
-
- HEX
-
-
-
-
-
- {{rgba.r}}
-
-
- R
+
+
-
-
-
- {{rgba.g}}
-
-
- G
-
+
+
+
+
-
-
-
- {{rgba.b}}
-
-
- B
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- {{rgba.a}}
+
+
+ 切换
+ 模式
+
+
+
+ {{hex}}
+
+
+ HEX
+
+
+
+
+
+ {{rgba.r}}
+
+
+ R
+
+
+
+
+
+ {{rgba.g}}
+
+
+ G
+
+
+
+
+
+ {{rgba.b}}
+
+
+ B
+
+
+
+
+
+ {{rgba.a}}
+
+
+ A
+
+
+
-
- A
+
+
+
+
-
-
-
-
-
-
-
-
@@ -187,12 +131,18 @@
+
\ No newline at end of file
diff --git a/uni_modules/uv-popup/components/uv-popup/uv-popup.vue b/uni_modules/uv-popup/components/uv-popup/uv-popup.vue
index a63ff9d624b1995597c4e81eb921b8bf7dd503f0..ee185984f9a5e07bde5fbf00a4c1f7da469c9588 100644
--- a/uni_modules/uv-popup/components/uv-popup/uv-popup.vue
+++ b/uni_modules/uv-popup/components/uv-popup/uv-popup.vue
@@ -1,54 +1,20 @@
-