diff --git a/miniprogram/components/word-picker/word-picker.less b/miniprogram/components/word-picker/word-picker.less
index 63f3bd9..4e15c79 100644
--- a/miniprogram/components/word-picker/word-picker.less
+++ b/miniprogram/components/word-picker/word-picker.less
@@ -1,5 +1,6 @@
.word-picker {
padding: 28rpx;
+ background-color: #ffffff;
.word-picker-title {
font-size: 32rpx;
@@ -9,4 +10,70 @@
margin-bottom: 28rpx;
}
+ .nav-class {
+ // background-color: red;
+ // width: 890rpx;
+ }
+
+ .tab-class {
+ // width: 220rpx;
+ // flex-basis: auto !important;
+ // display: inline-block;
+ }
+
+ .tab-active-class {
+ color: #93d333;
+ }
+
+ .wrap-class {
+ margin-bottom: 28rpx;
+ // background-color: blue;
+ }
+
+ .word-list-wrapper {
+ padding: 28rpx 0;
+ overflow-y: auto;
+ height: 500rpx;
+
+ .word-list {
+ display: grid;
+ grid-template-columns: repeat(7, 72rpx);
+ grid-template-rows: repeat(20, 72rpx);
+ gap: 24rpx;
+ justify-content: center;
+ // box-shadow: 0 0 -10rpx rgba(0, 0, 0, 0.2);
+ // align-items: flex-start;
+
+ .word-item {
+ width: 72rpx;
+ height: 72rpx;
+ border-radius: 16rpx;
+ background: rgba(240, 240, 240, 1);
+ box-shadow: 3.9px 3.9px 5.2px rgba(0, 0, 0, 0.15);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 28rpx;
+ color: #141414;
+ }
+ }
+
+ .word-item-empty {
+ height: 28rpx;
+ width: 100%;
+ }
+ }
+
+
+ .selected-words {
+ padding: 28rpx;
+ font-size: 28rpx;
+ color: #141414;
+
+ .selected-words-text {
+ font-weight: bold;
+ color: #93d333;
+ }
+ }
+
}
\ No newline at end of file
diff --git a/miniprogram/components/word-picker/word-picker.ts b/miniprogram/components/word-picker/word-picker.ts
index 8bcc5c4..dd3c950 100644
--- a/miniprogram/components/word-picker/word-picker.ts
+++ b/miniprogram/components/word-picker/word-picker.ts
@@ -23,7 +23,12 @@ Component({
selectedWords: [],
},
lifetimes: {
- attached() { },
+ ready() {
+ // setTimeout(() => {
+ // console.log('111');
+ // this.selectComponent('#tabs').resize();
+ // }, 1000);
+ },
},
/**
* 组件的方法列表
diff --git a/miniprogram/components/word-picker/word-picker.wxml b/miniprogram/components/word-picker/word-picker.wxml
index 7040465..3ada5e6 100644
--- a/miniprogram/components/word-picker/word-picker.wxml
+++ b/miniprogram/components/word-picker/word-picker.wxml
@@ -3,15 +3,20 @@
bind:close="onClose"
round
position="bottom"
- custom-style="height: 60%"
+ custom-style="height: 65%"
custom-class="word-picker">
请选择文字
-
-
- {{item}}
-
+
+
+
+ {{item}}
+
+
+
- 已选文字:
+ 已选文字:
-
+
自定义涂鸦卡
@@ -58,11 +58,11 @@
class="wrapper {{cardList.length > 0 ? '' : 'hidden'}}">
预览打印效果
-
+ style="width:{{boxWidth}}px;height:{{boxHeight}}px" /> -->
@@ -71,6 +71,10 @@
currentColor="{{currentColor}}"
bind:onClose="onCloseColorPopup"
bind:onChange="onChangeColor" />
+