diff --git a/uni_modules/liu-select/changelog.md b/uni_modules/liu-select/changelog.md new file mode 100644 index 0000000..54e7ff5 --- /dev/null +++ b/uni_modules/liu-select/changelog.md @@ -0,0 +1,6 @@ +## 1.0.2(2023-06-09) +增加预览二维码 +## 1.0.1(2023-04-14) +增加示例 +## 1.0.0(2023-03-31) +初始发布 diff --git a/uni_modules/liu-select/components/liu-select/liu-select.vue b/uni_modules/liu-select/components/liu-select/liu-select.vue new file mode 100644 index 0000000..1c0db12 --- /dev/null +++ b/uni_modules/liu-select/components/liu-select/liu-select.vue @@ -0,0 +1,275 @@ + + + + + diff --git a/uni_modules/liu-select/license.md b/uni_modules/liu-select/license.md new file mode 100644 index 0000000..029bf39 --- /dev/null +++ b/uni_modules/liu-select/license.md @@ -0,0 +1,6 @@ +### 1、本插件可免费下载使用; +### 2、未经许可,严禁复制本插件派生同类插件上传插件市场; +### 3、未经许可,严禁在插件市场恶意复制抄袭本插件进行违规获利; +### 4、对本软件的任何使用都必须遵守这些条款,违反这些条款的个人或组织将面临法律追究。 + + diff --git a/uni_modules/liu-select/package.json b/uni_modules/liu-select/package.json new file mode 100644 index 0000000..4e72abc --- /dev/null +++ b/uni_modules/liu-select/package.json @@ -0,0 +1,85 @@ +{ + "id": "liu-select", + "displayName": "下拉选择器", + "version": "1.0.2", + "description": "简单好用的下拉选择器,支持多选、单选、自定义数据格式、自定义文字和背景颜色,简单易修改", + "keywords": [ + "下拉选择", + "多选", + "下拉框", + "select", + "单选" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "u" + }, + "App": { + "app-vue": "u", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "u", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/liu-select/readme.md b/uni_modules/liu-select/readme.md new file mode 100644 index 0000000..61b848b --- /dev/null +++ b/uni_modules/liu-select/readme.md @@ -0,0 +1,70 @@ +### liu-select适用于uni-app项目的下拉选择组件 +### 本组件目前兼容微信小程序、H5 +### 本组件是简单好用的下拉选择器,支持多选、单选、自定义数据格式、自定义文字和背景颜色,简单易修改 +# --- 扫码预览、关注我们 --- + +## 扫码关注公众号,查看更多插件信息,预览插件效果! + +![](https://uni.ckapi.pro/uniapp/publicize.png) + +``` html +打开选择器 + +``` +``` javascript +export default { + data() { + return { + dataList: [{ + id: 1, + name: '测试1' + }, { + id: 2, + name: '测试2' + }, { + id: 3, + name: '测试3' + }, { + id: 4, + name: '测试4' + }, { + id: 5, + name: '测试5' + }, { + id: 6, + name: '测试6' + }, { + id: 7, + name: '测试7' + }], //数据源 + }; + }, + methods: { + //打开选择器 + openAddress() { + this.$refs.scroll.open() + }, + //选择成功 + chooseSuccess(e) { + console.log('所选择的信息:', e) + } + } +} +``` + +### 属性说明 +| 名称 | 类型 | 默认值 | 描述 | +| ----------------------------|--------------- | -------------------------| ---------------| +| multiple | Boolean | true | 是否多选(true:多选 false:单选) +| list | Array | [] | 选择项数据 +| selectColor | String | '#FFFFFF' | 选中字体颜色 +| noSelectColor | String | '#333333' | 未选中字体颜色 +| selectBg | String | '#1890ff' | 选中背景色 +| noSelectBg | String | '#f7f7f7' | 未选中背景色 +| isMask | Boolean | true | 是否点击阴影关闭 +| animation | Boolean | true | 是否开启动画 +| safeArea | Boolean | true | 是否开启安全条 +| @change | Function | | 选择成功回调事件 + + + diff --git a/uni_modules/liu-select/static/noData.png b/uni_modules/liu-select/static/noData.png new file mode 100644 index 0000000..cfd51dd Binary files /dev/null and b/uni_modules/liu-select/static/noData.png differ diff --git a/uni_modules/liu-select/static/select.png b/uni_modules/liu-select/static/select.png new file mode 100644 index 0000000..6295a0e Binary files /dev/null and b/uni_modules/liu-select/static/select.png differ