unika-components 1.0.128 → 1.0.129

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.
@@ -1,3 +1,4 @@
1
+ export declare const defaultStyles: string[];
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  [x: string]: any;
3
4
  }, {
@@ -3,6 +3,18 @@
3
3
  max-width: 100%;
4
4
  }
5
5
 
6
+ h2.uni-text-component, p.uni-text-component {
7
+ margin-bottom: 0;
8
+ }
9
+ button.uni-text-component {
10
+ padding: 5px 10px;
11
+ cursor: pointer;
12
+ }
13
+ .uni-text-component {
14
+ box-sizing: border-box;
15
+ white-space: pre-wrap;
16
+ }
17
+
6
18
  .slide-guide {
7
19
  position: absolute;
8
20
  bottom: 90px;
@@ -75,53 +87,6 @@ body, html {
75
87
  transform: translate3d(-50%, -50%, 0);
76
88
  }
77
89
  }
78
-
79
- h2.uni-text-component, p.uni-text-component {
80
- margin-bottom: 0;
81
- }
82
- button.uni-text-component {
83
- padding: 5px 10px;
84
- cursor: pointer;
85
- }
86
- .uni-text-component {
87
- box-sizing: border-box;
88
- white-space: pre-wrap;
89
- }
90
-
91
- .effect {
92
- width: 100%;
93
- height: 100%;
94
- }
95
-
96
- .slot-number {
97
- position: absolute;
98
- bottom: 2px;
99
- left: 7px;
100
- font-size: 12px;
101
- color: #666
102
- }
103
-
104
- .like-button {
105
- display: flex;
106
- flex-direction: column;
107
- align-items: center;
108
- cursor: pointer;
109
- }
110
-
111
- .icon-heart {
112
- font-size: 24px;
113
- color: #e74c3c;
114
- }
115
-
116
- .liked {
117
- color: #f00; /* 更改颜色以示已赞 */
118
- }
119
-
120
- .like-count {
121
- margin-top: 4px;
122
- font-size: 16px;
123
- color: #333;
124
- }
125
90
 
126
91
  .uni-video-component {
127
92
  position: relative;
@@ -144,6 +109,14 @@ button.uni-text-component {
144
109
  background: rgba(0, 0, 0, 0.8);
145
110
  }
146
111
 
112
+ .slot-number {
113
+ position: absolute;
114
+ bottom: 2px;
115
+ left: 7px;
116
+ font-size: 12px;
117
+ color: #666
118
+ }
119
+
147
120
  .ant-input-number {
148
121
  box-sizing: border-box;
149
122
  margin: 0;
@@ -179,6 +152,33 @@ button.uni-text-component {
179
152
  vertical-align: top;
180
153
  }
181
154
 
155
+ .effect {
156
+ width: 100%;
157
+ height: 100%;
158
+ }
159
+
160
+ .like-button {
161
+ display: flex;
162
+ flex-direction: column;
163
+ align-items: center;
164
+ cursor: pointer;
165
+ }
166
+
167
+ .icon-heart {
168
+ font-size: 24px;
169
+ color: #e74c3c;
170
+ }
171
+
172
+ .liked {
173
+ color: #f00; /* 更改颜色以示已赞 */
174
+ }
175
+
176
+ .like-count {
177
+ margin-top: 4px;
178
+ font-size: 16px;
179
+ color: #333;
180
+ }
181
+
182
182
  .swiper-warp {
183
183
  width: 100%;
184
184
  height: 100%;
@@ -5133,8 +5133,8 @@ const buttonDefaultProps = {
5133
5133
  lineHeight: 1,
5134
5134
  backgroundColor: 'rgb(38, 135, 241)',
5135
5135
  fontSize: '16px',
5136
- actionType: "to",
5137
- url: "https://unika.cc",
5136
+ actionType: 'to',
5137
+ url: 'https://unika.cc',
5138
5138
  buttonText: 'Link',
5139
5139
  };
5140
5140
  const likeDefaultProps = {
@@ -75543,36 +75543,12 @@ script$2.install = (app) => {
75543
75543
  };
75544
75544
 
75545
75545
  const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, isEditingProp);
75546
- const defaultStyles = Object.keys(buttonDefaultProps);
75546
+ const defaultStyles = without$1(Object.keys(buttonDefaultProps), 'actionType', 'url', 'buttonText');
75547
75547
  // array that contains style props
75548
75548
  var script$1 = defineComponent({
75549
75549
  name: 'uni-button',
75550
75550
  props: {
75551
75551
  ...defaultProps,
75552
- // buttonUrl: {
75553
- // type: String,
75554
- // default: 'https://unika.cc'
75555
- // },
75556
- // fontColor: {
75557
- // type: String,
75558
- // default: 'white'
75559
- // },
75560
- // backgroundColor: {
75561
- // type: String,
75562
- // default: 'blue'
75563
- // },
75564
- // buttonText: {
75565
- // type: String,
75566
- // default: 'Link'
75567
- // },
75568
- // transform: {
75569
- // type: String,
75570
- // default: 'rotate(0deg)'
75571
- // },
75572
- // isEditing: {
75573
- // type: Boolean,
75574
- // default: false
75575
- // }
75576
75552
  },
75577
75553
  components: {},
75578
75554
  setup(props) {
@@ -75580,13 +75556,9 @@ var script$1 = defineComponent({
75580
75556
  // 抽离并且获得 styleProps
75581
75557
  const styleProps = useStylePick(props, defaultStyles);
75582
75558
  const handleClick = useComponentClick(props);
75583
- // const openUrl = () => {
75584
- // window.location.href = props.buttonUrl
75585
- // }
75586
75559
  return {
75587
75560
  styleProps,
75588
- handleClick,
75589
- // openUrl
75561
+ handleClick
75590
75562
  };
75591
75563
  }
75592
75564
  });
@@ -5140,8 +5140,8 @@
5140
5140
  lineHeight: 1,
5141
5141
  backgroundColor: 'rgb(38, 135, 241)',
5142
5142
  fontSize: '16px',
5143
- actionType: "to",
5144
- url: "https://unika.cc",
5143
+ actionType: 'to',
5144
+ url: 'https://unika.cc',
5145
5145
  buttonText: 'Link',
5146
5146
  };
5147
5147
  const likeDefaultProps = {
@@ -75550,36 +75550,12 @@ summary tabindex target title type usemap value width wmode wrap`;
75550
75550
  };
75551
75551
 
75552
75552
  const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, isEditingProp);
75553
- const defaultStyles = Object.keys(buttonDefaultProps);
75553
+ const defaultStyles = without$1(Object.keys(buttonDefaultProps), 'actionType', 'url', 'buttonText');
75554
75554
  // array that contains style props
75555
75555
  var script$1 = vue.defineComponent({
75556
75556
  name: 'uni-button',
75557
75557
  props: {
75558
75558
  ...defaultProps,
75559
- // buttonUrl: {
75560
- // type: String,
75561
- // default: 'https://unika.cc'
75562
- // },
75563
- // fontColor: {
75564
- // type: String,
75565
- // default: 'white'
75566
- // },
75567
- // backgroundColor: {
75568
- // type: String,
75569
- // default: 'blue'
75570
- // },
75571
- // buttonText: {
75572
- // type: String,
75573
- // default: 'Link'
75574
- // },
75575
- // transform: {
75576
- // type: String,
75577
- // default: 'rotate(0deg)'
75578
- // },
75579
- // isEditing: {
75580
- // type: Boolean,
75581
- // default: false
75582
- // }
75583
75559
  },
75584
75560
  components: {},
75585
75561
  setup(props) {
@@ -75587,13 +75563,9 @@ summary tabindex target title type usemap value width wmode wrap`;
75587
75563
  // 抽离并且获得 styleProps
75588
75564
  const styleProps = useStylePick(props, defaultStyles);
75589
75565
  const handleClick = useComponentClick(props);
75590
- // const openUrl = () => {
75591
- // window.location.href = props.buttonUrl
75592
- // }
75593
75566
  return {
75594
75567
  styleProps,
75595
- handleClick,
75596
- // openUrl
75568
+ handleClick
75597
75569
  };
75598
75570
  }
75599
75571
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",