diff --git a/common/queue.js b/common/queue.js deleted file mode 100644 index 1269e6a..0000000 --- a/common/queue.js +++ /dev/null @@ -1 +0,0 @@ -const _count=Symbol("count");const _lowestCount=Symbol("lowestCount");const _items=Symbol("items");class Queue{constructor(){this[_count]=0;this[_lowestCount]=0;this[_items]={}}enqueue(element){this[_items][this[_count]]=element;this[_count]++}dequeue(){if(this.isEmpty())return undefined;const result=this[_items][this[_lowestCount]];delete this[_items][this[_lowestCount]];this[_lowestCount]++;return result}peek(){return this.isEmpty()?undefined:this[_items][this[_lowestCount]]}isEmpty(){return this[_count]-this[_lowestCount]===0}size(){return this[_count]-this[_lowestCount]}clear(){this[_count]=0;this[_lowestCount]=0;this[_items]={}}toString(){return Object.values(this[_items]).join(",")}}Object.freeze(Queue.prototype);const _dequeItems=Symbol("dequeItems");class Deque{constructor(){this[_items]={};this[_lowestCount]=0;this[_count]=0}addFront(element){if(this.isEmpty()){this.addBack(element)}else if(this[_lowestCount]>0){this[_lowestCount]--;this[_items][this[_lowestCount]]=element}else{for(let i=this[_count];i>0;i--){this[_items][i]=this[_items][i-1]}this[_items][0]=element;this[_count]++}}addBack(element){this[_items][this[_count]]=element;this[_count]++}removeFront(){if(this.isEmpty())return undefined;const result=this[_items][this[_lowestCount]];delete this[_items][this[_lowestCount]];this[_lowestCount]++;return result}removeBack(){if(this.isEmpty())return undefined;this[_count]--;const result=this[_items][this[_count]];delete this[_items][this[_count]];return result}peekFront(){return this.isEmpty()?undefined:this[_items][this[_lowestCount]]}peekBack(){return this.isEmpty()?undefined:this[_items][this[_count]-1]}isEmpty(){return this[_count]-this[_lowestCount]===0}size(){return this[_count]-this[_lowestCount]}clear(){this[_items]={};this[_lowestCount]=0;this[_count]=0}toString(){return Object.values(this[_items]).join(",")}}Object.freeze(Deque.prototype);export{Queue,Deque}; \ No newline at end of file diff --git a/uni_modules/.DS_Store b/uni_modules/.DS_Store index f6cefdf..079726e 100644 Binary files a/uni_modules/.DS_Store and b/uni_modules/.DS_Store differ diff --git a/uni_modules/uni-data-select/changelog.md b/uni_modules/uni-data-select/changelog.md deleted file mode 100644 index 016e3d2..0000000 --- a/uni_modules/uni-data-select/changelog.md +++ /dev/null @@ -1,39 +0,0 @@ -## 1.0.8(2024-03-28) -- 修复 在vue2下:style动态绑定导致编译失败的bug -## 1.0.7(2024-01-20) -- 修复 长文本回显超过容器的bug,超过容器部分显示省略号 -## 1.0.6(2023-04-12) -- 修复 微信小程序点击时会改变背景颜色的 bug -## 1.0.5(2023-02-03) -- 修复 禁用时会显示清空按钮 -## 1.0.4(2023-02-02) -- 优化 查询条件短期内多次变更只查询最后一次变更后的结果 -- 调整 内部缓存键名调整为 uni-data-select-lastSelectedValue -## 1.0.3(2023-01-16) -- 修复 不关联服务空间报错的问题 -## 1.0.2(2023-01-14) -- 新增 属性 `format` 可用于格式化显示选项内容 -## 1.0.1(2022-12-06) -- 修复 当where变化时,数据不会自动更新的问题 -## 0.1.9(2022-09-05) -- 修复 微信小程序下拉框出现后选择会点击到蒙板后面的输入框 -## 0.1.8(2022-08-29) -- 修复 点击的位置不准确 -## 0.1.7(2022-08-12) -- 新增 支持 disabled 属性 -## 0.1.6(2022-07-06) -- 修复 pc端宽度异常的bug -## 0.1.5 -- 修复 pc端宽度异常的bug -## 0.1.4(2022-07-05) -- 优化 显示样式 -## 0.1.3(2022-06-02) -- 修复 localdata 赋值不生效的 bug -- 新增 支持 uni.scss 修改颜色 -- 新增 支持选项禁用(数据选项设置 disabled: true 即禁用) -## 0.1.2(2022-05-08) -- 修复 当 value 为 0 时选择不生效的 bug -## 0.1.1(2022-05-07) -- 新增 记住上次的选项(仅 collection 存在时有效) -## 0.1.0(2022-04-22) -- 初始化 diff --git a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue deleted file mode 100644 index c60f421..0000000 --- a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +++ /dev/null @@ -1,574 +0,0 @@ - - - - - diff --git a/uni_modules/uni-data-select/package.json b/uni_modules/uni-data-select/package.json deleted file mode 100644 index 4dfebd7..0000000 --- a/uni_modules/uni-data-select/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "id": "uni-data-select", - "displayName": "uni-data-select 下拉框选择器", - "version": "1.0.8", - "description": "通过数据驱动的下拉框选择器", - "keywords": [ - "uni-ui", - "select", - "uni-data-select", - "下拉框", - "下拉选" -], - "repository": "https://github.com/dcloudio/uni-ui", - "engines": { - "HBuilderX": "^3.1.1" - }, - "directories": { - "example": "../../temps/example_temps" - }, -"dcloudext": { - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", - "type": "component-vue" - }, - "uni_modules": { - "dependencies": ["uni-load-more"], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y", - "alipay": "n" - }, - "client": { - "App": { - "app-vue": "u", - "app-nvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "u", - "百度": "u", - "字节跳动": "u", - "QQ": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - }, - "Vue": { - "vue2": "y", - "vue3": "y" - } - } - } - } -} diff --git a/uni_modules/uni-data-select/readme.md b/uni_modules/uni-data-select/readme.md deleted file mode 100644 index eb58de3..0000000 --- a/uni_modules/uni-data-select/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -## DataSelect 下拉框选择器 -> **组件名:uni-data-select** -> 代码块: `uDataSelect` - -当选项过多时,使用下拉菜单展示并选择内容 - -### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-select) -#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/changelog.md b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/changelog.md deleted file mode 100644 index e69de29..0000000 diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/components/zhuo-tianditu-MultiPoint-Mapper/tianditu-map.vue b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/components/zhuo-tianditu-MultiPoint-Mapper/tianditu-map.vue deleted file mode 100644 index 14bc081..0000000 --- a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/components/zhuo-tianditu-MultiPoint-Mapper/tianditu-map.vue +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/components/zhuo-tianditu-MultiPoint-Mapper/zhuo-tianditu-MultiPoint-Mapper.vue b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/components/zhuo-tianditu-MultiPoint-Mapper/zhuo-tianditu-MultiPoint-Mapper.vue deleted file mode 100644 index c0c4f93..0000000 --- a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/components/zhuo-tianditu-MultiPoint-Mapper/zhuo-tianditu-MultiPoint-Mapper.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/package.json b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/package.json deleted file mode 100644 index 18af958..0000000 --- a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "id": "zhuo-tianditu-MultiPoint-Mapper", - "displayName": "zhuo-tianditu-MultiPoint-Mapper", - "version": "1.0.0", - "description": "zhuo-tianditu-MultiPoint-Mapper", - "keywords": [ - "zhuo-tianditu-MultiPoint-Mapper" -], - "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": "u", - "aliyun": "u", - "alipay": "u" - }, - "client": { - "Vue": { - "vue2": "u", - "vue3": "u" - }, - "App": { - "app-vue": "u", - "app-nvue": "u", - "app-uvue": "u" - }, - "H5-mobile": { - "Safari": "u", - "Android Browser": "u", - "微信浏览器(Android)": "u", - "QQ浏览器(Android)": "u" - }, - "H5-pc": { - "Chrome": "u", - "IE": "u", - "Edge": "u", - "Firefox": "u", - "Safari": "u" - }, - "小程序": { - "微信": "u", - "阿里": "u", - "百度": "u", - "字节跳动": "u", - "QQ": "u", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/readme.md b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/readme.md deleted file mode 100644 index b39dcd3..0000000 --- a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/readme.md +++ /dev/null @@ -1 +0,0 @@ -# zhuo-tianditu-MultiPoint-Mapper \ No newline at end of file diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/point.png b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/point.png deleted file mode 100644 index 4772c05..0000000 Binary files a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/point.png and /dev/null differ diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/point2.png b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/point2.png deleted file mode 100644 index 40afccd..0000000 Binary files a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/point2.png and /dev/null differ diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/range.png b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/range.png deleted file mode 100644 index ccdbc15..0000000 Binary files a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/static/range.png and /dev/null differ diff --git a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/tools.js b/uni_modules/zhuo-tianditu-MultiPoint-Mapper/tools.js deleted file mode 100644 index 37f762f..0000000 --- a/uni_modules/zhuo-tianditu-MultiPoint-Mapper/tools.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @param title String,提示的内容 - * @param duration String,提示的延迟时间,单位毫秒,默认:1500 - * @param mask Boolean,是否显示透明蒙层,防止触摸穿透,默认:false - * @param icon String,图标:success、error、fail、exception、loading、none,默认:none - **/ -export function createMessage(title, duration = 1500, mask = false, icon = "none") { - uni.showToast({ - title, - duration: duration, - mask, - icon - }); -} - -/** - * @param url String,请求的地址,默认:none - * @param data Object,请求的参数,默认:{} - * @param method String,请求的方式,默认:GET - * @param loading Boolean,是否需要loading ,默认:false - * @param header Object,headers,默认:{} - * @returns promise - **/ -export function createRequest(url, data = {}, loading = false, method = 'GET', header = {}) { - if (loading) { - uni.showLoading({ - title: '请稍后', - mask: true - }) - } - return new Promise((resolve, reject) => { - uni.request({ - url: url, - method: method, - data: data, - header: header, - success: res => { - if (res.statusCode === 200) { - resolve(res.data) - } else { - if (res.data.msg) { - const str = typeof res.data.resolve === 'string' ? ',' + res.data.resolve : - '' - createMessage(res.data.msg + str) - } - throw new Error('请求错误 ' + url) - reject() - } - }, - fail: (err) => { - reject(err) - }, - complete: () => { - uni.hideLoading(); - } - }); - }) -} - -/** - * 数据格式化 - * @param obj Object,响应的数据 - * @param type Number 0 | 1,处理类型 - * @returns Object {address = string, name = string, location = {lon, lat }, infomation = {}} - */ -export function formatterAdressLocation(obj, type) { - switch (type) { - case 1: - return { - address: obj.formatted_address, - name: '', - location: obj.location, - infomation: obj.addressComponent - } - break; - case 2: - const [lon, lat] = obj.lonlat.split(',') - return { - address: obj.address, - name: obj.name, - location: { - lon, - lat - }, - infomation: obj - } - break - case 3: - return { - address: obj.location.keyWord, - name: '', - location: { - lon: obj.location.lon, - lat: obj.location.lat, - }, - infomation: obj.location - } - default: - break; - } -} -export default { - createMessage, - createRequest, - formatterAdressLocation -} \ No newline at end of file