@zamlia/mini-ui 0.0.1 → 0.0.12
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/es/components/industry/CitySelectButton/index.d.ts.map +1 -1
- package/lib/components/industry/CitySelectButton/index.d.ts.map +1 -1
- package/lib/styles/index.css +1 -0
- package/lib/styles/index.css.map +1 -0
- package/package.json +9 -7
- package/es/styles/_base.scss +0 -4
- package/es/styles/index.scss +0 -19
- package/es/styles/mixins.scss +0 -15
- package/es/styles/variables.scss +0 -2
- package/lib/styles/_base.scss +0 -4
- package/lib/styles/index.scss +0 -19
- package/lib/styles/mixins.scss +0 -15
- package/lib/styles/variables.scss +0 -2
- package/src/components/common/BottomPopup/index.scss +0 -34
- package/src/components/common/BottomPopup/index.tsx +0 -129
- package/src/components/common/Card/index.scss +0 -160
- package/src/components/common/Card/index.tsx +0 -72
- package/src/components/common/CardItem/index.tsx +0 -153
- package/src/components/common/DataSelect/index.tsx +0 -86
- package/src/components/common/Modal/index.scss +0 -49
- package/src/components/common/Modal/index.tsx +0 -105
- package/src/components/common/NavBar/index.scss +0 -26
- package/src/components/common/NavBar/index.tsx +0 -81
- package/src/components/common/Page/index.scss +0 -19
- package/src/components/common/Page/index.tsx +0 -56
- package/src/components/common/PullToPushRefresh/index.scss +0 -38
- package/src/components/common/PullToPushRefresh/index.tsx +0 -338
- package/src/components/common/Radio/index.scss +0 -15
- package/src/components/common/Radio/index.tsx +0 -56
- package/src/components/common/TabPane/index.tsx +0 -26
- package/src/components/common/Tabs/index.scss +0 -60
- package/src/components/common/Tabs/index.tsx +0 -107
- package/src/components/common/UploadFile/index.scss +0 -59
- package/src/components/common/UploadFile/index.tsx +0 -321
- package/src/components/common/UploadFile/upload.ts +0 -63
- package/src/components/common/UploadFile/utils.ts +0 -81
- package/src/components/common/VideoView/index.tsx +0 -50
- package/src/components/common/index.ts +0 -23
- package/src/components/industry/CitySelectButton/index.tsx +0 -76
- package/src/components/industry/CitySelectModal/index.scss +0 -122
- package/src/components/industry/CitySelectModal/index.tsx +0 -121
- package/src/components/industry/PaymentMethodSelect/index.scss +0 -146
- package/src/components/industry/PaymentMethodSelect/index.tsx +0 -316
- package/src/components/industry/index.ts +0 -5
- package/src/config/classPrefix.ts +0 -44
- package/src/index.ts +0 -9
- package/src/styles/_base.scss +0 -4
- package/src/styles/index.scss +0 -19
- package/src/styles/mixins.scss +0 -15
- package/src/styles/variables.scss +0 -2
- package/src/utils/city.ts +0 -4072
- package/src/utils/index.ts +0 -155
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 组件类名前缀配置
|
|
3
|
-
* 修改此处的 PREFIX 即可一键修改所有组件的类名前缀
|
|
4
|
-
*/
|
|
5
|
-
export const CLASS_PREFIX = 'we'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 生成带前缀的类名
|
|
9
|
-
* @param name 类名(不含前缀)
|
|
10
|
-
* @returns 带前缀的完整类名
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* prefixClass('btn') // => 'we-btn'
|
|
14
|
-
* prefixClass('card') // => 'we-card'
|
|
15
|
-
*/
|
|
16
|
-
export const prefixClass = (name: string): string => {
|
|
17
|
-
return `${CLASS_PREFIX}-${name}`
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* 生成 BEM 格式的类名(带修饰符)
|
|
22
|
-
* @param block 块名
|
|
23
|
-
* @param modifier 修饰符
|
|
24
|
-
* @returns 带前缀的 BEM 类名
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* prefixBEM('status', 'paid') // => 'we-status--paid'
|
|
28
|
-
*/
|
|
29
|
-
export const prefixBEM = (block: string, modifier: string): string => {
|
|
30
|
-
return `${CLASS_PREFIX}-${block}--${modifier}`
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* 生成 BEM 格式的类名(带元素)
|
|
35
|
-
* @param block 块名
|
|
36
|
-
* @param element 元素名
|
|
37
|
-
* @returns 带前缀的 BEM 类名
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* prefixElement('card', 'title') // => 'we-card__title'
|
|
41
|
-
*/
|
|
42
|
-
export const prefixElement = (block: string, element: string): string => {
|
|
43
|
-
return `${CLASS_PREFIX}-${block}__${element}`
|
|
44
|
-
}
|
package/src/index.ts
DELETED
package/src/styles/_base.scss
DELETED
package/src/styles/index.scss
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// 导入全局变量和 mixin
|
|
2
|
-
@import './variables';
|
|
3
|
-
@import './mixins';
|
|
4
|
-
|
|
5
|
-
// 导入组件库样式
|
|
6
|
-
// 通用组件
|
|
7
|
-
@import '../components/common/BottomPopup';
|
|
8
|
-
@import '../components/common/Card';
|
|
9
|
-
@import '../components/common/Modal';
|
|
10
|
-
@import '../components/common/NavBar';
|
|
11
|
-
@import '../components/common/Page';
|
|
12
|
-
@import '../components/common/PullToPushRefresh';
|
|
13
|
-
@import '../components/common/Radio';
|
|
14
|
-
@import '../components/common/Tabs';
|
|
15
|
-
@import '../components/common/UploadFile';
|
|
16
|
-
|
|
17
|
-
// 行业特定组件
|
|
18
|
-
@import '../components/industry/CitySelectModal';
|
|
19
|
-
@import '../components/industry/PaymentMethodSelect';
|
package/src/styles/mixins.scss
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// 背景图片 mixin
|
|
2
|
-
@mixin bgImg($url) {
|
|
3
|
-
background-image: url($url);
|
|
4
|
-
background-repeat: no-repeat;
|
|
5
|
-
background-position: center;
|
|
6
|
-
background-size: contain;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
// 文本省略 mixin
|
|
10
|
-
@mixin text-ellipsis($width: 100%) {
|
|
11
|
-
width: $width;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
text-overflow: ellipsis;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
}
|