@star-ai/star-ui 0.1.4 → 0.1.6

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/lib/index.esm.js CHANGED
@@ -3,16 +3,16 @@
3
3
 
4
4
  // Button 组件
5
5
  const StarButton = {
6
- template: `<view
6
+ template: '<view
7
7
  class="star-button"
8
8
  :class="[
9
9
  \`star-button--${type}\`,
10
10
  \`star-button--${size}\`,
11
11
  {
12
- 'star-button--disabled': disabled,
13
- 'star-button--loading': loading,
14
- 'star-button--block': block,
15
- 'star-button--plain': plain
12
+ \'star-button--disabled\': disabled,
13
+ \'star-button--loading\': loading,
14
+ \'star-button--block\': block,
15
+ \'star-button--plain\': plain
16
16
  }
17
17
  ]"
18
18
  :style="[customStyle]"
@@ -41,7 +41,7 @@ const StarButton = {
41
41
  class="star-button__right-icon"
42
42
  :class="rightIcon"
43
43
  ></text>
44
- </view>`,
44
+ </view>',
45
45
 
46
46
  name: 'StarButton',
47
47
 
@@ -151,7 +151,7 @@ StarButton.install = function(Vue) {
151
151
 
152
152
  // Input 组件
153
153
  const StarInput = {
154
- template: `<view class="star-input" :class="inputClasses">
154
+ template: '<view class="star-input" :class="inputClasses">
155
155
  <!-- 前置内容 -->
156
156
  <view v-if="$slots.prepend || prepend" class="star-input__prepend">
157
157
  <slot name="prepend">
@@ -172,7 +172,7 @@ const StarInput = {
172
172
  <!-- 输入框 -->
173
173
  <input
174
174
  class="star-input__inner"
175
- :type="showPassword ? (passwordVisible ? 'text' : 'password') : type"
175
+ :type="showPassword ? (passwordVisible ? \'text\' : \'password\') : type"
176
176
  :value="currentValue"
177
177
  :placeholder="placeholder"
178
178
  :disabled="disabled"
@@ -204,7 +204,7 @@ const StarInput = {
204
204
  class="star-input__password-toggle"
205
205
  @click="togglePasswordVisible"
206
206
  >
207
- <text :class="passwordVisible ? 'star-icon-eye-open' : 'star-icon-eye-close'"></text>
207
+ <text :class="passwordVisible ? \'star-icon-eye-open\' : \'star-icon-eye-close\'"></text>
208
208
  </view>
209
209
 
210
210
  <!-- 后置图标 -->
@@ -222,7 +222,7 @@ const StarInput = {
222
222
  <text v-if="append" class="star-input__append-text">{{ append }}</text>
223
223
  </slot>
224
224
  </view>
225
- </view>`,
225
+ </view>',
226
226
 
227
227
  name: 'StarInput',
228
228
 
@@ -438,11 +438,11 @@ if (typeof window !== 'undefined' && window.Vue) {
438
438
 
439
439
  // 创建导出对象
440
440
  const StarUI = {
441
- version: '0.1.4',
441
+ version: '0.1.6',
442
442
  install,
443
443
  // 导出所有组件
444
444
  StarButton,
445
- StarInput
445
+ StarInput
446
446
  };
447
447
 
448
448
  export default StarUI;
package/lib/index.js CHANGED
@@ -9,16 +9,16 @@
9
9
 
10
10
  // Button 组件
11
11
  const StarButton = {
12
- template: `<view
12
+ template: '<view
13
13
  class="star-button"
14
14
  :class="[
15
15
  \`star-button--${type}\`,
16
16
  \`star-button--${size}\`,
17
17
  {
18
- 'star-button--disabled': disabled,
19
- 'star-button--loading': loading,
20
- 'star-button--block': block,
21
- 'star-button--plain': plain
18
+ \'star-button--disabled\': disabled,
19
+ \'star-button--loading\': loading,
20
+ \'star-button--block\': block,
21
+ \'star-button--plain\': plain
22
22
  }
23
23
  ]"
24
24
  :style="[customStyle]"
@@ -47,7 +47,7 @@
47
47
  class="star-button__right-icon"
48
48
  :class="rightIcon"
49
49
  ></text>
50
- </view>`,
50
+ </view>',
51
51
 
52
52
  name: 'StarButton',
53
53
 
@@ -157,7 +157,7 @@
157
157
 
158
158
  // Input 组件
159
159
  const StarInput = {
160
- template: `<view class="star-input" :class="inputClasses">
160
+ template: '<view class="star-input" :class="inputClasses">
161
161
  <!-- 前置内容 -->
162
162
  <view v-if="$slots.prepend || prepend" class="star-input__prepend">
163
163
  <slot name="prepend">
@@ -178,7 +178,7 @@
178
178
  <!-- 输入框 -->
179
179
  <input
180
180
  class="star-input__inner"
181
- :type="showPassword ? (passwordVisible ? 'text' : 'password') : type"
181
+ :type="showPassword ? (passwordVisible ? \'text\' : \'password\') : type"
182
182
  :value="currentValue"
183
183
  :placeholder="placeholder"
184
184
  :disabled="disabled"
@@ -210,7 +210,7 @@
210
210
  class="star-input__password-toggle"
211
211
  @click="togglePasswordVisible"
212
212
  >
213
- <text :class="passwordVisible ? 'star-icon-eye-open' : 'star-icon-eye-close'"></text>
213
+ <text :class="passwordVisible ? \'star-icon-eye-open\' : \'star-icon-eye-close\'"></text>
214
214
  </view>
215
215
 
216
216
  <!-- 后置图标 -->
@@ -228,7 +228,7 @@
228
228
  <text v-if="append" class="star-input__append-text">{{ append }}</text>
229
229
  </slot>
230
230
  </view>
231
- </view>`,
231
+ </view>',
232
232
 
233
233
  name: 'StarInput',
234
234
 
@@ -444,7 +444,7 @@
444
444
 
445
445
  // 创建导出对象
446
446
  const StarUI = {
447
- version: '0.1.4',
447
+ version: '0.1.6',
448
448
  install,
449
449
  // 导出所有组件
450
450
  StarButton,
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@star-ai/star-ui",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "基于Uniapp的Vue2组件库",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -9,16 +9,16 @@
9
9
 
10
10
  // Button 组件
11
11
  const StarButton = {
12
- template: `<view
12
+ template: '<view
13
13
  class="star-button"
14
14
  :class="[
15
15
  \`star-button--${type}\`,
16
16
  \`star-button--${size}\`,
17
17
  {
18
- 'star-button--disabled': disabled,
19
- 'star-button--loading': loading,
20
- 'star-button--block': block,
21
- 'star-button--plain': plain
18
+ \'star-button--disabled\': disabled,
19
+ \'star-button--loading\': loading,
20
+ \'star-button--block\': block,
21
+ \'star-button--plain\': plain
22
22
  }
23
23
  ]"
24
24
  :style="[customStyle]"
@@ -47,7 +47,7 @@
47
47
  class="star-button__right-icon"
48
48
  :class="rightIcon"
49
49
  ></text>
50
- </view>`,
50
+ </view>',
51
51
 
52
52
  name: 'StarButton',
53
53
 
@@ -156,7 +156,7 @@
156
156
 
157
157
  // Input 组件
158
158
  const StarInput = {
159
- template: `<view class="star-input" :class="inputClasses">
159
+ template: '<view class="star-input" :class="inputClasses">
160
160
  <!-- 前置内容 -->
161
161
  <view v-if="$slots.prepend || prepend" class="star-input__prepend">
162
162
  <slot name="prepend">
@@ -177,7 +177,7 @@
177
177
  <!-- 输入框 -->
178
178
  <input
179
179
  class="star-input__inner"
180
- :type="showPassword ? (passwordVisible ? 'text' : 'password') : type"
180
+ :type="showPassword ? (passwordVisible ? \'text\' : \'password\') : type"
181
181
  :value="currentValue"
182
182
  :placeholder="placeholder"
183
183
  :disabled="disabled"
@@ -209,7 +209,7 @@
209
209
  class="star-input__password-toggle"
210
210
  @click="togglePasswordVisible"
211
211
  >
212
- <text :class="passwordVisible ? 'star-icon-eye-open' : 'star-icon-eye-close'"></text>
212
+ <text :class="passwordVisible ? \'star-icon-eye-open\' : \'star-icon-eye-close\'"></text>
213
213
  </view>
214
214
 
215
215
  <!-- 后置图标 -->
@@ -227,7 +227,7 @@
227
227
  <text v-if="append" class="star-input__append-text">{{ append }}</text>
228
228
  </slot>
229
229
  </view>
230
- </view>`,
230
+ </view>',
231
231
 
232
232
  name: 'StarInput',
233
233
 
@@ -446,7 +446,7 @@
446
446
 
447
447
  // 创建导出对象
448
448
  const StarUI = {
449
- version: '0.1.4',
449
+ version: '0.1.6',
450
450
  install,
451
451
  // 导出所有组件
452
452
  StarButton,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@star-ai/star-ui",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "基于Uniapp的Vue2组件库",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",